aboutsummaryrefslogtreecommitdiffstats
path: root/src/block.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-02-21 23:20:10 -0500
committerKevin O'Connor <kevin@koconnor.net>2010-02-21 23:20:10 -0500
commit575ffc8fd1127e3cb8fbb7f587cadfa85eb9b73d (patch)
tree718b84dbf1550276c1d3eb50e487dd160a64d6d9 /src/block.c
parent0360e8e69bb3a773ceb9d2b091b62c027bca862b (diff)
downloadseabios-575ffc8fd1127e3cb8fbb7f587cadfa85eb9b73d.tar.gz
Cleanup - build drive description in temp memory during init.
Remove describe_drive() mechanism for calling printf with a drive description. Instead, have each drive build a description in temporary ram during drive initialization. Also, remove fields now unneeded from 'struct disk_s' - model and cntl_info.
Diffstat (limited to 'src/block.c')
-rw-r--r--src/block.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/block.c b/src/block.c
index 3b43f97a..05301207 100644
--- a/src/block.c
+++ b/src/block.c
@@ -262,34 +262,6 @@ map_floppy_drive(struct drive_s *drive_g)
}
}
-// Show a one line description (without trailing newline) of a drive.
-void
-describe_drive(struct drive_s *drive_g)
-{
- ASSERT32FLAT();
- u8 type = GET_GLOBAL(drive_g->type);
- switch (type) {
- case DTYPE_FLOPPY:
- describe_floppy(drive_g);
- break;
- case DTYPE_ATA:
- describe_ata(drive_g);
- break;
- case DTYPE_ATAPI:
- describe_atapi(drive_g);
- break;
- case DTYPE_RAMDISK:
- describe_ramdisk(drive_g);
- break;
- case DTYPE_USB:
- describe_usb(drive_g);
- break;
- default:
- printf("Unknown");
- break;
- }
-}
-
/****************************************************************
* 16bit calling interface