Lines 6468-6473
enable_synaptics(struct psm_softc *sc, enum probearg arg)
Link Here
|
6468 |
sc->unit); |
6468 |
sc->unit); |
6469 |
psmcpnp_sc = (psmcpnp != NULL) ? device_get_softc(psmcpnp) : NULL; |
6469 |
psmcpnp_sc = (psmcpnp != NULL) ? device_get_softc(psmcpnp) : NULL; |
6470 |
|
6470 |
|
|
|
6471 |
/* |
6472 |
* Typical bezel limits. Taken from 'Synaptics |
6473 |
* PS/2 * TouchPad Interfacing Guide' p.3.2.3. |
6474 |
*/ |
6475 |
synhw.maximumXCoord = 5472; |
6476 |
synhw.maximumYCoord = 4448; |
6477 |
synhw.minimumXCoord = 1472; |
6478 |
synhw.minimumYCoord = 1408; |
6479 |
|
6471 |
/* Set the different capabilities when they exist. */ |
6480 |
/* Set the different capabilities when they exist. */ |
6472 |
buttons = 0; |
6481 |
buttons = 0; |
6473 |
synhw.capExtended = (status[0] & 0x80) != 0; |
6482 |
synhw.capExtended = (status[0] & 0x80) != 0; |
Lines 6595-6607
enable_synaptics(struct psm_softc *sc, enum probearg arg)
Link Here
|
6595 |
((status[1] & 0x0f) << 1); |
6604 |
((status[1] & 0x0f) << 1); |
6596 |
synhw.maximumYCoord = (status[2] << 5) | |
6605 |
synhw.maximumYCoord = (status[2] << 5) | |
6597 |
((status[1] & 0xf0) >> 3); |
6606 |
((status[1] & 0xf0) >> 3); |
6598 |
} else { |
|
|
6599 |
/* |
6600 |
* Typical bezel limits. Taken from 'Synaptics |
6601 |
* PS/2 * TouchPad Interfacing Guide' p.3.2.3. |
6602 |
*/ |
6603 |
synhw.maximumXCoord = 5472; |
6604 |
synhw.maximumYCoord = 4448; |
6605 |
} |
6607 |
} |
6606 |
|
6608 |
|
6607 |
if (synhw.capReportsMin) { |
6609 |
if (synhw.capReportsMin) { |
Lines 6617-6629
enable_synaptics(struct psm_softc *sc, enum probearg arg)
Link Here
|
6617 |
((status[1] & 0x0f) << 1); |
6619 |
((status[1] & 0x0f) << 1); |
6618 |
synhw.minimumYCoord = (status[2] << 5) | |
6620 |
synhw.minimumYCoord = (status[2] << 5) | |
6619 |
((status[1] & 0xf0) >> 3); |
6621 |
((status[1] & 0xf0) >> 3); |
6620 |
} else { |
|
|
6621 |
/* |
6622 |
* Typical bezel limits. Taken from 'Synaptics |
6623 |
* PS/2 * TouchPad Interfacing Guide' p.3.2.3. |
6624 |
*/ |
6625 |
synhw.minimumXCoord = 1472; |
6626 |
synhw.minimumYCoord = 1408; |
6627 |
} |
6622 |
} |
6628 |
|
6623 |
|
6629 |
/* |
6624 |
/* |