diff options
| author | Warner Losh <imp@FreeBSD.org> | 2001-07-19 21:43:01 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2001-07-19 21:43:01 +0000 |
| commit | c8ce6587d0443eea1299bafe506ecdf72df9459f (patch) | |
| tree | cfb9eba23c33bdfc2b83a45a5c45361b21226f95 | |
| parent | e896ec1ef5ec6da70c49aeb9e0c7b0726fc73f35 (diff) | |
Notes
| -rw-r--r-- | sys/pccard/pcic_pci.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/pccard/pcic_pci.c b/sys/pccard/pcic_pci.c index 9cb66d472510..6fa9fd75fe8d 100644 --- a/sys/pccard/pcic_pci.c +++ b/sys/pccard/pcic_pci.c @@ -35,8 +35,13 @@ #include <sys/module.h> #include <sys/systm.h> +#if __FreeBSD_version < 500000 +#include <pci/pcireg.h> +#include <pci/pcivar.h> +#else #include <dev/pci/pcireg.h> #include <dev/pci/pcivar.h> +#endif #include <pccard/pcic_pci.h> #include <pccard/i82365.h> @@ -428,6 +433,7 @@ pcic_pci_probe(device_t dev) return (ENXIO); device_set_desc(dev, desc); +#if __FreeBSD_version > 500000 /* * Take us out of power down mode. */ @@ -437,6 +443,7 @@ pcic_pci_probe(device_t dev) "-- setting to D0\n", pci_get_powerstate(dev)); pci_set_powerstate(dev, PCI_POWERSTATE_D0); } +#endif /* * Allocated/deallocate interrupt. This forces the PCI BIOS or |
