yamon.cc Source File
Back to the index.
Go to the documentation of this file.
36 #include <sys/types.h>
56 uint64_t tmpptr = env + 0x400;
83 "baseboardserial",
"0000000000");
91 "bootserver",
"10.0.0.254");
94 snprintf(tmps,
sizeof(tmps),
"%02x.%02x.%02x.%02x.%02x.%02x",
95 macaddr[0], macaddr[1], macaddr[2],
96 macaddr[3], macaddr[4], macaddr[5]);
100 "gateway",
"10.0.0.254");
104 "ipaddr",
"10.0.0.1");
110 "modetty0",
"38400,n,8,1,none");
113 "modetty1",
"38400,n,8,1,none");
121 "subnetmask",
"255.0.0.0");
145 uint64_t paddr, psize;
169 debug(
"[ yamon_emul(): exit ]\n");
202 if (psize ==
sizeof(uint32_t)) {
205 debug(
"[ yamon_emul(): reporting CPU "
206 "frequency of %u ]\n", (
unsigned int)
215 (
unsigned char *) (
void *) &freq,
sizeof(freq),
MEM_WRITE,
225 fatal(
"[ yamon_emul(): unimplemented object id 0x%"
234 fatal(
"[ yamon_emul(): unimplemented yamon function 0x%"
void cpu_register_dump(struct machine *m, struct cpu *cpu, int gprs, int coprocs)
void console_putchar(int handle, int ch)
#define YAMON_SYSCON_READ_OFS
void yamon_machine_setup(struct machine *machine, uint64_t env)
void fatal(const char *fmt,...)
#define YAMON_GETCHAR_OFS
int console_readchar(int handle)
void net_generate_unique_mac(struct machine *, unsigned char *macbuf)
void add_environment_string_dual(struct cpu *cpu, uint64_t *ptrp, uint64_t *addrp, const char *s1, const char *s2)
uint32_t physical_ram_in_mb
#define EMUL_LITTLE_ENDIAN
#define YAMON_FUNCTION_BASE
uint64_t gpr[N_MIPS_GPRS]
#define YAMON_PRINT_COUNT_OFS
int(* memory_rw)(struct cpu *cpu, struct memory *mem, uint64_t vaddr, unsigned char *data, size_t len, int writeflag, int cache_flags)
int yamon_emul(struct cpu *cpu)
#define SYSCON_BOARD_CPU_CLOCK_FREQ_ID
Generated on Tue Aug 25 2020 19:25:06 for GXemul by
1.8.18