1
0
Fork 0
forked from Miroirs/x49gp

merge includes into src/

This commit is contained in:
Gwenhael Le Moine 2024-10-22 19:36:18 +02:00
parent 091ade6258
commit 8e05de8737
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
49 changed files with 989 additions and 985 deletions

View file

@ -80,7 +80,7 @@ QEMU_INC=-I$(QEMU_INCDIR)/target-arm \
-I$(QEMU_INCDIR)/fpu \ -I$(QEMU_INCDIR)/fpu \
-I$(QEMU_INCDIR)/arm-softmmu -I$(QEMU_INCDIR)/arm-softmmu
X49GP_INCLUDES = -I./src/include \ X49GP_INCLUDES = -I./src \
-I./src/bitmaps $(QEMU_INC) -I./src/bitmaps $(QEMU_INC)
INCLUDES = $(GDB_INCLUDES) $(X49GP_INCLUDES) INCLUDES = $(GDB_INCLUDES) $(X49GP_INCLUDES)

21
src/bitmaps.h Normal file
View file

@ -0,0 +1,21 @@
/* $Id: bitmaps.h,v 1.9 2008/12/11 12:18:17 ecd Exp $
*/
#ifndef _X49GP_BITMAPS_H
#define _X49GP_BITMAPS_H 1
#include "bitmaps/ann_left.xbm"
#include "bitmaps/ann_right.xbm"
#include "bitmaps/ann_alpha.xbm"
#include "bitmaps/ann_battery.xbm"
#include "bitmaps/ann_busy.xbm"
#include "bitmaps/ann_io.xbm"
#include "bitmaps/button_tiny.xbm"
#include "bitmaps/button_small.xbm"
#include "bitmaps/button_normal.xbm"
#include "bitmaps/button_large.xbm"
#include "bitmaps/button_round.xbm"
#include "bitmaps/button_round.pix"
#endif /* !(_X49GP_BITMAPS_H) */

View file

@ -22,8 +22,8 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu-git/qemu-common.h" #include "qemu-git/qemu-common.h"
#include "include/block.h" #include "block.h"
#include "include/block_int.h" #include "block_int.h"
#include <zlib.h> #include <zlib.h>
#if 0 #if 0
#include "aes.h" #include "aes.h"

View file

@ -22,8 +22,8 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu-git/qemu-common.h" #include "qemu-git/qemu-common.h"
#include "include/block.h" #include "block.h"
#include "include/block_int.h" #include "block_int.h"
#include <assert.h> #include <assert.h>
#ifndef _WIN32 #ifndef _WIN32

View file

@ -9,8 +9,8 @@
#include <sys/stat.h> #include <sys/stat.h>
#include "qemu-git/qemu-common.h" #include "qemu-git/qemu-common.h"
#include "include/block.h" #include "block.h"
#include "include/block_int.h" #include "block_int.h"
#define SECTOR_BITS 9 #define SECTOR_BITS 9
#define SECTOR_SIZE (1 << SECTOR_BITS) #define SECTOR_SIZE (1 << SECTOR_BITS)

View file

