mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-18 17:29:17 +01:00
43 lines
556 B
C
43 lines
556 B
C
#ifndef _PARTITION_H_
|
|
#define _PARTITION_H_
|
|
|
|
#include <asndlib.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
|