Subject: port-mac68k/4158: request for adding another adb device
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kei_sun@ba2.so-net.or.jp>
List: netbsd-bugs
Date: 09/26/1997 09:21:21
>Number:         4158
>Category:       port-mac68k
>Synopsis:       current kernel don't recognize some adb devices.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 25 18:05:01 1997
>Last-Modified:
>Originator:     SUNAGAWA Keiki
>Organization:
	so-net user (individual)
>Release:        26 Sep 1997
>Environment:
	Macintosh IIci, WACOM ArtPad II, Sophisticated Circuits PowerKey
System: NetBSD localhost 1.2G NetBSD 1.2G (MINT) #76: Tue Sep 23 23:31:14 JST 1997 kei@localhost:/sys/arch/mac68k/compile/MINT mac68k


>Description:
	I'm using these adb devices for months.  All works well under
	NetBSD and MacOS(7.5).

	ArtPad II: It's an A5 size tablet.  It supports pen pressure
	detecting and I investigated the protocol a little.  Is there
	any applications need the feature?

	PowerKey: It's an intelligent power tap.
>How-To-Repeat:
>Fix:
	Here are the patches for recognizing the devices.


--- adbsys.c.orig	Sun Aug 10 20:18:31 1997
+++ adbsys.c	Tue Aug 12 19:59:12 1997
@@ -420,12 +420,28 @@
 			}
 			break;
 		case ADBADDR_ABS:
-			printf("absolute positioning device (tablet?) (%d)",
-			    adbdata.devType);
+			switch (adbdata.devType) {
+			case ADB_ARTPAD:
+				printf("WACOM ArtPad II");
+				break;
+			default:
+				printf("absolute positioning device (tablet?) (%d)", adbdata.devType);
+				break;
+			}
 			break;
 		case ADBADDR_DATATX:
 			printf("data transfer device (modem?) (%d)",
 			    adbdata.devType);
+			break;
+		case ADBADDR_MISC:
+			switch (adbdata.devType) {
+			case ADB_POWERKEY:
+				printf("Sophisticated Circuits PowerKey");
+				break;
+			default:
+				printf("miscellaneous device (remote control device?) (%d)", adbdata.devType);
+				break;
+			}
 			break;
 		default:
 			printf("unknown type device, (def %d, handler %d)",



--- adbsys.h.orig	Sun Aug 10 20:18:32 1997
+++ adbsys.h	Tue Aug 12 19:54:17 1997
@@ -123,6 +123,12 @@
 #define ADBMS_EXTENDED	4	/* Extended mouse protocol */
 #define ADBMS_USPEED	47	/* MicroSpeed mouse */
 
+	/* Interesting tablet handler ID */
+#define ADB_ARTPAD	58	/* WACOM ArtPad II tablet */
+
+	/* Interesting miscellaneous handler ID */
+#define ADB_POWERKEY	34	/* Sophisticated Circuits PowerKey */
+				/* (intelligent power tap) */
 
 	/* Get device info from ADB system */
 typedef struct adb_devinfo_s{
>Audit-Trail:
>Unformatted: