44 #define DEV_PS2_SPD_LENGTH 0x800 55 uint64_t idata = 0, odata = 0;
60 switch (relative_addr) {
69 debug(
"[ ps2_spd: wdc access ]\n");
74 debug(
"[ ps2_spd: wdc access (2) ]\n");
80 debug(
"[ ps2_spd: read from addr 0x%x: 0x%llx ]\n",
81 (
int)relative_addr, (
long long)odata);
83 debug(
"[ ps2_spd: write to addr 0x%x: 0x%llx ]\n",
84 (
int)relative_addr, (
long long)idata);
111 snprintf(tmpstr,
sizeof(tmpstr),
"wdc addr=0x%llx irq=%s.ps2_sbus.0",
uint64_t memory_readmax64(struct cpu *cpu, unsigned char *buf, int len)
void * device_add(struct machine *machine, const char *name_and_params)
#define CHECK_ALLOCATION(ptr)
int(* memory_rw)(struct cpu *cpu, struct memory *mem, uint64_t vaddr, unsigned char *data, size_t len, int writeflag, int cache_flags)
#define DEV_PS2_SPD_LENGTH
void memory_writemax64(struct cpu *cpu, unsigned char *buf, int len, uint64_t data)
void memory_device_register(struct memory *mem, const char *, uint64_t baseaddr, uint64_t len, int(*f)(struct cpu *, struct memory *, uint64_t, unsigned char *, size_t, int, void *), void *extra, int flags, unsigned char *dyntrans_data)