aboutsummaryrefslogtreecommitdiffstats
path: root/src/biosvar.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-03-04 22:50:53 -0500
committerKevin O'Connor <kevin@koconnor.net>2008-03-04 22:50:53 -0500
commit180a959053bd1b955bef8db4dab443f341ee1ce7 (patch)
treea0f0ed1ac9f46bd2cdef22282b10413583fd858b /src/biosvar.h
parent7d0f08a738b3fedbf88e5e31e8682414640a3d57 (diff)
downloadseabios-180a959053bd1b955bef8db4dab443f341ee1ce7.tar.gz
Get CDROM emulation working.
Fix bug causing ata_cmd_packet to insl to wrong address. Add new cdrom_read helper. Join ata.hdidmap/cdidmap into one array variable. Rename CONFIG_ELTORITO_BOOT to CONFIG_CDROM_BOOT. Add cd emulation code.
Diffstat (limited to 'src/biosvar.h')
-rw-r--r--src/biosvar.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/biosvar.h b/src/biosvar.h
index eea6df69..55e9481b 100644
--- a/src/biosvar.h
+++ b/src/biosvar.h
@@ -185,11 +185,9 @@ struct ata_s {
// ATA devices info
struct ata_device_s devices[CONFIG_MAX_ATA_DEVICES];
//
- // map between (bios hd id - 0x80) and ata channels
- u8 hdcount, hdidmap[CONFIG_MAX_ATA_DEVICES];
-
- // map between (bios cd id - 0xE0) and ata channels
- u8 cdcount, cdidmap[CONFIG_MAX_ATA_DEVICES];
+ // map between bios hd/cd id and ata channels
+ u8 hdcount, cdcount;
+ u8 idmap[2][CONFIG_MAX_ATA_DEVICES];
// Buffer for DPTE table
struct dpte_s dpte;