efi: Add esrt support
authorPeter Jones <pjones@redhat.com>
Tue, 28 Apr 2015 22:44:31 +0000 (18:44 -0400)
committerMatt Fleming <matt.fleming@intel.com>
Thu, 30 Apr 2015 21:15:04 +0000 (22:15 +0100)
commit0bb549052d33f8992544764a6cf1299d06ba7e2f
treee2176a5c7744390a4263b9ff35a6432f8ccc05fb
parentf7ef7e3e506023f826c1ee60b7e59b985316e180
efi: Add esrt support

Add sysfs files for the EFI System Resource Table (ESRT) under
/sys/firmware/efi/esrt and for each EFI System Resource Entry under
entries/ as a subdir.

The EFI System Resource Table (ESRT) provides a read-only catalog of
system components for which the system accepts firmware upgrades via
UEFI's "Capsule Update" feature.  This module allows userland utilities
to evaluate what firmware updates can be applied to this system, and
potentially arrange for those updates to occur.

The ESRT is described as part of the UEFI specification, in version 2.5
which should be available from http://uefi.org/specifications in early
2015.  If you're a member of the UEFI Forum, information about its
addition to the standard is available as UEFI Mantis 1090.

For some hardware platforms, additional restrictions may be found at
http://msdn.microsoft.com/en-us/library/windows/hardware/jj128256.aspx ,
and additional documentation may be found at
http://download.microsoft.com/download/5/F/5/5F5D16CD-2530-4289-8019-94C6A20BED3C/windows-uefi-firmware-update-platform.docx
.

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Documentation/ABI/testing/sysfs-firmware-efi-esrt [new file with mode: 0644]
arch/x86/platform/efi/efi.c
drivers/firmware/efi/Makefile
drivers/firmware/efi/efi.c
drivers/firmware/efi/esrt.c [new file with mode: 0644]
include/linux/efi.h