H A D | au88x0_core.c | 1082 static void vortex_adbdma_setfirstbuffer(vortex_t * vortex, int adbdma) vortex_adbdma_setfirstbuffer() argument 1084 stream_t *dma = &vortex->dma_adb[adbdma]; vortex_adbdma_setfirstbuffer() 1086 hwwrite(vortex->mmio, VORTEX_ADBDMA_CTRL + (adbdma << 2), vortex_adbdma_setfirstbuffer() 1090 static void vortex_adbdma_setstartbuffer(vortex_t * vortex, int adbdma, int sb) vortex_adbdma_setstartbuffer() argument 1092 stream_t *dma = &vortex->dma_adb[adbdma]; vortex_adbdma_setstartbuffer() 1093 //hwwrite(vortex->mmio, VORTEX_ADBDMA_START + (adbdma << 2), sb << (((NR_ADB-1)-((adbdma&0xf)*2)))); vortex_adbdma_setstartbuffer() 1094 hwwrite(vortex->mmio, VORTEX_ADBDMA_START + (adbdma << 2), vortex_adbdma_setstartbuffer() 1095 sb << ((0xf - (adbdma & 0xf)) * 2)); vortex_adbdma_setstartbuffer() 1100 vortex_adbdma_setbuffers(vortex_t * vortex, int adbdma, vortex_adbdma_setbuffers() argument 1103 stream_t *dma = &vortex->dma_adb[adbdma]; vortex_adbdma_setbuffers() 1116 VORTEX_ADBDMA_BUFBASE + (adbdma << 4) + 0xc, vortex_adbdma_setbuffers() 1123 VORTEX_ADBDMA_BUFBASE + (adbdma << 4) + 0x8, vortex_adbdma_setbuffers() 1129 VORTEX_ADBDMA_BUFBASE + (adbdma << 4) + 0x4, vortex_adbdma_setbuffers() 1135 VORTEX_ADBDMA_BUFBASE + (adbdma << 4), vortex_adbdma_setbuffers() 1143 hwwrite(vortex->mmio, VORTEX_ADBDMA_BUFCFG0 + (adbdma << 3), dma->cfg0); vortex_adbdma_setbuffers() 1144 hwwrite(vortex->mmio, VORTEX_ADBDMA_BUFCFG1 + (adbdma << 3), dma->cfg1); vortex_adbdma_setbuffers() 1146 vortex_adbdma_setfirstbuffer(vortex, adbdma); vortex_adbdma_setbuffers() 1147 vortex_adbdma_setstartbuffer(vortex, adbdma, 0); vortex_adbdma_setbuffers() 1151 vortex_adbdma_setmode(vortex_t * vortex, int adbdma, int ie, int dir, vortex_adbdma_setmode() argument 1154 stream_t *dma = &vortex->dma_adb[adbdma]; vortex_adbdma_setmode() 1168 hwwrite(vortex->mmio, VORTEX_ADBDMA_CTRL + (adbdma << 2), vortex_adbdma_setmode() 1170 hwread(vortex->mmio, VORTEX_ADBDMA_CTRL + (adbdma << 2)); vortex_adbdma_setmode() 1173 static int vortex_adbdma_bufshift(vortex_t * vortex, int adbdma) vortex_adbdma_bufshift() argument 1175 stream_t *dma = &vortex->dma_adb[adbdma]; vortex_adbdma_bufshift() 1179 (hwread(vortex->mmio, VORTEX_ADBDMA_STAT + (adbdma << 2)) & vortex_adbdma_bufshift() 1202 //hwwrite(vortex->mmio, VORTEX_ADBDMA_BUFBASE+(((adbdma << 2)+pp) << 2), dma->table[p].addr); vortex_adbdma_bufshift() 1204 VORTEX_ADBDMA_BUFBASE + (((adbdma << 2) + pp) << 2), vortex_adbdma_bufshift() 1209 (((adbdma << 2) + pp) << 2)); vortex_adbdma_bufshift() 1219 adbdma, dma->period_virt, dma->period_real, delta); vortex_adbdma_bufshift() 1225 static void vortex_adbdma_resetup(vortex_t *vortex, int adbdma) { vortex_adbdma_resetup() argument 1226 stream_t *dma = &vortex->dma_adb[adbdma]; vortex_adbdma_resetup() 1246 VORTEX_ADBDMA_BUFBASE + (((adbdma << 2) + pp) << 2), vortex_adbdma_resetup() 1250 hwread(vortex->mmio, VORTEX_ADBDMA_BUFBASE + (((adbdma << 2)+pp) << 2)); vortex_adbdma_resetup() 1254 static inline int vortex_adbdma_getlinearpos(vortex_t * vortex, int adbdma) vortex_adbdma_getlinearpos() argument 1256 stream_t *dma = &vortex->dma_adb[adbdma]; vortex_adbdma_getlinearpos() 1259 temp = hwread(vortex->mmio, VORTEX_ADBDMA_STAT + (adbdma << 2)); vortex_adbdma_getlinearpos() 1272 static void vortex_adbdma_startfifo(vortex_t * vortex, int adbdma) vortex_adbdma_startfifo() argument 1275 stream_t *dma = &vortex->dma_adb[adbdma]; vortex_adbdma_startfifo() 1279 vortex_fifo_setadbvalid(vortex, adbdma, vortex_adbdma_startfifo() 1284 hwwrite(vortex->mmio, VORTEX_ADBDMA_CTRL + (adbdma << 2), vortex_adbdma_startfifo() 1286 vortex_fifo_setadbctrl(vortex, adbdma, dma->dma_unknown, vortex_adbdma_startfifo() 1291 vortex_fifo_setadbctrl(vortex, adbdma, dma->dma_unknown, vortex_adbdma_startfifo() 1299 static void vortex_adbdma_resumefifo(vortex_t * vortex, int adbdma) vortex_adbdma_resumefifo() argument 1301 stream_t *dma = &vortex->dma_adb[adbdma]; vortex_adbdma_resumefifo() 1306 hwwrite(vortex->mmio, VORTEX_ADBDMA_CTRL + (adbdma << 2), vortex_adbdma_resumefifo() 1308 vortex_fifo_setadbctrl(vortex, adbdma, dma->dma_unknown, vortex_adbdma_resumefifo() 1313 vortex_fifo_setadbctrl(vortex, adbdma, dma->dma_unknown, vortex_adbdma_resumefifo() 1321 static void vortex_adbdma_pausefifo(vortex_t * vortex, int adbdma) vortex_adbdma_pausefifo() argument 1323 stream_t *dma = &vortex->dma_adb[adbdma]; vortex_adbdma_pausefifo() 1328 vortex_fifo_setadbctrl(vortex, adbdma, dma->dma_unknown, vortex_adbdma_pausefifo() 1332 hwwrite(vortex->mmio, VORTEX_ADBDMA_CTRL + (adbdma << 2), vortex_adbdma_pausefifo() 1334 vortex_fifo_setadbctrl(vortex, adbdma, dma->dma_unknown, vortex_adbdma_pausefifo() 1341 static void vortex_adbdma_stopfifo(vortex_t * vortex, int adbdma) vortex_adbdma_stopfifo() argument 1343 stream_t *dma = &vortex->dma_adb[adbdma]; vortex_adbdma_stopfifo() 1347 vortex_fifo_setadbctrl(vortex, adbdma, dma->dma_unknown, vortex_adbdma_stopfifo() 1835 // Connect adbdma to src('s). 1838 unsigned char adbdma, unsigned char src) vortex_connection_adbdma_src() 1840 vortex_route(vortex, en, ch, ADB_DMA(adbdma), ADB_SRCIN(src)); vortex_connection_adbdma_src() 1875 unsigned char src, unsigned char adbdma) vortex_connection_src_adbdma() 1877 vortex_route(vortex, en, ch, ADB_SRCOUT(src), ADB_DMA(adbdma)); vortex_connection_src_adbdma() 1883 unsigned char src1, unsigned char adbdma) vortex_connection_src_src_adbdma() 1887 ADB_DMA(adbdma)); vortex_connection_src_src_adbdma() 1912 unsigned char adbdma, unsigned char src0, 1915 vortex_routes(vortex, en, channel, ADB_DMA(adbdma), 1923 unsigned char mix1, unsigned char adbdma) 1929 OFFSET_MIXOUT) & ADB_MASK) << ADB_SHIFT) | (adbdma & ADB_MASK); 1931 (((mix1 + OFFSET_MIXOUT) & ADB_MASK) << ADB_SHIFT) | ((adbdma + 2355 vortex_adb_setsrc(vortex_t * vortex, int adbdma, unsigned int rate, int dir) vortex_adb_setsrc() argument 2357 stream_t *stream = &(vortex->dma_adb[adbdma]); vortex_adb_setsrc() 1837 vortex_connection_adbdma_src(vortex_t * vortex, int en, unsigned char ch, unsigned char adbdma, unsigned char src) vortex_connection_adbdma_src() argument 1874 vortex_connection_src_adbdma(vortex_t * vortex, int en, unsigned char ch, unsigned char src, unsigned char adbdma) vortex_connection_src_adbdma() argument 1881 vortex_connection_src_src_adbdma(vortex_t * vortex, int en, unsigned char ch, unsigned char src0, unsigned char src1, unsigned char adbdma) vortex_connection_src_src_adbdma() argument
|