@ -24,6 +24,9 @@
#ifndef BLOCK_INT_H #ifndef BLOCK_INT_H
#define BLOCK_INT_H #define BLOCK_INT_H
# include "qemu-git/qemu-common.h"
# include "block.h"
struct BlockDriver { struct BlockDriver {
const char *format_name; const char *format_name;
int instance_size; int instance_size;

View file

@ -15,9 +15,9 @@
#include <glib.h> #include <glib.h>
#include <cairo.h> #include <cairo.h>
#include "include/x49gp.h" #include "x49gp.h"
#include "include/x49gp_ui.h" #include "x49gp_ui.h"
#include "include/byteorder.h" #include "byteorder.h"
#define FLASH_STATE_NORMAL 0 #define FLASH_STATE_NORMAL 0

View file

@ -29,7 +29,7 @@
#include <netinet/in.h> #include <netinet/in.h>
#include <netinet/tcp.h> #include <netinet/tcp.h>
#include "include/x49gp.h" #include "x49gp.h"
#include "gdbstub.h" #include "gdbstub.h"
#define MAX_PACKET_LENGTH 4096 #define MAX_PACKET_LENGTH 4096

View file

@ -1,21 +0,0 @@
/* $Id: bitmaps.h,v 1.9 2008/12/11 12:18:17 ecd Exp $
*/
#ifndef _X49GP_BITMAPS_H
#define _X49GP_BITMAPS_H 1
#include <ann_left.xbm>
#include <ann_right.xbm>
#include <ann_alpha.xbm>
#include <ann_battery.xbm>
#include <ann_busy.xbm>
#include <ann_io.xbm>
#include <button_tiny.xbm>
#include <button_small.xbm>
#include <button_normal.xbm>
#include <button_large.xbm>
#include <button_round.xbm>
#include <button_round.pix>
#endif /* !(_X49GP_BITMAPS_H) */

View file

@ -17,12 +17,12 @@
#include <memory.h> #include <memory.h>
#include "include/x49gp.h" #include "x49gp.h"
#include "include/x49gp_ui.h" #include "x49gp_ui.h"
#include "include/s3c2410.h" #include "s3c2410.h"
#include "include/s3c2410_power.h" #include "s3c2410_power.h"
#include "include/s3c2410_timer.h" #include "s3c2410_timer.h"
#include "include/x49gp_timer.h" #include "x49gp_timer.h"
#include "gdbstub.h" #include "gdbstub.h"

View file

@ -9,7 +9,7 @@
#include <sys/mman.h> #include <sys/mman.h>
#include <errno.h> #include <errno.h>
#include "include/x49gp.h" #include "x49gp.h"
int int
x49gp_modules_init(x49gp_t *x49gp) x49gp_modules_init(x49gp_t *x49gp)

View file

@ -10,8 +10,8 @@
#include <sys/times.h> #include <sys/times.h>
#include <errno.h> #include <errno.h>
#include "include/x49gp.h" #include "x49gp.h"
#include "include/s3c2410.h" #include "s3c2410.h"
/* /*
* Boot SRAM: 0x40000000 * Boot SRAM: 0x40000000

View file

@ -4,7 +4,7 @@
#ifndef _X49GP_S3C2410_H #ifndef _X49GP_S3C2410_H
#define _X49GP_S3C2410_H 1 #define _X49GP_S3C2410_H 1
#include <x49gp_types.h> #include "x49gp_types.h"
typedef struct { typedef struct {
const char *name; const char *name;

View file

@ -9,8 +9,8 @@
#include <sys/mman.h> #include <sys/mman.h>
#include <errno.h> #include <errno.h>
#include "include/x49gp.h" #include "x49gp.h"
#include "include/s3c2410.h" #include "s3c2410.h"
typedef struct { typedef struct {

View file

@ -10,8 +10,8 @@
#include "qemu-git/target-arm/cpu.h" #include "qemu-git/target-arm/cpu.h"
#include "include/x49gp.h" #include "x49gp.h"
#include "include/s3c2410.h" #include "s3c2410.h"
#include "qemu-git/cpu-all.h" #include "qemu-git/cpu-all.h"

View file

@ -7,11 +7,11 @@
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include "include/x49gp.h" #include "x49gp.h"
#include "include/s3c2410.h" #include "s3c2410.h"
#include "include/s3c2410_intc.h" #include "s3c2410_intc.h"
#include "include/s3c2410_power.h" #include "s3c2410_power.h"
#include "include/byteorder.h" #include "byteorder.h"
extern int do_trace; extern int do_trace;

View file

@ -7,10 +7,10 @@
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include "include/x49gp.h" #include "x49gp.h"
#include "include/s3c2410.h" #include "s3c2410.h"
#include "include/s3c2410_intc.h" #include "s3c2410_intc.h"
#include "include/byteorder.h" #include "byteorder.h"
typedef struct { typedef struct {

View file

@ -11,9 +11,9 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include "include/x49gp.h" #include "x49gp.h"
#include "include/x49gp_ui.h" #include "x49gp_ui.h"
#include "include/s3c2410.h" #include "s3c2410.h"
typedef struct { typedef struct {

View file

@ -9,8 +9,8 @@
#include <sys/mman.h> #include <sys/mman.h>
#include <errno.h> #include <errno.h>
#include "include/x49gp.h" #include "x49gp.h"
#include "include/s3c2410.h" #include "s3c2410.h"
typedef struct { typedef struct {

View file

@ -9,8 +9,8 @@
#include <sys/mman.h> #include <sys/mman.h>
#include <errno.h> #include <errno.h>
#include "include/x49gp.h" #include "x49gp.h"
#include "include/s3c2410.h" #include "s3c2410.h"
typedef struct { typedef struct {

View file

@ -9,9 +9,9 @@
#include <sys/mman.h> #include <sys/mman.h>
#include <errno.h> #include <errno.h>
#include "include/x49gp.h" #include "x49gp.h"
#include "include/s3c2410.h" #include "s3c2410.h"
#include "include/s3c2410_power.h" #include "s3c2410_power.h"
static const uint32_t EXTCLK = 12000000; static const uint32_t EXTCLK = 12000000;

View file

@ -10,9 +10,9 @@
#include <time.h> #include <time.h>
#include <errno.h> #include <errno.h>
#include "include/x49gp.h" #include "x49gp.h"
#include "include/s3c2410.h" #include "s3c2410.h"
#include "include/s3c2410_intc.h" #include "s3c2410_intc.h"
typedef struct { typedef struct {

View file

@ -10,10 +10,10 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <errno.h> #include <errno.h>
#include "include/x49gp.h" #include "x49gp.h"
#include "include/s3c2410.h" #include "s3c2410.h"
#include "include/block.h" #include "block.h"
//#define DEBUG_S3C2410_SDI 1 //#define DEBUG_S3C2410_SDI 1

View file

@ -9,9 +9,9 @@
#include <sys/mman.h> #include <sys/mman.h>
#include <errno.h> #include <errno.h>
#include "include/x49gp.h" #include "x49gp.h"
#include "include/s3c2410.h" #include "s3c2410.h"
#include "include/s3c2410_intc.h" #include "s3c2410_intc.h"
typedef struct { typedef struct {

View file

@ -9,9 +9,9 @@
#include <sys/mman.h> #include <sys/mman.h>
#include <errno.h> #include <errno.h>
#include "include/x49gp.h" #include "x49gp.h"
#include "include/s3c2410.h" #include "s3c2410.h"
#include "include/byteorder.h" #include "byteorder.h"
typedef struct { typedef struct {
void *data; void *data;

View file

@ -9,10 +9,10 @@
#include <sys/mman.h> #include <sys/mman.h>
#include <errno.h> #include <errno.h>
#include "include/x49gp.h" #include "x49gp.h"
#include "include/s3c2410.h" #include "s3c2410.h"
#include "include/s3c2410_timer.h" #include "s3c2410_timer.h"
#include "include/s3c2410_intc.h" #include "s3c2410_intc.h"
typedef struct { typedef struct {

View file

@ -4,7 +4,7 @@
#ifndef _S3C2410_TIMER_H #ifndef _S3C2410_TIMER_H
#define _S3C2410_TIMER_H 1 #define _S3C2410_TIMER_H 1
#include <x49gp_types.h> #include "x49gp_types.h"
#define TCFG0_DEAD_SHIFT 16 #define TCFG0_DEAD_SHIFT 16
#define TCFG0_DEAD_MASK 0xff #define TCFG0_DEAD_MASK 0xff

View file

@ -9,9 +9,9 @@
#include <sys/mman.h> #include <sys/mman.h>
#include <errno.h> #include <errno.h>
#include "include/x49gp.h" #include "x49gp.h"
#include "include/s3c2410.h" #include "s3c2410.h"
#include "include/s3c2410_intc.h" #include "s3c2410_intc.h"
typedef struct { typedef struct {

View file

@ -9,8 +9,8 @@
#include <sys/mman.h> #include <sys/mman.h>
#include <errno.h> #include <errno.h>
#include "include/x49gp.h" #include "x49gp.h"
#include "include/s3c2410.h" #include "s3c2410.h"
typedef struct { typedef struct {

View file

@ -9,9 +9,9 @@
#include <sys/mman.h> #include <sys/mman.h>
#include <errno.h> #include <errno.h>
#include "include/x49gp.h" #include "x49gp.h"
#include "include/s3c2410.h" #include "s3c2410.h"
#include "include/s3c2410_intc.h" #include "s3c2410_intc.h"
typedef struct { typedef struct {

View file

@ -11,10 +11,10 @@
#include <memory.h> #include <memory.h>
#include "include/x49gp.h" #include "x49gp.h"
#include "include/byteorder.h" #include "byteorder.h"
#include "include/saturn.h" #include "saturn.h"
typedef struct { typedef struct {
void *data; void *data;

View file

@ -7,7 +7,7 @@
#include <glib.h> #include <glib.h>
#include <cairo.h> #include <cairo.h>
#include "include/symbol.h" #include "symbol.h"
static const cairo_path_data_t symbol_square_path_data[] = static const cairo_path_data_t symbol_square_path_data[] =
{ {

View file

@ -16,9 +16,9 @@
#include <glib.h> #include <glib.h>
#include "include/x49gp.h" #include "x49gp.h"
#include "include/x49gp_timer.h" #include "x49gp_timer.h"
#include "include/s3c2410.h" #include "s3c2410.h"
#include "gdbstub.h" #include "gdbstub.h"

View file

@ -3,7 +3,7 @@
#include <stdlib.h> #include <stdlib.h>
#include "include/bitmap_font.h" #include "bitmap_font.h"
#include "bitmaps/tiny_notdef.xbm" #include "bitmaps/tiny_notdef.xbm"

View file

@ -18,13 +18,13 @@
#include <cairo.h> #include <cairo.h>
#include <gdk/gdkkeysyms.h> #include <gdk/gdkkeysyms.h>
#include "include/x49gp.h" #include "x49gp.h"
#include "include/x49gp_ui.h" #include "x49gp_ui.h"
#include "include/s3c2410.h" #include "s3c2410.h"
#include "include/bitmaps.h" #include "bitmaps.h"
#include "include/bitmap_font.h" #include "bitmap_font.h"
#include "include/symbol.h" #include "symbol.h"
#include "include/glyphname.h" #include "glyphname.h"
#include "gdbstub.h" #include "gdbstub.h"
@ -3523,9 +3523,8 @@ int x49gp_ui_init( x49gp_t* x49gp )
{ {
x49gp_module_t* module; x49gp_module_t* module;
if ( x49gp_module_init( x49gp, "gui", gui_init, gui_exit, gui_reset, gui_load, gui_save, NULL, &module ) ) { if ( x49gp_module_init( x49gp, "gui", gui_init, gui_exit, gui_reset, gui_load, gui_save, NULL, &module ) )
return -1; return -1;
}
return x49gp_module_register( module ); return x49gp_module_register( module );
} }

View file

@ -10,13 +10,14 @@
#include <glib.h> #include <glib.h>
#include <cpu.h>
#include <x49gp_types.h>
#include <x49gp_timer.h>
#include <s3c2410_mmu.h>
#include <memory.h> #include <memory.h>
#include <list.h>
#include "qemu-git/target-arm/cpu.h"
#include "x49gp_types.h"
#include "x49gp_timer.h"
#include "s3c2410_mmu.h"
#include "list.h"
/* LD TEMPO HACK */ /* LD TEMPO HACK */
extern uint8_t *phys_ram_base; extern uint8_t *phys_ram_base;

View file

@ -5,7 +5,8 @@
#define _X49GP_TIMER_H 1 #define _X49GP_TIMER_H 1
#include <time.h> #include <time.h>
#include <list.h>
#include "list.h"
#define X49GP_TIMER_VIRTUAL 0 #define X49GP_TIMER_VIRTUAL 0
#define X49GP_TIMER_REALTIME 1 #define X49GP_TIMER_REALTIME 1

View file

@ -4,7 +4,7 @@
#ifndef _X49GP_UI_H #ifndef _X49GP_UI_H
#define _X49GP_UI_H 1 #define _X49GP_UI_H 1
#include <x49gp_types.h> #include "x49gp_types.h"
typedef enum { typedef enum {
UI_COLOR_BLACK = 0, UI_COLOR_BLACK = 0,