diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2013-09-14 22:45:05 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-09-18 20:48:34 -0400 |
commit | b37a5280447fb62ca204d1bb71d7307f86e75aa4 (patch) | |
tree | 0f2152248f3a020d286b68d10f982dcd3437ee9f /src | |
parent | f6d700d40fd7ad6f6baddea3a535a91d0ecd6257 (diff) | |
download | seabios-b37a5280447fb62ca204d1bb71d7307f86e75aa4.tar.gz |
Move fw/smbios.h to std/smbios.h.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/bootsplash.c | 1 | ||||
-rw-r--r-- | src/fw/biostables.c | 2 | ||||
-rw-r--r-- | src/fw/coreboot.c | 1 | ||||
-rw-r--r-- | src/fw/csm.c | 1 | ||||
-rw-r--r-- | src/fw/paravirt.c | 1 | ||||
-rw-r--r-- | src/fw/smbios.c | 2 | ||||
-rw-r--r-- | src/std/smbios.h (renamed from src/fw/smbios.h) | 6 | ||||
-rw-r--r-- | src/util.h | 5 |
8 files changed, 8 insertions, 11 deletions
diff --git a/src/bootsplash.c b/src/bootsplash.c index 3c08f5d6..aac7ebe4 100644 --- a/src/bootsplash.c +++ b/src/bootsplash.c @@ -9,7 +9,6 @@ #include "bregs.h" // struct bregs #include "config.h" // CONFIG_* #include "farptr.h" // FLATPTR_TO_SEG -#include "fw/smbios.h" // display_uuid #include "jpeg.h" // jpeg_alloc #include "malloc.h" // free #include "output.h" // dprintf diff --git a/src/fw/biostables.c b/src/fw/biostables.c index a51e8eeb..5200e65f 100644 --- a/src/fw/biostables.c +++ b/src/fw/biostables.c @@ -9,8 +9,8 @@ #include "malloc.h" // malloc_fseg #include "mptable.h" // MPTABLE_SIGNATURE #include "output.h" // dprintf -#include "smbios.h" // struct smbios_entry_point #include "std/pirtable.h" // struct pir_header +#include "std/smbios.h" // struct smbios_entry_point #include "string.h" // memcpy #include "util.h" // copy_table diff --git a/src/fw/coreboot.c b/src/fw/coreboot.c index c82dd4e8..5daed866 100644 --- a/src/fw/coreboot.c +++ b/src/fw/coreboot.c @@ -16,7 +16,6 @@ #include "output.h" // dprintf #include "paravirt.h" // PlatformRunningOn #include "romfile.h" // romfile_findprefix -#include "smbios.h" // smbios_init #include "stacks.h" // yield #include "string.h" // memset #include "util.h" // coreboot_preinit diff --git a/src/fw/csm.c b/src/fw/csm.c index 7829c1ef..eca97a77 100644 --- a/src/fw/csm.c +++ b/src/fw/csm.c @@ -15,7 +15,6 @@ #include "memmap.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 diff --git a/src/fw/paravirt.c b/src/fw/paravirt.c index b76c1dbf..a49c80a7 100644 --- a/src/fw/paravirt.c +++ b/src/fw/paravirt.c @@ -20,7 +20,6 @@ #include "output.h" // dprintf #include "paravirt.h" // qemu_cfg_preinit #include "romfile.h" // romfile_loadint -#include "smbios.h" // smbios_setup #include "string.h" // memset #include "util.h" // pci_setup #include "x86.h" // cpuid diff --git a/src/fw/smbios.c b/src/fw/smbios.c index a8969dae..affb9be4 100644 --- a/src/fw/smbios.c +++ b/src/fw/smbios.c @@ -10,7 +10,7 @@ #include "output.h" // dprintf #include "paravirt.h" // RamSize #include "romfile.h" // romfile_findprefix -#include "smbios.h" // struct smbios_entry_point +#include "std/smbios.h" // struct smbios_entry_point #include "string.h" // memset #include "util.h" // MaxCountCPUs #include "x86.h" // cpuid diff --git a/src/fw/smbios.h b/src/std/smbios.h index a4c14441..05137167 100644 --- a/src/fw/smbios.h +++ b/src/std/smbios.h @@ -1,8 +1,7 @@ #ifndef __SMBIOS_H #define __SMBIOS_H -// smbios.c -void smbios_setup(void); +#include "types.h" // u32 /* SMBIOS entry point -- must be written to a 16-bit aligned address between 0xf0000 and 0xfffff. @@ -24,8 +23,6 @@ struct smbios_entry_point { u8 smbios_bcd_revision; } PACKED; -extern struct smbios_entry_point *SMBiosAddr; - /* This goes at the beginning of every SMBIOS structure. */ struct smbios_structure_header { u8 type; @@ -165,5 +162,4 @@ struct smbios_type_127 { struct smbios_structure_header header; } PACKED; -void display_uuid(void); #endif // smbios.h @@ -66,6 +66,11 @@ void make_bios_writable(void); void make_bios_readonly(void); void qemu_prep_reset(void); +// fw/smbios.c +extern struct smbios_entry_point *SMBiosAddr; +void smbios_setup(void); +void display_uuid(void); + // fw/pciinit.c extern const u8 pci_irqs[4]; void pci_setup(void); |