Lines Matching refs:tag

317 mse_enablelogi(bus_space_tag_t tag, bus_space_handle_t handle)
321 bus_space_write_1(tag, handle, MSE_PORTD, MSE_SETUP);
322 mse_getlogi(tag, handle, &dx, &dy, &but);
329 mse_disablelogi(bus_space_tag_t tag, bus_space_handle_t handle)
332 bus_space_write_1(tag, handle, MSE_PORTC, MSE_DISINTR);
339 mse_getlogi(bus_space_tag_t tag, bus_space_handle_t handle, int *dx, int *dy,
344 bus_space_write_1(tag, handle, MSE_PORTC, MSE_HOLD | MSE_RXLOW);
345 x = bus_space_read_1(tag, handle, MSE_PORTA);
348 bus_space_write_1(tag, handle, MSE_PORTC, MSE_HOLD | MSE_RXHIGH);
349 x |= (bus_space_read_1(tag, handle, MSE_PORTA) << 4);
350 bus_space_write_1(tag, handle, MSE_PORTC, MSE_HOLD | MSE_RYLOW);
351 y = (bus_space_read_1(tag, handle, MSE_PORTA) & 0xf);
352 bus_space_write_1(tag, handle, MSE_PORTC, MSE_HOLD | MSE_RYHIGH);
353 y |= (bus_space_read_1(tag, handle, MSE_PORTA) << 4);
356 bus_space_write_1(tag, handle, MSE_PORTC, MSE_INTREN);
381 mse_enableati(bus_space_tag_t tag, bus_space_handle_t handle)
384 bus_space_write_1(tag, handle, MSE_PORTA, MSE_INPORT_RESET);
385 bus_space_write_1(tag, handle, MSE_PORTA, MSE_INPORT_MODE);
386 bus_space_write_1(tag, handle, MSE_PORTB, MSE_INPORT_INTREN);
393 mse_disableati(bus_space_tag_t tag, bus_space_handle_t handle)
396 bus_space_write_1(tag, handle, MSE_PORTA, MSE_INPORT_MODE);
397 bus_space_write_1(tag, handle, MSE_PORTB, 0);
404 mse_getati(bus_space_tag_t tag, bus_space_handle_t handle, int *dx, int *dy,
409 bus_space_write_1(tag, handle, MSE_PORTA, MSE_INPORT_MODE);
410 bus_space_write_1(tag, handle, MSE_PORTB, MSE_INPORT_HOLD);
411 bus_space_write_1(tag, handle, MSE_PORTA, MSE_INPORT_STATUS);
412 *but = ~bus_space_read_1(tag, handle, MSE_PORTB) & MOUSE_MSC_BUTTONS;
413 bus_space_write_1(tag, handle, MSE_PORTA, MSE_INPORT_DX);
414 byte = bus_space_read_1(tag, handle, MSE_PORTB);
416 bus_space_write_1(tag, handle, MSE_PORTA, MSE_INPORT_DY);
417 byte = bus_space_read_1(tag, handle, MSE_PORTB);
419 bus_space_write_1(tag, handle, MSE_PORTA, MSE_INPORT_MODE);
420 bus_space_write_1(tag, handle, MSE_PORTB, MSE_INPORT_INTREN);