Moved CD-ROM read data buffer declaration and definitions to SCSI source files and headers, but still applying to IDE when needed. SCSI Read commands now return the correct sectors on callback. DMA bug fixes.
23 lines
554 B
C
23 lines
554 B
C
/* Copyright holders: Sarah Walker, SA1988
|
|
see COPYING for more details
|
|
*/
|
|
void dma_init();
|
|
void dma16_init();
|
|
void dma_reset();
|
|
|
|
#define DMA_NODATA -1
|
|
#define DMA_OVER 0x10000
|
|
#define DMA_VERIFY 0x20000
|
|
|
|
void readdma0();
|
|
int readdma1();
|
|
uint8_t readdma2();
|
|
int readdma3();
|
|
|
|
void writedma2(uint8_t temp);
|
|
|
|
int dma_channel_read(int channel);
|
|
int dma_channel_write(int channel, uint16_t val);
|
|
|
|
void DMAPageRead(uint32_t PhysAddress, void *DataRead, uint32_t TotalSize);
|
|
void DMAPageWrite(uint32_t PhysAddress, const void *DataWrite, uint32_t TotalSize); |