aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2011-07-02 13:50:21 -0400
committerKevin O'Connor <kevin@koconnor.net>2011-07-02 13:50:21 -0400
commitc1de91b3110cb163526784439e315d24b8e5311a (patch)
tree85c3a7a5ecc764e3a75c8de1b38af5e97aefdff5 /src/util.h
parent76b5e7146bac15ad5357ca9e46bd8f6fd7ace3c2 (diff)
downloadseabios-hppa-c1de91b3110cb163526784439e315d24b8e5311a.zip
seabios-hppa-c1de91b3110cb163526784439e315d24b8e5311a.tar.gz
seabios-hppa-c1de91b3110cb163526784439e315d24b8e5311a.tar.bz2
Calculate vgahook responses during setup instead of in 16bit code.
Do vga type and parameter detection during setup and store the necessary info in global variables for the 16bit code. This simplifies the "vgahook" 16bit code.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util.h b/src/util.h
index 7034d43..eecedac 100644
--- a/src/util.h
+++ b/src/util.h
@@ -387,6 +387,7 @@ void wrmsr_smp(u32 index, u64 val);
void smp_probe(void);
// coreboot.c
+extern const char *CBvendor, *CBpart;
struct cbfs_file;
struct cbfs_file *cbfs_finddatafile(const char *fname);
struct cbfs_file *cbfs_findprefix(const char *prefix, struct cbfs_file *last);
@@ -405,9 +406,9 @@ void copy_acpi_rsdp(void *pos);
void copy_smbios(void *pos);
// vgahooks.c
-extern int VGAbdf;
void handle_155f(struct bregs *regs);
-void vgahook_setup(const char *vendor, const char *part);
+struct pci_device;
+void vgahook_setup(struct pci_device *pci);
// optionroms.c
void call_bcv(u16 seg, u16 ip);