diff options
Diffstat (limited to 'include/linux/efi.h')
-rw-r--r-- | include/linux/efi.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/include/linux/efi.h b/include/linux/efi.h index 37c300712e02..47fbf6b3dc77 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h | |||
@@ -315,6 +315,16 @@ typedef efi_status_t efi_query_capsule_caps_t(efi_capsule_header_t **capsules, | |||
315 | 315 | ||
316 | typedef struct { | 316 | typedef struct { |
317 | efi_guid_t guid; | 317 | efi_guid_t guid; |
318 | u64 table; | ||
319 | } efi_config_table_64_t; | ||
320 | |||
321 | typedef struct { | ||
322 | efi_guid_t guid; | ||
323 | u32 table; | ||
324 | } efi_config_table_32_t; | ||
325 | |||
326 | typedef struct { | ||
327 | efi_guid_t guid; | ||
318 | unsigned long table; | 328 | unsigned long table; |
319 | } efi_config_table_t; | 329 | } efi_config_table_t; |
320 | 330 | ||
@@ -329,6 +339,40 @@ typedef struct { | |||
329 | 339 | ||
330 | typedef struct { | 340 | typedef struct { |
331 | efi_table_hdr_t hdr; | 341 | efi_table_hdr_t hdr; |
342 | u64 fw_vendor; /* physical addr of CHAR16 vendor string */ | ||
343 | u32 fw_revision; | ||
344 | u32 __pad1; | ||
345 | u64 con_in_handle; | ||
346 | u64 con_in; | ||
347 | u64 con_out_handle; | ||
348 | u64 con_out; | ||
349 | u64 stderr_handle; | ||
350 | u64 stderr; | ||
351 | u64 runtime; | ||
352 | u64 boottime; | ||
353 | u32 nr_tables; | ||
354 | u32 __pad2; | ||
355 | u64 tables; | ||
356 | } efi_system_table_64_t; | ||
357 | |||
358 | typedef struct { | ||
359 | efi_table_hdr_t hdr; | ||
360 | u32 fw_vendor; /* physical addr of CHAR16 vendor string */ | ||
361 | u32 fw_revision; | ||
362 | u32 con_in_handle; | ||
363 | u32 con_in; | ||
364 | u32 con_out_handle; | ||
365 | u32 con_out; | ||
366 | u32 stderr_handle; | ||
367 | u32 stderr; | ||
368 | u32 runtime; | ||
369 | u32 boottime; | ||
370 | u32 nr_tables; | ||
371 | u32 tables; | ||
372 | } efi_system_table_32_t; | ||
373 | |||
374 | typedef struct { | ||
375 | efi_table_hdr_t hdr; | ||
332 | unsigned long fw_vendor; /* physical addr of CHAR16 vendor string */ | 376 | unsigned long fw_vendor; /* physical addr of CHAR16 vendor string */ |
333 | u32 fw_revision; | 377 | u32 fw_revision; |
334 | unsigned long con_in_handle; | 378 | unsigned long con_in_handle; |
@@ -497,6 +541,7 @@ extern int __init efi_setup_pcdp_console(char *); | |||
497 | #ifdef CONFIG_EFI | 541 | #ifdef CONFIG_EFI |
498 | # ifdef CONFIG_X86 | 542 | # ifdef CONFIG_X86 |
499 | extern int efi_enabled; | 543 | extern int efi_enabled; |
544 | extern bool efi_64bit; | ||
500 | # else | 545 | # else |
501 | # define efi_enabled 1 | 546 | # define efi_enabled 1 |
502 | # endif | 547 | # endif |