Added a workaround for yet-another, less-than-compatible keyboard controller.
This one returns 0xfa (ACK) for TEST_KBD_PORT and TEST_AUX_PORT commands. The compatible controllers expected to return 0.
This commit is contained in:
parent
ee4fd995f8
commit
ba8e952c77
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40282
@ -20,7 +20,7 @@
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: psm.c,v 1.53 1998/06/07 17:10:50 dfr Exp $
|
||||
* $Id: psm.c,v 1.54 1998/07/06 16:10:06 eivind Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -576,6 +576,7 @@ reinitialize(int unit, mousemode_t *mode)
|
||||
|
||||
switch((i = test_aux_port(kbdc))) {
|
||||
case 1: /* ignore this error */
|
||||
case PSM_ACK:
|
||||
if (verbose)
|
||||
log(LOG_DEBUG, "psm%d: strange result for test aux port (%d).\n",
|
||||
unit, i);
|
||||
@ -807,9 +808,11 @@ psmprobe(struct isa_device *dvp)
|
||||
* it has the perfectly functional aux port. We have to ignore this
|
||||
* error code. Even if the controller HAS error with the aux port,
|
||||
* it will be detected later...
|
||||
* XXX: another incompatible controller returns PSM_ACK (0xfa)...
|
||||
*/
|
||||
switch ((i = test_aux_port(sc->kbdc))) {
|
||||
case 1: /* ignore this error */
|
||||
case PSM_ACK:
|
||||
if (verbose)
|
||||
printf("psm%d: strange result for test aux port (%d).\n",
|
||||
unit, i);
|
||||
|
Loading…
Reference in New Issue
Block a user