MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / DEV9writeDMA8Mem

Function DEV9writeDMA8Mem

pcsx2/DEV9/DEV9.cpp:1096–1122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1094}
1095
1096void DEV9writeDMA8Mem(u32* pMem, int size)
1097{
1098 if (!EmuConfig.DEV9.EthEnable && !EmuConfig.DEV9.HddEnable)
1099 return;
1100
1101 size >>= 1;
1102
1103 DevCon.WriteLn("DEV9: *DEV9writeDMA8Mem: size %x", size);
1104
1105 if (dev9.dma_ctrl & SPD_DMA_TO_SMAP)
1106 {
1107 smap_writeDMA8Mem(pMem, size);
1108 psxDMA8Interrupt();
1109 }
1110 else
1111 {
1112 if (dev9.xfr_ctrl & SPD_XFR_WRITE)
1113 {
1114 pxAssert(size <= SPD_DBUF_AVAIL_MAX * 512);
1115 dev9.dma_iop_ptr = reinterpret_cast<u8*>(pMem);
1116 dev9.dma_iop_size = size;
1117 dev9.dma_iop_transfered = 0;
1118
1119 DEV9runFIFO();
1120 }
1121 }
1122}
1123
1124void DEV9async(u32 cycles)
1125{

Callers 1

psxDma8Function · 0.85

Calls 4

smap_writeDMA8MemFunction · 0.85
psxDMA8InterruptFunction · 0.85
DEV9runFIFOFunction · 0.85
WriteLnMethod · 0.45

Tested by

no test coverage detected