aboutsummaryrefslogtreecommitdiff
path: root/src/post.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-02-03 11:00:17 -0500
committerKevin O'Connor <kevin@koconnor.net>2016-02-04 12:53:05 -0500
commit7c4807671f3c8aa56583395f93763aeb7aebf323 (patch)
tree7d066118244a39f52efb68059588f6ea3d381aaf /src/post.c
parent937ca6f78cd8611fa1cccb9c42b9184594b05de7 (diff)
downloadseabios-hppa-7c4807671f3c8aa56583395f93763aeb7aebf323.zip
seabios-hppa-7c4807671f3c8aa56583395f93763aeb7aebf323.tar.gz
seabios-hppa-7c4807671f3c8aa56583395f93763aeb7aebf323.tar.bz2
block: Move drive setup to new function block_setup()
Move the list of drive setup calls from post.c to a new function in block.c. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/post.c')
-rw-r--r--src/post.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/post.c b/src/post.c
index e5fa4be..2c4f12b 100644
--- a/src/post.c
+++ b/src/post.c
@@ -6,24 +6,17 @@
// This file may be distributed under the terms of the GNU LGPLv3 license.
#include "biosvar.h" // SET_BDA
+#include "block.h" // block_setup
#include "bregs.h" // struct bregs
#include "config.h" // CONFIG_*
#include "e820map.h" // e820_add
#include "fw/paravirt.h" // qemu_cfg_preinit
#include "fw/xen.h" // xen_preinit
-#include "hw/ahci.h" // ahci_setup
-#include "hw/ata.h" // ata_setup
-#include "hw/esp-scsi.h" // esp_scsi_setup
-#include "hw/lsi-scsi.h" // lsi_scsi_setup
-#include "hw/megasas.h" // megasas_setup
-#include "hw/pvscsi.h" // pvscsi_setup
#include "hw/pic.h" // pic_setup
#include "hw/ps2port.h" // ps2port_setup
#include "hw/rtc.h" // rtc_write
#include "hw/serialio.h" // serial_debug_preinit
#include "hw/usb.h" // usb_setup
-#include "hw/virtio-blk.h" // virtio_blk_setup
-#include "hw/virtio-scsi.h" // virtio_scsi_setup
#include "malloc.h" // malloc_init
#include "memmap.h" // SYMBOL
#include "output.h" // dprintf
@@ -134,21 +127,10 @@ device_hardware_setup(void)
{
usb_setup();
ps2port_setup();
+ block_setup();
lpt_setup();
serial_setup();
-
- floppy_setup();
- ata_setup();
- ahci_setup();
- sdcard_setup();
cbfs_payload_setup();
- ramdisk_setup();
- virtio_blk_setup();
- virtio_scsi_setup();
- lsi_scsi_setup();
- esp_scsi_setup();
- megasas_setup();
- pvscsi_setup();
}
static void