blob: 6ae786636a023dc9bdbaced69c49c0c7f14e9d35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#define PACKED __attribute__ ( packed )
#define GUID(a)
#define TYPE_EMPTY "00000000-0000-0000-0000-000000000000"
#define TYPE_SYSTEM "C12A7328-F81F-11D2-BA4B-00A0C93EC93B"
typedef PACKED struct {
uint8_t d[16];
} guid;
typedef PACKED struct {
guid type;
guid label;
uint64_t start;
uint64_t end;
uint64_t flags;
#define FLAG_SYSTEM 1
uint8_t name[72];
} GPT_entry;
typedef PACKED struct {
typedef PACKED struct {
uint8_t boot_code[440];
uint8_t uid[4];
uint8_t reserved[2];
MBR_entry entry[4];
uint8_t signature[2];
}
} MBR;
|