summaryrefslogtreecommitdiffstats
path: root/sys/dev/pccard
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2000-06-18 05:02:09 +0000
committerimp <imp@FreeBSD.org>2000-06-18 05:02:09 +0000
commit78ef4e412548e6257445c76801233972c10154ef (patch)
tree72f8bfaaf65650fc9a929b28adcf1fa79403cfd9 /sys/dev/pccard
parent35003256061fa2bb90ebf5a1faff4d4f311f3fa6 (diff)
downloadFreeBSD-src-78ef4e412548e6257445c76801233972c10154ef.zip
FreeBSD-src-78ef4e412548e6257445c76801233972c10154ef.tar.gz
Add new functions. Also add comments to existing functions. These
are needed for the pccard changes I've just committed.
Diffstat (limited to 'sys/dev/pccard')
-rw-r--r--sys/dev/pccard/card_if.m37
1 files changed, 37 insertions, 0 deletions
diff --git a/sys/dev/pccard/card_if.m b/sys/dev/pccard/card_if.m
index ab6570f..6e925fb 100644
--- a/sys/dev/pccard/card_if.m
+++ b/sys/dev/pccard/card_if.m
@@ -55,6 +55,10 @@ METHOD int get_res_flags {
u_long *value;
};
+#
+# Sets the memory offset of the pccard bridge's window into attribute
+# or common memory space.
+#
METHOD int set_memory_offset {
device_t dev;
device_t child;
@@ -62,16 +66,49 @@ METHOD int set_memory_offset {
u_int32_t offset;
}
+#
+# pccard bridges call this method to initate the attachment of a card
+#
METHOD int attach_card {
device_t dev;
}
+#
+# pccard bridges call this to detach a card.
+#
METHOD int detach_card {
device_t dev;
int flags;
}
+#
+# Returns the type of card this is. Maybe we don't need this.
+#
METHOD int get_type {
device_t dev;
int *type;
}
+
+#
+# Returns the function number for this device.
+#
+METHOD int get_function {
+ device_t dev;
+ device_t child;
+ int *func;
+}
+
+#
+# Activates (and powers up if necessary) the card's nth function
+# since each function gets its own device, there is no need to
+# to specify a function number
+#
+METHOD int activate_function {
+ device_t dev;
+ device_t child;
+}
+
+METHOD int deactivate_function {
+ device_t dev;
+ device_t child;
+}
OpenPOWER on IntegriCloud