dingusppc/devices
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
..
common atapicdrom: Implement sector areas for Read CD. 2023-09-25 12:22:17 +02:00
ethernet bigmac: support more registers. 2023-09-22 00:09:17 +02:00
floppy Fix compiler warnings: unused variables. 2023-01-11 01:17:12 -08:00
ioctrl heathrow: implement native interrupt mode. 2023-09-25 12:22:17 +02:00
memctrl Grackle: implement some register reads to avoid warnings. 2023-02-15 02:36:40 +01:00
serial Fix compiler warnings: never executed. 2023-01-11 01:17:12 -08:00
sound soundserver: silence some logging messages. 2023-04-23 21:40:21 +02:00
storage atapicdrom: Implement sector areas for Read CD. 2023-09-25 12:22:17 +02:00
video pdmonboard: switch to new video controller API. 2023-08-01 17:41:02 +02:00
CMakeLists.txt Add BlockStorageDevice class. 2023-06-18 23:27:10 +02:00
deviceregistry.cpp deviceregistry: add device_registered method. 2022-08-19 18:53:05 +02:00
deviceregistry.h deviceregistry: add device_registered method. 2022-08-19 18:53:05 +02:00