mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-12 01:00:44 +01:00
"Fix" dev9null to allow the new iop dmac stuff. It's null, so it has no other purpose than to check if the plugin loads correctly. Which it does.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2572 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
1 parent
86d96ffbf2
commit
582ec766e4
2 files changed
+27
No files matched your search
@@ -198,6 +198,29 @@ EXPORT_C_(void) DEV9write32(u32 addr, u32 value)
|
||||
}
|
||||
}
|
||||
|
||||
//#ifdef ENABLE_NEW_IOPDMA_DEV9
|
||||
EXPORT_C_(s32) DEV9dmaRead(s32 channel, u32* data, u32 bytesLeft, u32* bytesProcessed)
|
||||
{
|
||||
// You'll want to but your own DMA8 reading code here.
|
||||
// Time to interact with your fake (or real) hardware.
|
||||
Dev9Log.WriteLn("Reading DMA8 Mem.");
|
||||
*bytesProcessed = bytesLeft;
|
||||
return 0;
|
||||
}
|
||||
|
||||
EXPORT_C_(s32) DEV9dmaWrite(s32 channel, u32* data, u32 bytesLeft, u32* bytesProcessed)
|
||||
{
|
||||
// See above.
|
||||
Dev9Log.WriteLn("Writing DMA8 Mem.");
|
||||
*bytesProcessed = bytesLeft;
|
||||
return 0;
|
||||
}
|
||||
|
||||
EXPORT_C_(void) DEV9dmaInterrupt(s32 channel)
|
||||
{
|
||||
// See above.
|
||||
}
|
||||
//#else
|
||||
EXPORT_C_(void) DEV9readDMA8Mem(u32 *pMem, int size)
|
||||
{
|
||||
// You'll want to but your own DMA8 reading code here.
|
||||
@@ -210,6 +233,7 @@ EXPORT_C_(void) DEV9writeDMA8Mem(u32* pMem, int size)
|
||||
// See above.
|
||||
Dev9Log.WriteLn("Writing DMA8 Mem.");
|
||||
}
|
||||
//#endif
|
||||
|
||||
EXPORT_C_(void) DEV9irqCallback(DEV9callback callback)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user