mirror of
https://github.com/gwenhael-le-moine/x49gp.git
synced 2024-12-25 21:58:49 +01:00
merge includes into src/
This commit is contained in:
parent
091ade6258
commit
8e05de8737
49 changed files with 989 additions and 985 deletions
2
Makefile
2
Makefile
|
@ -80,7 +80,7 @@ QEMU_INC=-I$(QEMU_INCDIR)/target-arm \
|
|||
-I$(QEMU_INCDIR)/fpu \
|
||||
-I$(QEMU_INCDIR)/arm-softmmu
|
||||
|
||||
X49GP_INCLUDES = -I./src/include \
|
||||
X49GP_INCLUDES = -I./src \
|
||||
-I./src/bitmaps $(QEMU_INC)
|
||||
|
||||
INCLUDES = $(GDB_INCLUDES) $(X49GP_INCLUDES)
|
||||
|
|
21
src/bitmaps.h
Normal file
21
src/bitmaps.h
Normal 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) */
|
|
@ -22,8 +22,8 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
#include "qemu-git/qemu-common.h"
|
||||
#include "include/block.h"
|
||||
#include "include/block_int.h"
|
||||
#include "block.h"
|
||||
#include "block_int.h"
|
||||
#include <zlib.h>
|
||||
#if 0
|
||||
#include "aes.h"
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
#include "qemu-git/qemu-common.h"
|
||||
#include "include/block.h"
|
||||
#include "include/block_int.h"
|
||||
#include "block.h"
|
||||
#include "block_int.h"
|
||||
#include <assert.h>
|
||||
#ifndef _WIN32
|
||||
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
#include <sys/stat.h>
|
||||
|
||||
#include "qemu-git/qemu-common.h"
|
||||
#include "include/block.h"
|
||||
#include "include/block_int.h"
|
||||
#include "block.h"
|
||||
#include "block_int.h"
|
||||
|
||||
#define SECTOR_BITS 9
|
||||
#define SECTOR_SIZE (1 << SECTOR_BITS)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* QEMU System Emulator block driver
|
||||
*
|
||||
*
|
||||
* Copyright (c) 2003 Fabrice Bellard
|
||||
*
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
|
@ -24,17 +24,20 @@
|
|||
#ifndef BLOCK_INT_H
|
||||
#define BLOCK_INT_H
|
||||
|
||||
# include "qemu-git/qemu-common.h"
|
||||
# include "block.h"
|
||||
|
||||
struct BlockDriver {
|
||||
const char *format_name;
|
||||
int instance_size;
|
||||
int (*bdrv_probe)(const uint8_t *buf, int buf_size, const char *filename);
|
||||
int (*bdrv_open)(BlockDriverState *bs, const char *filename, int flags);
|
||||
int (*bdrv_read)(BlockDriverState *bs, int64_t sector_num,
|
||||
int (*bdrv_read)(BlockDriverState *bs, int64_t sector_num,
|
||||
uint8_t *buf, int nb_sectors);
|
||||
int (*bdrv_write)(BlockDriverState *bs, int64_t sector_num,
|
||||
int (*bdrv_write)(BlockDriverState *bs, int64_t sector_num,
|
||||
const uint8_t *buf, int nb_sectors);
|
||||
void (*bdrv_close)(BlockDriverState *bs);
|
||||
int (*bdrv_create)(const char *filename, int64_t total_sectors,
|
||||
int (*bdrv_create)(const char *filename, int64_t total_sectors,
|
||||
const char *backing_file, int flags);
|
||||
void (*bdrv_flush)(BlockDriverState *bs);
|
||||
int (*bdrv_is_allocated)(BlockDriverState *bs, int64_t sector_num,
|
||||
|
@ -43,13 +46,13 @@ struct BlockDriver {
|
|||
int (*bdrv_make_empty)(BlockDriverState *bs);
|
||||
|
||||
const char *protocol_name;
|
||||
int (*bdrv_pread)(BlockDriverState *bs, int64_t offset,
|
||||
int (*bdrv_pread)(BlockDriverState *bs, int64_t offset,
|
||||
uint8_t *buf, int count);
|
||||
int (*bdrv_pwrite)(BlockDriverState *bs, int64_t offset,
|
||||
int (*bdrv_pwrite)(BlockDriverState *bs, int64_t offset,
|
||||
const uint8_t *buf, int count);
|
||||
int (*bdrv_truncate)(BlockDriverState *bs, int64_t offset);
|
||||
int64_t (*bdrv_getlength)(BlockDriverState *bs);
|
||||
int (*bdrv_write_compressed)(BlockDriverState *bs, int64_t sector_num,
|
||||
int (*bdrv_write_compressed)(BlockDriverState *bs, int64_t sector_num,
|
||||
const uint8_t *buf, int nb_sectors);
|
||||
|
||||
int (*bdrv_get_info)(BlockDriverState *bs, BlockDriverInfo *bdi);
|
||||
|
@ -59,7 +62,7 @@ struct BlockDriver {
|
|||
int (*bdrv_media_changed)(BlockDriverState *bs);
|
||||
int (*bdrv_eject)(BlockDriverState *bs, int eject_flag);
|
||||
int (*bdrv_set_locked)(BlockDriverState *bs, int locked);
|
||||
|
||||
|
||||
struct BlockDriver *next;
|
||||
};
|
||||
|
||||
|
@ -90,7 +93,7 @@ struct BlockDriverState {
|
|||
/* async read/write emulation */
|
||||
|
||||
void *sync_aiocb;
|
||||
|
||||
|
||||
/* NOTE: the following infos are only hints for real hardware
|
||||
drivers. They are not used by the block driver */
|
||||
int cyls, heads, secs, translation;
|
|
@ -15,9 +15,9 @@
|
|||
#include <glib.h>
|
||||
#include <cairo.h>
|
||||
|
||||
#include "include/x49gp.h"
|
||||
#include "include/x49gp_ui.h"
|
||||
#include "include/byteorder.h"
|
||||
#include "x49gp.h"
|
||||
#include "x49gp_ui.h"
|
||||
#include "byteorder.h"
|
||||
|
||||
#define FLASH_STATE_NORMAL 0
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include <netinet/in.h>
|
||||
#include <netinet/tcp.h>
|
||||
|
||||
#include "include/x49gp.h"
|
||||
#include "x49gp.h"
|
||||
#include "gdbstub.h"
|
||||
|
||||
#define MAX_PACKET_LENGTH 4096
|
||||
|
|
|
@ -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) */
|
12
src/main.c
12
src/main.c
|
@ -17,12 +17,12 @@
|
|||
|
||||
#include <memory.h>
|
||||
|
||||
#include "include/x49gp.h"
|
||||
#include "include/x49gp_ui.h"
|
||||
#include "include/s3c2410.h"
|
||||
#include "include/s3c2410_power.h"
|
||||
#include "include/s3c2410_timer.h"
|
||||
#include "include/x49gp_timer.h"
|
||||
#include "x49gp.h"
|
||||
#include "x49gp_ui.h"
|
||||
#include "s3c2410.h"
|
||||
#include "s3c2410_power.h"
|
||||
#include "s3c2410_timer.h"
|
||||
#include "x49gp_timer.h"
|
||||
|
||||
#include "gdbstub.h"
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <sys/mman.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "include/x49gp.h"
|
||||
#include "x49gp.h"
|
||||
|
||||
int
|
||||
x49gp_modules_init(x49gp_t *x49gp)
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
#include <sys/times.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "include/x49gp.h"
|
||||
#include "include/s3c2410.h"
|
||||
#include "x49gp.h"
|
||||
#include "s3c2410.h"
|
||||
|
||||
/*
|
||||
* Boot SRAM: 0x40000000
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#ifndef _X49GP_S3C2410_H
|
||||
#define _X49GP_S3C2410_H 1
|
||||
|
||||
#include <x49gp_types.h>
|
||||
#include "x49gp_types.h"
|
||||
|
||||
typedef struct {
|
||||
const char *name;
|
|
@ -9,8 +9,8 @@
|
|||
#include <sys/mman.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "include/x49gp.h"
|
||||
#include "include/s3c2410.h"
|
||||
#include "x49gp.h"
|
||||
#include "s3c2410.h"
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
|
||||
#include "qemu-git/target-arm/cpu.h"
|
||||
|
||||
#include "include/x49gp.h"
|
||||
#include "include/s3c2410.h"
|
||||
#include "x49gp.h"
|
||||
#include "s3c2410.h"
|
||||
|
||||
#include "qemu-git/cpu-all.h"
|
||||
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "include/x49gp.h"
|
||||
#include "include/s3c2410.h"
|
||||
#include "include/s3c2410_intc.h"
|
||||
#include "include/s3c2410_power.h"
|
||||
#include "include/byteorder.h"
|
||||
#include "x49gp.h"
|
||||
#include "s3c2410.h"
|
||||
#include "s3c2410_intc.h"
|
||||
#include "s3c2410_power.h"
|
||||
#include "byteorder.h"
|
||||
|
||||
extern int do_trace;
|
||||
|
||||
|
|
|
@ -7,10 +7,10 @@
|
|||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "include/x49gp.h"
|
||||
#include "include/s3c2410.h"
|
||||
#include "include/s3c2410_intc.h"
|
||||
#include "include/byteorder.h"
|
||||
#include "x49gp.h"
|
||||
#include "s3c2410.h"
|
||||
#include "s3c2410_intc.h"
|
||||
#include "byteorder.h"
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "include/x49gp.h"
|
||||
#include "include/x49gp_ui.h"
|
||||
#include "include/s3c2410.h"
|
||||
#include "x49gp.h"
|
||||
#include "x49gp_ui.h"
|
||||
#include "s3c2410.h"
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
#include <sys/mman.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "include/x49gp.h"
|
||||
#include "include/s3c2410.h"
|
||||
#include "x49gp.h"
|
||||
#include "s3c2410.h"
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
#include <sys/mman.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "include/x49gp.h"
|
||||
#include "include/s3c2410.h"
|
||||
#include "x49gp.h"
|
||||
#include "s3c2410.h"
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
#include <sys/mman.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "include/x49gp.h"
|
||||
#include "include/s3c2410.h"
|
||||
#include "include/s3c2410_power.h"
|
||||
#include "x49gp.h"
|
||||
#include "s3c2410.h"
|
||||
#include "s3c2410_power.h"
|
||||
|
||||
static const uint32_t EXTCLK = 12000000;
|
||||
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
#include <time.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "include/x49gp.h"
|
||||
#include "include/s3c2410.h"
|
||||
#include "include/s3c2410_intc.h"
|
||||
#include "x49gp.h"
|
||||
#include "s3c2410.h"
|
||||
#include "s3c2410_intc.h"
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
#include <sys/stat.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "include/x49gp.h"
|
||||
#include "include/s3c2410.h"
|
||||
#include "x49gp.h"
|
||||
#include "s3c2410.h"
|
||||
|
||||
#include "include/block.h"
|
||||
#include "block.h"
|
||||
|
||||
//#define DEBUG_S3C2410_SDI 1
|
||||
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
#include <sys/mman.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "include/x49gp.h"
|
||||
#include "include/s3c2410.h"
|
||||
#include "include/s3c2410_intc.h"
|
||||
#include "x49gp.h"
|
||||
#include "s3c2410.h"
|
||||
#include "s3c2410_intc.h"
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
#include <sys/mman.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "include/x49gp.h"
|
||||
#include "include/s3c2410.h"
|
||||
#include "include/byteorder.h"
|
||||
#include "x49gp.h"
|
||||
#include "s3c2410.h"
|
||||
#include "byteorder.h"
|
||||
|
||||
typedef struct {
|
||||
void *data;
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
#include <sys/mman.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "include/x49gp.h"
|
||||
#include "include/s3c2410.h"
|
||||
#include "include/s3c2410_timer.h"
|
||||
#include "include/s3c2410_intc.h"
|
||||
#include "x49gp.h"
|
||||
#include "s3c2410.h"
|
||||
#include "s3c2410_timer.h"
|
||||
#include "s3c2410_intc.h"
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#ifndef _S3C2410_TIMER_H
|
||||
#define _S3C2410_TIMER_H 1
|
||||
|
||||
#include <x49gp_types.h>
|
||||
#include "x49gp_types.h"
|
||||
|
||||
#define TCFG0_DEAD_SHIFT 16
|
||||
#define TCFG0_DEAD_MASK 0xff
|
|
@ -9,9 +9,9 @@
|
|||
#include <sys/mman.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "include/x49gp.h"
|
||||
#include "include/s3c2410.h"
|
||||
#include "include/s3c2410_intc.h"
|
||||
#include "x49gp.h"
|
||||
#include "s3c2410.h"
|
||||
#include "s3c2410_intc.h"
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
#include <sys/mman.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "include/x49gp.h"
|
||||
#include "include/s3c2410.h"
|
||||
#include "x49gp.h"
|
||||
#include "s3c2410.h"
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
#include <sys/mman.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "include/x49gp.h"
|
||||
#include "include/s3c2410.h"
|
||||
#include "include/s3c2410_intc.h"
|
||||
#include "x49gp.h"
|
||||
#include "s3c2410.h"
|
||||
#include "s3c2410_intc.h"
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -11,10 +11,10 @@
|
|||
|
||||
#include <memory.h>
|
||||
|
||||
#include "include/x49gp.h"
|
||||
#include "include/byteorder.h"
|
||||
#include "x49gp.h"
|
||||
#include "byteorder.h"
|
||||
|
||||
#include "include/saturn.h"
|
||||
#include "saturn.h"
|
||||
|
||||
typedef struct {
|
||||
void *data;
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include <glib.h>
|
||||
#include <cairo.h>
|
||||
|
||||
#include "include/symbol.h"
|
||||
#include "symbol.h"
|
||||
|
||||
static const cairo_path_data_t symbol_square_path_data[] =
|
||||
{
|
||||
|
|
|
@ -16,9 +16,9 @@
|
|||
|
||||
#include <glib.h>
|
||||
|
||||
#include "include/x49gp.h"
|
||||
#include "include/x49gp_timer.h"
|
||||
#include "include/s3c2410.h"
|
||||
#include "x49gp.h"
|
||||
#include "x49gp_timer.h"
|
||||
#include "s3c2410.h"
|
||||
|
||||
#include "gdbstub.h"
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "include/bitmap_font.h"
|
||||
#include "bitmap_font.h"
|
||||
|
||||
#include "bitmaps/tiny_notdef.xbm"
|
||||
|
||||
|
|
|
@ -10,13 +10,14 @@
|
|||
|
||||
#include <glib.h>
|
||||
|
||||
#include <cpu.h>
|
||||
|
||||
#include <x49gp_types.h>
|
||||
#include <x49gp_timer.h>
|
||||
#include <s3c2410_mmu.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 */
|
||||
extern uint8_t *phys_ram_base;
|
|
@ -5,7 +5,8 @@
|
|||
#define _X49GP_TIMER_H 1
|
||||
|
||||
#include <time.h>
|
||||
#include <list.h>
|
||||
|
||||
#include "list.h"
|
||||
|
||||
#define X49GP_TIMER_VIRTUAL 0
|
||||
#define X49GP_TIMER_REALTIME 1
|
|
@ -4,7 +4,7 @@
|
|||
#ifndef _X49GP_UI_H
|
||||
#define _X49GP_UI_H 1
|
||||
|
||||
#include <x49gp_types.h>
|
||||
#include "x49gp_types.h"
|
||||
|
||||
typedef enum {
|
||||
UI_COLOR_BLACK = 0,
|
Loading…
Reference in a new issue