Search
lxdream.org :: lxdream/src/aica/aica.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/aica/aica.c
changeset 15:5194dd0fdb60
prev11:0a82ef380c45
next16:f383e7640da4
author nkeynes
date Mon Dec 12 13:11:11 2005 +0000 (15 years ago)
permissions -rw-r--r--
last change Add dreamcast_module module structure
file annotate diff log raw
1.1 --- a/src/aica/aica.c Sun Dec 11 12:00:09 2005 +0000
1.2 +++ b/src/aica/aica.c Mon Dec 12 13:11:11 2005 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: aica.c,v 1.1 2005-12-11 12:00:09 nkeynes Exp $
1.6 + * $Id: aica.c,v 1.2 2005-12-12 13:11:11 nkeynes Exp $
1.7 *
1.8 * This is the core sound system (ie the bit which does the actual work)
1.9 *
1.10 @@ -17,6 +17,8 @@
1.11 */
1.12
1.13 #include "dream.h"
1.14 +#include "modules.h"
1.15 +#include "mem.h"
1.16 #include "aica.h"
1.17 #define MMIO_IMPL
1.18 #include "aica.h"
1.19 @@ -25,11 +27,16 @@
1.20 MMIO_REGION_READ_DEFFN( AICA1 )
1.21 MMIO_REGION_READ_DEFFN( AICA2 )
1.22
1.23 +struct dreamcast_module aica_module = { "AICA", aica_init, aica_reset, NULL, NULL,
1.24 + NULL, NULL };
1.25 +
1.26 /**
1.27 * Initialize the AICA subsystem. Note requires that
1.28 */
1.29 void aica_init( void )
1.30 {
1.31 + mem_create_ram_region( 0x00800000, 2 MB, MEM_REGION_AUDIO );
1.32 + mem_create_ram_region( 0x00703000, 8 KB, MEM_REGION_AUDIO_SCRATCH ); /*???*/
1.33 register_io_regions( mmio_list_spu );
1.34 MMIO_NOTRACE(AICA0);
1.35 MMIO_NOTRACE(AICA1);
.