|
|
| version 1.3, 2004/02/05 13:32:07 | version 1.4, 2004/02/05 17:51:43 |
|---|---|
| Line 412 struct fw_crom_buf { | Line 412 struct fw_crom_buf { |
| #define FWMAXNDMA 0x100 /* 8 bits DMA channel id. in device No. */ | #define FWMAXNDMA 0x100 /* 8 bits DMA channel id. in device No. */ |
| #if __FreeBSD_version < 500000 | #if defined(__DragonFly__) || __FreeBSD_version < 500000 |
| #define dev2unit(x) ((minor(x) & 0xff) | (minor(x) >> 8)) | #define dev2unit(x) ((minor(x) & 0xff) | (minor(x) >> 8)) |
| #define unit2minor(x) (((x) & 0xff) | (((x) << 8) & ~0xffff)) | #define unit2minor(x) (((x) & 0xff) | (((x) << 8) & ~0xffff)) |
| #endif | #endif |