diff options
author | Peter Jones <pjones@redhat.com> | 2016-06-25 03:20:25 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-06-27 07:06:55 -0400 |
commit | 54fd11fee59e7d05287bc4eebccc8ec9742f2745 (patch) | |
tree | 12389643e6f26ea4847902580d18a176d5c1c9f5 /include/linux/efi.h | |
parent | 5356c32742bd51c8c57065d2389a2c4bc036adcd (diff) |
efi: Document #define FOO_PROTOCOL_GUID layout
Add a comment documenting why EFI GUIDs are laid out like they are.
Ideally I'd like to change all the ", " to "," too, but right now the
format is such that checkpatch won't complain with new ones, and staring
at checkpatch didn't get me anywhere towards making that work.
Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Joe Perches <joe@perches.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-efi@vger.kernel.org
Link: http://lkml.kernel.org/r/1466839230-12781-3-git-send-email-matt@codeblueprint.co.uk
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/efi.h')
-rw-r--r-- | include/linux/efi.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/include/linux/efi.h b/include/linux/efi.h index f196dd0b0f2f..03009695760d 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h | |||
@@ -536,7 +536,22 @@ typedef efi_status_t efi_query_variable_store_t(u32 attributes, | |||
536 | void efi_native_runtime_setup(void); | 536 | void efi_native_runtime_setup(void); |
537 | 537 | ||
538 | /* | 538 | /* |
539 | * EFI Configuration Table and GUID definitions | 539 | * EFI Configuration Table and GUID definitions |
540 | * | ||
541 | * These should be formatted roughly like the ones in the UEFI SPEC has | ||
542 | * them. It makes them easier to grep for, and they look the same when | ||
543 | * you're staring at them. Here's the guide: | ||
544 | * | ||
545 | * GUID: 12345678-1234-1234-1234-123456789012 | ||
546 | * Spec: | ||
547 | * #define EFI_SOME_PROTOCOL_GUID \ | ||
548 | * {0x12345678,0x1234,0x1234,\ | ||
549 | * {0x12,0x34,0x12,0x34,0x56,0x78,0x90,0x12}} | ||
550 | * Here: | ||
551 | * #define SOME_PROTOCOL_GUID \ | ||
552 | * EFI_GUID(0x12345678, 0x1234, 0x1234, \ | ||
553 | * 0x12, 0x34, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12) | ||
554 | * ^ tab ^tab ^ space | ||
540 | */ | 555 | */ |
541 | #define NULL_GUID \ | 556 | #define NULL_GUID \ |
542 | EFI_GUID(0x00000000, 0x0000, 0x0000, \ | 557 | EFI_GUID(0x00000000, 0x0000, 0x0000, \ |