svn commit: r247215 - projects/uefi/sys/amd64/include
Benno Rice
benno at FreeBSD.org
Sun Feb 24 11:22:30 UTC 2013
Author: benno
Date: Sun Feb 24 11:22:29 2013
New Revision: 247215
URL: http://svnweb.freebsd.org/changeset/base/247215
Log:
Add EFI handover structures. This was missed in previous commits.
Spotted by: John Klug <John.Klug at UNISYS.com>
Added:
projects/uefi/sys/amd64/include/efi.h
Added: projects/uefi/sys/amd64/include/efi.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/uefi/sys/amd64/include/efi.h Sun Feb 24 11:22:29 2013 (r247215)
@@ -0,0 +1,35 @@
+#ifndef _MACHINE_EFI_H_
+#define _MACHINE_EFI_H_
+
+struct efi_fb {
+ int fb_present;
+ uint64_t fb_addr;
+ uint64_t fb_size;
+ int fb_height;
+ int fb_width;
+ int fb_stride;
+ uint32_t fb_mask_red;
+ uint32_t fb_mask_green;
+ uint32_t fb_mask_blue;
+ uint32_t fb_mask_reserved;
+};
+
+struct efi_header {
+ size_t memory_size;
+ size_t descriptor_size;
+ uint64_t descriptor_version;
+ struct efi_fb fb;
+};
+
+struct efi_descriptor {
+ uint32_t type;
+ vm_offset_t physical_start;
+ vm_offset_t virtual_start;
+ uint64_t pages;
+ uint64_t attribute;
+};
+
+#define efi_next_descriptor(ptr, size) \
+ ((struct efi_descriptor *)(((uint8_t *) ptr) + size))
+
+#endif /* _MACHINE_EFI_H_ */
More information about the svn-src-projects
mailing list