Lines Matching refs:tag
275 mse_enable98m(bus_space_tag_t tag, bus_space_handle_t handle)
277 bus_space_write_1(tag, handle, INT, INT_ENABLE); /* INT enable */
278 bus_space_write_1(tag, handle, HC, HC_NO_CLEAR); /* HC = 0 */
279 bus_space_write_1(tag, handle, HC, HC_CLEAR); /* HC = 1 */
286 mse_disable98m(bus_space_tag_t tag, bus_space_handle_t handle)
288 bus_space_write_1(tag, handle, INT, INT_DISABLE); /* INT disable */
289 bus_space_write_1(tag, handle, HC, HC_NO_CLEAR); /* HC = 0 */
290 bus_space_write_1(tag, handle, HC, HC_CLEAR); /* HC = 1 */
297 mse_get98m(bus_space_tag_t tag, bus_space_handle_t handle, int *dx, int *dy,
302 bus_space_write_1(tag, handle, INT, INT_DISABLE); /* INT disable */
304 bus_space_write_1(tag, handle, HC, HC_CLEAR); /* HC = 1 */
307 bus_space_write_1(tag, handle, MSE_PORTC, 0x90 | XL);
308 x = bus_space_read_1(tag, handle, MSE_PORTA) & 0x0f;
310 bus_space_write_1(tag, handle, MSE_PORTC, 0x90 | XH);
311 x |= ((bus_space_read_1(tag, handle, MSE_PORTA) & 0x0f) << 4);
314 bus_space_write_1(tag, handle, MSE_PORTC, 0x90 | YL);
315 y = (bus_space_read_1(tag, handle, MSE_PORTA) & 0x0f);
317 bus_space_write_1(tag, handle, MSE_PORTC, 0x90 | YH);
318 y |= ((bus_space_read_1(tag, handle, MSE_PORTA) & 0x0f) << 4);
320 *but = (bus_space_read_1(tag, handle, MSE_PORTA) >> 5) & 7;
325 bus_space_write_1(tag, handle, HC, HC_NO_CLEAR); /* HC = 0 */
327 bus_space_write_1(tag, handle, INT, INT_ENABLE); /* INT enable */