ReactOS 0.4.15-dev-7953-g1f49173
sunlabel.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sun_label
 
struct  sun_label::dk_vtoc
 
struct  sun_label::dk_vtoc::dk_map2
 
struct  sun_label::dk_map
 
struct  x86_label
 
struct  x86_label::x86_vtoc
 
struct  x86_label::x86_vtoc::dkl_partition
 
struct  pc_pr
 
struct  pc_part
 

Macros

#define howmany(x, y)   (((x)+((y)-1))/(y))
 
#define roundup(x, y)   ((((x)+((y)-1))/(y))*(y))
 
#define NDKMAP   8 /* # of sparc partitions */
 
#define NX86MAP   16 /* # if x86 partitions */
 
#define DKL_MAGIC   0xDABE /* magic number */
 
#define DKL_MAGIC_0   0xDA /* magic number high byte */
 
#define DKL_MAGIC_1   0xBE /* magic number low byte */
 
#define CD_DEFLABEL   "CD-ROM Disc with Sun sparc boot created by mkisofs"
 
#define CD_X86LABEL   "CD-ROM Disc with Sun x86 boot created by mkisofs"
 
#define CD_RPM   350
 
#define CD_PCYL   2048
 
#define CD_APC   0
 
#define CD_INTRLV   1
 
#define CD_NCYL   2048
 
#define CD_ACYL   0
 
#define CD_NHEAD   1
 
#define CD_NSECT   640
 
#define CD_CYLSIZE   (CD_NSECT*CD_NHEAD*512)
 
#define V_VERSION   1 /* The VTOC version */
 
#define VTOC_SANE   0x600DDEEE /* Indicates a sane VTOC */
 
#define V_ROOT   0x02 /* Root partiton */
 
#define V_USR   0x04 /* Usr partiton */
 
#define V_RONLY   0x10 /* Read only */
 
#define SEC_MASK   0x3F
 
#define GET_SEC(a)   ((a) & SEC_MASK)
 
#define GET_CYL(a)   ((((a) & 0xFF) >> 8) | (((a) & 0xC0) << 2))
 
#define STATUS_INACT   0 /* Marked non bootable */
 
#define STATUS_ACTIVE   0x80 /* Marked as bootable */
 
#define TYPE_FREE   0 /* Unused partition */
 
#define TYPE_DOS12   0x01 /* FAT12 fileystem */
 
#define TYPE_XENIX   0x02 /* XENIX root */
 
#define TYPE_XENIX2   0x03 /* XENIX usr */
 
#define TYPE_DOS16   0x04 /* FAT16 filesystem */
 
#define TYPE_XDOS   0x05 /* Extended DOS part */
 
#define TYPE_DOS4   0x06 /* FAT16 >= 32 MB */
 
#define TYPE_SOLARIS   0x82 /* Solaris x86 */
 
#define TYPE_SOLARIS_BOOT   0xBE /* Solaris boot */
 
#define TYPE_CDOS4   0xDB /* CPM */
 

Macro Definition Documentation

◆ CD_ACYL

#define CD_ACYL   0

Definition at line 51 of file sunlabel.h.

◆ CD_APC

#define CD_APC   0

Definition at line 48 of file sunlabel.h.

◆ CD_CYLSIZE

#define CD_CYLSIZE   (CD_NSECT*CD_NHEAD*512)

Definition at line 59 of file sunlabel.h.

◆ CD_DEFLABEL

#define CD_DEFLABEL   "CD-ROM Disc with Sun sparc boot created by mkisofs"

Definition at line 35 of file sunlabel.h.

◆ CD_INTRLV

#define CD_INTRLV   1

Definition at line 49 of file sunlabel.h.

◆ CD_NCYL

#define CD_NCYL   2048

Definition at line 50 of file sunlabel.h.

◆ CD_NHEAD

#define CD_NHEAD   1

Definition at line 52 of file sunlabel.h.

◆ CD_NSECT

#define CD_NSECT   640

Definition at line 53 of file sunlabel.h.

◆ CD_PCYL

#define CD_PCYL   2048

Definition at line 47 of file sunlabel.h.

◆ CD_RPM

#define CD_RPM   350

