#include <IOKit/storage/IOApplePartitionScheme.h>
IOKit/storage/IOApplePartitionScheme.h Kernel.framework
This header contains the IOApplePartitionScheme class definition.
14 macros · 3 structs · 3 typedefs
#define kIOApplePartitionSchemeClass "IOApplePartitionScheme"
size 512, align 1
| UInt16 | dpme_signature | (unique value for partition entry, 'PM') |
| UInt16 | dpme_reserved_1 | (reserved for future use) |
| UInt32 | dpme_map_entries | (number of partition entries) |
| UInt32 | dpme_pblock_start | (physical block start of partition) |
| UInt32 | dpme_pblocks | (physical block count of partition) |
| char[32] | dpme_name | (name of partition) |
| char[32] | dpme_type | (type of partition, eg. Apple_HFS) |
| UInt32 | dpme_lblock_start | (logical block start of partition) |
| UInt32 | dpme_lblocks | (logical block count of partition) |
| UInt32 | dpme_flags | (partition flags, see defines below) |
| UInt32 | dpme_boot_block | (logical block start of boot code) |
| UInt32 | dpme_boot_bytes | (byte count of boot code) |
| UInt32 | dpme_load_addr | (load address in memory of boot code) |
| UInt32 | dpme_load_addr_2 | (reserved for future use) |
| UInt32 | dpme_goto_addr | (jump address in memory of boot code) |
| UInt32 | dpme_goto_addr_2 | (reserved for future use) |
| UInt32 | dpme_checksum | (checksum of boot code) |
| UInt8[16] | dpme_process_id | (processor type) |
| UInt32[32] | dpme_reserved_2 | (reserved for future use) |
| UInt32[62] | dpme_reserved_3 | (reserved for future use) |
typedef struct dpme DPME;
size 8, align 1
| UInt32 | ddBlock | (driver's block start, sbBlkSize-blocks) |
| UInt16 | ddSize | (driver's block count, 512-blocks) |
| UInt16 | ddType | (driver's system type) |
typedef struct DDMap DDMap;
size 512, align 1
| UInt16 | sbSig | (unique value for block zero, 'ER') |
| UInt16 | sbBlkSize | (block size for this device) |
| UInt32 | sbBlkCount | (block count for this device) |
| UInt16 | sbDevType | (device type) |
| UInt16 | sbDevId | (device id) |
| UInt32 | sbDrvrData | (driver data) |
| UInt16 | sbDrvrCount | (driver descriptor count) |
| DDMap[8] | sbDrvrMap | (driver descriptor table) |
| UInt8[430] | sbReserved | (reserved for future use) |
typedef struct Block0 Block0;
#define BLOCK0_SIGNATURE 0x4552
#define DPME_SIGNATURE 0x504D
#define DPME_FLAGS_VALID 0x00000001
(bit 0)
#define DPME_FLAGS_ALLOCATED 0x00000002
(bit 1)
#define DPME_FLAGS_IN_USE 0x00000004
(bit 2)
#define DPME_FLAGS_BOOTABLE 0x00000008
(bit 3)
#define DPME_FLAGS_READABLE 0x00000010
(bit 4)
#define DPME_FLAGS_WRITABLE 0x00000020
(bit 5)
#define DPME_FLAGS_OS_PIC_CODE 0x00000040
(bit 6)
#define DPME_FLAGS_OS_SPECIFIC_2 0x00000080
(bit 7)
#define DPME_FLAGS_OS_SPECIFIC_1 0x00000100
(bit 8)
#define DPME_FLAGS_RESERVED_2 0xFFFFFE00
(bit 9..31)