1: /* IBM device driver definitions Author: Kees J. Bot 2: * 7 Dec 1995 3: */ 4: 5: #include <ibm/partition.h> 6: 7: _PROTOTYPE( void partition, (struct driver *dr, int device, int style) ); 8: 9: /* BIOS parameter table layout. */ 10: #define bp_cylinders(t) (* (u16_t *) (&(t)[0])) 11: #define bp_heads(t) (* (u8_t *) (&(t)[2])) 12: #define bp_reduced_wr(t) (* (u16_t *) (&(t)[3])) 13: #define bp_precomp(t) (* (u16_t *) (&(t)[5])) 14: #define bp_max_ecc(t) (* (u8_t *) (&(t)[7])) 15: #define bp_ctlbyte(t) (* (u8_t *) (&(t)[8])) 16: #define bp_landingzone(t) (* (u16_t *) (&(t)[12])) 17: #define bp_sectors(t) (* (u8_t *) (&(t)[14])) 18: 19: /* Miscellaneous. */ 20: #define DEV_PER_DRIVE (1 + NR_PARTITIONS) 21: #define MINOR_t0 64 22: #define MINOR_r0 120 23: #define MINOR_d0p0s0 128 24: #define MINOR_fd0p0 (28<<2) 25: #define P_FLOPPY 0 26: #define P_PRIMARY 1 27: #define P_SUB 2