Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jun 2007 17:27:58 GMT
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 121860 for review
Message-ID:  <200706171727.l5HHRw3d095716@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=121860

Change 121860 by rpaulo@rpaulo_epsilon on 2007/06/17 17:27:03

	Add a new quirk: UQ_MS_IGNORE. Devices that need to be ignored
	by ums(4) (for example, if they need a specific driver) should
	use this quirk.
	
	This is the case of Apple's Internal trackpad found on
	MacBooks/PowerBooks.

Affected files ...

.. //depot/projects/soc2007/rpaulo-macbook/dev/usb/ums.c#8 edit
.. //depot/projects/soc2007/rpaulo-macbook/dev/usb/usb_quirks.c#3 edit
.. //depot/projects/soc2007/rpaulo-macbook/dev/usb/usb_quirks.h#3 edit

Differences ...

==== //depot/projects/soc2007/rpaulo-macbook/dev/usb/ums.c#8 (text+ko) ====

@@ -179,6 +179,9 @@
 	if (err)
 		return (UMATCH_NONE);
 
+	if (usbd_get_quirks(uaa->device)->uq_flags & UQ_MS_IGNORE)
+		return (UMATCH_NONE);
+
 	if (hid_is_collection(desc, size,
 			      HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_MOUSE)))
 		ret = UMATCH_IFACECLASS;

==== //depot/projects/soc2007/rpaulo-macbook/dev/usb/usb_quirks.c#3 (text+ko) ====

@@ -135,7 +135,7 @@
 	ANY, { UQ_KBD_IGNORE }},
  /* Devices that need special handling of the Fn key */
  { USB_VENDOR_APPLE, USB_PRODUCT_APPLE_INTKBTP,
-	ANY, { UQ_KBD_FNKEY } },
+	ANY, { UQ_KBD_FNKEY | UQ_MS_IGNORE } },
  { 0, 0, 0, { 0 } }
 };
 

==== //depot/projects/soc2007/rpaulo-macbook/dev/usb/usb_quirks.h#3 (text+ko) ====

@@ -58,6 +58,7 @@
 #define UQ_HID_IGNORE	0x8000	/* device should be ignored by hid class */
 #define UQ_KBD_IGNORE  0x18000	/* device should be ignored by both kbd and hid class */
 #define UQ_KBD_FNKEY	0x40000	/* device needs special handling for the Fn key */
+#define UQ_MS_IGNORE	0x20000 /* device should be ignored by ums */
 					
 };
 



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