23#define howmany(x, y) (((x)+((y)-1))/(y))
26#define roundup(x, y) ((((x)+((y)-1))/(y))*(y))
31#define DKL_MAGIC 0xDABE
32#define DKL_MAGIC_0 0xDA
33#define DKL_MAGIC_1 0xBE
35#define CD_DEFLABEL "CD-ROM Disc with Sun sparc boot created by mkisofs"
36#define CD_X86LABEL "CD-ROM Disc with Sun x86 boot created by mkisofs"
59#define CD_CYLSIZE (CD_NSECT*CD_NHEAD*512)
62#define VTOC_SANE 0x600DDEEE
170#define GET_SEC(a) ((a) & SEC_MASK)
171#define GET_CYL(a) ((((a) & 0xFF) >> 8) | (((a) & 0xC0) << 2))
173#define STATUS_INACT 0
174#define STATUS_ACTIVE 0x80
177#define TYPE_DOS12 0x01
178#define TYPE_XENIX 0x02
179#define TYPE_XENIX2 0x03
180#define TYPE_DOS16 0x04
181#define TYPE_XDOS 0x05
182#define TYPE_DOS4 0x06
183#define TYPE_SOLARIS 0x82
184#define TYPE_SOLARIS_BOOT 0xBE
185#define TYPE_CDOS4 0xDB
Uchar v_timestamp[NDKMAP *4]
struct sun_label::dk_vtoc::dk_map2 v_part[NDKMAP]
struct sun_label::dk_map dkl_map[NDKMAP]
struct sun_label::dk_vtoc dkl_vtoc
char dkl_pad[512-(128+sizeof(struct dk_vtoc)+NDKMAP *8+14 *2)]
struct x86_label::x86_vtoc::dkl_partition v_part[NX86MAP]
struct x86_label::x86_vtoc dkl_vtoc
char dkl_pad[512-(sizeof(struct x86_vtoc)+4 *4+14 *2)]
Uchar dkl_read_reinstruct[2]
Uchar dkl_write_reinstruct[2]