Search
lxdream.org :: lxdream/src/aica/aica.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/aica/aica.h
changeset 11:0a82ef380c45
next40:852ee31ace0d
author nkeynes
date Mon Dec 12 10:37:41 2005 +0000 (18 years ago)
permissions -rw-r--r--
last change Use cpu-specific is_valid_page function
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/aica/aica.h Mon Dec 12 10:37:41 2005 +0000
1.3 @@ -0,0 +1,45 @@
1.4 +/**
1.5 + * $Id: aica.h,v 1.1 2005-12-11 12:00:09 nkeynes Exp $
1.6 + *
1.7 + * MMIO definitions for the AICA sound chip. Note that the regions defined
1.8 + * here are relative to the SH4 memory map (0x00700000 based), rather than
1.9 + * the ARM addresses (0x00800000 based).
1.10 + *
1.11 + * Copyright (c) 2005 Nathan Keynes.
1.12 + *
1.13 + * This program is free software; you can redistribute it and/or modify
1.14 + * it under the terms of the GNU General Public License as published by
1.15 + * the Free Software Foundation; either version 2 of the License, or
1.16 + * (at your option) any later version.
1.17 + *
1.18 + * This program is distributed in the hope that it will be useful,
1.19 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.20 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.21 + * GNU General Public License for more details.
1.22 + */
1.23 +
1.24 +#include "mmio.h"
1.25 +
1.26 +MMIO_REGION_BEGIN( 0x00700000, AICA0, "AICA Sound System 0-31" )
1.27 +LONG_PORT( 0x000, AICACH0, PORT_MRW, UNDEFINED, "Channel 0" )
1.28 +MMIO_REGION_END
1.29 +
1.30 +MMIO_REGION_BEGIN( 0x00701000, AICA1, "AICA Sound System 32-63" )
1.31 +LONG_PORT( 0x000, AICACH32, PORT_MRW, UNDEFINED, "Channel 32" )
1.32 +MMIO_REGION_END
1.33 +
1.34 +MMIO_REGION_BEGIN( 0x00702000, AICA2, "AICA Sound System Control" )
1.35 +LONG_PORT( 0x040, VOLLEFT, PORT_MRW, 0, "Volume left" )
1.36 +LONG_PORT( 0x044, VOLRIGHT, PORT_MRW, 0, "Volume right" )
1.37 +LONG_PORT( 0x800, AICA_CTRL, PORT_MRW, UNDEFINED, "AICA control" )
1.38 +LONG_PORT( 0xC00, AICA_RESET,PORT_MRW, 0, "AICA reset" )
1.39 +MMIO_REGION_END
1.40 +
1.41 +MMIO_REGION_LIST_BEGIN( spu )
1.42 + MMIO_REGION( AICA0 )
1.43 + MMIO_REGION( AICA1 )
1.44 + MMIO_REGION( AICA2 )
1.45 +MMIO_REGION_LIST_END
1.46 +
1.47 +void aica_init( void );
1.48 +void aica_reset( void );
.