Search
lxdream.org :: lxdream/src/pvr2/pvr2.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.c
changeset 15:5194dd0fdb60
prev2:42349f6ea216
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/pvr2/pvr2.c Sat Aug 21 06:15:49 2004 +0000
1.2 +++ b/src/pvr2/pvr2.c Mon Dec 12 13:11:11 2005 +0000
1.3 @@ -2,14 +2,21 @@
1.4 #include "video.h"
1.5 #include "mem.h"
1.6 #include "asic.h"
1.7 +#include "modules.h"
1.8 #include "pvr2.h"
1.9 #define MMIO_IMPL
1.10 #include "pvr2.h"
1.11
1.12 char *video_base;
1.13
1.14 +void pvr2_init( void );
1.15 +
1.16 +struct dreamcast_module pvr2_module = { "PVR2", pvr2_init, NULL, NULL, NULL,
1.17 + NULL, NULL };
1.18 +
1.19 void pvr2_init( void )
1.20 {
1.21 + mem_create_ram_region( 0x05000000, 8 MB, MEM_REGION_VIDEO );
1.22 register_io_region( &mmio_region_PVR2 );
1.23 video_base = mem_get_region_by_name( MEM_REGION_VIDEO );
1.24 }
.