Search
lxdream.org :: lxdream/src/aica/aica.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/aica/aica.h
changeset 11:0a82ef380c45
next40:852ee31ace0d
author nkeynes
date Sun Dec 11 12:00:28 2005 +0000 (18 years ago)
permissions -rw-r--r--
last change Add armdasm.h header
view annotate diff log raw
     1 /**
     2  * $Id: aica.h,v 1.1 2005-12-11 12:00:09 nkeynes Exp $
     3  * 
     4  * MMIO definitions for the AICA sound chip. Note that the regions defined
     5  * here are relative to the SH4 memory map (0x00700000 based), rather than
     6  * the ARM addresses (0x00800000 based).
     7  *
     8  * Copyright (c) 2005 Nathan Keynes.
     9  *
    10  * This program is free software; you can redistribute it and/or modify
    11  * it under the terms of the GNU General Public License as published by
    12  * the Free Software Foundation; either version 2 of the License, or
    13  * (at your option) any later version.
    14  *
    15  * This program is distributed in the hope that it will be useful,
    16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    18  * GNU General Public License for more details.
    19  */
    21 #include "mmio.h"
    23 MMIO_REGION_BEGIN( 0x00700000, AICA0, "AICA Sound System 0-31" )
    24 LONG_PORT( 0x000, AICACH0, PORT_MRW, UNDEFINED, "Channel 0" )
    25 MMIO_REGION_END
    27 MMIO_REGION_BEGIN( 0x00701000, AICA1, "AICA Sound System 32-63" )
    28 LONG_PORT( 0x000, AICACH32, PORT_MRW, UNDEFINED, "Channel 32" )
    29 MMIO_REGION_END
    31 MMIO_REGION_BEGIN( 0x00702000, AICA2, "AICA Sound System Control" )
    32 LONG_PORT( 0x040, VOLLEFT, PORT_MRW, 0, "Volume left" )
    33 LONG_PORT( 0x044, VOLRIGHT, PORT_MRW, 0, "Volume right" )
    34 LONG_PORT( 0x800, AICA_CTRL, PORT_MRW, UNDEFINED, "AICA control" )
    35 LONG_PORT( 0xC00, AICA_RESET,PORT_MRW, 0, "AICA reset" )
    36 MMIO_REGION_END
    38 MMIO_REGION_LIST_BEGIN( spu )
    39     MMIO_REGION( AICA0 )
    40     MMIO_REGION( AICA1 )
    41     MMIO_REGION( AICA2 )
    42 MMIO_REGION_LIST_END
    44 void aica_init( void );
    45 void aica_reset( void );
.