home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
CMDS
/
mtools_3.6.src.lzh
/
MTOOLS_3.6
/
partition.h
< prev
next >
Wrap
Text File
|
1997-11-12
|
657b
|
25 lines
typedef struct hsc {
unsigned char byte0;
unsigned char head; /* starting head */
unsigned char sector; /* starting sector */
unsigned char cyl; /* starting cylinder */
} hsc;
#define head(x) ((x).head)
#define sector(x) ((x).sector & 0x3f)
#define cyl(x) ((x).cyl | (((x).sector & 0xc0)<<2))
#define BEGIN(p) _DWORD((p).start_sect)
#define END(p) (_DWORD((p).start_sect)+(_DWORD((p).nr_sects)))
struct partition {
hsc start PACKED;
hsc end PACKED;
unsigned char start_sect[4]; /* starting sector counting from 0 */
unsigned char nr_sects[4]; /* nr of sectors in partition */
};
#define boot_ind start.byte0
#define sys_ind end.byte0