summaryrefslogtreecommitdiffstats
path: root/sys/pccard/slot.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-01-19 00:18:28 +0000
committerpeter <peter@FreeBSD.org>1999-01-19 00:18:28 +0000
commitbd6a0259a65d507cf609e02efffd49e60d03e20b (patch)
tree70197c8a581c98786578c50be61b82ae65c15a2e /sys/pccard/slot.h
parent0c42a357a5ea6e2a572ea150ba4c769968543cea (diff)
downloadFreeBSD-src-bd6a0259a65d507cf609e02efffd49e60d03e20b.zip
FreeBSD-src-bd6a0259a65d507cf609e02efffd49e60d03e20b.tar.gz
Initial update pccard code for KLD module support. Module support
however is only marginally useful until the new-style bus (pci and isa) stuff comes onboard to give us a better shot at actually pci and isa drivers loadable (or preloadable anyway).
Diffstat (limited to 'sys/pccard/slot.h')
-rw-r--r--sys/pccard/slot.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/sys/pccard/slot.h b/sys/pccard/slot.h
index 94c7f6c..396b967 100644
--- a/sys/pccard/slot.h
+++ b/sys/pccard/slot.h
@@ -86,6 +86,24 @@ struct pccard_device {
struct pccard_device *next;
};
+int pccard_module_handler __P((module_t mod, int what, void *arg));
+
+#define PCCARD_MODULE(name, enable, disable, handler, attr, imask) \
+static struct pccard_device name ## _info = { \
+ #name, \
+ enable, \
+ disable, \
+ handler, \
+ attr, \
+ &imask \
+}; \
+static moduledata_t name ## _mod = { \
+ "pccard_" #name, \
+ pccard_module_handler, \
+ &name ## _info \
+}; \
+DECLARE_MODULE(name, name ## _mod, SI_SUB_DRIVERS, SI_ORDER_MIDDLE)
+
/*
* Device structure for cards. Each card may have one
* or more pccard drivers attached to it; each driver is assumed
OpenPOWER on IntegriCloud