minix/drivers/libdriver/drvlib.h
Arun Thomas 2a8fabf4ad Include directory reorg and makefile updates.
-Convert the include directory over to using bsdmake
 syntax
-Update/add mkfiles
-Modify install(1) so that it can create symlinks
-Update makefiles to use new install(1) options
-Rename /usr/include/ibm to /usr/include/i386
-Create /usr/include/machine symlink to arch header files
-Move vm_i386.h to its new home in the /usr/include/i386
-Update source files to #include the header files at their
 new homes.
-Add new gnu-includes target for building GCC headers
2010-03-08 11:04:59 +00:00

28 lines
831 B
C

/* IBM device driver definitions Author: Kees J. Bot
* 7 Dec 1995
*/
#include <machine/partition.h>
_PROTOTYPE( void partition, (struct driver *dr, int device, int style, int atapi) );
/* BIOS parameter table layout. */
#define bp_cylinders(t) (* (u16_t *) (&(t)[0]))
#define bp_heads(t) (* (u8_t *) (&(t)[2]))
#define bp_reduced_wr(t) (* (u16_t *) (&(t)[3]))
#define bp_precomp(t) (* (u16_t *) (&(t)[5]))
#define bp_max_ecc(t) (* (u8_t *) (&(t)[7]))
#define bp_ctlbyte(t) (* (u8_t *) (&(t)[8]))
#define bp_landingzone(t) (* (u16_t *) (&(t)[12]))
#define bp_sectors(t) (* (u8_t *) (&(t)[14]))
/* Miscellaneous. */
#define DEV_PER_DRIVE (1 + NR_PARTITIONS)
#define MINOR_t0 64
#define MINOR_r0 120
#define MINOR_d0p0s0 128
#define MINOR_fd0p0 (28<<2)
#define P_FLOPPY 0
#define P_PRIMARY 1
#define P_SUB 2