static void dc21285_write16(struct map_info *map, map_word d, unsigned long adr) { if (machine_is_netwinder()) nw_en_write(); *CSR_ROMWRITEREG = adr & 3; adr &= ~3; *(uint16_t*)(map->map_priv_1 + adr) = d.x[0]; }
static void dc21285_write8(struct map_info *map, const map_word d, unsigned long adr) { if (machine_is_netwinder()) nw_en_write(); *CSR_ROMWRITEREG = adr & 3; adr &= ~3; *(uint8_t*)(map->virt + adr) = d.x[0]; }
static void dc21285_write32(struct map_info *map, map_word d, unsigned long adr) { if (machine_is_netwinder()) nw_en_write(); *(uint32_t*)(map->map_priv_1 + adr) = d.x[0]; }