Search
lxdream.org :: lxdream/src/aica/aica.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/aica/aica.h
changeset 61:eb7a73c9bcae
prev46:30d123047e16
next62:a1cb6dfefec1
author nkeynes
date Mon Jan 02 14:50:12 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change AICA IRQ event work in progress
file annotate diff log raw
1.1 --- a/src/aica/aica.h Tue Dec 27 08:42:57 2005 +0000
1.2 +++ b/src/aica/aica.h Mon Jan 02 14:50:12 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: aica.h,v 1.4 2005-12-27 08:42:57 nkeynes Exp $
1.6 + * $Id: aica.h,v 1.5 2006-01-02 14:50:12 nkeynes Exp $
1.7 *
1.8 * MMIO definitions for the AICA sound chip. Note that the regions defined
1.9 * here are relative to the SH4 memory map (0x00700000 based), rather than
1.10 @@ -32,14 +32,17 @@
1.11 LONG_PORT( 0x040, CDDA_VOL_L, PORT_MRW, 0, "CDDA Volume left" )
1.12 LONG_PORT( 0x044, CDDA_VOL_R, PORT_MRW, 0, "CDDA Volume right" )
1.13 LONG_PORT( 0x800, VOL_MASTER, PORT_MRW, UNDEFINED, "Master volume" )
1.14 -LONG_PORT( 0x890, AICA_TIMER, PORT_MRW, 0, "IRQ Timer (?)" )
1.15 +LONG_PORT( 0x808, AICA_UNK7, PORT_MRW, 0, "AICA ??? 7" )
1.16 +LONG_PORT( 0x880, AICA_TIMER1, PORT_MRW, 0, "AICA Timer 1" )
1.17 +LONG_PORT( 0x890, AICA_TIMER2, PORT_MRW, 0, "AICA Timer 2" )
1.18 LONG_PORT( 0x89C, AICA_UNK1, PORT_MRW, 0, "AICA ??? 1" )
1.19 LONG_PORT( 0x8A4, AICA_UNK2, PORT_MRW, 0, "AICA ??? 2" )
1.20 BYTE_PORT( 0x8A8, AICA_UNK3, PORT_MRW, 0, "AICA ??? 3" )
1.21 BYTE_PORT( 0x8AC, AICA_UNK4, PORT_MRW, 0, "AICA ??? 4" )
1.22 BYTE_PORT( 0x8B0, AICA_UNK5, PORT_MRW, 0, "AICA ??? 5" )
1.23 LONG_PORT( 0xC00, AICA_RESET,PORT_MRW, 1, "AICA reset" )
1.24 -LONG_PORT( 0xD04, AICA_UNK6, PORT_MRW, 0, "AICA ??? 6" )
1.25 +LONG_PORT( 0xD00, AICA_IRQ, PORT_MR, 1, "AICA IRQ Pending" )
1.26 +LONG_PORT( 0xD04, AICA_IRQCLEAR, PORT_MRW, 0, "AICA IRQ Clear" )
1.27 MMIO_REGION_END
1.28
1.29 MMIO_REGION_LIST_BEGIN( spu )
1.30 @@ -50,3 +53,8 @@
1.31
1.32 void aica_init( void );
1.33 void aica_reset( void );
1.34 +
1.35 +#define AICA_EVENT_TIMER 2
1.36 +#define AICA_EVENT_OTHER 5
1.37 +
1.38 +void aica_event( int event );
.