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