Search
lxdream.org :: lxdream :: r31:495e480360d7
lxdream 0.9.1
released Jun 29
Download Now
changeset31:495e480360d7
parent30:89b30313d757
child32:bf0bc2c524b8
authornkeynes
dateSun Dec 25 08:24:11 2005 +0000 (13 years ago)
Finish adding header blocks to all files
src/aica/armmem.c
src/asic.c
src/asic.h
src/dream.h
src/gdrom/cdi.c
src/gdrom/cdi.h
src/gdrom/ide.c
src/gdrom/ide.h
src/gui/callbacks.h
src/gui/dump_win.c
src/gui/gui_mmr.c
src/gui/mmio_win.c
src/maple/controller.c
src/maple/controller.h
src/maple/maple.c
src/maple/maple.h
src/mem.h
src/mmio.h
src/pvr2/pvr2.c
src/pvr2/pvr2.h
src/sh4/intc.c
src/sh4/intc.h
src/util.c
src/video.c
src/video.h
1.1 --- a/src/aica/armmem.c Sun Dec 25 05:57:00 2005 +0000
1.2 +++ b/src/aica/armmem.c Sun Dec 25 08:24:11 2005 +0000
1.3 @@ -1,3 +1,21 @@
1.4 +/**
1.5 + * $Id: armmem.c,v 1.4 2005-12-25 08:24:11 nkeynes Exp $
1.6 + *
1.7 + * Implements the ARM's memory map.
1.8 + *
1.9 + * Copyright (c) 2005 Nathan Keynes.
1.10 + *
1.11 + * This program is free software; you can redistribute it and/or modify
1.12 + * it under the terms of the GNU General Public License as published by
1.13 + * the Free Software Foundation; either version 2 of the License, or
1.14 + * (at your option) any later version.
1.15 + *
1.16 + * This program is distributed in the hope that it will be useful,
1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.19 + * GNU General Public License for more details.
1.20 + */
1.21 +
1.22 #include <stdlib.h>
1.23 #include "dream.h"
1.24 #include "mem.h"
2.1 --- a/src/asic.c Sun Dec 25 05:57:00 2005 +0000
2.2 +++ b/src/asic.c Sun Dec 25 08:24:11 2005 +0000
2.3 @@ -1,3 +1,21 @@
2.4 +/**
2.5 + * $Id: asic.c,v 1.7 2005-12-25 08:24:07 nkeynes Exp $
2.6 + *
2.7 + * Support for the miscellaneous ASIC functions (Primarily event multiplexing,
2.8 + * and DMA).
2.9 + *
2.10 + * Copyright (c) 2005 Nathan Keynes.
2.11 + *
2.12 + * This program is free software; you can redistribute it and/or modify
2.13 + * it under the terms of the GNU General Public License as published by
2.14 + * the Free Software Foundation; either version 2 of the License, or
2.15 + * (at your option) any later version.
2.16 + *
2.17 + * This program is distributed in the hope that it will be useful,
2.18 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
2.19 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2.20 + * GNU General Public License for more details.
2.21 + */
2.22 #include <assert.h>
2.23 #include "dream.h"
2.24 #include "mem.h"
3.1 --- a/src/asic.h Sun Dec 25 05:57:00 2005 +0000
3.2 +++ b/src/asic.h Sun Dec 25 08:24:11 2005 +0000
3.3 @@ -1,3 +1,23 @@
3.4 +/**
3.5 + * $Id: asic.h,v 1.3 2005-12-25 08:24:07 nkeynes Exp $
3.6 + *
3.7 + * Support for the miscellaneous ASIC functions (Primarily event multiplexing,
3.8 + * and DMA). Includes MMIO definitions for the 5f6000 and 5f7000 regions,
3.9 + * although some functions (maple, ide) are implemented elsewhere.
3.10 + *
3.11 + * Copyright (c) 2005 Nathan Keynes.
3.12 + *
3.13 + * This program is free software; you can redistribute it and/or modify
3.14 + * it under the terms of the GNU General Public License as published by
3.15 + * the Free Software Foundation; either version 2 of the License, or
3.16 + * (at your option) any later version.
3.17 + *
3.18 + * This program is distributed in the hope that it will be useful,
3.19 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
3.20 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3.21 + * GNU General Public License for more details.
3.22 + */
3.23 +
3.24 #include "mmio.h"
3.25
3.26 /**
4.1 --- a/src/dream.h Sun Dec 25 05:57:00 2005 +0000
4.2 +++ b/src/dream.h Sun Dec 25 08:24:11 2005 +0000
4.3 @@ -1,6 +1,21 @@
4.4 -/*
4.5 - * Application-wide declarations
4.6 +/**
4.7 + * $Id: dream.h,v 1.6 2005-12-25 08:24:07 nkeynes Exp $
4.8 + *
4.9 + * Miscellaneous application-wide declarations (mainly logging atm)
4.10 + *
4.11 + * Copyright (c) 2005 Nathan Keynes.
4.12 + *
4.13 + * This program is free software; you can redistribute it and/or modify
4.14 + * it under the terms of the GNU General Public License as published by
4.15 + * the Free Software Foundation; either version 2 of the License, or
4.16 + * (at your option) any later version.
4.17 + *
4.18 + * This program is distributed in the hope that it will be useful,
4.19 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
4.20 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4.21 + * GNU General Public License for more details.
4.22 */
4.23 +
4.24 #ifndef dream_H
4.25 #define dream_H 1
4.26
5.1 --- a/src/gdrom/cdi.c Sun Dec 25 05:57:00 2005 +0000
5.2 +++ b/src/gdrom/cdi.c Sun Dec 25 08:24:11 2005 +0000
5.3 @@ -1,3 +1,20 @@
5.4 +/**
5.5 + * $Id: cdi.c,v 1.2 2005-12-25 08:24:11 nkeynes Exp $
5.6 + *
5.7 + * CDI CD-image file support
5.8 + *
5.9 + * Copyright (c) 2005 Nathan Keynes.
5.10 + *
5.11 + * This program is free software; you can redistribute it and/or modify
5.12 + * it under the terms of the GNU General Public License as published by
5.13 + * the Free Software Foundation; either version 2 of the License, or
5.14 + * (at your option) any later version.
5.15 + *
5.16 + * This program is distributed in the hope that it will be useful,
5.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
5.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5.19 + * GNU General Public License for more details.
5.20 + */
5.21
5.22 #include <stdlib.h>
5.23 #include <stdio.h>
6.1 --- a/src/gdrom/cdi.h Sun Dec 25 05:57:00 2005 +0000
6.2 +++ b/src/gdrom/cdi.h Sun Dec 25 08:24:11 2005 +0000
6.3 @@ -1,3 +1,21 @@
6.4 +/**
6.5 + * $Id: cdi.h,v 1.2 2005-12-25 08:24:11 nkeynes Exp $
6.6 + *
6.7 + * CDI CD-image file support
6.8 + *
6.9 + * Copyright (c) 2005 Nathan Keynes.
6.10 + *
6.11 + * This program is free software; you can redistribute it and/or modify
6.12 + * it under the terms of the GNU General Public License as published by
6.13 + * the Free Software Foundation; either version 2 of the License, or
6.14 + * (at your option) any later version.
6.15 + *
6.16 + * This program is distributed in the hope that it will be useful,
6.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
6.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6.19 + * GNU General Public License for more details.
6.20 + */
6.21 +
6.22 #ifndef cdi_H
6.23 #define cdi_H 1
6.24
7.1 --- a/src/gdrom/ide.c Sun Dec 25 05:57:00 2005 +0000
7.2 +++ b/src/gdrom/ide.c Sun Dec 25 08:24:11 2005 +0000
7.3 @@ -1,8 +1,19 @@
7.4 -/*
7.5 - * ide.c 31 Mar 2004 - IDE Interface implementation
7.6 +/**
7.7 + * $Id: ide.c,v 1.4 2005-12-25 08:24:11 nkeynes Exp $
7.8 *
7.9 - * Copyright (c) 2004 Nathan Keynes. Distribution and modification permitted
7.10 - * under the terms of the GNU General Public License version 2 or later.
7.11 + * IDE interface implementation
7.12 + *
7.13 + * Copyright (c) 2005 Nathan Keynes.
7.14 + *
7.15 + * This program is free software; you can redistribute it and/or modify
7.16 + * it under the terms of the GNU General Public License as published by
7.17 + * the Free Software Foundation; either version 2 of the License, or
7.18 + * (at your option) any later version.
7.19 + *
7.20 + * This program is distributed in the hope that it will be useful,
7.21 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
7.22 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7.23 + * GNU General Public License for more details.
7.24 */
7.25 #include <stdlib.h>
7.26 #include "modules.h"
8.1 --- a/src/gdrom/ide.h Sun Dec 25 05:57:00 2005 +0000
8.2 +++ b/src/gdrom/ide.h Sun Dec 25 08:24:11 2005 +0000
8.3 @@ -1,15 +1,25 @@
8.4 -/*
8.5 - * ide.h 31 Mar 2004 - IDE Interface definitions
8.6 +/**
8.7 + * $Id: ide.h,v 1.2 2005-12-25 08:24:11 nkeynes Exp $
8.8 *
8.9 - * Copyright (c) 2004 Nathan Keynes. Distribution and modification permitted
8.10 - * under the terms of the GNU General Public License version 2 or later.
8.11 + * This file defines the interface and structures of the dreamcast's IDE
8.12 + * port. Note that the register definitions are in asic.h, as the registers
8.13 + * fall into the general ASIC ranges (and I don't want to use smaller pages
8.14 + * at this stage). The registers here are exactly as per the ATA
8.15 + * specifications, which makes things a little easier.
8.16 *
8.17 - * This file defines the interface and structures of the dreamcast's IDE port.
8.18 - * Note that the register definitions are in asic.h, as the registers fall into
8.19 - * the general ASIC ranges (and I don't want to use smaller pages at this
8.20 - * stage). The registers here are exactly as per the ATA specifications, which
8.21 - * makes things a little easier.
8.22 + * Copyright (c) 2005 Nathan Keynes.
8.23 + *
8.24 + * This program is free software; you can redistribute it and/or modify
8.25 + * it under the terms of the GNU General Public License as published by
8.26 + * the Free Software Foundation; either version 2 of the License, or
8.27 + * (at your option) any later version.
8.28 + *
8.29 + * This program is distributed in the hope that it will be useful,
8.30 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
8.31 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8.32 + * GNU General Public License for more details.
8.33 */
8.34 +
8.35 #ifndef dream_ide_H
8.36 #define dream_ide_H 1
8.37
9.1 --- a/src/gui/callbacks.h Sun Dec 25 05:57:00 2005 +0000
9.2 +++ b/src/gui/callbacks.h Sun Dec 25 08:24:11 2005 +0000
9.3 @@ -1,6 +1,22 @@
9.4 +/**
9.5 + * $Id: callbacks.h,v 1.4 2005-12-25 08:24:11 nkeynes Exp $
9.6 + *
9.7 + * GTK callback declarations (stubs are autogenerated by Glade)
9.8 + *
9.9 + * Copyright (c) 2005 Nathan Keynes.
9.10 + *
9.11 + * This program is free software; you can redistribute it and/or modify
9.12 + * it under the terms of the GNU General Public License as published by
9.13 + * the Free Software Foundation; either version 2 of the License, or
9.14 + * (at your option) any later version.
9.15 + *
9.16 + * This program is distributed in the hope that it will be useful,
9.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
9.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9.19 + * GNU General Public License for more details.
9.20 + */
9.21 #include <gnome.h>
9.22
9.23 -
9.24 void
9.25 on_new_file1_activate (GtkMenuItem *menuitem,
9.26 gpointer user_data);
10.1 --- a/src/gui/dump_win.c Sun Dec 25 05:57:00 2005 +0000
10.2 +++ b/src/gui/dump_win.c Sun Dec 25 08:24:11 2005 +0000
10.3 @@ -1,6 +1,21 @@
10.4 /**
10.5 + * $Id: dump_win.c,v 1.2 2005-12-25 08:24:11 nkeynes Exp $
10.6 + *
10.7 * Implements the memory dump window.
10.8 + *
10.9 + * Copyright (c) 2005 Nathan Keynes.
10.10 + *
10.11 + * This program is free software; you can redistribute it and/or modify
10.12 + * it under the terms of the GNU General Public License as published by
10.13 + * the Free Software Foundation; either version 2 of the License, or
10.14 + * (at your option) any later version.
10.15 + *
10.16 + * This program is distributed in the hope that it will be useful,
10.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
10.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10.19 + * GNU General Public License for more details.
10.20 */
10.21 +
10.22 #include <gnome.h>
10.23 #include <ctype.h>
10.24 #include <assert.h>
11.1 --- a/src/gui/gui_mmr.c Sun Dec 25 05:57:00 2005 +0000
11.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
11.3 @@ -1,151 +0,0 @@
11.4 -#include <stdint.h>
11.5 -#include <gnome.h>
11.6 -#include "interface.h"
11.7 -#include "gui.h"
11.8 -#include "mem.h"
11.9 -#include "mmio.h"
11.10 -
11.11 -GtkWidget *mmr_win;
11.12 -GtkNotebook *mmr_book;
11.13 -
11.14 -static void printbits( char *out, int nbits, uint32_t value )
11.15 -{
11.16 - if( nbits < 32 ) {
11.17 - int i;
11.18 - for( i=32; i>nbits; i-- ) {
11.19 - if( !(i % 8) ) *out++ = ' ';
11.20 - *out++ = ' ';
11.21 - }
11.22 - }
11.23 - while( nbits > 0 ) {
11.24 - *out++ = (value&(1<<--nbits) ? '1' : '0');
11.25 - if( !(nbits % 8) ) *out++ = ' ';
11.26 - }
11.27 - *out = '\0';
11.28 -}
11.29 -
11.30 -static void printhex( char *out, int nbits, uint32_t value )
11.31 -{
11.32 - char tmp[10], *p = tmp;
11.33 - int i;
11.34 -
11.35 - sprintf( tmp, "%08X", value );
11.36 - for( i=32; i>0; i-=4, p++ ) {
11.37 - if( i <= nbits ) *out++ = *p;
11.38 - else *out++ = ' ';
11.39 - }
11.40 - *out = '\0';
11.41 -}
11.42 -
11.43 -
11.44 -static GtkCList *create_mmr_page( char *name )
11.45 -{
11.46 - GtkCList *list;
11.47 - GtkWidget *scroll;
11.48 - GtkWidget *tab;
11.49 -
11.50 - scroll = gtk_scrolled_window_new(NULL, NULL);
11.51 - gtk_widget_show( scroll );
11.52 - gtk_scrolled_window_set_policy( GTK_SCROLLED_WINDOW(scroll),
11.53 - GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS );
11.54 - list = GTK_CLIST(gtk_clist_new(5));
11.55 - gtk_clist_set_column_width(list, 0, 60);
11.56 - gtk_clist_set_column_width(list, 1, 50);
11.57 - gtk_clist_set_column_width(list, 2, 60);
11.58 - gtk_clist_set_column_width(list, 3, 220);
11.59 - gtk_clist_set_column_width(list, 4, 160);
11.60 - gtk_clist_set_column_justification(list, 0, GTK_JUSTIFY_CENTER );
11.61 - gtk_clist_set_column_justification(list, 2, GTK_JUSTIFY_CENTER );
11.62 - gtk_clist_set_column_justification(list, 3, GTK_JUSTIFY_CENTER );
11.63 - gtk_clist_set_column_title(list, 0, "Address");
11.64 - gtk_clist_set_column_title(list, 1, "Register");
11.65 - gtk_clist_set_column_title(list, 2, "Value");
11.66 - gtk_clist_set_column_title(list, 3, "Bit Pattern");
11.67 - gtk_clist_set_column_title(list, 4, "Description");
11.68 - gtk_clist_column_titles_show(list);
11.69 - gtk_widget_set_style( GTK_WIDGET(list), fixed_list_style );
11.70 - gtk_widget_show( GTK_WIDGET(list) );
11.71 - tab = gtk_label_new(_(name));
11.72 - gtk_widget_show( tab );
11.73 - gtk_container_add( GTK_CONTAINER(scroll), GTK_WIDGET(list) );
11.74 - gtk_notebook_append_page( mmr_book, scroll, tab );
11.75 - gtk_object_set_data( GTK_OBJECT(mmr_win), name, list );
11.76 - return list;
11.77 -}
11.78 -
11.79 -void update_mmr_win( void )
11.80 -{
11.81 - int i,j, count = 0;
11.82 - GtkCList *page, *all_page;
11.83 - char data[10], bits[40];
11.84 -
11.85 - all_page = GTK_CLIST(gtk_object_get_data( GTK_OBJECT(mmr_win), "All" ));
11.86 -
11.87 - for( i=1; i < num_io_rgns; i++ ) {
11.88 - page = GTK_CLIST(gtk_object_get_data( GTK_OBJECT(mmr_win),
11.89 - io_rgn[i]->id ));
11.90 - for( j=0; io_rgn[i]->ports[j].id != NULL; j++ ) {
11.91 - if( *io_rgn[i]->ports[j].val !=
11.92 - *(uint32_t *)(io_rgn[i]->save_mem+io_rgn[i]->ports[j].offset)){
11.93 - int sz = io_rgn[i]->ports[j].width;
11.94 - /* Changed */
11.95 - printhex( data, sz, *io_rgn[i]->ports[j].val );
11.96 - printbits( bits, sz, *io_rgn[i]->ports[j].val );
11.97 -
11.98 - gtk_clist_set_text( page, j, 2, data );
11.99 - gtk_clist_set_text( page, j, 3, bits );
11.100 - gtk_clist_set_foreground( page, j, &clrChanged );
11.101 -
11.102 - gtk_clist_set_text( all_page, count, 2, data );
11.103 - gtk_clist_set_text( all_page, count, 3, bits );
11.104 - gtk_clist_set_foreground( all_page, count, &clrChanged );
11.105 -
11.106 - } else {
11.107 - gtk_clist_set_foreground( page, j, &clrNormal );
11.108 - gtk_clist_set_foreground( all_page, count, &clrNormal );
11.109 - }
11.110 - count++;
11.111 - }
11.112 - memcpy( io_rgn[i]->save_mem, io_rgn[i]->mem, PAGE_SIZE );
11.113 - }
11.114 -}
11.115 -
11.116 -void init_mmr_win( void )
11.117 -{
11.118 - int i, j;
11.119 - GtkCList *all_list;
11.120 - mmr_win = create_mmr_win();
11.121 - mmr_book = GTK_NOTEBOOK( gtk_object_get_data( GTK_OBJECT(mmr_win), "mmr_notebook" ));
11.122 -
11.123 - /* kill the dummy page glade insists on adding */
11.124 - gtk_notebook_remove_page( mmr_book, 0 );
11.125 -
11.126 - all_list = create_mmr_page( "All" );
11.127 - for( i=1; i < num_io_rgns; i++ ) {
11.128 - GtkCList *list = create_mmr_page( io_rgn[i]->id );
11.129 -
11.130 - for( j=0; io_rgn[i]->ports[j].id != NULL; j++ ) {
11.131 - int sz = io_rgn[i]->ports[j].width;
11.132 - char addr[10], data[10], bits[40];
11.133 - char *arr[] = { addr, io_rgn[i]->ports[j].id, data, bits,
11.134 - io_rgn[i]->ports[j].desc };
11.135 - sprintf( addr, "%08X",
11.136 - io_rgn[i]->base + io_rgn[i]->ports[j].offset );
11.137 - printhex( data, sz, *io_rgn[i]->ports[j].val );
11.138 - printbits( bits, io_rgn[i]->ports[j].width,
11.139 - *io_rgn[i]->ports[j].val );
11.140 - gtk_clist_append( list, arr );
11.141 - gtk_clist_append( all_list, arr );
11.142 - }
11.143 - }
11.144 -}
11.145 -
11.146 -void mmr_open_win( void )
11.147 -{
11.148 - gtk_widget_show( mmr_win );
11.149 -}
11.150 -
11.151 -void mmr_close_win( void )
11.152 -{
11.153 - gtk_widget_hide( mmr_win );
11.154 -}
12.1 --- a/src/gui/mmio_win.c Sun Dec 25 05:57:00 2005 +0000
12.2 +++ b/src/gui/mmio_win.c Sun Dec 25 08:24:11 2005 +0000
12.3 @@ -1,3 +1,21 @@
12.4 +/**
12.5 + * $Id: mmio_win.c,v 1.2 2005-12-25 08:24:11 nkeynes Exp $
12.6 + *
12.7 + * Implements the MMIO register viewing window
12.8 + *
12.9 + * Copyright (c) 2005 Nathan Keynes.
12.10 + *
12.11 + * This program is free software; you can redistribute it and/or modify
12.12 + * it under the terms of the GNU General Public License as published by
12.13 + * the Free Software Foundation; either version 2 of the License, or
12.14 + * (at your option) any later version.
12.15 + *
12.16 + * This program is distributed in the hope that it will be useful,
12.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
12.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12.19 + * GNU General Public License for more details.
12.20 + */
12.21 +
12.22 #include <stdint.h>
12.23 #include <gnome.h>
12.24 #include "interface.h"
13.1 --- a/src/maple/controller.c Sun Dec 25 05:57:00 2005 +0000
13.2 +++ b/src/maple/controller.c Sun Dec 25 08:24:11 2005 +0000
13.3 @@ -1,3 +1,21 @@
13.4 +/**
13.5 + * $Id: controller.c,v 1.2 2005-12-25 08:24:11 nkeynes Exp $
13.6 + *
13.7 + * Implements the standard dreamcast controller
13.8 + *
13.9 + * Copyright (c) 2005 Nathan Keynes.
13.10 + *
13.11 + * This program is free software; you can redistribute it and/or modify
13.12 + * it under the terms of the GNU General Public License as published by
13.13 + * the Free Software Foundation; either version 2 of the License, or
13.14 + * (at your option) any later version.
13.15 + *
13.16 + * This program is distributed in the hope that it will be useful,
13.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
13.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13.19 + * GNU General Public License for more details.
13.20 + */
13.21 +
13.22 #include <stdlib.h>
13.23 #include "dream.h"
13.24 #include "maple.h"
14.1 --- a/src/maple/controller.h Sun Dec 25 05:57:00 2005 +0000
14.2 +++ b/src/maple/controller.h Sun Dec 25 08:24:11 2005 +0000
14.3 @@ -1,3 +1,21 @@
14.4 +/**
14.5 + * $Id: controller.h,v 1.2 2005-12-25 08:24:11 nkeynes Exp $
14.6 + *
14.7 + * Definitions for the standard controller device
14.8 + *
14.9 + * Copyright (c) 2005 Nathan Keynes.
14.10 + *
14.11 + * This program is free software; you can redistribute it and/or modify
14.12 + * it under the terms of the GNU General Public License as published by
14.13 + * the Free Software Foundation; either version 2 of the License, or
14.14 + * (at your option) any later version.
14.15 + *
14.16 + * This program is distributed in the hope that it will be useful,
14.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
14.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14.19 + * GNU General Public License for more details.
14.20 + */
14.21 +
14.22 /* First word of controller condition */
14.23 #define BUTTON_C 0x00000001 /* not on standard controller */
14.24 #define BUTTON_B 0x00000002
15.1 --- a/src/maple/maple.c Sun Dec 25 05:57:00 2005 +0000
15.2 +++ b/src/maple/maple.c Sun Dec 25 08:24:11 2005 +0000
15.3 @@ -1,3 +1,21 @@
15.4 +/**
15.5 + * $Id: maple.c,v 1.5 2005-12-25 08:24:11 nkeynes Exp $
15.6 + *
15.7 + * Implements the core Maple bus, including DMA transfers to and from the bus.
15.8 + *
15.9 + * Copyright (c) 2005 Nathan Keynes.
15.10 + *
15.11 + * This program is free software; you can redistribute it and/or modify
15.12 + * it under the terms of the GNU General Public License as published by
15.13 + * the Free Software Foundation; either version 2 of the License, or
15.14 + * (at your option) any later version.
15.15 + *
15.16 + * This program is distributed in the hope that it will be useful,
15.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
15.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15.19 + * GNU General Public License for more details.
15.20 + */
15.21 +
15.22 #include <assert.h>
15.23 #include "dream.h"
15.24 #include "modules.h"
16.1 --- a/src/maple/maple.h Sun Dec 25 05:57:00 2005 +0000
16.2 +++ b/src/maple/maple.h Sun Dec 25 08:24:11 2005 +0000
16.3 @@ -1,6 +1,21 @@
16.4 /**
16.5 - * Maple bus routines
16.6 + * $Id: maple.h,v 1.4 2005-12-25 08:24:11 nkeynes Exp $
16.7 + *
16.8 + * Maple bus definitions
16.9 + *
16.10 + * Copyright (c) 2005 Nathan Keynes.
16.11 + *
16.12 + * This program is free software; you can redistribute it and/or modify
16.13 + * it under the terms of the GNU General Public License as published by
16.14 + * the Free Software Foundation; either version 2 of the License, or
16.15 + * (at your option) any later version.
16.16 + *
16.17 + * This program is distributed in the hope that it will be useful,
16.18 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
16.19 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16.20 + * GNU General Public License for more details.
16.21 */
16.22 +
16.23 #ifndef dream_maple_H
16.24 #define dream_maple_H 1
16.25
16.26 @@ -37,6 +52,9 @@
16.27 #define MAPLE_DEVICE_TAG 0x4D41504C
16.28 #define MAPLE_DEVICE(x) ((maple_device_t)x)
16.29
16.30 +/**
16.31 + * Table of functions to be implemented by any maple device.
16.32 + */
16.33 typedef struct maple_device {
16.34 uint32_t _tag;
16.35 unsigned char ident[112];
17.1 --- a/src/mem.h Sun Dec 25 05:57:00 2005 +0000
17.2 +++ b/src/mem.h Sun Dec 25 08:24:11 2005 +0000
17.3 @@ -1,5 +1,24 @@
17.4 -#ifndef dream_sh4_mem_H
17.5 -#define dream_sh4_mem_H
17.6 +/**
17.7 + * $Id: mem.h,v 1.5 2005-12-25 08:24:07 nkeynes Exp $
17.8 + *
17.9 + * mem is responsible for creating and maintaining the overall system memory
17.10 + * map, as visible from the SH4 processor. (Note the ARM has a different map)
17.11 + *
17.12 + * Copyright (c) 2005 Nathan Keynes.
17.13 + *
17.14 + * This program is free software; you can redistribute it and/or modify
17.15 + * it under the terms of the GNU General Public License as published by
17.16 + * the Free Software Foundation; either version 2 of the License, or
17.17 + * (at your option) any later version.
17.18 + *
17.19 + * This program is distributed in the hope that it will be useful,
17.20 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
17.21 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17.22 + * GNU General Public License for more details.
17.23 + */
17.24 +
17.25 +#ifndef dream_mem_H
17.26 +#define dream_mem_H
17.27
17.28 #include <stdint.h>
17.29
18.1 --- a/src/mmio.h Sun Dec 25 05:57:00 2005 +0000
18.2 +++ b/src/mmio.h Sun Dec 25 08:24:11 2005 +0000
18.3 @@ -1,3 +1,21 @@
18.4 +/**
18.5 + * $Id: mmio.h,v 1.2 2005-12-25 08:24:07 nkeynes Exp $
18.6 + *
18.7 + * mmio.h defines a complicated batch of macros used to build up the
18.8 + * memory-mapped I/O regions in a reasonably readable fashion.
18.9 + *
18.10 + * Copyright (c) 2005 Nathan Keynes.
18.11 + *
18.12 + * This program is free software; you can redistribute it and/or modify
18.13 + * it under the terms of the GNU General Public License as published by
18.14 + * the Free Software Foundation; either version 2 of the License, or
18.15 + * (at your option) any later version.
18.16 + *
18.17 + * This program is distributed in the hope that it will be useful,
18.18 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
18.19 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18.20 + * GNU General Public License for more details.
18.21 + */
18.22 #ifndef dream_mmio_H
18.23 #define dream_mmio_H 1
18.24
19.1 --- a/src/pvr2/pvr2.c Sun Dec 25 05:57:00 2005 +0000
19.2 +++ b/src/pvr2/pvr2.c Sun Dec 25 08:24:11 2005 +0000
19.3 @@ -1,3 +1,21 @@
19.4 +/**
19.5 + * $Id: pvr2.c,v 1.9 2005-12-25 08:24:07 nkeynes Exp $
19.6 + *
19.7 + * PVR2 (Video) MMIO and supporting functions.
19.8 + *
19.9 + * Copyright (c) 2005 Nathan Keynes.
19.10 + *
19.11 + * This program is free software; you can redistribute it and/or modify
19.12 + * it under the terms of the GNU General Public License as published by
19.13 + * the Free Software Foundation; either version 2 of the License, or
19.14 + * (at your option) any later version.
19.15 + *
19.16 + * This program is distributed in the hope that it will be useful,
19.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
19.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19.19 + * GNU General Public License for more details.
19.20 + */
19.21 +
19.22 #include "dream.h"
19.23 #include "video.h"
19.24 #include "mem.h"
20.1 --- a/src/pvr2/pvr2.h Sun Dec 25 05:57:00 2005 +0000
20.2 +++ b/src/pvr2/pvr2.h Sun Dec 25 08:24:11 2005 +0000
20.3 @@ -1,3 +1,21 @@
20.4 +/**
20.5 + * $Id: pvr2.h,v 1.3 2005-12-25 08:24:07 nkeynes Exp $
20.6 + *
20.7 + * PVR2 (video chip) MMIO registers and functions.
20.8 + *
20.9 + * Copyright (c) 2005 Nathan Keynes.
20.10 + *
20.11 + * This program is free software; you can redistribute it and/or modify
20.12 + * it under the terms of the GNU General Public License as published by
20.13 + * the Free Software Foundation; either version 2 of the License, or
20.14 + * (at your option) any later version.
20.15 + *
20.16 + * This program is distributed in the hope that it will be useful,
20.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
20.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20.19 + * GNU General Public License for more details.
20.20 + */
20.21 +
20.22 #include "mmio.h"
20.23
20.24 MMIO_REGION_BEGIN( 0x005F8000, PVR2, "Power VR/2" )
21.1 --- a/src/sh4/intc.c Sun Dec 25 05:57:00 2005 +0000
21.2 +++ b/src/sh4/intc.c Sun Dec 25 08:24:11 2005 +0000
21.3 @@ -1,3 +1,21 @@
21.4 +/**
21.5 + * $Id: intc.c,v 1.4 2005-12-25 08:24:11 nkeynes Exp $
21.6 + *
21.7 + * SH4 onboard interrupt controller (INTC) implementation
21.8 + *
21.9 + * Copyright (c) 2005 Nathan Keynes.
21.10 + *
21.11 + * This program is free software; you can redistribute it and/or modify
21.12 + * it under the terms of the GNU General Public License as published by
21.13 + * the Free Software Foundation; either version 2 of the License, or
21.14 + * (at your option) any later version.
21.15 + *
21.16 + * This program is distributed in the hope that it will be useful,
21.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
21.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21.19 + * GNU General Public License for more details.
21.20 + */
21.21 +
21.22 #include <assert.h>
21.23 #include "sh4mmio.h"
21.24 #include "sh4core.h"
22.1 --- a/src/sh4/intc.h Sun Dec 25 05:57:00 2005 +0000
22.2 +++ b/src/sh4/intc.h Sun Dec 25 08:24:11 2005 +0000
22.3 @@ -1,3 +1,21 @@
22.4 +/**
22.5 + * $Id: intc.h,v 1.2 2005-12-25 08:24:11 nkeynes Exp $
22.6 + *
22.7 + * SH4 onboard interrupt controller (INTC) definitions.
22.8 + *
22.9 + * Copyright (c) 2005 Nathan Keynes.
22.10 + *
22.11 + * This program is free software; you can redistribute it and/or modify
22.12 + * it under the terms of the GNU General Public License as published by
22.13 + * the Free Software Foundation; either version 2 of the License, or
22.14 + * (at your option) any later version.
22.15 + *
22.16 + * This program is distributed in the hope that it will be useful,
22.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
22.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22.19 + * GNU General Public License for more details.
22.20 + */
22.21 +
22.22 #ifndef sh4intc_H
22.23 #define sh4intc_H 1
22.24
23.1 --- a/src/util.c Sun Dec 25 05:57:00 2005 +0000
23.2 +++ b/src/util.c Sun Dec 25 08:24:11 2005 +0000
23.3 @@ -1,3 +1,21 @@
23.4 +/**
23.5 + * $Id: util.c,v 1.2 2005-12-25 08:24:07 nkeynes Exp $
23.6 + *
23.7 + * Miscellaneous utility functions.
23.8 + *
23.9 + * Copyright (c) 2005 Nathan Keynes.
23.10 + *
23.11 + * This program is free software; you can redistribute it and/or modify
23.12 + * it under the terms of the GNU General Public License as published by
23.13 + * the Free Software Foundation; either version 2 of the License, or
23.14 + * (at your option) any later version.
23.15 + *
23.16 + * This program is distributed in the hope that it will be useful,
23.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
23.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23.19 + * GNU General Public License for more details.
23.20 + */
23.21 +
23.22 #include "dream.h"
23.23 #include "modules.h"
23.24
24.1 --- a/src/video.c Sun Dec 25 05:57:00 2005 +0000
24.2 +++ b/src/video.c Sun Dec 25 08:24:11 2005 +0000
24.3 @@ -1,3 +1,22 @@
24.4 +/**
24.5 + * $Id: video.c,v 1.2 2005-12-25 08:24:07 nkeynes Exp $
24.6 + *
24.7 + * The PC side of the video support (responsible for actually displaying /
24.8 + * rendering frames)
24.9 + *
24.10 + * Copyright (c) 2005 Nathan Keynes.
24.11 + *
24.12 + * This program is free software; you can redistribute it and/or modify
24.13 + * it under the terms of the GNU General Public License as published by
24.14 + * the Free Software Foundation; either version 2 of the License, or
24.15 + * (at your option) any later version.
24.16 + *
24.17 + * This program is distributed in the hope that it will be useful,
24.18 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
24.19 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24.20 + * GNU General Public License for more details.
24.21 + */
24.22 +
24.23 #include <gnome.h>
24.24
24.25 GdkImage *img;
25.1 --- a/src/video.h Sun Dec 25 05:57:00 2005 +0000
25.2 +++ b/src/video.h Sun Dec 25 08:24:11 2005 +0000
25.3 @@ -1,6 +1,38 @@
25.4 +/**
25.5 + * $Id: video.h,v 1.2 2005-12-25 08:24:07 nkeynes Exp $
25.6 + *
25.7 + * The PC side of the video support (responsible for actually displaying /
25.8 + * rendering frames)
25.9 + *
25.10 + * Copyright (c) 2005 Nathan Keynes.
25.11 + *
25.12 + * This program is free software; you can redistribute it and/or modify
25.13 + * it under the terms of the GNU General Public License as published by
25.14 + * the Free Software Foundation; either version 2 of the License, or
25.15 + * (at your option) any later version.
25.16 + *
25.17 + * This program is distributed in the hope that it will be useful,
25.18 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
25.19 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25.20 + * GNU General Public License for more details.
25.21 + */
25.22 +
25.23 +#ifndef dream_video_H
25.24 +#define dream_video_H
25.25 +
25.26 +#include <stdint.h>
25.27 +
25.28 +#ifdef __cplusplus
25.29 +extern "C" {
25.30 +#endif
25.31
25.32 void video_open( void );
25.33 void video_update_frame( void );
25.34 void video_update_size( int, int, int );
25.35
25.36 extern char *video_data;
25.37 +
25.38 +#ifdef __cplusplus
25.39 +}
25.40 +#endif
25.41 +#endif
.