aboutsummaryrefslogtreecommitdiffstats
path: root/src/block.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/block.c
parent937ca6f78cd8611fa1cccb9c42b9184594b05de7 (diff)
downloadseabios-7c4807671f3c8aa56583395f93763aeb7aebf323.tar.gz
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/block.c')
-rw-r--r--src/block.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/block.c b/src/block.c
index b4530fc8..515ac9d9 100644
--- a/src/block.c
+++ b/src/block.c
@@ -9,7 +9,6 @@
#include "block.h" // process_op
#include "hw/ata.h" // process_ata_op
#include "hw/ahci.h" // process_ahci_op
-#include "hw/blockcmd.h" // cdb_*
#include "hw/esp-scsi.h" // esp_scsi_process_op
#include "hw/lsi-scsi.h" // lsi_scsi_process_op
#include "hw/megasas.h" // megasas_process_op
@@ -487,6 +486,22 @@ fill_edd(struct segoff_s edd, struct drive_s *drive_gf)
* Disk driver dispatch
****************************************************************/
+void
+block_setup(void)
+{
+ floppy_setup();
+ ata_setup();
+ ahci_setup();
+ sdcard_setup();
+ ramdisk_setup();
+ virtio_blk_setup();
+ virtio_scsi_setup();
+ lsi_scsi_setup();
+ esp_scsi_setup();
+ megasas_setup();
+ pvscsi_setup();
+}
+
// Fallback handler for command requests not implemented by drivers
int
default_process_op(struct disk_op_s *op)