Files
retrobsd/tools/virtualmips/pavo.h
2014-04-09 14:27:18 +01:00

50 lines
1.0 KiB
C

/*
* Copyright (C) yajin 2008 <yajinzhou@gmail.com >
*
* This file is part of the virtualmips distribution.
* See LICENSE file for terms of the license.
*
*/
#ifndef __PAVO_H__
#define __PAVO_H__
#include "jz4740.h"
#include "dev_nand_flash_1g.h"
#ifdef SIM_LCD
#include "vp_sdl.h"
#endif
#define PAVO_DEFAULT_CONFIG_FILE "pavo.conf"
#define PAVO_DEFAULT_RAM_SIZE 16
#define PAVO_DEFAULT_BOOT_METHOD BOOT_BINARY
#define PAVO_DEFAULT_KERNEL_FILENAME "vmlinux"
#define PAVO_ADDR_BUS_MASK 0xffffffff /*32bit phy address */
struct pavo_system {
/* Associated VM instance */
vm_instance_t *vm;
nand_flash_1g_data_t *nand_flash;
m_uint32_t cs8900_enable;
char *cs8900_iotype;
/*For LCD */
//#ifdef SIM_LCD
//struct DisplayState *ds;
//#endif
};
typedef struct pavo_system pavo_t;
#define VM_PAVO(vm) ((pavo_t *)vm->hw_data)
vm_instance_t *create_instance (char *conf);
int init_instance (vm_instance_t * vm);
//void virtual_timer(cpu_mips_t *cpu);
int pavo_reset (vm_instance_t * vm);
#endif