StupidOS/sbin/fdisk/gpt.h
d0p1 5c2c3bb348 chore: sync repo
- add various comments
- add stpd.file.mk
- etc
2025-10-30 16:36:18 +01:00

28 lines
514 B
C

#ifndef GPT_H
# define GPT_H 1
# define GPT_MAGIC "EFI PART"
# define GPT_UNUSED_ENTRY { 0x00000000, 0x0000, 0x0000, \
{ 0x00, 0x00, 0x00, 0x00, \
0x00, 0x00, 0x00, 0x00 }}
struct gpt_header {
uint8_t magic[8];
uint32_t revision;
uint32_t hsize;
uint32_t hcrc32;
uint32_t reserved;
uint64_t curr_LBA;
uint64_t alt_LBA;
uint64_t fuse_LBA;
uint64_t luse_LBA;
uint8_t guid[16];
uint64_t start_LBA;
uint32_t pentnum;
uint32_t pentsize;
uint32_t pentcrc32;
};
#endif /* !GPT_H */