61 uint64_t idata = 0, odata = 0;
68 switch (relative_addr) {
71 debug(
"[ bt455: write to addr_cmap, 0x%02x ]\n", idata);
76 debug(
"[ bt455: read from addr_cmap: 0x%0x ]\n", odata);
81 debug(
"[ bt455: write to addr_cmap_data, 0x%02x ]\n",
90 for (i=0; i<16; i++) {
93 int newvalue = idata * 0x11;
121 debug(
"[ bt455: read from addr_cmap_data: 0x%0x ]\n",
127 debug(
"[ bt455: write to addr_clr, value 0x%02x ]\n",
132 debug(
"[ bt455: read from addr_clr: value 0x%02x ]\n",
138 debug(
"[ bt455: write to addr_ovly, value 0x%02x ]\n",
143 debug(
"[ bt455: read from addr_ovly: value 0x%02x ]\n",
149 debug(
"[ bt455: unimplemented write to address 0x%x," 150 " data=0x%02x ]\n", (
int)relative_addr, (
int)idata);
152 debug(
"[ bt455: unimplemented read from address " 153 "0x%x ]\n", (
int)relative_addr);
uint64_t memory_readmax64(struct cpu *cpu, unsigned char *buf, int len)
unsigned char * rgb_palette
#define CHECK_ALLOCATION(ptr)
struct vfb_data * vfb_data
int dev_bt455_access(struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *)
unsigned char addr_cmap_data
void dev_bt455_init(struct memory *mem, uint64_t baseaddr, struct vfb_data *vfb_data)
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)
unsigned char rgb_palette[256 *3]