summaryrefslogtreecommitdiff
path: root/sys/src/boot/efi/efi.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-10-19 19:55:45 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2014-10-19 19:55:45 +0200
commitd7785060fb66c9c4fc19475668bd861fb6462941 (patch)
tree10d6634296660d04715eca5534716bc4eb6af89b /sys/src/boot/efi/efi.h
parentd6ea4969607d9d6b33ae5a40a947f8a2aa2c0845 (diff)
efi: use LocateHandle() and HandleProtocol() to check for multiple gop protocols to find a usable one
the gop returned by LocateProtocol() is not usable on thinkpad x230, so iterate over all handles to find a usable one.
Diffstat (limited to 'sys/src/boot/efi/efi.h')
-rw-r--r--sys/src/boot/efi/efi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/src/boot/efi/efi.h b/sys/src/boot/efi/efi.h
index 545635690..142385af3 100644
--- a/sys/src/boot/efi/efi.h
+++ b/sys/src/boot/efi/efi.h
@@ -10,6 +10,12 @@ typedef uintptr UINTN;
typedef void* EFI_HANDLE;
typedef UINT32 EFI_STATUS;
+enum {
+ AllHandles,
+ ByRegisterNotify,
+ ByProtocol,
+};
+
typedef struct {
UINT32 Data1;
UINT16 Data2;