Home | History | Annotate | Download | only in dev

Lines Matching refs:DMA

61 #include <machine/dma.h>
79 #define REAL_DMA /* Use DMA if sensible */
81 #define REAL_DMA_POLL 1 /* 1: Poll for end of DMA-transfer */
83 #define REAL_DMA_POLL 0 /* 1: Poll for end of DMA-transfer */
96 #undef NO_TTRAM_DMA /* Do not use DMA to TT-ram. This */
117 * Define all the things we need of the DMA-controller
157 * Defines for TT-DMA control register
161 #define SD_ENABLE 0x02 /* 1 = Enable DMA */
166 * Defines for Hades-DMA control register
265 /* SCSI-DMA interrupts */
283 * LWP: DMA transfers to TT-ram causes data to be garbled
289 printf(": DMA to TT-RAM is disabled!");
375 * We wait here until the DMA has finished. This can be
378 * - End of DMA flag is set
381 * - DMA-controller:
417 * Convert physical DMA address to a virtual address.
447 * The DMA-controller seems to access 8 bytes beyond
453 "SCSI-DMA buserror - accessing 0x%x\n", byte_p);
462 * the DMA-controller before the phase mismatch occurs. Therefore,
465 * leftover is odd. This assumes that DMA transfers are _even_! This
474 * Check if there are some 'restbytes' left in the DMA-controller.
504 * Block SCSI interrupts while emulating DMA. They come
529 * Update the DMA pointer/count fields
575 * Clear DMA-mode
625 * Clear DMA-mode
630 DMA 'registers' to reflect that all bytes
704 DMA->dma_mode = DMA_SCSI + rnum;
705 return DMA->dma_data;
712 DMA->dma_mode = DMA_SCSI + rnum;
713 DMA->dma_data = val;
744 * XXX: When DMA is running, we are only allowed to
745 * check the 5380 when DMA _might_ be finished.
751 /* LWP: 28-06, must be a DMA interrupt! should the
752 * ST-DMA unit be taken out of DMA mode?????
754 DMA->dma_mode = 0x90;
773 * Never allow DMA to happen on a Falcon when the transfer
775 * ST DMA-controller.
791 * DMA access is being claimed.
808 * No need to keep DMA locked by us as we are not currently
817 * We must (re)claim DMA access as there are jobs
831 DMA->dma_mode = 0x90 | dir;
832 DMA->dma_mode = 0x90 | (dir ^ DMA_WRBIT);
833 DMA->dma_mode = 0x90 | dir;
834 DMA->dma_data = nsects;
836 DMA->dma_mode = 0x10 | dir;
846 * 5380 into DMA-mode.
868 * the 5380 while doing DMA-transfers. So we have to rely on
869 * the interrupt line to determine if DMA-has finished. the
870 * DMA-controller itself will never fire an interrupt. This means
871 * that 'broken-up' DMA transfers are not (yet) possible on the
897 DMA->dma_mode = 0x90;
898 if (!(st_dmastat = DMA->dma_stat) & 0x01) {
900 * Misc. DMA-error according to Atari...
908 * Because we NEVER start DMA on the Falcon when the data size
911 * the DMA has already prefetched the next couple of bytes.
915 * of the DMA controller, but this didn't seem to work???
1113 * the address space. Thus being DMA-able for all controllers.
1144 * DMA controller interrupt