mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-09 21:15:10 +01:00
41 lines
532 B
C
41 lines
532 B
C
|
#ifndef _PARTITION_H_
|
||
|
#define _PARTITION_H_
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C"
|
||
|
{
|
||
|
#endif
|
||
|
|
||
|
/* 'partition entry' structure */
|
||
|
typedef struct {
|
||
|
/* Boot indicator */
|
||
|
u8 boot;
|
||
|
|
||
|
/* Starting CHS */
|
||
|
u8 start[3];
|
||
|
|
||
|
/* Partition type */
|
||
|
u8 type;
|
||
|
|
||
|
/* Ending CHS */
|
||
|
u8 end[3];
|
||
|
|
||
|
/* Partition sector */
|
||
|
u32 sector;
|
||
|
|
||
|
/* Partition size */
|
||
|
u32 size;
|
||
|
} ATTRIBUTE_PACKED partitionEntry;
|
||
|
|
||
|
/* Constants */
|
||
|
#define MAX_PARTITIONS 4
|
||
|
|
||
|
/* Prototypes */
|
||
|
s32 Partition_GetEntries(partitionEntry *, u32 *);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif
|