nkeynes@11: /** nkeynes@11: * $Id: aica.h,v 1.1 2005-12-11 12:00:09 nkeynes Exp $ nkeynes@11: * nkeynes@11: * MMIO definitions for the AICA sound chip. Note that the regions defined nkeynes@11: * here are relative to the SH4 memory map (0x00700000 based), rather than nkeynes@11: * the ARM addresses (0x00800000 based). nkeynes@11: * nkeynes@11: * Copyright (c) 2005 Nathan Keynes. nkeynes@11: * nkeynes@11: * This program is free software; you can redistribute it and/or modify nkeynes@11: * it under the terms of the GNU General Public License as published by nkeynes@11: * the Free Software Foundation; either version 2 of the License, or nkeynes@11: * (at your option) any later version. nkeynes@11: * nkeynes@11: * This program is distributed in the hope that it will be useful, nkeynes@11: * but WITHOUT ANY WARRANTY; without even the implied warranty of nkeynes@11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the nkeynes@11: * GNU General Public License for more details. nkeynes@11: */ nkeynes@11: nkeynes@11: #include "mmio.h" nkeynes@11: nkeynes@11: MMIO_REGION_BEGIN( 0x00700000, AICA0, "AICA Sound System 0-31" ) nkeynes@11: LONG_PORT( 0x000, AICACH0, PORT_MRW, UNDEFINED, "Channel 0" ) nkeynes@11: MMIO_REGION_END nkeynes@11: nkeynes@11: MMIO_REGION_BEGIN( 0x00701000, AICA1, "AICA Sound System 32-63" ) nkeynes@11: LONG_PORT( 0x000, AICACH32, PORT_MRW, UNDEFINED, "Channel 32" ) nkeynes@11: MMIO_REGION_END nkeynes@11: nkeynes@11: MMIO_REGION_BEGIN( 0x00702000, AICA2, "AICA Sound System Control" ) nkeynes@11: LONG_PORT( 0x040, VOLLEFT, PORT_MRW, 0, "Volume left" ) nkeynes@11: LONG_PORT( 0x044, VOLRIGHT, PORT_MRW, 0, "Volume right" ) nkeynes@11: LONG_PORT( 0x800, AICA_CTRL, PORT_MRW, UNDEFINED, "AICA control" ) nkeynes@11: LONG_PORT( 0xC00, AICA_RESET,PORT_MRW, 0, "AICA reset" ) nkeynes@11: MMIO_REGION_END nkeynes@11: nkeynes@11: MMIO_REGION_LIST_BEGIN( spu ) nkeynes@11: MMIO_REGION( AICA0 ) nkeynes@11: MMIO_REGION( AICA1 ) nkeynes@11: MMIO_REGION( AICA2 ) nkeynes@11: MMIO_REGION_LIST_END nkeynes@11: nkeynes@11: void aica_init( void ); nkeynes@11: void aica_reset( void );