The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/drivers/libdriver/drvlib.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    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, int atapi) );
    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

Cache object: 5980e8954b27999f3f9e60c0b9d1658b


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.