aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/efi.h145
1 files changed, 36 insertions, 109 deletions
diff --git a/include/linux/efi.h b/include/linux/efi.h
index 0174f28ce9b3..7f80a75ee9e3 100644
--- a/include/linux/efi.h
+++ b/include/linux/efi.h
@@ -538,9 +538,11 @@ void efi_native_runtime_setup(void);
538/* 538/*
539 * EFI Configuration Table and GUID definitions 539 * EFI Configuration Table and GUID definitions
540 * 540 *
541 * These should be formatted roughly like the ones in the UEFI SPEC has 541 * These are all defined in a single line to make them easier to
542 * them. It makes them easier to grep for, and they look the same when 542 * grep for and to see them at a glance - while still having a
543 * you're staring at them. Here's the guide: 543 * similar structure to the definitions in the spec.
544 *
545 * Here's how they are structured:
544 * 546 *
545 * GUID: 12345678-1234-1234-1234-123456789012 547 * GUID: 12345678-1234-1234-1234-123456789012
546 * Spec: 548 * Spec:
@@ -548,119 +550,44 @@ void efi_native_runtime_setup(void);
548 * {0x12345678,0x1234,0x1234,\ 550 * {0x12345678,0x1234,0x1234,\
549 * {0x12,0x34,0x12,0x34,0x56,0x78,0x90,0x12}} 551 * {0x12,0x34,0x12,0x34,0x56,0x78,0x90,0x12}}
550 * Here: 552 * Here:
551 * #define SOME_PROTOCOL_GUID \ 553 * #define SOME_PROTOCOL_GUID EFI_GUID(0x12345678, 0x1234, 0x1234, 0x12, 0x34, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12)
552 * EFI_GUID(0x12345678, 0x1234, 0x1234, \ 554 * ^ tabs ^extra space
553 * 0x12, 0x34, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12) 555 *
554 * ^ tab ^tab ^ space 556 * Note that the 'extra space' separates the values at the same place
557 * where the UEFI SPEC breaks the line.
555 */ 558 */
556#define NULL_GUID \ 559#define NULL_GUID EFI_GUID(0x00000000, 0x0000, 0x0000, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00)
557 EFI_GUID(0x00000000, 0x0000, 0x0000, \ 560#define MPS_TABLE_GUID EFI_GUID(0xeb9d2d2f, 0x2d88, 0x11d3, 0x9a, 0x16, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d)
558 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00) 561#define ACPI_TABLE_GUID EFI_GUID(0xeb9d2d30, 0x2d88, 0x11d3, 0x9a, 0x16, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d)
559 562#define ACPI_20_TABLE_GUID EFI_GUID(0x8868e871, 0xe4f1, 0x11d3, 0xbc, 0x22, 0x00, 0x80, 0xc7, 0x3c, 0x88, 0x81)
560#define MPS_TABLE_GUID \ 563#define SMBIOS_TABLE_GUID EFI_GUID(0xeb9d2d31, 0x2d88, 0x11d3, 0x9a, 0x16, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d)
561 EFI_GUID(0xeb9d2d2f, 0x2d88, 0x11d3, \ 564#define SMBIOS3_TABLE_GUID EFI_GUID(0xf2fd1544, 0x9794, 0x4a2c, 0x99, 0x2e, 0xe5, 0xbb, 0xcf, 0x20, 0xe3, 0x94)
562 0x9a, 0x16, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d) 565#define SAL_SYSTEM_TABLE_GUID EFI_GUID(0xeb9d2d32, 0x2d88, 0x11d3, 0x9a, 0x16, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d)
563 566#define HCDP_TABLE_GUID EFI_GUID(0xf951938d, 0x620b, 0x42ef, 0x82, 0x79, 0xa8, 0x4b, 0x79, 0x61, 0x78, 0x98)
564#define ACPI_TABLE_GUID \ 567#define UGA_IO_PROTOCOL_GUID EFI_GUID(0x61a4d49e, 0x6f68, 0x4f1b, 0xb9, 0x22, 0xa8, 0x6e, 0xed, 0x0b, 0x07, 0xa2)
565 EFI_GUID(0xeb9d2d30, 0x2d88, 0x11d3, \ 568#define EFI_GLOBAL_VARIABLE_GUID EFI_GUID(0x8be4df61, 0x93ca, 0x11d2, 0xaa, 0x0d, 0x00, 0xe0, 0x98, 0x03, 0x2b, 0x8c)
566 0x9a, 0x16, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d) 569#define UV_SYSTEM_TABLE_GUID EFI_GUID(0x3b13a7d4, 0x633e, 0x11dd, 0x93, 0xec, 0xda, 0x25, 0x56, 0xd8, 0x95, 0x93)
567 570#define LINUX_EFI_CRASH_GUID EFI_GUID(0xcfc8fc79, 0xbe2e, 0x4ddc, 0x97, 0xf0, 0x9f, 0x98, 0xbf, 0xe2, 0x98, 0xa0)
568#define ACPI_20_TABLE_GUID \ 571#define LOADED_IMAGE_PROTOCOL_GUID EFI_GUID(0x5b1b31a1, 0x9562, 0x11d2, 0x8e, 0x3f, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b)
569 EFI_GUID(0x8868e871, 0xe4f1, 0x11d3, \ 572#define EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID EFI_GUID(0x9042a9de, 0x23dc, 0x4a38, 0x96, 0xfb, 0x7a, 0xde, 0xd0, 0x80, 0x51, 0x6a)
570 0xbc, 0x22, 0x00, 0x80, 0xc7, 0x3c, 0x88, 0x81) 573#define EFI_UGA_PROTOCOL_GUID EFI_GUID(0x982c298b, 0xf4fa, 0x41cb, 0xb8, 0x38, 0x77, 0xaa, 0x68, 0x8f, 0xb8, 0x39)
571 574#define EFI_PCI_IO_PROTOCOL_GUID EFI_GUID(0x4cf5b200, 0x68b8, 0x4ca5, 0x9e, 0xec, 0xb2, 0x3e, 0x3f, 0x50, 0x02, 0x9a)
572#define SMBIOS_TABLE_GUID \ 575#define EFI_FILE_INFO_ID EFI_GUID(0x09576e92, 0x6d3f, 0x11d2, 0x8e, 0x39, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b)
573 EFI_GUID(0xeb9d2d31, 0x2d88, 0x11d3, \ 576#define EFI_SYSTEM_RESOURCE_TABLE_GUID EFI_GUID(0xb122a263, 0x3661, 0x4f68, 0x99, 0x29, 0x78, 0xf8, 0xb0, 0xd6, 0x21, 0x80)
574 0x9a, 0x16, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d) 577#define EFI_FILE_SYSTEM_GUID EFI_GUID(0x964e5b22, 0x6459, 0x11d2, 0x8e, 0x39, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b)
575 578#define DEVICE_TREE_GUID EFI_GUID(0xb1b621d5, 0xf19c, 0x41a5, 0x83, 0x0b, 0xd9, 0x15, 0x2c, 0x69, 0xaa, 0xe0)
576#define SMBIOS3_TABLE_GUID \ 579#define EFI_PROPERTIES_TABLE_GUID EFI_GUID(0x880aaca3, 0x4adc, 0x4a04, 0x90, 0x79, 0xb7, 0x47, 0x34, 0x08, 0x25, 0xe5)
577 EFI_GUID(0xf2fd1544, 0x9794, 0x4a2c, \ 580#define EFI_RNG_PROTOCOL_GUID EFI_GUID(0x3152bca5, 0xeade, 0x433d, 0x86, 0x2e, 0xc0, 0x1c, 0xdc, 0x29, 0x1f, 0x44)
578 0x99, 0x2e, 0xe5, 0xbb, 0xcf, 0x20, 0xe3, 0x94) 581#define EFI_MEMORY_ATTRIBUTES_TABLE_GUID EFI_GUID(0xdcfa911d, 0x26eb, 0x469f, 0xa2, 0x20, 0x38, 0xb7, 0xdc, 0x46, 0x12, 0x20)
579 582#define EFI_CONSOLE_OUT_DEVICE_GUID EFI_GUID(0xd3b36f2c, 0xd551, 0x11d4, 0x9a, 0x46, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d)
580#define SAL_SYSTEM_TABLE_GUID \
581 EFI_GUID(0xeb9d2d32, 0x2d88, 0x11d3, \
582 0x9a, 0x16, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d)
583
584#define HCDP_TABLE_GUID \
585 EFI_GUID(0xf951938d, 0x620b, 0x42ef, \
586 0x82, 0x79, 0xa8, 0x4b, 0x79, 0x61, 0x78, 0x98)
587
588#define UGA_IO_PROTOCOL_GUID \
589 EFI_GUID(0x61a4d49e, 0x6f68, 0x4f1b, \
590 0xb9, 0x22, 0xa8, 0x6e, 0xed, 0x0b, 0x07, 0xa2)
591
592#define EFI_GLOBAL_VARIABLE_GUID \
593 EFI_GUID(0x8be4df61, 0x93ca, 0x11d2, \
594 0xaa, 0x0d, 0x00, 0xe0, 0x98, 0x03, 0x2b, 0x8c)
595
596#define UV_SYSTEM_TABLE_GUID \
597 EFI_GUID(0x3b13a7d4, 0x633e, 0x11dd, \
598 0x93, 0xec, 0xda, 0x25, 0x56, 0xd8, 0x95, 0x93)
599
600#define LINUX_EFI_CRASH_GUID \
601 EFI_GUID(0xcfc8fc79, 0xbe2e, 0x4ddc, \
602 0x97, 0xf0, 0x9f, 0x98, 0xbf, 0xe2, 0x98, 0xa0)
603
604#define LOADED_IMAGE_PROTOCOL_GUID \
605 EFI_GUID(0x5b1b31a1, 0x9562, 0x11d2, \
606 0x8e, 0x3f, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b)
607
608#define EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID \
609 EFI_GUID(0x9042a9de, 0x23dc, 0x4a38, \
610 0x96, 0xfb, 0x7a, 0xde, 0xd0, 0x80, 0x51, 0x6a)
611
612#define EFI_UGA_PROTOCOL_GUID \
613 EFI_GUID(0x982c298b, 0xf4fa, 0x41cb, \
614 0xb8, 0x38, 0x77, 0xaa, 0x68, 0x8f, 0xb8, 0x39)
615
616#define EFI_PCI_IO_PROTOCOL_GUID \
617 EFI_GUID(0x4cf5b200, 0x68b8, 0x4ca5, \
618 0x9e, 0xec, 0xb2, 0x3e, 0x3f, 0x50, 0x02, 0x9a)
619
620#define EFI_FILE_INFO_ID \
621 EFI_GUID(0x9576e92, 0x6d3f, 0x11d2, \
622 0x8e, 0x39, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b)
623
624#define EFI_SYSTEM_RESOURCE_TABLE_GUID \
625 EFI_GUID(0xb122a263, 0x3661, 0x4f68, \
626 0x99, 0x29, 0x78, 0xf8, 0xb0, 0xd6, 0x21, 0x80)
627
628#define EFI_FILE_SYSTEM_GUID \
629 EFI_GUID(0x964e5b22, 0x6459, 0x11d2, \
630 0x8e, 0x39, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b)
631
632#define DEVICE_TREE_GUID \
633 EFI_GUID(0xb1b621d5, 0xf19c, 0x41a5, \
634 0x83, 0x0b, 0xd9, 0x15, 0x2c, 0x69, 0xaa, 0xe0)
635
636#define EFI_PROPERTIES_TABLE_GUID \
637 EFI_GUID(0x880aaca3, 0x4adc, 0x4a04, \
638 0x90, 0x79, 0xb7, 0x47, 0x34, 0x08, 0x25, 0xe5)
639
640#define EFI_RNG_PROTOCOL_GUID \
641 EFI_GUID(0x3152bca5, 0xeade, 0x433d, \
642 0x86, 0x2e, 0xc0, 0x1c, 0xdc, 0x29, 0x1f, 0x44)
643
644#define EFI_MEMORY_ATTRIBUTES_TABLE_GUID \
645 EFI_GUID(0xdcfa911d, 0x26eb, 0x469f, \
646 0xa2, 0x20, 0x38, 0xb7, 0xdc, 0x46, 0x12, 0x20)
647
648#define EFI_CONSOLE_OUT_DEVICE_GUID \
649 EFI_GUID(0xd3b36f2c, 0xd551, 0x11d4, \
650 0x9a, 0x46, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d)
651 583
652/* 584/*
653 * This GUID is used to pass to the kernel proper the struct screen_info 585 * This GUID is used to pass to the kernel proper the struct screen_info
654 * structure that was populated by the stub based on the GOP protocol instance 586 * structure that was populated by the stub based on the GOP protocol instance
655 * associated with ConOut 587 * associated with ConOut
656 */ 588 */
657#define LINUX_EFI_ARM_SCREEN_INFO_TABLE_GUID \ 589#define LINUX_EFI_ARM_SCREEN_INFO_TABLE_GUID EFI_GUID(0xe03fc20a, 0x85dc, 0x406e, 0xb9, 0x0e, 0x4a, 0xb5, 0x02, 0x37, 0x1d, 0x95)
658 EFI_GUID(0xe03fc20a, 0x85dc, 0x406e, \ 590#define LINUX_EFI_LOADER_ENTRY_GUID EFI_GUID(0x4a67b082, 0x0a4c, 0x41cf, 0xb6, 0xc7, 0x44, 0x0b, 0x29, 0xbb, 0x8c, 0x4f)
659 0xb9, 0xe, 0x4a, 0xb5, 0x02, 0x37, 0x1d, 0x95)
660
661#define LINUX_EFI_LOADER_ENTRY_GUID \
662 EFI_GUID(0x4a67b082, 0x0a4c, 0x41cf, \
663 0xb6, 0xc7, 0x44, 0x0b, 0x29, 0xbb, 0x8c, 0x4f)
664 591
665typedef struct { 592typedef struct {
666 efi_guid_t guid; 593 efi_guid_t guid;