dingusppc/devices/common
joevt 637844269f atapicdrom: Implement sector areas for Read CD.
The disk cache is unchanged. data_ptr continues to be only used for the user data sector area for each block. The other sector areas (synch, header, etc.) are filled in while reading.

has_data and get_data exist as a way to bypass data_ptr for parts of the transfer outside the user data sector area of each block. The default behaviour is defined in atabasedevice and is overridden by atapicdrom for the Read CD command. atapicdrom has a flag doing_sector_areas to control the behavior of the get_data method. When the flag is true, the sector_areas, current_block, and current_block_byte are used for selecting the correct data from one of the sector areas. The Read CD command initializes those variables. xfer_cnt remains the total number of bytes to be transferred and is now not necessarily the same as the number of disk image blocks read into the disk cache.

lba_to_msf is used to fill in the header. The values was not verified using a real CD.

Mac OS X just cares about the Mode in the header. For now, only the synch and header and user data areas are filled in. The other areas read as all zeros.
2023-09-25 12:22:17 +02:00
..
adb adbkeyboard: fix compiler warning. 2023-08-07 12:51:09 +02:00
ata atapicdrom: Implement sector areas for Read CD. 2023-09-25 12:22:17 +02:00
i2c Generic I2C PROM emulation. 2022-08-14 23:01:55 +02:00
pci Fix Gazelle crash by adding PCI slot properties. 2023-05-30 19:48:40 +02:00
scsi mesh: fix Arbitrate command for OS X. 2023-09-24 22:36:44 +02:00
dbdma.cpp dbdma: support INT_SELECT & WAIT_SELECT registers. 2023-09-20 00:45:39 +02:00
dbdma.h dbdma: support INT_SELECT & WAIT_SELECT registers. 2023-09-20 00:45:39 +02:00
dmacore.h Rework DBDMA logic for bidirectional channels. 2022-11-17 18:03:18 +01:00
hwcomponent.h hwcomponent: fix size of the component type enum. 2023-07-23 16:32:00 +02:00
hwinterrupt.h hwinterrupt: add IDE interrupts. 2023-06-18 23:22:51 +02:00
machineid.h Fix Gossamer system register. 2023-01-11 23:49:20 +01:00
mmiodevice.h Fix read/write argument names 2022-08-22 17:16:22 -07:00
nvram.cpp nvram: use smart pointers, fix initialization. 2023-04-17 00:03:36 +02:00
nvram.h nvram: use smart pointers, fix initialization. 2023-04-17 00:03:36 +02:00
ofnvram.cpp Fix New World NVRAM limits calculations. 2023-08-04 20:11:59 -07:00
ofnvram.h ofnvram: support CHRP style OF config partition. 2023-02-25 18:14:42 +01:00
viacuda.cpp Started work on keyboard input 2023-08-01 22:43:11 -07:00
viacuda.h viacuda: implement basic autopolling. 2023-08-02 00:07:17 +02:00