diff options
author | Bill Paul <wpaul@FreeBSD.org> | 2004-07-11 00:19:30 +0000 |
---|---|---|
committer | Bill Paul <wpaul@FreeBSD.org> | 2004-07-11 00:19:30 +0000 |
commit | 7602de354fee3a5f1d2c69dfef205930b271a087 (patch) | |
tree | d3e09779ebff5bf50e2694a2ed89854892329112 /sys/dev/if_ndis/if_ndis_pci.c | |
parent | 37224cd3fcb911d440e40dd8e1f31652e2452537 (diff) | |
download | src-7602de354fee3a5f1d2c69dfef205930b271a087.tar.gz src-7602de354fee3a5f1d2c69dfef205930b271a087.zip |
Notes
Diffstat (limited to 'sys/dev/if_ndis/if_ndis_pci.c')
-rw-r--r-- | sys/dev/if_ndis/if_ndis_pci.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/dev/if_ndis/if_ndis_pci.c b/sys/dev/if_ndis/if_ndis_pci.c index 7602dd16b28b..47c2f699ee40 100644 --- a/sys/dev/if_ndis/if_ndis_pci.c +++ b/sys/dev/if_ndis/if_ndis_pci.c @@ -84,6 +84,8 @@ static struct ndis_pci_type ndis_devs[] = { static int ndis_probe_pci (device_t); static int ndis_attach_pci (device_t); +static struct resource_list *ndis_get_resource_list + (device_t, device_t); extern int ndis_attach (device_t); extern int ndis_shutdown (device_t); extern int ndis_detach (device_t); @@ -101,6 +103,9 @@ static device_method_t ndis_methods[] = { DEVMETHOD(device_suspend, ndis_suspend), DEVMETHOD(device_resume, ndis_resume), + /* Bus interface */ + DEVMETHOD(bus_get_resource_list, ndis_get_resource_list), + { 0, 0 } }; @@ -321,4 +326,15 @@ fail: return(error); } +static struct resource_list * +ndis_get_resource_list(dev, child) + device_t dev; + device_t child; +{ + struct ndis_softc *sc; + + sc = device_get_softc(dev); + return (BUS_GET_RESOURCE_LIST(device_get_parent(sc->ndis_dev), dev)); +} + #endif /* NDIS_PCI_DEV_TABLE */ |