aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/efi.h
diff options
context:
space:
mode:
authorDave Young <dyoung@redhat.com>2013-12-20 18:02:17 +0800
committerMatt Fleming <matt.fleming@intel.com>2013-12-21 15:29:36 +0000
commita0998eb15afeffbf52a2c2829318f67df9ac57b8 (patch)
tree5f19084e93f018407d8dfc3521d073250719e67f /include/linux/efi.h
parentx86/efi: Cleanup efi_enter_virtual_mode() function (diff)
downloadlinux-dev-a0998eb15afeffbf52a2c2829318f67df9ac57b8.tar.xz
linux-dev-a0998eb15afeffbf52a2c2829318f67df9ac57b8.zip
efi: Export more EFI table variables to sysfs
Export fw_vendor, runtime and config table physical addresses to /sys/firmware/efi/{fw_vendor,runtime,config_table} because kexec kernels need them. From EFI spec these 3 variables will be updated to virtual address after entering virtual mode. But kernel startup code will need the physical address. Signed-off-by: Dave Young <dyoung@redhat.com> Tested-by: Toshi Kani <toshi.kani@hp.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'include/linux/efi.h')
-rw-r--r--include/linux/efi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/efi.h b/include/linux/efi.h
index 6c0ca528300c..fb60b10b7bd9 100644
--- a/include/linux/efi.h
+++ b/include/linux/efi.h
@@ -556,6 +556,9 @@ extern struct efi {
unsigned long hcdp; /* HCDP table */
unsigned long uga; /* UGA table */
unsigned long uv_systab; /* UV system table */
+ unsigned long fw_vendor; /* fw_vendor */
+ unsigned long runtime; /* runtime table */
+ unsigned long config_table; /* config tables */
efi_get_time_t *get_time;
efi_set_time_t *set_time;
efi_get_wakeup_time_t *get_wakeup_time;