diff options
Diffstat (limited to 'sys/dev/firewire/firewirereg.h')
-rw-r--r-- | sys/dev/firewire/firewirereg.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/sys/dev/firewire/firewirereg.h b/sys/dev/firewire/firewirereg.h index 73445e0..ba58f28 100644 --- a/sys/dev/firewire/firewirereg.h +++ b/sys/dev/firewire/firewirereg.h @@ -75,9 +75,7 @@ struct fw_device{ }; struct firewire_softc { -#if defined(__FreeBSD__) && __FreeBSD_version >= 500000 struct cdev *dev; -#endif struct firewire_comm *fc; }; @@ -303,36 +301,9 @@ extern int firewire_debug; extern devclass_t firewire_devclass; extern int firewire_phydma_enable; -#ifdef __DragonFly__ -#define FWPRI PCATCH -#else #define FWPRI ((PZERO+8)|PCATCH) -#endif -#if defined(__DragonFly__) || __FreeBSD_version < 500000 -#define CALLOUT_INIT(x) callout_init(x) -#else #define CALLOUT_INIT(x) callout_init(x, 1 /* mpsafe */) -#endif - -#if defined(__DragonFly__) || __FreeBSD_version < 500000 -/* compatibility shim for 4.X */ -#define bio buf -#define bio_bcount b_bcount -#define bio_cmd b_flags -#define bio_count b_count -#define bio_data b_data -#define bio_dev b_dev -#define bio_error b_error -#define bio_flags b_flags -#define bio_offset b_offset -#define bio_resid b_resid -#define BIO_ERROR B_ERROR -#define BIO_READ B_READ -#define BIO_WRITE B_WRITE -#define MIN(a,b) (((a)<(b))?(a):(b)) -#define MAX(a,b) (((a)>(b))?(a):(b)) -#endif MALLOC_DECLARE(M_FW); MALLOC_DECLARE(M_FWXFER); |