upse-ps1-spu-abstract.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * UPSE: the unix playstation sound emulator.
  3. *
  4. * Filename: upse_util.c
  5. * Purpose: libupse: PS1 SPU abstraction
  6. *
  7. * Copyright (c) 2007 William Pitcock <nenolod@sacredspiral.co.uk>
  8. * Portions copyright (c) 1999-2002 Pcsx Team
  9. * Portions copyright (c) 2004 "Xodnizel"
  10. *
  11. * UPSE is free software, released under the GNU General Public License,
  12. * version 2.
  13. *
  14. * A copy of the GNU General Public License, version 2, is included in
  15. * the UPSE source kit as COPYING.
  16. *
  17. * UPSE is offered without any warranty of any kind, explicit or implicit.
  18. */
  19. #ifndef _UPSE__LIBUPSE__UPSE_PS1_SPU_ABSTRACT_H__GUARD
  20. #define _UPSE__LIBUPSE__UPSE_PS1_SPU_ABSTRACT_H__GUARD
  21. #define H_SPUirqAddr 0x0da4
  22. #define H_SPUaddr 0x0da6
  23. #define H_SPUdata 0x0da8
  24. #define H_SPUctrl 0x0daa
  25. #define H_SPUstat 0x0dae
  26. #define H_SPUon1 0x0d88
  27. #define H_SPUon2 0x0d8a
  28. #define H_SPUoff1 0x0d8c
  29. #define H_SPUoff2 0x0d8e
  30. void SPUirq(void);
  31. u16 SPUreadRegister(u32 reg);
  32. void SPUwriteRegister(u32 reg, u16 val);
  33. int SPUasync(u32 cycle);
  34. void SPUwriteDMAMem(u32 usPSXMem, int iSize);
  35. void SPUreadDMAMem(u32 usPSXMem, int iSize);
  36. #endif