Definition at line 46 of file sunlabel.h.

◆ CD_X86LABEL

#define CD_X86LABEL   "CD-ROM Disc with Sun x86 boot created by mkisofs"

Definition at line 36 of file sunlabel.h.

◆ DKL_MAGIC

#define DKL_MAGIC   0xDABE /* magic number */

Definition at line 31 of file sunlabel.h.

◆ DKL_MAGIC_0

#define DKL_MAGIC_0   0xDA /* magic number high byte */

Definition at line 32 of file sunlabel.h.

◆ DKL_MAGIC_1

#define DKL_MAGIC_1   0xBE /* magic number low byte */

Definition at line 33 of file sunlabel.h.

◆ GET_CYL

#define GET_CYL (   a)    ((((a) & 0xFF) >> 8) | (((a) & 0xC0) << 2))

Definition at line 171 of file sunlabel.h.

◆ GET_SEC

#define GET_SEC (   a)    ((a) & SEC_MASK)

Definition at line 170 of file sunlabel.h.

◆ howmany

#define howmany (   x,
  y 
)    (((x)+((y)-1))/(y))

Definition at line 23 of file sunlabel.h.

◆ NDKMAP

#define NDKMAP   8 /* # of sparc partitions */

Definition at line 29 of file sunlabel.h.

◆ NX86MAP

#define NX86MAP   16 /* # if x86 partitions */

Definition at line 30 of file sunlabel.h.

◆ roundup

#define roundup (   x,
  y 
)    ((((x)+((y)-1))/(y))*(y))

Definition at line 26 of file sunlabel.h.

◆ SEC_MASK

#define SEC_MASK   0x3F

Definition at line 169 of file sunlabel.h.

◆ STATUS_ACTIVE

#define STATUS_ACTIVE   0x80 /* Marked as bootable */

Definition at line 174 of file sunlabel.h.

◆ STATUS_INACT

#define STATUS_INACT   0 /* Marked non bootable */

Definition at line 173 of file sunlabel.h.

◆ TYPE_CDOS4

#define TYPE_CDOS4   0xDB /* CPM */

Definition at line 185 of file sunlabel.h.

◆ TYPE_DOS12

#define TYPE_DOS12   0x01 /* FAT12 fileystem */

Definition at line 177 of file sunlabel.h.

◆ TYPE_DOS16

#define TYPE_DOS16   0x04 /* FAT16 filesystem */

Definition at line 180 of file sunlabel.h.

◆ TYPE_DOS4

#define TYPE_DOS4   0x06 /* FAT16 >= 32 MB */

Definition at line 182 of file sunlabel.h.

◆ TYPE_FREE

#define TYPE_FREE   0 /* Unused partition */

Definition at line 176 of file sunlabel.h.

◆ TYPE_SOLARIS

#define TYPE_SOLARIS   0x82 /* Solaris x86 */

Definition at line 183 of file sunlabel.h.

◆ TYPE_SOLARIS_BOOT

#define TYPE_SOLARIS_BOOT   0xBE /* Solaris boot */

Definition at line 184 of file sunlabel.h.

◆ TYPE_XDOS

#define TYPE_XDOS   0x05 /* Extended DOS part */

Definition at line 181 of file sunlabel.h.

◆ TYPE_XENIX

#define TYPE_XENIX   0x02 /* XENIX root */

Definition at line 178 of file sunlabel.h.

◆ TYPE_XENIX2

#define TYPE_XENIX2   0x03 /* XENIX usr */

Definition at line 179 of file sunlabel.h.

◆ V_RONLY

#define V_RONLY   0x10 /* Read only */

Definition at line 67 of file sunlabel.h.

◆ V_ROOT

#define V_ROOT   0x02 /* Root partiton */

Definition at line 64 of file sunlabel.h.

◆ V_USR

#define V_USR   0x04 /* Usr partiton */

Definition at line 65 of file sunlabel.h.

◆ V_VERSION

#define V_VERSION   1 /* The VTOC version */

Definition at line 61 of file sunlabel.h.

◆ VTOC_SANE

#define VTOC_SANE   0x600DDEEE /* Indicates a sane VTOC */

Definition at line 62 of file sunlabel.h.