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

Function DEV9readDMA8Mem

pcsx2/DEV9/DEV9.cpp:1066–1094  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1064}
1065
1066void DEV9readDMA8Mem(u32* pMem, int size)
1067{
1068 if (!EmuConfig.DEV9.EthEnable && !EmuConfig.DEV9.HddEnable)
1069 return;
1070
1071 size >>= 1;
1072
1073 DevCon.WriteLn("DEV9: *DEV9readDMA8Mem: size %x", size);
1074
1075 if (dev9.dma_ctrl & SPD_DMA_TO_SMAP)
1076 {
1077 smap_readDMA8Mem(pMem, size);
1078 psxDMA8Interrupt();
1079 }
1080 else
1081 {
1082 if (!(dev9.xfr_ctrl & SPD_XFR_WRITE))
1083 {
1084 pxAssert(size <= SPD_DBUF_AVAIL_MAX * 512);
1085 dev9.dma_iop_ptr = reinterpret_cast<u8*>(pMem);
1086 dev9.dma_iop_size = size;
1087 dev9.dma_iop_transfered = 0;
1088
1089 DEV9runFIFO();
1090 }
1091 }
1092
1093 //TODO, track if read was successful
1094}
1095
1096void DEV9writeDMA8Mem(u32* pMem, int size)
1097{

Callers 1

psxDma8Function · 0.85

Calls 4

smap_readDMA8MemFunction · 0.85
psxDMA8InterruptFunction · 0.85
DEV9runFIFOFunction · 0.85
WriteLnMethod · 0.45

Tested by

no test coverage detected