2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
6 #include <aros/debug.h>
7 #include <libraries/uuid.h>
13 static void PRINT_UUID(uuid_t
*id
)
17 bug("[EFI] Table UUID: 0x%08X-%04X-%04X-%02X%02X-",
18 id
->time_low
, id
->time_mid
, id
->time_hi_and_version
,
19 id
->clock_seq_hi_and_reserved
, id
->clock_seq_low
);
21 for (i
= 0; i
< sizeof(id
->node
); i
++)
22 bug("%02X", id
->node
[i
]);
28 #define PRINT_UUID(id)
31 /*****************************************************************************
34 #include <proto/efi.h>
36 AROS_LH1(void *, EFI_FindConfigTable
,
39 AROS_LHA(const uuid_t
*, Guid
, A0
),
42 struct EFIBase
*, EFIBase
, 1, Efi
)
45 Locate a configuration table by GUID
48 Guid - a pointer to a GUID structure
51 A pointer to a table or NULL if nothing found.
63 ******************************************************************************/
67 struct EFI_Config
*conf
= EFIBase
->System
->ConfigTable
;
74 for (i
= 0; i
< EFIBase
->System
->NumEntries
; i
++)
76 PRINT_UUID(&conf
[i
].VendorGUID
);
78 if (!memcmp(&conf
[i
].VendorGUID
, Guid
, sizeof(uuid_t
)))