Subject: patches for Sun USB mouse device
To: None <current-users@netbsd.org>
From: Grant Beattie <grant@grunta.com>
List: current-users
Date: 04/11/2001 22:27:05
--pWyiEgJYm5f9v55/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Wasn't sure where to send these, but here patches to recognise the Sun
USB mouse.

g.


--pWyiEgJYm5f9v55/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="usbdevs.diff"

*** usbdevs.orig	Tue Apr 10 21:15:53 2001
--- usbdevs	Wed Apr 11 22:03:45 2001
***************
*** 835,842 ****
  product STSN STSN0001		0x0001	Internet Access Device
  
  /* Sun Microsystems products */
! product SUN KEYBOARD		0x0005	Type 6 USB
  /* XXX The above is a North American PC style keyboard possibly */
  
  /* Supra products */
  product DIAMOND2 SUPRAEXPRESS56K 0x07da	Supra Express 56K modem
--- 835,843 ----
  product STSN STSN0001		0x0001	Internet Access Device
  
  /* Sun Microsystems products */
! product SUN KEYBOARD		0x0005	Type 6 USB keyboard
  /* XXX The above is a North American PC style keyboard possibly */
+ product SUN MOUSE			0x0100	Type 6 USB mouse
  
  /* Supra products */
  product DIAMOND2 SUPRAEXPRESS56K 0x07da	Supra Express 56K modem

--pWyiEgJYm5f9v55/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="usbdevs.h.diff"

*** usbdevs.h.orig	Tue Apr 10 21:15:53 2001
--- usbdevs.h	Wed Apr 11 21:56:45 2001
***************
*** 842,849 ****
  #define	USB_PRODUCT_STSN_STSN0001	0x0001		/* Internet Access Device */
  
  /* Sun Microsystems products */
! #define	USB_PRODUCT_SUN_KEYBOARD	0x0005		/* Type 6 USB */
  /* XXX The above is a North American PC style keyboard possibly */
  
  /* Supra products */
  #define	USB_PRODUCT_DIAMOND2_SUPRAEXPRESS56K	0x07da		/* Supra Express 56K modem */
--- 842,850 ----
  #define	USB_PRODUCT_STSN_STSN0001	0x0001		/* Internet Access Device */
  
  /* Sun Microsystems products */
! #define	USB_PRODUCT_SUN_KEYBOARD	0x0005		/* Type 6 USB keyboard */
  /* XXX The above is a North American PC style keyboard possibly */
+ #define	USB_PRODUCT_SUN_MOUSE		0x0100		/* Type 6 USB mouse */
  
  /* Supra products */
  #define	USB_PRODUCT_DIAMOND2_SUPRAEXPRESS56K	0x07da		/* Supra Express 56K modem */

--pWyiEgJYm5f9v55/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="usbdevs_data.h.diff"

*** usbdevs_data.h.orig	Tue Apr 10 21:15:53 2001
--- usbdevs_data.h	Wed Apr 11 21:56:31 2001
***************
*** 1723,1729 ****
  	    USB_VENDOR_SUN, USB_PRODUCT_SUN_KEYBOARD,
  	    0,
  	    "Sun Microsystems",
! 	    "Type 6 USB",
  	},
  	{
  	    USB_VENDOR_DIAMOND2, USB_PRODUCT_DIAMOND2_SUPRAEXPRESS56K,
--- 1723,1735 ----
  	    USB_VENDOR_SUN, USB_PRODUCT_SUN_KEYBOARD,
  	    0,
  	    "Sun Microsystems",
! 	    "Type 6 USB keyboard",
! 	},
! 	{
! 	    USB_VENDOR_SUN, USB_PRODUCT_SUN_MOUSE,
! 	    0,
! 	    "Sun Microsystems",
! 	    "Type 6 USB mouse",
  	},
  	{
  	    USB_VENDOR_DIAMOND2, USB_PRODUCT_DIAMOND2_SUPRAEXPRESS56K,

--pWyiEgJYm5f9v55/--