Loading...
Searching...
No Matches
gpt_spec.h File Reference

GUID Partition Table (GPT) specification definitions. More...

Data Structures

struct  spdk_mbr_chs
 
struct  spdk_mbr_partition_entry
 
struct  spdk_mbr
 
struct  spdk_gpt_guid
 
struct  spdk_gpt_header
 
struct  spdk_gpt_partition_entry
 

Macros

#define SPDK_MBR_SIGNATURE   0xAA55
 
#define SPDK_MBR_OS_TYPE_GPT_PROTECTIVE   0xEE
 
#define SPDK_MBR_OS_TYPE_EFI_SYSTEM_PARTITION   0xEF
 
#define SPDK_GPT_SIGNATURE   "EFI PART"
 
#define SPDK_GPT_REVISION_1_0   0x00010000u
 
#define SPDK_GPT_GUID(a, b, c, d, e)
 
#define SPDK_GPT_PART_TYPE_UNUSED   SPDK_GPT_GUID(0x00000000, 0x0000, 0x0000, 0x0000, 0x000000000000)
 
#define SPDK_GPT_PART_TYPE_EFI_SYSTEM_PARTITION   SPDK_GPT_GUID(0xC12A7328, 0xF81F, 0x11D2, 0xBA4B, 0x00A0C93EC93B)
 
#define SPDK_GPT_PART_TYPE_LEGACY_MBR   SPDK_GPT_GUID(0x024DEE41, 0x33E7, 0x11D3, 0x9D69, 0x0008C781F39F)
 

Functions

 SPDK_STATIC_ASSERT (sizeof(struct spdk_mbr_chs)==3, "size incorrect")
 
 SPDK_STATIC_ASSERT (sizeof(struct spdk_mbr_partition_entry)==16, "size incorrect")
 
 SPDK_STATIC_ASSERT (sizeof(struct spdk_mbr)==512, "size incorrect")
 
 SPDK_STATIC_ASSERT (sizeof(struct spdk_gpt_guid)==16, "size incorrect")
 
 SPDK_STATIC_ASSERT (sizeof(struct spdk_gpt_header)==92, "size incorrect")
 
 SPDK_STATIC_ASSERT (sizeof(struct spdk_gpt_partition_entry)==128, "size incorrect")
 

Detailed Description

GUID Partition Table (GPT) specification definitions.

Macro Definition Documentation

◆ SPDK_GPT_GUID

#define SPDK_GPT_GUID ( a,
b,
c,
d,
e )
Value:
(struct spdk_gpt_guid){{ \
(uint8_t)(a), (uint8_t)(((uint32_t)a) >> 8), \
(uint8_t)(((uint32_t)a) >> 16), (uint8_t)(((uint32_t)a >> 24)), \
(uint8_t)(b), (uint8_t)(((uint16_t)b) >> 8), \
(uint8_t)(c), (uint8_t)(((uint16_t)c) >> 8), \
(uint8_t)(((uint16_t)d) >> 8), (uint8_t)(d), \
(uint8_t)(((uint64_t)e) >> 40), (uint8_t)(((uint64_t)e) >> 32), (uint8_t)(((uint64_t)e) >> 24), \
(uint8_t)(((uint64_t)e) >> 16), (uint8_t)(((uint64_t)e) >> 8), (uint8_t)(e) \
}}
Definition gpt_spec.h:64