diff options
author | imp <imp@FreeBSD.org> | 2000-06-18 04:59:39 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2000-06-18 04:59:39 +0000 |
commit | c0ac0d40f5783afe9a5f5b8a3819bb0c1687ff27 (patch) | |
tree | f89e6bad0e3d8efe858235ae139b9691843e5467 /sys/pccard | |
parent | 9f105f7325e830b59c1b9f21ff10608a6a34019b (diff) | |
download | FreeBSD-src-c0ac0d40f5783afe9a5f5b8a3819bb0c1687ff27.zip FreeBSD-src-c0ac0d40f5783afe9a5f5b8a3819bb0c1687ff27.tar.gz |
o Implement some compatibility functions for NEWCARD compat. This is
incomplete, but will eventually allow the same drivers to function
with both oldcard and newcard.
o Remove include of opt_bus.h. It isn't needed and gets in the way of
module building.
Diffstat (limited to 'sys/pccard')
-rw-r--r-- | sys/pccard/pccard_nbk.c | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/sys/pccard/pccard_nbk.c b/sys/pccard/pccard_nbk.c index e58d396..e346956 100644 --- a/sys/pccard/pccard_nbk.c +++ b/sys/pccard/pccard_nbk.c @@ -49,8 +49,6 @@ * These compatibility nodes are called pccnbk. PCCard New Bus Kludge. */ -#include "opt_bus.h" - #include <sys/param.h> #include <sys/systm.h> #include <sys/module.h> @@ -301,6 +299,27 @@ pccard_set_memory_offset(device_t bus, device_t child, int rid, offset); } +static int +pccard_get_function(device_t bus, device_t child, int *function) +{ + *function = 0; + return (0); +} + +static int +pccard_activate_function(device_t bus, device_t child) +{ + /* pccardd has alrady activated the function */ + return (0); +} + +static int +pccard_deactivate_function(device_t bus, device_t child) +{ + /* pccardd will deactivate the function */ + return (0); +} + static device_method_t pccard_methods[] = { /* Device interface */ DEVMETHOD(device_probe, pccard_probe), @@ -327,6 +346,9 @@ static device_method_t pccard_methods[] = { DEVMETHOD(card_set_res_flags, pccard_set_res_flags), DEVMETHOD(card_get_res_flags, pccard_get_res_flags), DEVMETHOD(card_set_memory_offset, pccard_set_memory_offset), + DEVMETHOD(card_get_function, pccard_get_function), + DEVMETHOD(card_activate_function, pccard_activate_function), + DEVMETHOD(card_deactivate_function, pccard_deactivate_function), { 0, 0 } }; |