diff options
author | imp <imp@FreeBSD.org> | 2001-12-15 05:58:28 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2001-12-15 05:58:28 +0000 |
commit | 9292ea9a4dfc2ff90ee03892a97de158af725c44 (patch) | |
tree | 9d150006491e4846d4731d4cb78daa7d0ca0ebd5 /sys/dev/pccard | |
parent | ad82adf6dd23cf18586eae17240b2a0f4b5891a4 (diff) | |
download | FreeBSD-src-9292ea9a4dfc2ff90ee03892a97de158af725c44.zip FreeBSD-src-9292ea9a4dfc2ff90ee03892a97de158af725c44.tar.gz |
Add support for suspending/resuming CardBus bridges.
We really should have and use power state information, but none exists
today.
Submitted by: YAMAMOTO Shigeru-san <shigeru@iij.ad.jp>
Diffstat (limited to 'sys/dev/pccard')
-rw-r--r-- | sys/dev/pccard/pccard.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/sys/dev/pccard/pccard.c b/sys/dev/pccard/pccard.c index 4612b40..f6ea864 100644 --- a/sys/dev/pccard/pccard.c +++ b/sys/dev/pccard/pccard.c @@ -807,6 +807,20 @@ pccard_detach(device_t dev) return 0; } +static int +pccard_suspend(device_t self) +{ + pccard_detach_card(self, 0); + return (0); +} + +static +int +pccard_resume(device_t self) +{ + return (0); +} + static void pccard_print_resources(struct resource_list *rl, const char *name, int type, int count, const char *format) @@ -1200,8 +1214,8 @@ static device_method_t pccard_methods[] = { DEVMETHOD(device_attach, pccard_attach), DEVMETHOD(device_detach, pccard_detach), DEVMETHOD(device_shutdown, bus_generic_shutdown), - DEVMETHOD(device_suspend, bus_generic_suspend), - DEVMETHOD(device_resume, bus_generic_resume), + DEVMETHOD(device_suspend, pccard_suspend), + DEVMETHOD(device_resume, pccard_resume), /* Bus interface */ DEVMETHOD(bus_print_child, pccard_print_child), |