Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jul 1996 17:28:49 -0600 (MDT)
From:      Nate Williams <nate@mt.sri.com>
To:        cjk@hnv.com (Chris Kunath)
Cc:        freebsd-questions@freebsd.org
Subject:   PSM driver not working under 2.1R and/or 2.1.5R (Re: psm0 and Micron)
Message-ID:  <199607252328.RAA08430@rocky.mt.sri.com>
In-Reply-To: <QQazyi15035.199607252308@relay2.UU.NET>
References:  <QQazyi15035.199607252308@relay2.UU.NET>

next in thread | previous in thread | raw e-mail | index | archive | help
Chris Kunath writes:
> Has anyone managed to get the PS/2-style mouse on a
> Micron M54LI board recognized at boot-time?

Try the below patch.  This will make the probe the same as in -current,
and apparently helps with some machines.  I didn't bring it stable
because of some reports of it causing some machines to quit working
which used to work.


Nate
--------
Index: psm.c
===================================================================
RCS file: /home/CVS/src/sys/i386/isa/psm.c,v
retrieving revision 1.4.4.2
diff -c -r1.4.4.2 psm.c
*** psm.c	1996/05/07 20:13:11	1.4.4.2
--- psm.c	1996/07/23 21:33:24
***************
*** 154,164 ****
  
  #ifndef PSM_NO_RESET
  	psm_write_dev(ioport, PSM_RESET);	/* Reset aux device */
- 	psm_poll_status();
  #endif
   	outb(ioport+PSM_CNTRL, 0xa9);
  	psm_poll_status();
  	outb(ioport+PSM_CNTRL, 0xaa);
  	c = inb(ioport+PSM_DATA);
  	if(c & 0x04) {
  /*		printf("PS/2 AUX mouse is not found\n");*/
--- 154,166 ----
  
  #ifndef PSM_NO_RESET
  	psm_write_dev(ioport, PSM_RESET);	/* Reset aux device */
  #endif
+ 	psm_poll_status();
   	outb(ioport+PSM_CNTRL, 0xa9);
  	psm_poll_status();
+ #if 0
  	outb(ioport+PSM_CNTRL, 0xaa);
+ #endif
  	c = inb(ioport+PSM_DATA);
  	if(c & 0x04) {
  /*		printf("PS/2 AUX mouse is not found\n");*/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607252328.RAA08430>