PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
gpt_types.h File Reference
#include <types.h>
+ Include dependency graph for gpt_types.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GPT_PART_ATTR_PLATFORM_REQUIRED   0x1
 
#define GPT_PART_ATTR_IGNORE   0x2
 
#define GPT_PART_ATTR_LEGACY_BOOTABLE   0x4
 
#define GPT_PART_ATTR_TYPE_SHIFT   48
 
#define GPT_PART_ATTR_TYPE_MASK   0xFFFF
 
#define GPT_PART_ATTR_TYPE_SPECIFIC(attr)   ((attr >> GPT_PART_ATTR_TYPE_SHIFT) & GPT_PART_ATTR_TYPE_MASK)
 
#define GPT_BDP_ATTR_READ_ONLY   0x1000
 
#define GPT_BDP_ATTR_SHADOW_COPY   0x2000
 
#define GPT_BDP_ATTR_HIDDEN   0x4000
 
#define GPT_BDP_ATTR_NO_DRIVE_LETTER   0x8000
 

Functions

struct __attribute__ ((packed)) _gpt_partition_table_header
 

Variables

static const u8 EFI_PARTITION_SIGNATURE [8] = { 'E', 'F', 'I', ' ', 'P', 'A', 'R', 'T' }
 
 gpt_partition_table_header
 
static const u8 NULL_GUID [16] = { 0 }
 
static const u8 MS_RESERVED_PARTITION_GUID [16] = { 0x16, 0xE3, 0xC9, 0xE3, 0x5C, 0x0B, 0xB8, 0x4D, 0x81, 0x7D, 0xF9, 0x2D, 0xF0, 0x02, 0x15, 0xAE }
 
static const u8 EFI_SYSTEM_PARTITION [16] = { 0x28, 0x73, 0x2A, 0xC1, 0x1F, 0xF8, 0xD2, 0x11, 0xBA, 0x4B, 0x00, 0xA0, 0xC9, 0x3E, 0xC9, 0x3B }
 
static const u8 MS_BASIC_DATA_PARTITION_GUID [16] = { 0xA2, 0xA0, 0xD0, 0xEB, 0xE5, 0xB9, 0x33, 0x44, 0x87, 0xC0, 0x68, 0xB6, 0xB7, 0x26, 0x99, 0xC7 }
 
 gpt_partition_table_entry
 

Detailed Description

GPT partition definitions.

Definition in file gpt_types.h.

Macro Definition Documentation

◆ GPT_PART_ATTR_PLATFORM_REQUIRED

#define GPT_PART_ATTR_PLATFORM_REQUIRED   0x1

Definition at line 56 of file gpt_types.h.

◆ GPT_PART_ATTR_IGNORE

#define GPT_PART_ATTR_IGNORE   0x2

Definition at line 57 of file gpt_types.h.

◆ GPT_PART_ATTR_LEGACY_BOOTABLE

#define GPT_PART_ATTR_LEGACY_BOOTABLE   0x4

Definition at line 58 of file gpt_types.h.

◆ GPT_PART_ATTR_TYPE_SHIFT

#define GPT_PART_ATTR_TYPE_SHIFT   48

Definition at line 60 of file gpt_types.h.

◆ GPT_PART_ATTR_TYPE_MASK

#define GPT_PART_ATTR_TYPE_MASK   0xFFFF

Definition at line 61 of file gpt_types.h.

◆ GPT_PART_ATTR_TYPE_SPECIFIC

#define GPT_PART_ATTR_TYPE_SPECIFIC (   attr)    ((attr >> GPT_PART_ATTR_TYPE_SHIFT) & GPT_PART_ATTR_TYPE_MASK)

Definition at line 62 of file gpt_types.h.

◆ GPT_BDP_ATTR_READ_ONLY

#define GPT_BDP_ATTR_READ_ONLY   0x1000

Definition at line 65 of file gpt_types.h.

◆ GPT_BDP_ATTR_SHADOW_COPY

#define GPT_BDP_ATTR_SHADOW_COPY   0x2000

Definition at line 66 of file gpt_types.h.

◆ GPT_BDP_ATTR_HIDDEN

#define GPT_BDP_ATTR_HIDDEN   0x4000

Definition at line 67 of file gpt_types.h.

◆ GPT_BDP_ATTR_NO_DRIVE_LETTER

#define GPT_BDP_ATTR_NO_DRIVE_LETTER   0x8000

Definition at line 68 of file gpt_types.h.

Function Documentation

◆ __attribute__()

struct __attribute__ ( (packed)  )

Definition at line 20 of file gpt_types.h.

Variable Documentation

◆ EFI_PARTITION_SIGNATURE

const u8 EFI_PARTITION_SIGNATURE[8] = { 'E', 'F', 'I', ' ', 'P', 'A', 'R', 'T' }
static

Definition at line 20 of file gpt_types.h.

◆ gpt_partition_table_header

gpt_partition_table_header

Definition at line 38 of file gpt_types.h.

◆ NULL_GUID

const u8 NULL_GUID[16] = { 0 }
static

Definition at line 41 of file gpt_types.h.

◆ MS_RESERVED_PARTITION_GUID

const u8 MS_RESERVED_PARTITION_GUID[16] = { 0x16, 0xE3, 0xC9, 0xE3, 0x5C, 0x0B, 0xB8, 0x4D, 0x81, 0x7D, 0xF9, 0x2D, 0xF0, 0x02, 0x15, 0xAE }
static

Definition at line 42 of file gpt_types.h.

◆ EFI_SYSTEM_PARTITION

const u8 EFI_SYSTEM_PARTITION[16] = { 0x28, 0x73, 0x2A, 0xC1, 0x1F, 0xF8, 0xD2, 0x11, 0xBA, 0x4B, 0x00, 0xA0, 0xC9, 0x3E, 0xC9, 0x3B }
static

Definition at line 43 of file gpt_types.h.

◆ MS_BASIC_DATA_PARTITION_GUID

const u8 MS_BASIC_DATA_PARTITION_GUID[16] = { 0xA2, 0xA0, 0xD0, 0xEB, 0xE5, 0xB9, 0x33, 0x44, 0x87, 0xC0, 0x68, 0xB6, 0xB7, 0x26, 0x99, 0xC7 }
static

Definition at line 44 of file gpt_types.h.

◆ gpt_partition_table_entry

gpt_partition_table_entry

Definition at line 54 of file gpt_types.h.