diff options
author | peter <peter@FreeBSD.org> | 1999-01-19 00:18:28 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-01-19 00:18:28 +0000 |
commit | bd6a0259a65d507cf609e02efffd49e60d03e20b (patch) | |
tree | 70197c8a581c98786578c50be61b82ae65c15a2e /sys/pccard/slot.h | |
parent | 0c42a357a5ea6e2a572ea150ba4c769968543cea (diff) | |
download | FreeBSD-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.h | 18 |
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 |