|
|
| version 1.3, 2003/08/07 21:16:51 | version 1.4, 2004/02/13 01:04:14 |
|---|---|
| Line 43 | Line 43 |
| #include <sys/param.h> | #include <sys/param.h> |
| #include <sys/systm.h> | #include <sys/systm.h> |
| #include <sys/bus.h> /* For device_t */ | #include <sys/bus.h> /* For device_t */ |
| #if __FreeBSD_version >= 500000 | #if defined(__FreeBSD__) && __FreeBSD_version >= 500000 |
| #include <sys/endian.h> | #include <sys/endian.h> |
| #endif | #endif |
| #include <sys/eventhandler.h> | #include <sys/eventhandler.h> |
| Line 51 | Line 51 |
| #include <sys/malloc.h> | #include <sys/malloc.h> |
| #include <sys/queue.h> | #include <sys/queue.h> |
| #if __FreeBSD_version < 500000 | #if defined(__DragonFly__) || __FreeBSD_version < 500000 |
| #include <use_pci.h> | #include <use_pci.h> |
| #else | #else |
| #define NPCI 1 | #define NPCI 1 |
| Line 192 struct scb_platform_data { | Line 192 struct scb_platform_data { |
| }; | }; |
| /********************************* Byte Order *********************************/ | /********************************* Byte Order *********************************/ |
| #if __FreeBSD_version >= 500000 | #if defined(__FreeBSD__) && __FreeBSD_version >= 500000 |
| #define ahc_htobe16(x) htobe16(x) | #define ahc_htobe16(x) htobe16(x) |
| #define ahc_htobe32(x) htobe32(x) | #define ahc_htobe32(x) htobe32(x) |
| #define ahc_htobe64(x) htobe64(x) | #define ahc_htobe64(x) htobe64(x) |
| Line 236 typedef struct callout ahc_timer_t; | Line 236 typedef struct callout ahc_timer_t; |
| /***************************** Timer Facilities *******************************/ | /***************************** Timer Facilities *******************************/ |
| timeout_t ahc_timeout; | timeout_t ahc_timeout; |
| #if __FreeBSD_version >= 500000 | #if defined(__FreeBSD__) && __FreeBSD_version >= 500000 |
| #define ahc_timer_init(timer) callout_init(timer, /*mpsafe*/0) | #define ahc_timer_init(timer) callout_init(timer, /*mpsafe*/0) |
| #else | #else |
| #define ahc_timer_init callout_init | #define ahc_timer_init callout_init |