diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2013-09-02 21:25:21 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-09-02 21:25:21 -0400 |
commit | ccee6e8491a2dbc5f8f2085ee9567bfb4146693b (patch) | |
tree | 3deca9e3b7904b7139c365490fcc6e497a9ed24a /src | |
parent | 5d369d8d9eb5326db111cc2e518c74739dbe3f84 (diff) | |
download | seabios-ccee6e8491a2dbc5f8f2085ee9567bfb4146693b.tar.gz |
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.c | 4 | ||||
-rw-r--r-- | src/boot.c | 4 | ||||
-rw-r--r-- | src/bootsplash.c | 2 | ||||
-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.c | 2 | ||||
-rw-r--r-- | src/hw/lsi-scsi.c | 2 | ||||
-rw-r--r-- | src/output.c | 2 | ||||
-rw-r--r-- | src/post.c | 4 | ||||
-rw-r--r-- | src/resume.c | 2 | ||||
-rw-r--r-- | src/util.h | 14 |
43 files changed, 22 insertions, 22 deletions
@@ -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) @@ -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 84fca7f0..bd91102f 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 cf0c3c57..cf0c3c57 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 0f3e83b1..0f3e83b1 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 276321f6..276321f6 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 f33e5279..f33e5279 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 23761dbb..23761dbb 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 d4218914..d4218914 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 158f6b4d..158f6b4d 100644 --- a/src/acpi-dsdt.dsl +++ b/src/fw/acpi-dsdt.dsl diff --git a/src/acpi.c b/src/fw/acpi.c index 774ff956..9fd1c056 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 f0d24d43..f0d24d43 100644 --- a/src/acpi.h +++ b/src/fw/acpi.h diff --git a/src/biostables.c b/src/fw/biostables.c index beb0bed3..beb0bed3 100644 --- a/src/biostables.c +++ b/src/fw/biostables.c diff --git a/src/coreboot.c b/src/fw/coreboot.c index 126649a2..126649a2 100644 --- a/src/coreboot.c +++ b/src/fw/coreboot.c diff --git a/src/csm.c b/src/fw/csm.c index 0093bee5..0093bee5 100644 --- a/src/csm.c +++ b/src/fw/csm.c diff --git a/src/csm.h b/src/fw/csm.h index 997e3f79..997e3f79 100644 --- a/src/csm.h +++ b/src/fw/csm.h diff --git a/src/dev-q35.h b/src/fw/dev-q35.h index 6ae039f9..6ae039f9 100644 --- a/src/dev-q35.h +++ b/src/fw/dev-q35.h diff --git a/src/lzmadecode.c b/src/fw/lzmadecode.c index 65819b53..65819b53 100644 --- a/src/lzmadecode.c +++ b/src/fw/lzmadecode.c diff --git a/src/lzmadecode.h b/src/fw/lzmadecode.h index dedde0de..dedde0de 100644 --- a/src/lzmadecode.h +++ b/src/fw/lzmadecode.h diff --git a/src/mptable.c b/src/fw/mptable.c index 2d128653..2d128653 100644 --- a/src/mptable.c +++ b/src/fw/mptable.c diff --git a/src/mptable.h b/src/fw/mptable.h index 62528544..62528544 100644 --- a/src/mptable.h +++ b/src/fw/mptable.h diff --git a/src/mtrr.c b/src/fw/mtrr.c index 001e2755..001e2755 100644 --- a/src/mtrr.c +++ b/src/fw/mtrr.c diff --git a/src/paravirt.c b/src/fw/paravirt.c index b1dd8b0c..b1dd8b0c 100644 --- a/src/paravirt.c +++ b/src/fw/paravirt.c diff --git a/src/paravirt.h b/src/fw/paravirt.h index fce5af95..fce5af95 100644 --- a/src/paravirt.h +++ b/src/fw/paravirt.h diff --git a/src/pciinit.c b/src/fw/pciinit.c index ca32d431..ca32d431 100644 --- a/src/pciinit.c +++ b/src/fw/pciinit.c diff --git a/src/pirtable.c b/src/fw/pirtable.c index 57fb48f2..57fb48f2 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 c031d839..c031d839 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 67e943f2..67e943f2 100644 --- a/src/shadow.c +++ b/src/fw/shadow.c diff --git a/src/smbios.c b/src/fw/smbios.c index fd63afb5..fd63afb5 100644 --- a/src/smbios.c +++ b/src/fw/smbios.c diff --git a/src/smbios.h b/src/fw/smbios.h index a4c14441..a4c14441 100644 --- a/src/smbios.h +++ b/src/fw/smbios.h diff --git a/src/smm.c b/src/fw/smm.c index 3f01207e..3f01207e 100644 --- a/src/smm.c +++ b/src/fw/smm.c diff --git a/src/smp.c b/src/fw/smp.c index 6379d364..6379d364 100644 --- a/src/smp.c +++ b/src/fw/smp.c diff --git a/src/ssdt-misc.dsl b/src/fw/ssdt-misc.dsl index acc850e8..acc850e8 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 67e485fc..67e485fc 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 407d61ea..407d61ea 100644 --- a/src/ssdt-proc.dsl +++ b/src/fw/ssdt-proc.dsl diff --git a/src/xen.c b/src/fw/xen.c index 5dfee9e6..5dfee9e6 100644 --- a/src/xen.c +++ b/src/fw/xen.c diff --git a/src/xen.h b/src/fw/xen.h index f00f8407..f00f8407 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 fe703669..42a790f9 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 305610a5..cebe9674 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 fb2dd76c..8b63d9ab 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); @@ -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 8ec6e37b..5323d7ea 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 @@ -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 |