aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2013-09-14 22:27:14 -0400
committerKevin O'Connor <kevin@koconnor.net>2013-09-18 20:48:34 -0400
commit8fb3a5edf3ca4e55d51c6555b8f7810fdfc4451c (patch)
tree2812df16122c525d1602b5a7244596afd456edc0 /src
parentc5e06fb2452476e45dbae2d9f72bec7d2e874266 (diff)
downloadseabios-hppa-8fb3a5edf3ca4e55d51c6555b8f7810fdfc4451c.zip
seabios-hppa-8fb3a5edf3ca4e55d51c6555b8f7810fdfc4451c.tar.gz
seabios-hppa-8fb3a5edf3ca4e55d51c6555b8f7810fdfc4451c.tar.bz2
Move optionroms.h to std/optionrom.h and util.h.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r--src/fw/csm.c2
-rw-r--r--src/malloc.c2
-rw-r--r--src/optionroms.c2
-rw-r--r--src/std/optionrom.h (renamed from src/optionroms.h)3
-rw-r--r--src/util.h4
5 files changed, 7 insertions, 6 deletions
diff --git a/src/fw/csm.c b/src/fw/csm.c
index 7a926b1..b98dc96 100644
--- a/src/fw/csm.c
+++ b/src/fw/csm.c
@@ -14,11 +14,11 @@
#include "hw/pic.h"
#include "malloc.h" // csm_malloc_preinit
#include "memmap.h"
-#include "optionroms.h"
#include "output.h" // dprintf
#include "post.h"
#include "smbios.h"
#include "stacks.h" // wait_threads
+#include "std/optionrom.h" // struct rom_header
#include "util.h" // copy_smbios
struct rsdp_descriptor csm_rsdp VARFSEG __aligned(16);
diff --git a/src/malloc.c b/src/malloc.c
index 65a0bb1..281f41e 100644
--- a/src/malloc.c
+++ b/src/malloc.c
@@ -9,9 +9,9 @@
#include "list.h" // hlist_node
#include "malloc.h" // _malloc
#include "memmap.h" // struct e820entry
-#include "optionroms.h" // OPTION_ROM_ALIGN
#include "output.h" // dprintf
#include "stacks.h" // wait_preempt
+#include "std/optionrom.h" // OPTION_ROM_ALIGN
#include "string.h" // memset
// Information on a reserved area.
diff --git a/src/optionroms.c b/src/optionroms.c
index b38e44e..8f9bb31 100644
--- a/src/optionroms.c
+++ b/src/optionroms.c
@@ -13,10 +13,10 @@
#include "hw/pci_ids.h" // PCI_CLASS_DISPLAY_VGA
#include "hw/pci_regs.h" // PCI_ROM_ADDRESS
#include "malloc.h" // rom_confirm
-#include "optionroms.h" // struct rom_header
#include "output.h" // dprintf
#include "romfile.h" // romfile_loadint
#include "stacks.h" // farcall16big
+#include "std/optionrom.h" // struct rom_header
#include "string.h" // memset
#include "util.h" // get_pnp_offset
diff --git a/src/optionroms.h b/src/std/optionrom.h
index c5ea4ba..94ca4ae 100644
--- a/src/optionroms.h
+++ b/src/std/optionrom.h
@@ -56,7 +56,4 @@ struct pnp_data {
#define OPTION_ROM_INITVECTOR offsetof(struct rom_header, initVector[0])
#define PCIROM_CODETYPE_X86 0
-void
-callrom(struct rom_header *rom, u16 bdf);
-
#endif
diff --git a/src/util.h b/src/util.h
index 2c65494..06483ba 100644
--- a/src/util.h
+++ b/src/util.h
@@ -47,6 +47,10 @@ int irqtimer_check(u32 end);
void apm_shutdown(void);
void handle_1553(struct bregs *regs);
+// optionroms.c
+struct rom_header;
+void callrom(struct rom_header *rom, u16 bdf);
+
// pcibios.c
void handle_1ab1(struct bregs *regs);
void bios32_init(void);