48 #define SFB_XSIZE 1280 49 #define SFB_YSIZE 1024 55 #define SFB_REG_SIZE 0x80 56 #define N_SFB_REGS (SFB_REG_SIZE / 4) 68 uint64_t idata = 0, odata = 0;
76 debug(
"[ sfb: read from addr 0x%x: 0x%llx ]\n",
77 (
int)relative_addr, (
long long)odata);
80 debug(
"[ sfb: write to addr 0x%x: 0x%llx ]\n",
81 (
int)relative_addr, (
long long)idata);
95 uint64_t baseaddr,
struct vfb_data *fb)
100 memset(d, 0,
sizeof(
struct sfb_data));
uint64_t memory_readmax64(struct cpu *cpu, unsigned char *buf, int len)
struct vfb_data * vfb_data
int dev_sfb_access(struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *)
void dev_sfb_init(struct machine *machine, struct memory *mem, uint64_t baseaddr, struct vfb_data *fb)
#define CHECK_ALLOCATION(ptr)
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)