Home
last modified time | relevance | path

Searched refs:calc_addr (Results 1 – 2 of 2) sorted by relevance

/netbsd/src/sys/arch/atari/atari/
Dmainbus.c141 #define calc_addr(base, off, stride, wm) \ macro
145 (*((volatile uint8_t *)(calc_addr(h, o, (t)->stride, (t)->wo_1))))
147 (*((volatile uint16_t *)(calc_addr(h, o, (t)->stride, (t)->wo_2))))
149 (*((volatile uint32_t *)(calc_addr(h, o, (t)->stride, (t)->wo_4))))
151 (*((volatile uint64_t *)(calc_addr(h, o, (t)->stride, (t)->wo_8))))
154 *((volatile uint8_t *)(calc_addr(h, o, (t)->stride, (t)->wo_1))) = v
157 *((volatile uint16_t *)(calc_addr(h, o, (t)->stride, (t)->wo_2))) = v
160 *((volatile uint32_t *)(calc_addr(h, o, (t)->stride, (t)->wo_4))) = v
163 *((volatile uint64_t *)(calc_addr(h, o, (t)->stride, (t)->wo_8))) = v
246 return !badbaddr((void *)(calc_addr(h, o, t->stride, t->wo_1)), 1); in mb_bus_space_peek_1()
[all …]
/netbsd/src/sys/arch/atari/dev/
Dwdc_mb.c262 #define calc_addr(base, off, stride, wm) \ macro
271 ba = (volatile uint16_t *)calc_addr(h, o, t->stride, t->wo_2); in read_multi_2_swap()
282 ba = (volatile uint16_t *)calc_addr(h, o, t->stride, t->wo_2); in write_multi_2_swap()