Search
lxdream.org :: lxdream/src/machine.c
lxdream 0.9.1
released Jun 29
Download Now
filename src/machine.c
changeset 1:eea311cfd33e
author nkeynes
date Sat Mar 13 00:03:32 2004 +0000 (15 years ago)
permissions -rw-r--r--
last change This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.
file annotate diff log raw
nkeynes@1
     1
#include "dream.h"
nkeynes@1
     2
#include "mem.h"
nkeynes@1
     3
#include "aica.h"
nkeynes@1
     4
#include "asic.h"
nkeynes@1
     5
/* Central switchboard for the system */
nkeynes@1
     6
nkeynes@1
     7
void machine_init( void )
nkeynes@1
     8
{
nkeynes@1
     9
    mem_init();
nkeynes@1
    10
    sh4_init();
nkeynes@1
    11
    asic_init();
nkeynes@1
    12
    pvr2_init();
nkeynes@1
    13
    aica_init();
nkeynes@1
    14
nkeynes@1
    15
    mem_create_ram_region( 0x0C000000, 16 MB, MEM_REGION_MAIN );
nkeynes@1
    16
    mem_create_ram_region( 0x05000000, 8 MB, MEM_REGION_VIDEO );
nkeynes@1
    17
    mem_create_ram_region( 0x00800000, 2 MB, MEM_REGION_AUDIO );
nkeynes@1
    18
    mem_create_ram_region( 0x00703000, 8 KB, MEM_REGION_AUDIO_SCRATCH ); /*???*/
nkeynes@1
    19
    mem_load_rom( "dcboot.rom", 0x00000000, 0x00200000, 0x89f2b1a1 );
nkeynes@1
    20
    mem_load_rom( "dcflash.rom",0x00200000, 0x00020000, 0x357c3568 );
nkeynes@1
    21
}
nkeynes@1
    22
nkeynes@1
    23
void machine_reset( void )
nkeynes@1
    24
{
nkeynes@1
    25
    sh4_reset();
nkeynes@1
    26
    mem_reset();
nkeynes@1
    27
//    pvr2_reset();
nkeynes@1
    28
    aica_reset();
nkeynes@1
    29
}
.