drvlib.h

Go to the documentation of this file.
00001 /* IBM device driver definitions                        Author: Kees J. Bot
00002  *                                                              7 Dec 1995
00003  */
00004 
00005 #include <ibm/partition.h>
00006 
00007 _PROTOTYPE( void partition, (struct driver *dr, int device, int style, int atapi) );
00008 
00009 /* BIOS parameter table layout. */
00010 #define bp_cylinders(t)         (* (u16_t *) (&(t)[0]))
00011 #define bp_heads(t)             (* (u8_t *)  (&(t)[2]))
00012 #define bp_reduced_wr(t)        (* (u16_t *) (&(t)[3]))
00013 #define bp_precomp(t)           (* (u16_t *) (&(t)[5]))
00014 #define bp_max_ecc(t)           (* (u8_t *)  (&(t)[7]))
00015 #define bp_ctlbyte(t)           (* (u8_t *)  (&(t)[8]))
00016 #define bp_landingzone(t)       (* (u16_t *) (&(t)[12]))
00017 #define bp_sectors(t)           (* (u8_t *)  (&(t)[14]))
00018 
00019 /* Miscellaneous. */
00020 #define DEV_PER_DRIVE   (1 + NR_PARTITIONS)
00021 #define MINOR_t0        64
00022 #define MINOR_r0        120
00023 #define MINOR_d0p0s0    128
00024 #define MINOR_fd0p0     (28<<2)
00025 #define P_FLOPPY        0
00026 #define P_PRIMARY       1
00027 #define P_SUB           2

Generated on Fri Apr 14 22:57:17 2006 for minix by  doxygen 1.4.6