49 int hpc_platid_flags = 0, hpc_platid_cpu_submodel = 0,
50 hpc_platid_cpu_model = 0, hpc_platid_cpu_series = 0,
51 hpc_platid_cpu_arch = 0,
52 hpc_platid_submodel = 0, hpc_platid_model = 0,
53 hpc_platid_series = 0, hpc_platid_vendor = 0;
54 uint64_t hpc_fb_addr = 0;
55 int hpc_fb_bits = 0, hpc_fb_encoding = 0;
58 int hpc_fb_xsize_mem = 0;
59 int hpc_fb_ysize_mem = 0;
61 memset(&hpc_bootinfo, 0,
sizeof(hpc_bootinfo));
70 hpc_fb_addr = 0x48200000;
73 hpc_fb_xsize_mem = 256;
74 hpc_fb_ysize_mem = 320;
77 hpc_platid_cpu_arch = 3;
78 hpc_platid_cpu_series = 1;
79 hpc_platid_cpu_model = 2;
80 hpc_platid_cpu_submodel = 0;
81 hpc_platid_vendor = 7;
82 hpc_platid_series = 4;
84 hpc_platid_submodel = 1;
92 "Jornada 720" :
"Jornada 728");
93 hpc_fb_addr = 0x48200000;
96 hpc_fb_xsize_mem = 640;
97 hpc_fb_ysize_mem = 240;
100 hpc_platid_cpu_arch = 3;
101 hpc_platid_cpu_series = 1;
102 hpc_platid_cpu_model = 2;
103 hpc_platid_cpu_submodel = 0;
104 hpc_platid_vendor = 11;
105 hpc_platid_series = 2;
106 hpc_platid_model = 2;
107 hpc_platid_submodel = 1;
110 default:printf(
"Unimplemented hpcarm machine number.\n");
115 (hpc_platid_cpu_arch << 26) + (hpc_platid_cpu_series << 20)
116 + (hpc_platid_cpu_model << 14) + (hpc_platid_cpu_submodel << 8)
119 platid_machine,(hpc_platid_vendor << 22) + (hpc_platid_series << 16)
120 + (hpc_platid_model << 8) + hpc_platid_submodel);
129 if (hpc_fb_addr != 0) {
131 hpc_fb_xsize, hpc_fb_ysize,
132 hpc_fb_xsize_mem, hpc_fb_ysize_mem,
169 sizeof(hpc_bootinfo));
175 fb_line_bytes, hpc_fb_xsize_mem * (((hpc_fb_bits-1)|7)+1) / 8);
187 (
char *)&hpc_bootinfo,
sizeof(hpc_bootinfo));
230 me->set_default_ram = machine_default_ram_hpcarm;
int store_32bit_word(struct cpu *cpu, uint64_t addr, uint64_t data32)
struct vfb_data * dev_fb_init(struct machine *machine, struct memory *mem, uint64_t baseaddr, int vfb_type, int visible_xsize, int visible_ysize, int xsize, int ysize, int bit_depth, const char *name)
void store_string(struct cpu *cpu, uint64_t addr, const char *s)
#define MACHINE_HPCARM_JORNADA728
#define EMUL_LITTLE_ENDIAN
char * boot_string_argument
char * boot_kernel_filename
void dev_ram_init(struct machine *machine, uint64_t baseaddr, uint64_t length, int mode, uint64_t otheraddress, const char *name)
void machine_entry_add_subtype(struct machine_entry *me, const char *name, int oldstyle_subtype,...)
void machine_entry_add_alias(struct machine_entry *me, const char *name)
#define HPC_BOOTINFO_MAGIC
MACHINE_DEFAULT_CPU(hpcarm)
#define MACHINE_HPCARM_IPAQ
void store_16bit_word_in_host(struct cpu *cpu, unsigned char *data, uint16_t data16)
void store_32bit_word_in_host(struct cpu *cpu, unsigned char *data, uint64_t data32)
void store_buf(struct cpu *cpu, uint64_t addr, const char *s, size_t len)
#define MACHINE_HPCARM_JORNADA720
#define MR_DEFAULT(x, name, arch, type)
const char * machine_name
MACHINE_DEFAULT_RAM(hpcarm)