UbixOS
2.0
|
Go to the source code of this file.
Data Structures | |
struct | gpt_ent |
struct | gpt_hdr |
Macros | |
#define | bcmp(b1, b2, len) (memcmp((b1), (b2), (len)) != 0) |
#define | bcopy(src, dst, len) memcpy((dst), (src), (len)) |
#define | bzero(buf, size) memset((buf), 0, (size)) |
#define | DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ |
#define | DEV_BSIZE (1<<DEV_BSHIFT) |
#define | GPT_ENT_ATTR_BOOTFAILED (1ULL << 57) |
#define | GPT_ENT_ATTR_BOOTME (1ULL << 59) |
#define | GPT_ENT_ATTR_BOOTONCE (1ULL << 58) |
#define | GPT_ENT_ATTR_PLATFORM (1ULL << 0) |
#define | GPT_ENT_TYPE_EFI {0xc12a7328,0xf81f,0x11d2,0xba,0x4b,{0x00,0xa0,0xc9,0x3e,0xc9,0x3b}} |
#define | GPT_ENT_TYPE_FREEBSD {0x516e7cb4,0x6ecf,0x11d6,0x8f,0xf8,{0x00,0x02,0x2d,0x09,0x71,0x2b}} |
#define | GPT_ENT_TYPE_FREEBSD_BOOT {0x83bd6b9d,0x7f41,0x11dc,0xbe,0x0b,{0x00,0x15,0x60,0xb8,0x4f,0x0f}} |
#define | GPT_ENT_TYPE_FREEBSD_NANDFS {0x74ba7dd9,0xa689,0x11e1,0xbd,0x04,{0x00,0xe0,0x81,0x28,0x6a,0xcf}} |
#define | GPT_ENT_TYPE_FREEBSD_SWAP {0x516e7cb5,0x6ecf,0x11d6,0x8f,0xf8,{0x00,0x02,0x2d,0x09,0x71,0x2b}} |
#define | GPT_ENT_TYPE_FREEBSD_UFS {0x516e7cb6,0x6ecf,0x11d6,0x8f,0xf8,{0x00,0x02,0x2d,0x09,0x71,0x2b}} |
#define | GPT_ENT_TYPE_FREEBSD_VINUM {0x516e7cb8,0x6ecf,0x11d6,0x8f,0xf8,{0x00,0x02,0x2d,0x09,0x71,0x2b}} |
#define | GPT_ENT_TYPE_FREEBSD_ZFS {0x516e7cba,0x6ecf,0x11d6,0x8f,0xf8,{0x00,0x02,0x2d,0x09,0x71,0x2b}} |
#define | GPT_ENT_TYPE_MBR {0x024dee41,0x33e7,0x11d3,0x9d,0x69,{0x00,0x08,0xc7,0x81,0xf3,0x9f}} |
#define | GPT_ENT_TYPE_PREP_BOOT {0x9e1a2d38,0xc612,0x4316,0xaa,0x26,{0x8b,0x49,0x52,0x1e,0x5a,0x8b}} |
#define | GPT_ENT_TYPE_UNUSED {0x00000000,0x0000,0x0000,0x00,0x00,{0x00,0x00,0x00,0x00,0x00,0x00}} |
#define | GPT_HDR_REVISION 0x00010000 |
#define | GPT_HDR_SIG "EFI PART" |
Functions | |
void | gptbootfailed (struct device_interface *devInfo) |
int | gptfind (const uuid_t *uuid, struct device_interface *devInfo, int part) |
int | gptread (const uuid_t *uuid, struct device_interface *devInfo, char *buf) |
#define DEV_BSIZE (1<<DEV_BSHIFT) |
#define GPT_ENT_TYPE_EFI {0xc12a7328,0xf81f,0x11d2,0xba,0x4b,{0x00,0xa0,0xc9,0x3e,0xc9,0x3b}} |
#define GPT_ENT_TYPE_FREEBSD {0x516e7cb4,0x6ecf,0x11d6,0x8f,0xf8,{0x00,0x02,0x2d,0x09,0x71,0x2b}} |
#define GPT_ENT_TYPE_FREEBSD_BOOT {0x83bd6b9d,0x7f41,0x11dc,0xbe,0x0b,{0x00,0x15,0x60,0xb8,0x4f,0x0f}} |
#define GPT_ENT_TYPE_FREEBSD_NANDFS {0x74ba7dd9,0xa689,0x11e1,0xbd,0x04,{0x00,0xe0,0x81,0x28,0x6a,0xcf}} |
#define GPT_ENT_TYPE_FREEBSD_SWAP {0x516e7cb5,0x6ecf,0x11d6,0x8f,0xf8,{0x00,0x02,0x2d,0x09,0x71,0x2b}} |
#define GPT_ENT_TYPE_FREEBSD_UFS {0x516e7cb6,0x6ecf,0x11d6,0x8f,0xf8,{0x00,0x02,0x2d,0x09,0x71,0x2b}} |
#define GPT_ENT_TYPE_FREEBSD_VINUM {0x516e7cb8,0x6ecf,0x11d6,0x8f,0xf8,{0x00,0x02,0x2d,0x09,0x71,0x2b}} |
#define GPT_ENT_TYPE_FREEBSD_ZFS {0x516e7cba,0x6ecf,0x11d6,0x8f,0xf8,{0x00,0x02,0x2d,0x09,0x71,0x2b}} |
#define GPT_ENT_TYPE_MBR {0x024dee41,0x33e7,0x11d3,0x9d,0x69,{0x00,0x08,0xc7,0x81,0xf3,0x9f}} |
#define GPT_ENT_TYPE_PREP_BOOT {0x9e1a2d38,0xc612,0x4316,0xaa,0x26,{0x8b,0x49,0x52,0x1e,0x5a,0x8b}} |
#define GPT_ENT_TYPE_UNUSED {0x00000000,0x0000,0x0000,0x00,0x00,{0x00,0x00,0x00,0x00,0x00,0x00}} |
void gptbootfailed | ( | struct device_interface * | devInfo | ) |
int gptfind | ( | const uuid_t * | uuid, |
struct device_interface * | devInfo, | ||
int | part | ||
) |
Definition at line 99 of file gpt.c.
References device_interface::info, and driveInfo::part.
int gptread | ( | const uuid_t * | uuid, |
struct device_interface * | devInfo, | ||
char * | buf | ||
) |