mirror of https://github.com/PCSX2/pcsx2.git
"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:
parent
86d96ffbf2
commit
582ec766e4
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -31,3 +31,6 @@ EXPORTS
|
|||
DEV9about @19
|
||||
DEV9irqCallback @20
|
||||
DEV9irqHandler @21
|
||||
DEV9dmaRead
|
||||
DEV9dmaWrite
|
||||
DEV9dmaInterrupt
|
Loading…
Reference in New Issue