Lines Matching refs:mmio

79 	hwwrite(vortex->mmio, VORTEX_MIXER_SR,  in vortex_mixer_en_sr()
80 hwread(vortex->mmio, VORTEX_MIXER_SR) | (0x1 << channel)); in vortex_mixer_en_sr()
84 hwwrite(vortex->mmio, VORTEX_MIXER_SR, in vortex_mixer_dis_sr()
85 hwread(vortex->mmio, VORTEX_MIXER_SR) & ~(0x1 << channel)); in vortex_mixer_dis_sr()
93 hwwrite(vortex->mmio, VORTEX_MIX_INVOL_A + ((mix << 5) + channel),
95 hwwrite(vortex->mmio, VORTEX_MIX_INVOL_B + ((mix << 5) + channel),
102 a = hwread(vortex->mmio, VORTEX_MIX_VOL_A + (mix << 2)) & 0xff;
114 a = hwread(vortex->mmio,
139 a = hwread(vortex->mmio,
143 hwwrite(vortex->mmio,
146 hwwrite(vortex->mmio,
163 temp = hwread(vortex->mmio, VORTEX_MIX_ENIN + addr);
172 hwwrite(vortex->mmio, VORTEX_MIX_VOL_A + (mix << 2), vol); in vortex_mix_setvolumebyte()
174 temp = hwread(vortex->mmio, VORTEX_MIX_VOL_B + (mix << 2)); in vortex_mix_setvolumebyte()
178 hwwrite(vortex->mmio, VORTEX_MIX_VOL_B + (mix << 2), vol); in vortex_mix_setvolumebyte()
187 hwwrite(vortex->mmio, in vortex_mix_setinputvolumebyte()
191 hwread(vortex->mmio, in vortex_mix_setinputvolumebyte()
196 hwwrite(vortex->mmio, in vortex_mix_setinputvolumebyte()
210 temp = hwread(vortex->mmio, VORTEX_MIX_ENIN + addr); in vortex_mix_setenablebit()
216 hwwrite(vortex->mmio, in vortex_mix_setenablebit()
219 hwwrite(vortex->mmio, VORTEX_MIX_SMP + (mixin << 2), 0x0); in vortex_mix_setenablebit()
220 hwwrite(vortex->mmio, VORTEX_MIX_SMP + 4 + (mixin << 2), 0x0); in vortex_mix_setenablebit()
222 hwwrite(vortex->mmio, VORTEX_MIX_ENIN + addr, temp); in vortex_mix_setenablebit()
263 temp = hwread(vortex->mmio, VORTEX_MIXER_SR); in vortex_mixer_addWTD()
265 hwwrite(vortex->mmio, VORTEX_MIXER_CHNBASE + (ch << 2), mix); in vortex_mixer_addWTD()
270 temp = hwread(vortex->mmio, prev); in vortex_mixer_addWTD()
273 temp = hwread(vortex->mmio, prev); in vortex_mixer_addWTD()
281 hwwrite(vortex->mmio, VORTEX_MIXER_RTBASE + ((temp & 0xf) << 2), mix); in vortex_mixer_addWTD()
282 hwwrite(vortex->mmio, prev, (temp & 0xf) | 0x10); in vortex_mixer_addWTD()
292 eax = hwread(vortex->mmio, VORTEX_MIXER_SR); in vortex_mixer_delWTD()
298 esp18 = hwread(vortex->mmio, ebp); in vortex_mixer_delWTD()
303 edx = hwread(vortex->mmio, ebx); in vortex_mixer_delWTD()
305 hwwrite(vortex->mmio, ebp, edx); in vortex_mixer_delWTD()
306 hwwrite(vortex->mmio, ebx, 0); in vortex_mixer_delWTD()
310 hwread(vortex->mmio, in vortex_mixer_delWTD()
323 hwread(vortex->mmio, in vortex_mixer_delWTD()
332 edx = hwread(vortex->mmio, ebx); in vortex_mixer_delWTD()
334 hwwrite(vortex->mmio, in vortex_mixer_delWTD()
336 hwwrite(vortex->mmio, ebx, 0); in vortex_mixer_delWTD()
341 hwwrite(vortex->mmio, in vortex_mixer_delWTD()
346 hwwrite(vortex->mmio, in vortex_mixer_delWTD()
351 hwwrite(vortex->mmio, in vortex_mixer_delWTD()
360 hwwrite(vortex->mmio, ebp, 0); in vortex_mixer_delWTD()
376 hwwrite(vortex->mmio, addr, 0); in vortex_mixer_init()
381 hwwrite(vortex->mmio, addr, 0); in vortex_mixer_init()
386 hwwrite(vortex->mmio, addr, 0); in vortex_mixer_init()
391 hwwrite(vortex->mmio, addr, 0x80); in vortex_mixer_init()
396 hwwrite(vortex->mmio, addr, 0x80); in vortex_mixer_init()
401 hwwrite(vortex->mmio, addr, 0x80); in vortex_mixer_init()
406 hwwrite(vortex->mmio, addr, 0x80); in vortex_mixer_init()
411 hwwrite(vortex->mmio, addr, 0x0); in vortex_mixer_init()
414 hwwrite(vortex->mmio, VORTEX_MIXER_SR, 0); in vortex_mixer_init()
433 hwwrite(vortex->mmio, VORTEX_SRCBLOCK_SR, in vortex_src_en_sr()
434 hwread(vortex->mmio, VORTEX_SRCBLOCK_SR) | (0x1 << channel)); in vortex_src_en_sr()
439 hwwrite(vortex->mmio, VORTEX_SRCBLOCK_SR, in vortex_src_dis_sr()
440 hwread(vortex->mmio, VORTEX_SRCBLOCK_SR) & ~(0x1 << channel)); in vortex_src_dis_sr()
448 hwwrite(vortex->mmio, in vortex_src_flushbuffers()
450 hwwrite(vortex->mmio, VORTEX_SRC_DATA + (src << 3), 0); in vortex_src_flushbuffers()
451 hwwrite(vortex->mmio, VORTEX_SRC_DATA + (src << 3) + 4, 0); in vortex_src_flushbuffers()
456 hwwrite(vortex->mmio, VORTEX_SRC_DRIFT0 + (src << 2), 0); in vortex_src_cleardrift()
457 hwwrite(vortex->mmio, VORTEX_SRC_DRIFT1 + (src << 2), 0); in vortex_src_cleardrift()
458 hwwrite(vortex->mmio, VORTEX_SRC_DRIFT2 + (src << 2), 1); in vortex_src_cleardrift()
466 temp = hwread(vortex->mmio, VORTEX_SRC_SOURCE); in vortex_src_set_throttlesource()
471 hwwrite(vortex->mmio, VORTEX_SRC_SOURCE, temp); in vortex_src_set_throttlesource()
480 hwwrite(vortex->mmio, VORTEX_SRC_CONVRATIO + (src << 2), ratio); in vortex_src_persist_convratio()
481 temp = hwread(vortex->mmio, VORTEX_SRC_CONVRATIO + (src << 2)); in vortex_src_persist_convratio()
496 hwwrite(vortex->mmio, VORTEX_SRC_DRIFT2 + (src << 2), 1);
497 hwwrite(vortex->mmio, VORTEX_SRC_DRIFT0 + (src << 2), 0);
498 temp = hwread(vortex->mmio, VORTEX_SRC_U0 + (src << 2));
500 hwwrite(vortex->mmio, VORTEX_SRC_U0 + (src << 2),
516 temp = hwread(vortex->mmio, VORTEX_SRC_U0 + (src << 2));
518 hwwrite(vortex->mmio, VORTEX_SRC_U0 + (src << 2),
530 hw_ratio = hwread(vortex->mmio, VORTEX_SRC_CONVRATIO + (src << 2));
533 hwwrite(vortex->mmio, VORTEX_SRC_CONVRATIO + (src << 2), desired_ratio);
616 hwwrite(card->mmio, VORTEX_SRC_U0 + (src << 2), in vortex_src_setupchannel()
620 hwwrite(card->mmio, VORTEX_SRC_U1 + (src << 2), b & 0xffff); in vortex_src_setupchannel()
622 hwwrite(card->mmio, VORTEX_SRC_U2 + (src << 2), in vortex_src_setupchannel()
632 hwwrite(vortex->mmio, VORTEX_SRC_SOURCESIZE, 0x1ff); in vortex_srcblock_init()
642 hwwrite(vortex->mmio, addr, 0); in vortex_srcblock_init()
649 hwwrite(vortex->mmio, addr, 0); in vortex_srcblock_init()
660 temp = hwread(vortex->mmio, VORTEX_SRCBLOCK_SR); in vortex_src_addWTD()
662 hwwrite(vortex->mmio, VORTEX_SRC_CHNBASE + (ch << 2), src); in vortex_src_addWTD()
667 temp = hwread(vortex->mmio, prev); in vortex_src_addWTD()
672 temp = hwread(vortex->mmio, prev); in vortex_src_addWTD()
680 hwwrite(vortex->mmio, VORTEX_SRC_RTBASE + ((temp & 0xf) << 2), src); in vortex_src_addWTD()
682 hwwrite(vortex->mmio, prev, (temp & 0xf) | 0x10); in vortex_src_addWTD()
692 eax = hwread(vortex->mmio, VORTEX_SRCBLOCK_SR); in vortex_src_delWTD()
698 esp18 = hwread(vortex->mmio, ebp); in vortex_src_delWTD()
703 edx = hwread(vortex->mmio, ebx); in vortex_src_delWTD()
705 hwwrite(vortex->mmio, ebp, edx); in vortex_src_delWTD()
706 hwwrite(vortex->mmio, ebx, 0); in vortex_src_delWTD()
710 hwread(vortex->mmio, in vortex_src_delWTD()
723 hwread(vortex->mmio, in vortex_src_delWTD()
732 edx = hwread(vortex->mmio, ebx); in vortex_src_delWTD()
734 hwwrite(vortex->mmio, in vortex_src_delWTD()
736 hwwrite(vortex->mmio, ebx, 0); in vortex_src_delWTD()
741 hwwrite(vortex->mmio, in vortex_src_delWTD()
746 hwwrite(vortex->mmio, in vortex_src_delWTD()
751 hwwrite(vortex->mmio, in vortex_src_delWTD()
759 hwwrite(vortex->mmio, ebp, 0); in vortex_src_delWTD()
770 hwwrite(vortex->mmio, in vortex_fifo_clearadbdata()
780 hwwrite(vortex->mmio, VORTEX_FIFO_ADBCTRL + (fifo << 2),
783 hwwrite(vortex->mmio, VORTEX_FIFO_ADBCTRL + (fifo << 2),
790 hwwrite(vortex->mmio, VORTEX_FIFO_ADBCTRL + (fifo << 2), in vortex_fifo_setadbvalid()
791 (hwread(vortex->mmio, VORTEX_FIFO_ADBCTRL + (fifo << 2)) & in vortex_fifo_setadbvalid()
808 temp = hwread(vortex->mmio, VORTEX_FIFO_ADBCTRL + (fifo << 2)); in vortex_fifo_setadbctrl()
862 hwwrite(vortex->mmio, VORTEX_FIFO_ADBCTRL + (fifo << 2), temp); in vortex_fifo_setadbctrl()
863 hwread(vortex->mmio, VORTEX_FIFO_ADBCTRL + (fifo << 2)); in vortex_fifo_setadbctrl()
872 hwwrite(vortex->mmio, in vortex_fifo_clearwtdata()
881 hwwrite(vortex->mmio, VORTEX_FIFO_WTCTRL + (fifo << 2), in vortex_fifo_wtinitialize()
884 hwwrite(vortex->mmio, VORTEX_FIFO_WTCTRL + (fifo << 2), in vortex_fifo_wtinitialize()
891 hwwrite(vortex->mmio, VORTEX_FIFO_WTCTRL + (fifo << 2), in vortex_fifo_setwtvalid()
892 (hwread(vortex->mmio, VORTEX_FIFO_WTCTRL + (fifo << 2)) & in vortex_fifo_setwtvalid()
904 temp = hwread(vortex->mmio, VORTEX_FIFO_WTCTRL + (fifo << 2)); in vortex_fifo_setwtctrl()
955 hwwrite(vortex->mmio, VORTEX_FIFO_WTCTRL + (fifo << 2), temp); in vortex_fifo_setwtctrl()
956 hwread(vortex->mmio, VORTEX_FIFO_WTCTRL + (fifo << 2)); in vortex_fifo_setwtctrl()
1032 hwwrite(vortex->mmio, addr, (FIFO_U0 | FIFO_U1)); in vortex_fifo_init()
1033 if (hwread(vortex->mmio, addr) != (FIFO_U0 | FIFO_U1)) in vortex_fifo_init()
1043 hwwrite(vortex->mmio, addr, FIFO_U0); in vortex_fifo_init()
1044 if (hwread(vortex->mmio, addr) != FIFO_U0) in vortex_fifo_init()
1047 addr, hwread(vortex->mmio, addr)); in vortex_fifo_init()
1054 hwwrite(vortex->mmio, 0xf8c0, 0xd03); //0x0843 0xd6b in vortex_fifo_init()
1057 hwwrite(vortex->mmio, 0x17000, 0x61); /* wt a */ in vortex_fifo_init()
1058 hwwrite(vortex->mmio, 0x17004, 0x61); /* wt b */ in vortex_fifo_init()
1060 hwwrite(vortex->mmio, 0x17008, 0x61); /* adb */ in vortex_fifo_init()
1074 hwwrite(vortex->mmio, VORTEX_ADBDMA_CTRL + (adbdma << 2), in vortex_adbdma_setfirstbuffer()
1082 hwwrite(vortex->mmio, VORTEX_ADBDMA_START + (adbdma << 2), in vortex_adbdma_setstartbuffer()
1103 hwwrite(vortex->mmio, in vortex_adbdma_setbuffers()
1111 hwwrite(vortex->mmio, in vortex_adbdma_setbuffers()
1118 hwwrite(vortex->mmio, in vortex_adbdma_setbuffers()
1125 hwwrite(vortex->mmio, in vortex_adbdma_setbuffers()
1134 hwwrite(vortex->mmio, VORTEX_ADBDMA_BUFCFG0 + (adbdma << 3), dma->cfg0); in vortex_adbdma_setbuffers()
1135 hwwrite(vortex->mmio, VORTEX_ADBDMA_BUFCFG1 + (adbdma << 3), dma->cfg1); in vortex_adbdma_setbuffers()
1159 hwwrite(vortex->mmio, VORTEX_ADBDMA_CTRL + (adbdma << 2), in vortex_adbdma_setmode()
1161 hwread(vortex->mmio, VORTEX_ADBDMA_CTRL + (adbdma << 2)); in vortex_adbdma_setmode()
1170 (hwread(vortex->mmio, VORTEX_ADBDMA_STAT + (adbdma << 2)) & in vortex_adbdma_bufshift()
1194 hwwrite(vortex->mmio, in vortex_adbdma_bufshift()
1199 hwread(vortex->mmio, VORTEX_ADBDMA_BUFBASE + in vortex_adbdma_bufshift()
1236 hwwrite(vortex->mmio, in vortex_adbdma_resetup()
1241 hwread(vortex->mmio, VORTEX_ADBDMA_BUFBASE + (((adbdma << 2)+pp) << 2)); in vortex_adbdma_resetup()
1250 temp = hwread(vortex->mmio, VORTEX_ADBDMA_STAT + (adbdma << 2)); in vortex_adbdma_getlinearpos()
1275 hwwrite(vortex->mmio, VORTEX_ADBDMA_CTRL + (adbdma << 2), in vortex_adbdma_startfifo()
1297 hwwrite(vortex->mmio, VORTEX_ADBDMA_CTRL + (adbdma << 2), in vortex_adbdma_resumefifo()
1323 hwwrite(vortex->mmio, VORTEX_ADBDMA_CTRL + (adbdma << 2), in vortex_adbdma_pausefifo()
1354 hwwrite(vortex->mmio, VORTEX_WTDMA_CTRL + (wtdma << 2), dma->dma_ctrl); in vortex_wtdma_setfirstbuffer()
1361 hwwrite(vortex->mmio, VORTEX_WTDMA_START + (wtdma << 2), in vortex_wtdma_setstartbuffer()
1382 hwwrite(vortex->mmio, VORTEX_WTDMA_BUFBASE + (wtdma << 4) + 0xc, in vortex_wtdma_setbuffers()
1389 hwwrite(vortex->mmio, VORTEX_WTDMA_BUFBASE + (wtdma << 4) + 0x8, in vortex_wtdma_setbuffers()
1395 hwwrite(vortex->mmio, VORTEX_WTDMA_BUFBASE + (wtdma << 4) + 0x4, in vortex_wtdma_setbuffers()
1401 hwwrite(vortex->mmio, VORTEX_WTDMA_BUFBASE + (wtdma << 4), in vortex_wtdma_setbuffers()
1405 hwwrite(vortex->mmio, VORTEX_WTDMA_BUFCFG0 + (wtdma << 3), dma->cfg0); in vortex_wtdma_setbuffers()
1406 hwwrite(vortex->mmio, VORTEX_WTDMA_BUFCFG1 + (wtdma << 3), dma->cfg1); in vortex_wtdma_setbuffers()
1432 hwwrite(vortex->mmio, VORTEX_WTDMA_CTRL + (wtdma << 2), dma->dma_ctrl); in vortex_wtdma_setmode()
1441 (hwread(vortex->mmio, VORTEX_WTDMA_STAT + (wtdma << 2)) in vortex_wtdma_bufshift()
1464 hwwrite(vortex->mmio, in vortex_wtdma_bufshift()
1470 hwread(vortex->mmio, VORTEX_WTDMA_BUFBASE + in vortex_wtdma_bufshift()
1491 temp = hwread(vortex->mmio, VORTEX_WTDMA_STAT + (wtdma << 2));
1498 return ((hwread(vortex->mmio, VORTEX_WTDMA_STAT + (wtdma << 2)) >>
1507 temp = hwread(vortex->mmio, VORTEX_WTDMA_STAT + (wtdma << 2)); in vortex_wtdma_getlinearpos()
1524 hwwrite(vortex->mmio, VORTEX_WTDMA_CTRL + (wtdma << 2), in vortex_wtdma_startfifo()
1546 hwwrite(vortex->mmio, VORTEX_WTDMA_CTRL + (wtdma << 2), in vortex_wtdma_resumefifo()
1572 hwwrite(vortex->mmio, VORTEX_WTDMA_CTRL + (wtdma << 2), in vortex_wtdma_pausefifo()
1604 hwwrite(vortex->mmio, VORTEX_ADB_SR, 0); in vortex_adb_init()
1606 hwwrite(vortex->mmio, VORTEX_ADB_RTBASE + (i << 2), in vortex_adb_init()
1607 hwread(vortex->mmio, in vortex_adb_init()
1610 hwwrite(vortex->mmio, VORTEX_ADB_CHNBASE + (i << 2), in vortex_adb_init()
1611 hwread(vortex->mmio, in vortex_adb_init()
1618 hwwrite(vortex->mmio, VORTEX_ADB_SR, in vortex_adb_en_sr()
1619 hwread(vortex->mmio, VORTEX_ADB_SR) | (0x1 << channel)); in vortex_adb_en_sr()
1624 hwwrite(vortex->mmio, VORTEX_ADB_SR, in vortex_adb_dis_sr()
1625 hwread(vortex->mmio, VORTEX_ADB_SR) & ~(0x1 << channel)); in vortex_adb_dis_sr()
1638 hwwrite(vortex->mmio, in vortex_adb_addroutes()
1642 hwwrite(vortex->mmio, in vortex_adb_addroutes()
1649 hwread(vortex->mmio, in vortex_adb_addroutes()
1653 hwwrite(vortex->mmio, VORTEX_ADB_CHNBASE + (channel << 2), in vortex_adb_addroutes()
1662 hwread(vortex->mmio, in vortex_adb_addroutes()
1672 hwwrite(vortex->mmio, VORTEX_ADB_RTBASE + (prev << 2), route[0]); in vortex_adb_addroutes()
1683 hwread(vortex->mmio, in vortex_adb_delroutes()
1687 hwread(vortex->mmio, in vortex_adb_delroutes()
1691 hwwrite(vortex->mmio, VORTEX_ADB_CHNBASE + (channel << 2), in vortex_adb_delroutes()
1698 hwread(vortex->mmio, in vortex_adb_delroutes()
1708 temp = hwread(vortex->mmio, VORTEX_ADB_RTBASE + (temp << 2)); in vortex_adb_delroutes()
1710 temp = hwread(vortex->mmio, VORTEX_ADB_RTBASE + (temp << 2)); in vortex_adb_delroutes()
1712 hwwrite(vortex->mmio, VORTEX_ADB_RTBASE + (prev << 2), temp); in vortex_adb_delroutes()
2371 hwwrite(vortex->mmio, VORTEX_IRQ_STAT, period); in vortex_settimer()
2377 hwwrite(card->mmio, VORTEX_IRQ_CTRL,
2378 hwread(card->mmio, VORTEX_IRQ_CTRL) | IRQ_TIMER | 0x60);
2383 hwwrite(card->mmio, VORTEX_IRQ_CTRL,
2384 hwread(card->mmio, VORTEX_IRQ_CTRL) & ~IRQ_TIMER);
2391 hwwrite(card->mmio, VORTEX_CTRL, in vortex_enable_int()
2392 hwread(card->mmio, VORTEX_CTRL) | CTRL_IRQ_ENABLE); in vortex_enable_int()
2393 hwwrite(card->mmio, VORTEX_IRQ_CTRL, in vortex_enable_int()
2394 (hwread(card->mmio, VORTEX_IRQ_CTRL) & 0xffffefc0) | 0x24); in vortex_enable_int()
2399 hwwrite(card->mmio, VORTEX_CTRL, in vortex_disable_int()
2400 hwread(card->mmio, VORTEX_CTRL) & ~CTRL_IRQ_ENABLE); in vortex_disable_int()
2410 if (!(hwread(vortex->mmio, VORTEX_STAT) & 0x1)) in vortex_interrupt()
2414 if (!(hwread(vortex->mmio, VORTEX_CTRL) & CTRL_IRQ_ENABLE)) in vortex_interrupt()
2417 source = hwread(vortex->mmio, VORTEX_IRQ_SOURCE); in vortex_interrupt()
2419 hwwrite(vortex->mmio, VORTEX_IRQ_SOURCE, source); in vortex_interrupt()
2420 hwread(vortex->mmio, VORTEX_IRQ_SOURCE); in vortex_interrupt()
2481 hwread(vortex->mmio, VORTEX_IRQ_STAT); in vortex_interrupt()
2505 hwwrite(vortex->mmio, (VORTEX_CODEC_CHN + (i << 2)), -i); in vortex_codec_init()
2509 hwwrite(vortex->mmio, VORTEX_CODEC_CTRL, 0x8068); in vortex_codec_init()
2511 hwwrite(vortex->mmio, VORTEX_CODEC_CTRL, 0x00e8); in vortex_codec_init()
2514 hwwrite(vortex->mmio, VORTEX_CODEC_CTRL, 0x00a8); in vortex_codec_init()
2516 hwwrite(vortex->mmio, VORTEX_CODEC_CTRL, 0x80a8); in vortex_codec_init()
2518 hwwrite(vortex->mmio, VORTEX_CODEC_CTRL, 0x80e8); in vortex_codec_init()
2520 hwwrite(vortex->mmio, VORTEX_CODEC_CTRL, 0x80a8); in vortex_codec_init()
2522 hwwrite(vortex->mmio, VORTEX_CODEC_CTRL, 0x00a8); in vortex_codec_init()
2524 hwwrite(vortex->mmio, VORTEX_CODEC_CTRL, 0x00e8); in vortex_codec_init()
2527 hwwrite(vortex->mmio, (VORTEX_CODEC_CHN + (i << 2)), -i); in vortex_codec_init()
2530 hwwrite(vortex->mmio, VORTEX_CODEC_CTRL, 0xe8); in vortex_codec_init()
2533 hwwrite(vortex->mmio, VORTEX_CODEC_EN, in vortex_codec_init()
2534 hwread(vortex->mmio, VORTEX_CODEC_EN) | EN_CODEC); in vortex_codec_init()
2545 while (!(hwread(card->mmio, VORTEX_CODEC_CTRL) & 0x100)) { in vortex_codec_write()
2553 hwwrite(card->mmio, VORTEX_CODEC_IO, in vortex_codec_write()
2560 hwread(card->mmio, VORTEX_CODEC_IO); in vortex_codec_write()
2571 while (!(hwread(card->mmio, VORTEX_CODEC_CTRL) & 0x100)) { in vortex_codec_read()
2581 hwwrite(card->mmio, VORTEX_CODEC_IO, read_addr); in vortex_codec_read()
2586 data = hwread(card->mmio, VORTEX_CODEC_IO); in vortex_codec_read()
2606 hwwrite(vortex->mmio, VORTEX_SPDIF_FLAGS, in vortex_spdif_init()
2607 hwread(vortex->mmio, VORTEX_SPDIF_FLAGS) & 0xfff3fffd); in vortex_spdif_init()
2610 hwwrite(vortex->mmio, VORTEX_SPDIF_CFG1 + (i << 2), 0); in vortex_spdif_init()
2612 hwwrite(vortex->mmio, VORTEX_CODEC_EN, in vortex_spdif_init()
2613 hwread(vortex->mmio, VORTEX_CODEC_EN) | EN_SPDIF); in vortex_spdif_init()
2676 hwwrite(vortex->mmio, VORTEX_SPDIF_CFG0, this_38 & 0xffff); in vortex_spdif_init()
2677 hwwrite(vortex->mmio, VORTEX_SPDIF_CFG1, this_38 >> 0x10); in vortex_spdif_init()
2678 hwwrite(vortex->mmio, VORTEX_SPDIF_SMPRATE, spdif_sr); in vortex_spdif_init()
2688 hwwrite(vortex->mmio, VORTEX_CTRL, 0xffffffff); in vortex_core_init()
2690 hwwrite(vortex->mmio, VORTEX_CTRL, in vortex_core_init()
2691 hwread(vortex->mmio, VORTEX_CTRL) & 0xffdfffff); in vortex_core_init()
2694 hwwrite(vortex->mmio, VORTEX_IRQ_SOURCE, 0xffffffff); in vortex_core_init()
2695 hwread(vortex->mmio, VORTEX_IRQ_STAT); in vortex_core_init()
2700 hwwrite(vortex->mmio, VORTEX_CTRL, in vortex_core_init()
2701 hwread(vortex->mmio, VORTEX_CTRL) | 0x1000000); in vortex_core_init()
2706 hwwrite(vortex->mmio, VORTEX_ENGINE_CTRL, 0x0); //, 0xc83c7e58, 0xc5f93e58 in vortex_core_init()
2757 hwwrite(vortex->mmio, VORTEX_IRQ_CTRL, 0); in vortex_core_shutdown()
2758 hwwrite(vortex->mmio, VORTEX_CTRL, 0); in vortex_core_shutdown()
2760 hwwrite(vortex->mmio, VORTEX_IRQ_SOURCE, 0xffff); in vortex_core_shutdown()