efi: define struct efi_guid
This let's us forward declare efi_guid_t in the UUID code without pulling in efi.h Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
This commit is contained in:

committed by
Heinrich Schuchardt

parent
775f7657ba
commit
3cc3bc08f4
@@ -74,7 +74,7 @@ struct efi_device_path {
|
|||||||
* struct { u32 a; u16; b; u16 c; u8 d[8]; }; which is 4-byte
|
* struct { u32 a; u16; b; u16 c; u8 d[8]; }; which is 4-byte
|
||||||
* aligned.
|
* aligned.
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct efi_guid {
|
||||||
u8 b[16];
|
u8 b[16];
|
||||||
} efi_guid_t __attribute__((aligned(4)));
|
} efi_guid_t __attribute__((aligned(4)));
|
||||||
|
|
||||||
|
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
|
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
|
||||||
|
|
||||||
typedef struct {
|
typedef struct efi_guid {
|
||||||
uint8_t b[16];
|
uint8_t b[16];
|
||||||
} efi_guid_t __aligned(8);
|
} efi_guid_t __aligned(8);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user