aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/efi.h
diff options
context:
space:
mode:
authorMatthew Garrett <mjg@redhat.com>2011-07-21 16:57:56 -0400
committerTony Luck <tony.luck@intel.com>2011-07-22 19:15:04 -0400
commit5ee9c198a4208d7760275d48e4c4f6c89dcd2ef0 (patch)
tree19f0c26f13df5302432afd1e870f357fa009b990 /include/linux/efi.h
parentdee28e72b619b48ec80a9e5509db458dbe66f71f (diff)
efi: Add support for using efivars as a pstore backend
EFI provides an area of nonvolatile storage managed by the firmware. We can use this as a pstore backend to maintain copies of oopses, aiding diagnosis. Signed-off-by: Matthew Garrett <mjg@redhat.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include/linux/efi.h')
-rw-r--r--include/linux/efi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/efi.h b/include/linux/efi.h
index e376270cd26e..c1f5107338c6 100644
--- a/include/linux/efi.h
+++ b/include/linux/efi.h
@@ -19,6 +19,7 @@
19#include <linux/rtc.h> 19#include <linux/rtc.h>
20#include <linux/ioport.h> 20#include <linux/ioport.h>
21#include <linux/pfn.h> 21#include <linux/pfn.h>
22#include <linux/pstore.h>
22 23
23#include <asm/page.h> 24#include <asm/page.h>
24#include <asm/system.h> 25#include <asm/system.h>
@@ -211,6 +212,9 @@ typedef efi_status_t efi_set_virtual_address_map_t (unsigned long memory_map_siz
211#define UV_SYSTEM_TABLE_GUID \ 212#define UV_SYSTEM_TABLE_GUID \
212 EFI_GUID( 0x3b13a7d4, 0x633e, 0x11dd, 0x93, 0xec, 0xda, 0x25, 0x56, 0xd8, 0x95, 0x93 ) 213 EFI_GUID( 0x3b13a7d4, 0x633e, 0x11dd, 0x93, 0xec, 0xda, 0x25, 0x56, 0xd8, 0x95, 0x93 )
213 214
215#define LINUX_EFI_CRASH_GUID \
216 EFI_GUID( 0xcfc8fc79, 0xbe2e, 0x4ddc, 0x97, 0xf0, 0x9f, 0x98, 0xbf, 0xe2, 0x98, 0xa0 )
217
214typedef struct { 218typedef struct {
215 efi_guid_t guid; 219 efi_guid_t guid;
216 unsigned long table; 220 unsigned long table;
@@ -426,6 +430,8 @@ struct efivars {
426 struct kset *kset; 430 struct kset *kset;
427 struct bin_attribute *new_var, *del_var; 431 struct bin_attribute *new_var, *del_var;
428 const struct efivar_operations *ops; 432 const struct efivar_operations *ops;
433 struct efivar_entry *walk_entry;
434 struct pstore_info efi_pstore_info;
429}; 435};
430 436
431int register_efivars(struct efivars *efivars, 437int register_efivars(struct efivars *efivars,