Lines Matching refs:ioh
61 static bus_space_handle_t ioh; variable
151 bus_space_map(iot, address, 0x100, 0, &ioh); in int_attach()
156 bus_space_write_1(iot, ioh, INT1_LOCAL_MASK, 0); in int_attach()
159 bus_space_write_1(iot, ioh, INT1_TIMER_CONTROL, in int_attach()
161 bus_space_write_1(iot, ioh, INT1_TIMER_CONTROL, in int_attach()
163 bus_space_write_1(iot, ioh, INT1_TIMER_CONTROL, in int_attach()
167 bus_space_read_1(iot, ioh, INT1_TIMER_0_ACK); in int_attach()
168 bus_space_read_1(iot, ioh, INT1_TIMER_1_ACK); in int_attach()
181 bus_space_write_1(iot, ioh, INT2_LOCAL0_MASK, 0); in int_attach()
182 bus_space_write_1(iot, ioh, INT2_LOCAL1_MASK, 0); in int_attach()
183 bus_space_write_1(iot, ioh, INT2_MAP_MASK0, 0); in int_attach()
184 bus_space_write_1(iot, ioh, INT2_MAP_MASK1, 0); in int_attach()
187 bus_space_write_1(iot, ioh, INT2_TIMER_CONTROL, in int_attach()
189 bus_space_write_1(iot, ioh, INT2_TIMER_CONTROL, in int_attach()
191 bus_space_write_1(iot, ioh, INT2_TIMER_CONTROL, in int_attach()
195 bus_space_write_1(iot, ioh, INT2_TIMER_CLEAR, 0x03); in int_attach()
251 mstat = bus_space_read_1(iot, ioh, INT2_MAP_STATUS); in int2_mappable_intr()
252 mmask = bus_space_read_1(iot, ioh, INT2_MAP_MASK0 + (which << 2)); in int2_mappable_intr()
282 stat = bus_space_read_2(iot, ioh, INT1_LOCAL_STATUS); in int1_local_intr()
283 mask = bus_space_read_1(iot, ioh, INT1_LOCAL_MASK); in int1_local_intr()
310 l0stat = bus_space_read_1(iot, ioh, INT2_LOCAL0_STATUS); in int2_local0_intr()
311 l0mask = bus_space_read_1(iot, ioh, INT2_LOCAL0_MASK); in int2_local0_intr()
337 l1stat = bus_space_read_1(iot, ioh, INT2_LOCAL1_STATUS); in int2_local1_intr()
338 l1mask = bus_space_read_1(iot, ioh, INT2_LOCAL1_MASK); in int2_local1_intr()
385 mask = bus_space_read_1(iot, ioh, INT1_LOCAL_MASK); in int1_intr_establish()
387 bus_space_write_1(iot, ioh, INT1_LOCAL_MASK, mask); in int1_intr_establish()
424 mask = bus_space_read_1(iot, ioh, INT2_LOCAL0_MASK); in int2_intr_establish()
426 bus_space_write_1(iot, ioh, INT2_LOCAL0_MASK, mask); in int2_intr_establish()
428 mask = bus_space_read_1(iot, ioh, INT2_LOCAL1_MASK); in int2_intr_establish()
430 bus_space_write_1(iot, ioh, INT2_LOCAL1_MASK, mask); in int2_intr_establish()
433 mask = bus_space_read_1(iot, ioh, INT2_LOCAL0_MASK); in int2_intr_establish()
435 bus_space_write_1(iot, ioh, INT2_LOCAL0_MASK, mask); in int2_intr_establish()
437 mask = bus_space_read_1(iot, ioh, INT2_MAP_MASK0); in int2_intr_establish()
439 bus_space_write_1(iot, ioh, INT2_MAP_MASK0, mask); in int2_intr_establish()
442 mask = bus_space_read_1(iot, ioh, INT2_LOCAL1_MASK); in int2_intr_establish()
444 bus_space_write_1(iot, ioh, INT2_LOCAL1_MASK, mask); in int2_intr_establish()
446 mask = bus_space_read_1(iot, ioh, INT2_MAP_MASK1); in int2_intr_establish()
448 bus_space_write_1(iot, ioh, INT2_MAP_MASK1, mask); in int2_intr_establish()
503 bus_space_write_1(iot, ioh, INT2_TIMER_CONTROL, in int2_cal_timer()
505 bus_space_write_1(iot, ioh, INT2_TIMER_2, (sampletime & 0xff)); in int2_cal_timer()
506 bus_space_write_1(iot, ioh, INT2_TIMER_2, (sampletime >> 8)); in int2_cal_timer()
512 bus_space_write_1(iot, ioh, INT2_TIMER_CONTROL, TIMER_SEL2); in int2_cal_timer()
513 (void)bus_space_read_1(iot, ioh, INT2_TIMER_2); in int2_cal_timer()
514 msb = bus_space_read_1(iot, ioh, INT2_TIMER_2) & 0xff; in int2_cal_timer()
520 bus_space_write_1(iot, ioh, INT2_TIMER_CONTROL, in int2_cal_timer()
573 bus_space_write_1(iot, ioh, timer_control, in int_8254_cal()
575 bus_space_write_1(iot, ioh, timer_0, in int_8254_cal()
579 bus_space_write_1(iot, ioh, timer_0, in int_8254_cal()
583 bus_space_write_1(iot, ioh, timer_control, in int_8254_cal()
585 bus_space_write_1(iot, ioh, timer_1, 0xff); in int_8254_cal()
588 bus_space_write_1(iot, ioh, timer_1, 0xff); in int_8254_cal()
591 bus_space_write_1(iot, ioh, timer_control, in int_8254_cal()
593 bus_space_write_1(iot, ioh, timer_2, 8); in int_8254_cal()
596 bus_space_write_1(iot, ioh, timer_2, 0); in int_8254_cal()
614 bus_space_write_1(iot, ioh, INT1_TIMER_CONTROL, in int_8254_get_timecount()
616 lo = bus_space_read_1(iot, ioh, INT1_TIMER_1); in int_8254_get_timecount()
617 hi = bus_space_read_1(iot, ioh, INT1_TIMER_1); in int_8254_get_timecount()
621 bus_space_write_1(iot, ioh, INT2_TIMER_CONTROL, in int_8254_get_timecount()
623 lo = bus_space_read_1(iot, ioh, INT2_TIMER_1); in int_8254_get_timecount()
624 hi = bus_space_read_1(iot, ioh, INT2_TIMER_1); in int_8254_get_timecount()
650 bus_space_read_1(iot, ioh, INT1_TIMER_0_ACK); in int_8254_intr0()
654 bus_space_write_1(iot, ioh, INT2_TIMER_CLEAR, 0x01); in int_8254_intr0()
672 bus_space_read_1(iot, ioh, INT1_TIMER_1_ACK); in int_8254_intr1()
676 bus_space_write_1(iot, ioh, INT2_TIMER_CLEAR, 0x02); in int_8254_intr1()
690 if (ioh == 0) in int2_wait_fifo()
693 while (bus_space_read_1(iot, ioh, INT2_LOCAL0_STATUS) & flag) in int2_wait_fifo()