diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-11-01 05:50:53 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-11-01 05:50:53 +0000 |
| commit | 8549d0c54350ee4b08e979c4712f313aba58ff3f (patch) | |
| tree | a18f921f7f47e33f0afed8fb03ef20a340773ed8 /macosx/plugins/PeopsSpu109/src/dma.c | |
| parent | 85fb698328b912d7c80aeacf310357ed7696427f (diff) | |
| download | pcsxr-8549d0c54350ee4b08e979c4712f313aba58ff3f.tar.gz | |
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@34479 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins/PeopsSpu109/src/dma.c')
| -rwxr-xr-x | macosx/plugins/PeopsSpu109/src/dma.c | 117 |
1 files changed, 0 insertions, 117 deletions
diff --git a/macosx/plugins/PeopsSpu109/src/dma.c b/macosx/plugins/PeopsSpu109/src/dma.c deleted file mode 100755 index d25a4bf9..00000000 --- a/macosx/plugins/PeopsSpu109/src/dma.c +++ /dev/null @@ -1,117 +0,0 @@ -/***************************************************************************
- dma.c - description
- -------------------
- begin : Wed May 15 2002
- copyright : (C) 2002 by Pete Bernert
- email : BlackDove@addcom.de
- ***************************************************************************/
-
-/***************************************************************************
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. See also the license.txt file for *
- * additional informations. *
- * *
- ***************************************************************************/
-
-//*************************************************************************//
-// History of changes:
-//
-// 2002/05/15 - Pete
-// - generic cleanup for the Peops release
-//
-//*************************************************************************//
-
-#include "stdafx.h"
-
-#define _IN_DMA
-
-#include "externals.h"
-#include "swap.h"
-
-////////////////////////////////////////////////////////////////////////
-// READ DMA (one value)
-////////////////////////////////////////////////////////////////////////
-
-unsigned short CALLBACK SPUreadDMA(void)
-{
- unsigned short s;
-
- s=LE2HOST16(spuMem[spuAddr>>1]);
-
-
- spuAddr+=2;
- if(spuAddr>0x7ffff) spuAddr=0;
-
- iSpuAsyncWait=0;
-
- return s;
-}
-
-////////////////////////////////////////////////////////////////////////
-// READ DMA (many values)
-////////////////////////////////////////////////////////////////////////
-
-void CALLBACK SPUreadDMAMem(unsigned short * pusPSXMem,int iSize)
-{
- int i, mask = 0x7fffe;
-
- for(i=0;i<iSize;i++)
- {
- *pusPSXMem++=spuMem[spuAddr>>1]; // spu addr got by writeregister
- //spuAddr+=2; // inc spu addr
- //if(spuAddr>0x7ffff) spuAddr=0; // wrap
- spuAddr = (spuAddr+2) & mask; // wrap
- }
-
- iSpuAsyncWait=0;
-
-}
-
-////////////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////////////
-
-// to investigate: do sound data updates by writedma affect spu
-// irqs? Will an irq be triggered, if new data is written to
-// the memory irq address?
-
-////////////////////////////////////////////////////////////////////////
-// WRITE DMA (one value)
-////////////////////////////////////////////////////////////////////////
-
-void CALLBACK SPUwriteDMA(unsigned short val)
-{
- spuMem[spuAddr>>1] = HOST2LE16(val); // spu addr got by writeregister
-
- spuAddr+=2; // inc spu addr
- if(spuAddr>0x7ffff) spuAddr=0; // wrap
-
- iSpuAsyncWait=0;
-
-}
-
-////////////////////////////////////////////////////////////////////////
-// WRITE DMA (many values)
-////////////////////////////////////////////////////////////////////////
-
-void CALLBACK SPUwriteDMAMem(unsigned short * pusPSXMem,int iSize)
-{
- int i, mask = 0x7fffe;
-
- for(i=0;i<iSize;i++)
- {
- spuMem[spuAddr>>1] = *pusPSXMem++; // spu addr got by writeregister
- //spuAddr+=2; // inc spu addr
- //if(spuAddr>0x7ffff) spuAddr=0; // wrap
- spuAddr = (spuAddr+2) & mask; // wrap
- }
-
- iSpuAsyncWait=0;
-
-}
-
-////////////////////////////////////////////////////////////////////////
-
|
