|
|
|
@ -3,13 +3,15 @@
|
|
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
|
|
#define A_PACKED __attribute__((packed))
|
|
|
|
|
|
|
|
|
|
#define AML_MDT_MAGIC "AML_"
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
char magic[4];
|
|
|
|
|
uint32_t version;
|
|
|
|
|
uint32_t count;
|
|
|
|
|
} aml_mdt_header_t;
|
|
|
|
|
} A_PACKED aml_mdt_header_t;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
char soc[16];
|
|
|
|
@ -17,7 +19,7 @@ typedef struct {
|
|
|
|
|
char variant[16];
|
|
|
|
|
uint32_t offset;
|
|
|
|
|
uint32_t unknown;
|
|
|
|
|
} aml_mdt_entry_t;
|
|
|
|
|
} A_PACKED aml_mdt_entry_t;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
@ -25,7 +27,7 @@ typedef struct {
|
|
|
|
|
char version[12];
|
|
|
|
|
uint32_t count;
|
|
|
|
|
uint32_t checksum;
|
|
|
|
|
} aml_pt_header_t;
|
|
|
|
|
} A_PACKED aml_pt_header_t;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
char name[16];
|
|
|
|
@ -33,6 +35,6 @@ typedef struct {
|
|
|
|
|
uint64_t start;
|
|
|
|
|
uint32_t flags;
|
|
|
|
|
uint8_t padding[4];
|
|
|
|
|
} aml_pt_partition_t;
|
|
|
|
|
} A_PACKED aml_pt_partition_t;
|
|
|
|
|
|
|
|
|
|
#endif /* end of include guard: AT_STRUCTURES_H */
|
|
|
|
|