1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25#ifndef PPC405_H
26#define PPC405_H
27
28#include "hw/ppc/ppc4xx.h"
29
30
31typedef struct ppc4xx_bd_info_t ppc4xx_bd_info_t;
32struct ppc4xx_bd_info_t {
33 uint32_t bi_memstart;
34 uint32_t bi_memsize;
35 uint32_t bi_flashstart;
36 uint32_t bi_flashsize;
37 uint32_t bi_flashoffset;
38 uint32_t bi_sramstart;
39 uint32_t bi_sramsize;
40 uint32_t bi_bootflags;
41 uint32_t bi_ipaddr;
42 uint8_t bi_enetaddr[6];
43 uint16_t bi_ethspeed;
44 uint32_t bi_intfreq;
45 uint32_t bi_busfreq;
46 uint32_t bi_baudrate;
47 uint8_t bi_s_version[4];
48 uint8_t bi_r_version[32];
49 uint32_t bi_procfreq;
50 uint32_t bi_plb_busfreq;
51 uint32_t bi_pci_busfreq;
52 uint8_t bi_pci_enetaddr[6];
53 uint32_t bi_pci_enetaddr2[6];
54 uint32_t bi_opbfreq;
55 uint32_t bi_iic_fast[2];
56};
57
58
59ram_addr_t ppc405_set_bootinfo (CPUPPCState *env, ppc4xx_bd_info_t *bd,
60 uint32_t flags);
61
62CPUPPCState *ppc405cr_init(MemoryRegion *address_space_mem,
63 MemoryRegion ram_memories[4],
64 hwaddr ram_bases[4],
65 hwaddr ram_sizes[4],
66 uint32_t sysclk, qemu_irq **picp,
67 int do_init);
68CPUPPCState *ppc405ep_init(MemoryRegion *address_space_mem,
69 MemoryRegion ram_memories[2],
70 hwaddr ram_bases[2],
71 hwaddr ram_sizes[2],
72 uint32_t sysclk, qemu_irq **picp,
73 int do_init);
74
75#endif
76