From ab53999cee8842b737006169ffcbcfa5e5b125fb Mon Sep 17 00:00:00 2001 From: imp Date: Thu, 19 Jul 2001 21:43:01 +0000 Subject: When including pci header files, do things differently for 5x and 4x to make code sharing between the two easier. Also, only do power management in -current. It doesn't exist in stable yet. --- sys/pccard/pcic_pci.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sys/pccard') diff --git a/sys/pccard/pcic_pci.c b/sys/pccard/pcic_pci.c index 9cb66d4..6fa9fd7 100644 --- a/sys/pccard/pcic_pci.c +++ b/sys/pccard/pcic_pci.c @@ -35,8 +35,13 @@ #include #include +#if __FreeBSD_version < 500000 +#include +#include +#else #include #include +#endif #include #include @@ -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 -- cgit v1.1