version 1.9, 2005/12/24 20:27:52 |
version 1.10, 2006/06/07 22:33:37 |
Line 650 pms_synaptics_input(void *vsc, int data) |
|
Line 650 pms_synaptics_input(void *vsc, int data) |
|
struct synaptics_softc *sc = &psc->u.synaptics; |
struct synaptics_softc *sc = &psc->u.synaptics; |
struct timeval diff; |
struct timeval diff; |
struct synaptics_packet sp; |
struct synaptics_packet sp; |
int s; |
|
|
|
if (!psc->sc_enabled) { |
if (!psc->sc_enabled) { |
/* Interrupts are not expected. Discard the byte. */ |
/* Interrupts are not expected. Discard the byte. */ |
return; |
return; |
} |
} |
|
|
s = splclock(); |
getmicrouptime(&psc->current); |
psc->current = mono_time; |
|
splx(s); |
|
|
|
if (psc->inputstate > 0) { |
if (psc->inputstate > 0) { |
timersub(&psc->current, &psc->last, &diff); |
timersub(&psc->current, &psc->last, &diff); |