00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef _DOS_H
00011 #define _DOS_H
00012
00013 #ifdef __cplusplus
00014 extern "C" {
00015 #endif
00016
00017 typedef struct {
00018 uint8_t boot;
00019 uint8_t start_chs[3];
00020 uint8_t ptype;
00021 uint8_t end_chs[3];
00022 uint8_t start_sec[4];
00023 uint8_t size_sec[4];
00024 } dos_part;
00025
00026
00027 typedef struct {
00028 uint8_t f1[3];
00029
00030
00031 char oemname[8];
00032 uint8_t ssize[2];
00033 uint8_t csize;
00034 uint8_t filler[432];
00035 dos_part ptable[4];
00036 uint8_t magic[2];
00037 } dos_sect;
00038
00039 #define DOS_MAGIC 0xaa55
00040 #define DOS_PART_SOFFSET 0
00041
00042 #ifdef __cplusplus
00043 }
00044 #endif
00045 #endif