revision 31:495e480360d7
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 31:495e480360d7 |
parent | 30:89b30313d757 |
child | 32:bf0bc2c524b8 |
author | nkeynes |
date | Sun Dec 25 08:24:11 2005 +0000 (18 years ago) |
Finish adding header blocks to all files
1.1 --- a/src/aica/armmem.c Sun Dec 25 05:57:00 2005 +00001.2 +++ b/src/aica/armmem.c Sun Dec 25 08:24:11 2005 +00001.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 modify1.12 + * it under the terms of the GNU General Public License as published by1.13 + * the Free Software Foundation; either version 2 of the License, or1.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 of1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the1.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 +00002.2 +++ b/src/asic.c Sun Dec 25 08:24:11 2005 +00002.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 modify2.13 + * it under the terms of the GNU General Public License as published by2.14 + * the Free Software Foundation; either version 2 of the License, or2.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 of2.19 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the2.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 +00003.2 +++ b/src/asic.h Sun Dec 25 08:24:11 2005 +00003.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 modify3.14 + * it under the terms of the GNU General Public License as published by3.15 + * the Free Software Foundation; either version 2 of the License, or3.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 of3.20 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the3.21 + * GNU General Public License for more details.3.22 + */3.23 +3.24 #include "mmio.h"3.26 /**
4.1 --- a/src/dream.h Sun Dec 25 05:57:00 2005 +00004.2 +++ b/src/dream.h Sun Dec 25 08:24:11 2005 +00004.3 @@ -1,6 +1,21 @@4.4 -/*4.5 - * Application-wide declarations4.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 modify4.14 + * it under the terms of the GNU General Public License as published by4.15 + * the Free Software Foundation; either version 2 of the License, or4.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 of4.20 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the4.21 + * GNU General Public License for more details.4.22 */4.23 +4.24 #ifndef dream_H4.25 #define dream_H 1
5.1 --- a/src/gdrom/cdi.c Sun Dec 25 05:57:00 2005 +00005.2 +++ b/src/gdrom/cdi.c Sun Dec 25 08:24:11 2005 +00005.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 support5.8 + *5.9 + * Copyright (c) 2005 Nathan Keynes.5.10 + *5.11 + * This program is free software; you can redistribute it and/or modify5.12 + * it under the terms of the GNU General Public License as published by5.13 + * the Free Software Foundation; either version 2 of the License, or5.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 of5.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the5.19 + * GNU General Public License for more details.5.20 + */5.22 #include <stdlib.h>5.23 #include <stdio.h>
6.1 --- a/src/gdrom/cdi.h Sun Dec 25 05:57:00 2005 +00006.2 +++ b/src/gdrom/cdi.h Sun Dec 25 08:24:11 2005 +00006.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 support6.8 + *6.9 + * Copyright (c) 2005 Nathan Keynes.6.10 + *6.11 + * This program is free software; you can redistribute it and/or modify6.12 + * it under the terms of the GNU General Public License as published by6.13 + * the Free Software Foundation; either version 2 of the License, or6.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 of6.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6.19 + * GNU General Public License for more details.6.20 + */6.21 +6.22 #ifndef cdi_H6.23 #define cdi_H 1
7.1 --- a/src/gdrom/ide.c Sun Dec 25 05:57:00 2005 +00007.2 +++ b/src/gdrom/ide.c Sun Dec 25 08:24:11 2005 +00007.3 @@ -1,8 +1,19 @@7.4 -/*7.5 - * ide.c 31 Mar 2004 - IDE Interface implementation7.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 permitted7.10 - * under the terms of the GNU General Public License version 2 or later.7.11 + * IDE interface implementation7.12 + *7.13 + * Copyright (c) 2005 Nathan Keynes.7.14 + *7.15 + * This program is free software; you can redistribute it and/or modify7.16 + * it under the terms of the GNU General Public License as published by7.17 + * the Free Software Foundation; either version 2 of the License, or7.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 of7.22 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the7.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 +00008.2 +++ b/src/gdrom/ide.h Sun Dec 25 08:24:11 2005 +00008.3 @@ -1,15 +1,25 @@8.4 -/*8.5 - * ide.h 31 Mar 2004 - IDE Interface definitions8.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 permitted8.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 IDE8.12 + * port. Note that the register definitions are in asic.h, as the registers8.13 + * fall into the general ASIC ranges (and I don't want to use smaller pages8.14 + * at this stage). The registers here are exactly as per the ATA8.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 into8.19 - * the general ASIC ranges (and I don't want to use smaller pages at this8.20 - * stage). The registers here are exactly as per the ATA specifications, which8.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 modify8.25 + * it under the terms of the GNU General Public License as published by8.26 + * the Free Software Foundation; either version 2 of the License, or8.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 of8.31 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the8.32 + * GNU General Public License for more details.8.33 */8.34 +8.35 #ifndef dream_ide_H8.36 #define dream_ide_H 1
9.1 --- a/src/gui/callbacks.h Sun Dec 25 05:57:00 2005 +00009.2 +++ b/src/gui/callbacks.h Sun Dec 25 08:24:11 2005 +00009.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 modify9.12 + * it under the terms of the GNU General Public License as published by9.13 + * the Free Software Foundation; either version 2 of the License, or9.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 of9.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9.19 + * GNU General Public License for more details.9.20 + */9.21 #include <gnome.h>9.23 -9.24 void9.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 +000010.2 +++ b/src/gui/dump_win.c Sun Dec 25 08:24:11 2005 +000010.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 modify10.12 + * it under the terms of the GNU General Public License as published by10.13 + * the Free Software Foundation; either version 2 of the License, or10.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 of10.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the10.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 +000011.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +000011.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 +000012.2 +++ b/src/gui/mmio_win.c Sun Dec 25 08:24:11 2005 +000012.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 window12.8 + *12.9 + * Copyright (c) 2005 Nathan Keynes.12.10 + *12.11 + * This program is free software; you can redistribute it and/or modify12.12 + * it under the terms of the GNU General Public License as published by12.13 + * the Free Software Foundation; either version 2 of the License, or12.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 of12.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12.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 +000013.2 +++ b/src/maple/controller.c Sun Dec 25 08:24:11 2005 +000013.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 controller13.8 + *13.9 + * Copyright (c) 2005 Nathan Keynes.13.10 + *13.11 + * This program is free software; you can redistribute it and/or modify13.12 + * it under the terms of the GNU General Public License as published by13.13 + * the Free Software Foundation; either version 2 of the License, or13.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 of13.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13.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 +000014.2 +++ b/src/maple/controller.h Sun Dec 25 08:24:11 2005 +000014.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 device14.8 + *14.9 + * Copyright (c) 2005 Nathan Keynes.14.10 + *14.11 + * This program is free software; you can redistribute it and/or modify14.12 + * it under the terms of the GNU General Public License as published by14.13 + * the Free Software Foundation; either version 2 of the License, or14.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 of14.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the14.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 +000015.2 +++ b/src/maple/maple.c Sun Dec 25 08:24:11 2005 +000015.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 modify15.12 + * it under the terms of the GNU General Public License as published by15.13 + * the Free Software Foundation; either version 2 of the License, or15.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 of15.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15.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 +000016.2 +++ b/src/maple/maple.h Sun Dec 25 08:24:11 2005 +000016.3 @@ -1,6 +1,21 @@16.4 /**16.5 - * Maple bus routines16.6 + * $Id: maple.h,v 1.4 2005-12-25 08:24:11 nkeynes Exp $16.7 + *16.8 + * Maple bus definitions16.9 + *16.10 + * Copyright (c) 2005 Nathan Keynes.16.11 + *16.12 + * This program is free software; you can redistribute it and/or modify16.13 + * it under the terms of the GNU General Public License as published by16.14 + * the Free Software Foundation; either version 2 of the License, or16.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 of16.19 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the16.20 + * GNU General Public License for more details.16.21 */16.22 +16.23 #ifndef dream_maple_H16.24 #define dream_maple_H 116.26 @@ -37,6 +52,9 @@16.27 #define MAPLE_DEVICE_TAG 0x4D41504C16.28 #define MAPLE_DEVICE(x) ((maple_device_t)x)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 +000017.2 +++ b/src/mem.h Sun Dec 25 08:24:11 2005 +000017.3 @@ -1,5 +1,24 @@17.4 -#ifndef dream_sh4_mem_H17.5 -#define dream_sh4_mem_H17.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 memory17.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 modify17.15 + * it under the terms of the GNU General Public License as published by17.16 + * the Free Software Foundation; either version 2 of the License, or17.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 of17.21 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the17.22 + * GNU General Public License for more details.17.23 + */17.24 +17.25 +#ifndef dream_mem_H17.26 +#define dream_mem_H17.28 #include <stdint.h>
18.1 --- a/src/mmio.h Sun Dec 25 05:57:00 2005 +000018.2 +++ b/src/mmio.h Sun Dec 25 08:24:11 2005 +000018.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 the18.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 modify18.13 + * it under the terms of the GNU General Public License as published by18.14 + * the Free Software Foundation; either version 2 of the License, or18.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 of18.19 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the18.20 + * GNU General Public License for more details.18.21 + */18.22 #ifndef dream_mmio_H18.23 #define dream_mmio_H 1
19.1 --- a/src/pvr2/pvr2.c Sun Dec 25 05:57:00 2005 +000019.2 +++ b/src/pvr2/pvr2.c Sun Dec 25 08:24:11 2005 +000019.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 modify19.12 + * it under the terms of the GNU General Public License as published by19.13 + * the Free Software Foundation; either version 2 of the License, or19.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 of19.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the19.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 +000020.2 +++ b/src/pvr2/pvr2.h Sun Dec 25 08:24:11 2005 +000020.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 modify20.12 + * it under the terms of the GNU General Public License as published by20.13 + * the Free Software Foundation; either version 2 of the License, or20.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 of20.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the20.19 + * GNU General Public License for more details.20.20 + */20.21 +20.22 #include "mmio.h"20.24 MMIO_REGION_BEGIN( 0x005F8000, PVR2, "Power VR/2" )
21.1 --- a/src/sh4/intc.c Sun Dec 25 05:57:00 2005 +000021.2 +++ b/src/sh4/intc.c Sun Dec 25 08:24:11 2005 +000021.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) implementation21.8 + *21.9 + * Copyright (c) 2005 Nathan Keynes.21.10 + *21.11 + * This program is free software; you can redistribute it and/or modify21.12 + * it under the terms of the GNU General Public License as published by21.13 + * the Free Software Foundation; either version 2 of the License, or21.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 of21.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the21.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 +000022.2 +++ b/src/sh4/intc.h Sun Dec 25 08:24:11 2005 +000022.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 modify22.12 + * it under the terms of the GNU General Public License as published by22.13 + * the Free Software Foundation; either version 2 of the License, or22.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 of22.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the22.19 + * GNU General Public License for more details.22.20 + */22.21 +22.22 #ifndef sh4intc_H22.23 #define sh4intc_H 1
23.1 --- a/src/util.c Sun Dec 25 05:57:00 2005 +000023.2 +++ b/src/util.c Sun Dec 25 08:24:11 2005 +000023.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 modify23.12 + * it under the terms of the GNU General Public License as published by23.13 + * the Free Software Foundation; either version 2 of the License, or23.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 of23.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the23.19 + * GNU General Public License for more details.23.20 + */23.21 +23.22 #include "dream.h"23.23 #include "modules.h"
24.1 --- a/src/video.c Sun Dec 25 05:57:00 2005 +000024.2 +++ b/src/video.c Sun Dec 25 08:24:11 2005 +000024.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 modify24.13 + * it under the terms of the GNU General Public License as published by24.14 + * the Free Software Foundation; either version 2 of the License, or24.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 of24.19 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the24.20 + * GNU General Public License for more details.24.21 + */24.22 +24.23 #include <gnome.h>24.25 GdkImage *img;
25.1 --- a/src/video.h Sun Dec 25 05:57:00 2005 +000025.2 +++ b/src/video.h Sun Dec 25 08:24:11 2005 +000025.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 modify25.13 + * it under the terms of the GNU General Public License as published by25.14 + * the Free Software Foundation; either version 2 of the License, or25.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 of25.19 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the25.20 + * GNU General Public License for more details.25.21 + */25.22 +25.23 +#ifndef dream_video_H25.24 +#define dream_video_H25.25 +25.26 +#include <stdint.h>25.27 +25.28 +#ifdef __cplusplus25.29 +extern "C" {25.30 +#endif25.32 void video_open( void );25.33 void video_update_frame( void );25.34 void video_update_size( int, int, int );25.36 extern char *video_data;25.37 +25.38 +#ifdef __cplusplus25.39 +}25.40 +#endif25.41 +#endif
.