efi/libstub: Extend native protocol definitions with mixed_mode aliases
authorArd Biesheuvel <ardb@kernel.org>
Tue, 24 Dec 2019 15:10:08 +0000 (16:10 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 25 Dec 2019 09:49:17 +0000 (10:49 +0100)
commit1786e83011644e18732ed006413339d5323766e9
tree0bc80c9fa22cfcc3ea6c76fef7c72eeab62f4682
parent2732ea0d5c0a67ec86bfbde2bd68b6152e23ec4e
efi/libstub: Extend native protocol definitions with mixed_mode aliases

In preparation of moving to a native vs. mixed mode split rather than a
32 vs. 64 bit split when it comes to invoking EFI firmware services,
update all the native protocol definitions and redefine them as unions
containing an anonymous struct for the native view and a struct called
'mixed_mode' describing the 32-bit view of the protocol when called from
64-bit code.

While at it, flesh out some PCI I/O member definitions that we will be
needing shortly.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Cc: Arvind Sankar <nivedita@alum.mit.edu>
Cc: Borislav Petkov <bp@alien8.de>
Cc: James Morse <james.morse@arm.com>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-efi@vger.kernel.org
Link: https://lkml.kernel.org/r/20191224151025.32482-9-ardb@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/boot/compressed/eboot.h
drivers/firmware/efi/libstub/arm-stub.c
drivers/firmware/efi/libstub/random.c
include/linux/efi.h