path: root/efi/main.c
diff options
authorMatt Fleming <matt.fleming@intel.com>2012-11-14 19:32:23 +0000
committerMatt Fleming <matt.fleming@intel.com>2012-11-15 12:26:42 +0000
commit4b0851493dce7cb5a6ada6e525da0bda6f5048dd (patch)
treeed512ff09b7554ef73b20d3b9c1070be6fb6a45d /efi/main.c
parentbd7ce1bbf3393be32ee63a5139fffd1aae11c7fd (diff)
sys/vesa: Modularise common vesa code
There's lots of the vesa infrastructure that can be shared for both BIOS and EFI, so share the things that are common and split out the things that are not into firmware-specific functions and use the 'firmware' structure to access them. This commit is part of a series of changes that removes all EFI-specific code from everywhere except efi/, which means we can delete inclusion of any gnu-efi header files and remove gnu-efi paths from CFLAGS. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'efi/main.c')
1 files changed, 2 insertions, 1 deletions
diff --git a/efi/main.c b/efi/main.c
index 371879c0..99dc2087 100644
--- a/efi/main.c
+++ b/efi/main.c
@@ -1044,7 +1044,7 @@ bail:
extern struct disk *efi_disk_init(EFI_HANDLE);
extern void serialcfg(uint16_t *, uint16_t *, uint16_t *);
+extern struct vesa_ops efi_vesa_ops;
struct firmware efi_fw = {
.init = efi_init,
@@ -1056,6 +1056,7 @@ struct firmware efi_fw = {
.ipappend_strings = efi_ipappend_strings,
.adv_ops = &efi_adv_ops,
.boot_linux = efi_boot_linux,
+ .vesa = &efi_vesa_ops,
static inline void syslinux_register_efi(void)