typedef int (*mmi_access)
(uint32_t cpu_id, void* obj, uint64_t paddr,
bool_t wr, uint32_t size, uint64_t* buf, uint8_t bytemask)
int mmi_map_physio (uint64_t base, uint64_t size, void* obj, mmi_access access)
static int sgc_access(uint32_t cpu_id, void* obj, uint64_t paddr, bool_t wr, uint32_t size, uint64_t* buf) { SerengetiConsole* s = (SerengetiConsole*) obj; return s->access(cpu_id, obj, paddr, wr, size, buf); } SerengetiConsole::SerengetiConsole() { mmi_map_physio(0x7fff0000000ULL, 0x10000000ULL, this, sgc_access); }