aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2013-09-02 21:25:21 -0400
committerKevin O'Connor <kevin@koconnor.net>2013-09-02 21:25:21 -0400
commitccee6e8491a2dbc5f8f2085ee9567bfb4146693b (patch)
tree3deca9e3b7904b7139c365490fcc6e497a9ed24a /src
parent5d369d8d9eb5326db111cc2e518c74739dbe3f84 (diff)
downloadseabios-hppa-ccee6e8491a2dbc5f8f2085ee9567bfb4146693b.zip
seabios-hppa-ccee6e8491a2dbc5f8f2085ee9567bfb4146693b.tar.gz
seabios-hppa-ccee6e8491a2dbc5f8f2085ee9567bfb4146693b.tar.bz2
Move code cenetered around firmware initialization to src/fw/
Move many C files from the src/ directory to the new src/fw/ directory. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r--src/apm.c4
-rw-r--r--src/boot.c4
-rw-r--r--src/bootsplash.c2
-rw-r--r--src/fw/LegacyBios.h (renamed from src/LegacyBios.h)0
-rw-r--r--src/fw/acpi-dsdt-cpu-hotplug.dsl (renamed from src/acpi-dsdt-cpu-hotplug.dsl)0
-rw-r--r--src/fw/acpi-dsdt-dbug.dsl (renamed from src/acpi-dsdt-dbug.dsl)0
-rw-r--r--src/fw/acpi-dsdt-hpet.dsl (renamed from src/acpi-dsdt-hpet.dsl)0
-rw-r--r--src/fw/acpi-dsdt-isa.dsl (renamed from src/acpi-dsdt-isa.dsl)0
-rw-r--r--src/fw/acpi-dsdt-pci-crs.dsl (renamed from src/acpi-dsdt-pci-crs.dsl)0
-rw-r--r--src/fw/acpi-dsdt.dsl (renamed from src/acpi-dsdt.dsl)0
-rw-r--r--src/fw/acpi.c (renamed from src/acpi.c)8
-rw-r--r--src/fw/acpi.h (renamed from src/acpi.h)0
-rw-r--r--src/fw/biostables.c (renamed from src/biostables.c)0
-rw-r--r--src/fw/coreboot.c (renamed from src/coreboot.c)0
-rw-r--r--src/fw/csm.c (renamed from src/csm.c)0
-rw-r--r--src/fw/csm.h (renamed from src/csm.h)0
-rw-r--r--src/fw/dev-q35.h (renamed from src/dev-q35.h)0
-rw-r--r--src/fw/lzmadecode.c (renamed from src/lzmadecode.c)0
-rw-r--r--src/fw/lzmadecode.h (renamed from src/lzmadecode.h)0
-rw-r--r--src/fw/mptable.c (renamed from src/mptable.c)0
-rw-r--r--src/fw/mptable.h (renamed from src/mptable.h)0
-rw-r--r--src/fw/mtrr.c (renamed from src/mtrr.c)0
-rw-r--r--src/fw/paravirt.c (renamed from src/paravirt.c)0
-rw-r--r--src/fw/paravirt.h (renamed from src/paravirt.h)0
-rw-r--r--src/fw/pciinit.c (renamed from src/pciinit.c)0
-rw-r--r--src/fw/pirtable.c (renamed from src/pirtable.c)0
-rw-r--r--src/fw/q35-acpi-dsdt.dsl (renamed from src/q35-acpi-dsdt.dsl)0
-rw-r--r--src/fw/shadow.c (renamed from src/shadow.c)0
-rw-r--r--src/fw/smbios.c (renamed from src/smbios.c)0
-rw-r--r--src/fw/smbios.h (renamed from src/smbios.h)0
-rw-r--r--src/fw/smm.c (renamed from src/smm.c)0
-rw-r--r--src/fw/smp.c (renamed from src/smp.c)0
-rw-r--r--src/fw/ssdt-misc.dsl (renamed from src/ssdt-misc.dsl)0
-rw-r--r--src/fw/ssdt-pcihp.dsl (renamed from src/ssdt-pcihp.dsl)0
-rw-r--r--src/fw/ssdt-proc.dsl (renamed from src/ssdt-proc.dsl)0
-rw-r--r--src/fw/xen.c (renamed from src/xen.c)0
-rw-r--r--src/fw/xen.h (renamed from src/xen.h)0
-rw-r--r--src/hw/esp-scsi.c2
-rw-r--r--src/hw/lsi-scsi.c2
-rw-r--r--src/output.c2
-rw-r--r--src/post.c4
-rw-r--r--src/resume.c2
-rw-r--r--src/util.h14
43 files changed, 22 insertions, 22 deletions
diff --git a/src/apm.c b/src/apm.c
index de6bd99..211424c 100644
--- a/src/apm.c
+++ b/src/apm.c
@@ -11,8 +11,8 @@
#include "util.h" // dprintf
#include "config.h" // CONFIG_*
#include "biosvar.h" // GET_GLOBAL
-#include "paravirt.h" // runningOnQEMU
-#include "acpi.h" // acpi_pm_ctl
+#include "fw/paravirt.h" // runningOnQEMU
+#include "fw/acpi.h" // acpi_pm_ctl
static void
out_str(const char *str_cs)
diff --git a/src/boot.c b/src/boot.c
index 4d8f161..bbe9155 100644
--- a/src/boot.c
+++ b/src/boot.c
@@ -11,10 +11,10 @@
#include "bregs.h" // struct bregs
#include "boot.h" // func defs
#include "hw/cmos.h" // inb_cmos
-#include "paravirt.h" // qemu_cfg_show_boot_menu
+#include "fw/paravirt.h" // qemu_cfg_show_boot_menu
#include "hw/pci.h" // pci_bdf_to_*
#include "hw/usb.h" // struct usbdevice_s
-#include "csm.h" // csm_bootprio_*
+#include "fw/csm.h" // csm_bootprio_*
#include "list.h" // hlist_node
diff --git a/src/bootsplash.c b/src/bootsplash.c
index 84fca7f..bd91102 100644
--- a/src/bootsplash.c
+++ b/src/bootsplash.c
@@ -12,7 +12,7 @@
#include "jpeg.h" // splash
#include "vbe.h" // struct vbe_info
#include "bmp.h" // bmp_alloc
-#include "smbios.h" // display_uuid
+#include "fw/smbios.h" // display_uuid
/****************************************************************
diff --git a/src/LegacyBios.h b/src/fw/LegacyBios.h
index cf0c3c5..cf0c3c5 100644
--- a/src/LegacyBios.h
+++ b/src/fw/LegacyBios.h
diff --git a/src/acpi-dsdt-cpu-hotplug.dsl b/src/fw/acpi-dsdt-cpu-hotplug.dsl
index 0f3e83b..0f3e83b 100644
--- a/src/acpi-dsdt-cpu-hotplug.dsl
+++ b/src/fw/acpi-dsdt-cpu-hotplug.dsl
diff --git a/src/acpi-dsdt-dbug.dsl b/src/fw/acpi-dsdt-dbug.dsl
index 276321f..276321f 100644
--- a/src/acpi-dsdt-dbug.dsl
+++ b/src/fw/acpi-dsdt-dbug.dsl
diff --git a/src/acpi-dsdt-hpet.dsl b/src/fw/acpi-dsdt-hpet.dsl
index f33e527..f33e527 100644
--- a/src/acpi-dsdt-hpet.dsl
+++ b/src/fw/acpi-dsdt-hpet.dsl
diff --git a/src/acpi-dsdt-isa.dsl b/src/fw/acpi-dsdt-isa.dsl
index 23761db..23761db 100644
--- a/src/acpi-dsdt-isa.dsl
+++ b/src/fw/acpi-dsdt-isa.dsl
diff --git a/src/acpi-dsdt-pci-crs.dsl b/src/fw/acpi-dsdt-pci-crs.dsl
index d421891..d421891 100644
--- a/src/acpi-dsdt-pci-crs.dsl
+++ b/src/fw/acpi-dsdt-pci-crs.dsl
diff --git a/src/acpi-dsdt.dsl b/src/fw/acpi-dsdt.dsl
index 158f6b4..158f6b4 100644
--- a/src/acpi-dsdt.dsl
+++ b/src/fw/acpi-dsdt.dsl
diff --git a/src/acpi.c b/src/fw/acpi.c
index 774ff95..9fd1c05 100644
--- a/src/acpi.c
+++ b/src/fw/acpi.c
@@ -16,7 +16,7 @@
#include "paravirt.h" // RamSize
#include "dev-q35.h"
-#include "acpi-dsdt.hex"
+#include "src/fw/acpi-dsdt.hex"
u32 acpi_pm1a_cnt VARFSEG;
@@ -234,7 +234,7 @@ encodeLen(u8 *ssdt_ptr, int length, int bytes)
return ssdt_ptr + bytes;
}
-#include "ssdt-proc.hex"
+#include "src/fw/ssdt-proc.hex"
/* 0x5B 0x83 ProcessorOp PkgLength NameString ProcID */
#define PROC_OFFSET_CPUHEX (*ssdt_proc_name - *ssdt_proc_start + 2)
@@ -255,8 +255,8 @@ encodeLen(u8 *ssdt_ptr, int length, int bytes)
#define SSDT_SIGNATURE 0x54445353 // SSDT
#define SSDT_HEADER_LENGTH 36
-#include "ssdt-misc.hex"
-#include "ssdt-pcihp.hex"
+#include "src/fw/ssdt-misc.hex"
+#include "src/fw/ssdt-pcihp.hex"
#define PCI_RMV_BASE 0xae0c
diff --git a/src/acpi.h b/src/fw/acpi.h
index f0d24d4..f0d24d4 100644
--- a/src/acpi.h
+++ b/src/fw/acpi.h
diff --git a/src/biostables.c b/src/fw/biostables.c
index beb0bed..beb0bed 100644
--- a/src/biostables.c
+++ b/src/fw/biostables.c
diff --git a/src/coreboot.c b/src/fw/coreboot.c
index 126649a..126649a 100644
--- a/src/coreboot.c
+++ b/src/fw/coreboot.c
diff --git a/src/csm.c b/src/fw/csm.c
index 0093bee..0093bee 100644
--- a/src/csm.c
+++ b/src/fw/csm.c
diff --git a/src/csm.h b/src/fw/csm.h
index 997e3f7..997e3f7 100644
--- a/src/csm.h
+++ b/src/fw/csm.h
diff --git a/src/dev-q35.h b/src/fw/dev-q35.h
index 6ae039f..6ae039f 100644
--- a/src/dev-q35.h
+++ b/src/fw/dev-q35.h
diff --git a/src/lzmadecode.c b/src/fw/lzmadecode.c
index 65819b5..65819b5 100644
--- a/src/lzmadecode.c
+++ b/src/fw/lzmadecode.c
diff --git a/src/lzmadecode.h b/src/fw/lzmadecode.h
index dedde0d..dedde0d 100644
--- a/src/lzmadecode.h
+++ b/src/fw/lzmadecode.h
diff --git a/src/mptable.c b/src/fw/mptable.c
index 2d12865..2d12865 100644
--- a/src/mptable.c
+++ b/src/fw/mptable.c
diff --git a/src/mptable.h b/src/fw/mptable.h
index 6252854..6252854 100644
--- a/src/mptable.h
+++ b/src/fw/mptable.h
diff --git a/src/mtrr.c b/src/fw/mtrr.c
index 001e275..001e275 100644
--- a/src/mtrr.c
+++ b/src/fw/mtrr.c
diff --git a/src/paravirt.c b/src/fw/paravirt.c
index b1dd8b0..b1dd8b0 100644
--- a/src/paravirt.c
+++ b/src/fw/paravirt.c
diff --git a/src/paravirt.h b/src/fw/paravirt.h
index fce5af9..fce5af9 100644
--- a/src/paravirt.h
+++ b/src/fw/paravirt.h
diff --git a/src/pciinit.c b/src/fw/pciinit.c
index ca32d43..ca32d43 100644
--- a/src/pciinit.c
+++ b/src/fw/pciinit.c
diff --git a/src/pirtable.c b/src/fw/pirtable.c
index 57fb48f..57fb48f 100644
--- a/src/pirtable.c
+++ b/src/fw/pirtable.c
diff --git a/src/q35-acpi-dsdt.dsl b/src/fw/q35-acpi-dsdt.dsl
index c031d83..c031d83 100644
--- a/src/q35-acpi-dsdt.dsl
+++ b/src/fw/q35-acpi-dsdt.dsl
diff --git a/src/shadow.c b/src/fw/shadow.c
index 67e943f..67e943f 100644
--- a/src/shadow.c
+++ b/src/fw/shadow.c
diff --git a/src/smbios.c b/src/fw/smbios.c
index fd63afb..fd63afb 100644
--- a/src/smbios.c
+++ b/src/fw/smbios.c
diff --git a/src/smbios.h b/src/fw/smbios.h
index a4c1444..a4c1444 100644
--- a/src/smbios.h
+++ b/src/fw/smbios.h
diff --git a/src/smm.c b/src/fw/smm.c
index 3f01207..3f01207 100644
--- a/src/smm.c
+++ b/src/fw/smm.c
diff --git a/src/smp.c b/src/fw/smp.c
index 6379d36..6379d36 100644
--- a/src/smp.c
+++ b/src/fw/smp.c
diff --git a/src/ssdt-misc.dsl b/src/fw/ssdt-misc.dsl
index acc850e..acc850e 100644
--- a/src/ssdt-misc.dsl
+++ b/src/fw/ssdt-misc.dsl
diff --git a/src/ssdt-pcihp.dsl b/src/fw/ssdt-pcihp.dsl
index 67e485f..67e485f 100644
--- a/src/ssdt-pcihp.dsl
+++ b/src/fw/ssdt-pcihp.dsl
diff --git a/src/ssdt-proc.dsl b/src/fw/ssdt-proc.dsl
index 407d61e..407d61e 100644
--- a/src/ssdt-proc.dsl
+++ b/src/fw/ssdt-proc.dsl
diff --git a/src/xen.c b/src/fw/xen.c
index 5dfee9e..5dfee9e 100644
--- a/src/xen.c
+++ b/src/fw/xen.c
diff --git a/src/xen.h b/src/fw/xen.h
index f00f840..f00f840 100644
--- a/src/xen.h
+++ b/src/fw/xen.h
diff --git a/src/hw/esp-scsi.c b/src/hw/esp-scsi.c
index fe70366..42a790f 100644
--- a/src/hw/esp-scsi.c
+++ b/src/hw/esp-scsi.c
@@ -18,7 +18,7 @@
#include "pci_regs.h" // PCI_VENDOR_ID
#include "boot.h" // bootprio_find_scsi_device
#include "blockcmd.h" // scsi_drive_setup
-#include "paravirt.h" // runningOnQEMU
+#include "fw/paravirt.h" // runningOnQEMU
#include "disk.h"
#define ESP_TCLO 0x00
diff --git a/src/hw/lsi-scsi.c b/src/hw/lsi-scsi.c
index 305610a..cebe967 100644
--- a/src/hw/lsi-scsi.c
+++ b/src/hw/lsi-scsi.c
@@ -18,7 +18,7 @@
#include "pci_regs.h" // PCI_VENDOR_ID
#include "boot.h" // bootprio_find_scsi_device
#include "blockcmd.h" // scsi_drive_setup
-#include "paravirt.h" // runningOnQEMU
+#include "fw/paravirt.h" // runningOnQEMU
#include "disk.h"
#define LSI_REG_DSTAT 0x0c
diff --git a/src/output.c b/src/output.c
index fb2dd76..8b63d9a 100644
--- a/src/output.c
+++ b/src/output.c
@@ -11,7 +11,7 @@
#include "bregs.h" // struct bregs
#include "config.h" // CONFIG_*
#include "biosvar.h" // GET_GLOBAL
-#include "paravirt.h" // PlatformRunningOn
+#include "fw/paravirt.h" // PlatformRunningOn
struct putcinfo {
void (*func)(struct putcinfo *info, char c);
diff --git a/src/post.c b/src/post.c
index 9e61580..7d6fbd2 100644
--- a/src/post.c
+++ b/src/post.c
@@ -17,8 +17,8 @@
#include "bregs.h" // struct bregs
#include "boot.h" // boot_init
#include "hw/usb.h" // usb_setup
-#include "paravirt.h" // qemu_cfg_preinit
-#include "xen.h" // xen_preinit
+#include "fw/paravirt.h" // qemu_cfg_preinit
+#include "fw/xen.h" // xen_preinit
#include "hw/ps2port.h" // ps2port_setup
#include "hw/virtio-blk.h" // virtio_blk_setup
#include "hw/virtio-scsi.h" // virtio_scsi_setup
diff --git a/src/resume.c b/src/resume.c
index 8ec6e37..5323d7e 100644
--- a/src/resume.c
+++ b/src/resume.c
@@ -9,7 +9,7 @@
#include "hw/pic.h" // pic_eoi2
#include "biosvar.h" // struct bios_data_area_s
#include "bregs.h" // struct bregs
-#include "acpi.h" // find_resume_vector
+#include "fw/acpi.h" // find_resume_vector
#include "hw/ps2port.h" // i8042_reboot
#include "hw/pci.h" // pci_reboot
#include "hw/cmos.h" // inb_cmos
diff --git a/src/util.h b/src/util.h
index 9b1b774..f2a1671 100644
--- a/src/util.h
+++ b/src/util.h
@@ -307,27 +307,27 @@ void handle_1553(struct bregs *regs);
void handle_1ab1(struct bregs *regs);
void bios32_init(void);
-// shadow.c
+// fw/shadow.c
void make_bios_writable(void);
void make_bios_readonly(void);
void qemu_prep_reset(void);
-// pciinit.c
+// fw/pciinit.c
extern const u8 pci_irqs[4];
void pci_setup(void);
-// smm.c
+// fw/smm.c
void smm_device_setup(void);
void smm_setup(void);
-// smp.c
+// fw/smp.c
extern u32 CountCPUs;
extern u32 MaxCountCPUs;
void wrmsr_smp(u32 index, u64 val);
void smp_setup(void);
int apic_id_is_present(u8 apic_id);
-// coreboot.c
+// fw/coreboot.c
extern const char *CBvendor, *CBpart;
struct cbfs_file;
void debug_cbmem(char c);
@@ -337,7 +337,7 @@ void cbfs_payload_setup(void);
void coreboot_preinit(void);
void coreboot_cbfs_init(void);
-// biostable.c
+// fw/biostable.c
void copy_smbios(void *pos);
void copy_table(void *pos);
@@ -431,7 +431,7 @@ static inline void free(void *data) {
pmm_free(data);
}
-// mtrr.c
+// fw/mtrr.c
void mtrr_setup(void);
// romfile.c