Implement cdrom disk emulation at high-level instead of in low-level ATA.
authorKevin O'Connor <kevin@koconnor.net>
Sun, 9 Aug 2009 21:25:19 +0000 (17:25 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 9 Aug 2009 21:25:19 +0000 (17:25 -0400)
commitb68ac71b00360dde1e8f8176985935dc43868858
tree454d3c3c9c0c2da715f2bb886abaacfcb647f405
parentdbbb7cf9a334beadd1d4e5a8dddcf2b1b81ad839
Implement cdrom disk emulation at high-level instead of in low-level ATA.

Add a 2K buffer to the ebda to allow for cdrom 512 byte vs 2048 byte
    sector emulation.
For unaliagned cdemu reads, just make multiple cdrom reads instead of
    using ata specific code for short reads.
Also, define cdemu virtual sectors using struct chs_s, and update
    legacy_lba() func to take pointer to a chs_s struct.
src/biosvar.h
src/cdrom.c
src/disk.c