NetBSD Problem Report #30126

From rpaulo@matter.fnop.net  Tue May  3 22:51:08 2005
Return-Path: <rpaulo@matter.fnop.net>
Received: from matter.fnop.net (unknown [83.144.140.101])
	by narn.netbsd.org (Postfix) with ESMTP id 67E8D63B116
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  3 May 2005 22:51:07 +0000 (UTC)
Message-Id: <20050413190304.CAC30FF9@matter.fnop.net>
Date: Wed, 13 Apr 2005 20:03:04 +0100 (WEST)
From: Rui Paulo <rpaulo@netbsd-pt.org>
Reply-To: Rui Paulo <rpaulo@netbsd-pt.org>
To: gnats-bugs@netbsd.org
Subject: support for Portuguese ADB keyboards
X-Send-Pr-Version: 3.95

>Number:         30126
>Category:       port-macppc
>Synopsis:       support for Portuguese ADB keyboards
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    abs
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue May 03 22:52:00 +0000 2005
>Closed-Date:    Thu May 05 22:30:04 +0000 2005
>Last-Modified:  Mon May 16 04:50:02 +0000 2005
>Originator:     Rui Paulo <rpaulo@netbsd-pt.org>
>Release:        NetBSD 3.0_BETA
>Organization:
>Environment:
System: NetBSD matter.fnop.net 3.0_BETA NetBSD 3.0_BETA (GENERIC) #0: Wed Apr 13 18:53:31 WEST 2005 rpaulo@matter.fnop.net:/home/rpaulo/obj/sys/arch/macppc/compile/GENERIC macppc
Architecture: powerpc
Machine: macppc
>Description:
	Portuguese ADB keyboards aren't supported by NetBSD, yet. This patch
	adds support for them in mac68k and macppc ports as they share the
	same adb keyboard support code. This was tested by me in 3.0_BETA
	and there should be no problems supporting this in HEAD as the
	file revision is the same (and nothing has really changed in
	HEAD regarding to ADB that could affect this). If possible, 
	please ask for pullups for NetBSD 2.1 and 3.0.

	P.S.: Tested by Nuno Teixeira on NetBSD/mac68k on his very limited
	keyboard.
>How-To-Repeat:
	wsconsctl -w encoding=pt on macppc/mac68k
>Fix:
Index: akbdmap.h
===================================================================
RCS file: /cvsroot/src/sys/arch/mac68k/dev/akbdmap.h,v
retrieving revision 1.6
diff -u -r1.6 akbdmap.h
--- akbdmap.h	30 Oct 2004 20:13:15 -0000	1.6
+++ akbdmap.h	3 May 2005 22:33:28 -0000
@@ -382,6 +382,31 @@
     KC(58),	KS_Mode_switch, KS_Multi_key,		/* Option */
 };

+static const keysym_t akbd_keydesc_pt[] = {
+/*  pos         normal          shifted         altgr           shift-altgr */
+    KC(7),	KS_x,		KS_X,		KS_guillemotleft, KS_guillemotright,
+    KC(10),	KS_section,	KS_plusminus,
+    KC(19),	KS_2,		KS_quotedbl,	KS_at,
+    KC(20),	KS_3,		KS_numbersign,	KS_sterling,
+    KC(22),	KS_6,		KS_ampersand,
+    KC(24),	KS_plus,	KS_asterisk,
+    KC(25),     KS_9,		KS_parenright,	KS_bracketright, KS_braceright,
+    KC(26),	KS_7,		KS_slash,
+    KC(27),	KS_apostrophe,	KS_question,
+    KC(28),	KS_8,		KS_parenleft,	KS_bracketleft, KS_braceleft,
+    KC(29),	KS_0,		KS_equal,
+    KC(30),	KS_dead_acute,	KS_dead_grave,
+    KC(33), 	KS_masculine,	KS_ordfeminine,
+    KC(39),	KS_dead_tilde,	KS_dead_circumflex,
+    KC(41),	KS_ccedilla,	KS_Ccedilla,
+    KC(43),	KS_comma,	KS_semicolon,
+    KC(44),	KS_minus,	KS_underscore,
+    KC(47),	KS_period,	KS_colon,
+    KC(50),	KS_less,	KS_greater,
+    KC(58),	KS_Mode_switch,
+    KC(81),	KS_KP_Equal,
+};
+
 #define KBD_MAP(name, base, map) \
 			{ name, base, sizeof(map)/sizeof(keysym_t), map }

@@ -397,6 +422,7 @@
 	KBD_MAP(KB_DE | KB_NODEAD,	KB_DE,  akbd_keydesc_de_nodead),
 	KBD_MAP(KB_UK,			KB_US,  akbd_keydesc_uk),
 	KBD_MAP(KB_ES,			KB_US,	akbd_keydesc_es),
+	KBD_MAP(KB_PT,                  KB_US,  akbd_keydesc_pt),
 	{0, 0, 0, 0}
 };


>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: port-macppc-maintainer->abs
Responsible-Changed-By: abs@netbsd.org
Responsible-Changed-When: Thu, 05 May 2005 22:30:04 +0000
Responsible-Changed-Why:
Committed - pullup to follow


State-Changed-From-To: open->closed
State-Changed-By: abs@netbsd.org
State-Changed-When: Thu, 05 May 2005 22:30:04 +0000
State-Changed-Why:


From: David Brownlee <abs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/30126 CVS commit: src/sys/arch/mac68k/dev
Date: Thu,  5 May 2005 22:29:41 +0000 (UTC)

 Module Name:	src
 Committed By:	abs
 Date:		Thu May  5 22:29:41 UTC 2005

 Modified Files:
 	src/sys/arch/mac68k/dev: akbdmap.h

 Log Message:
 Add ADB Portuguese (pt_PT) keyboard map, from Rui Paulo in PR/30126


 To generate a diff of this commit:
 cvs rdiff -r1.6 -r1.7 src/sys/arch/mac68k/dev/akbdmap.h

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/30126 CVS commit: [netbsd-3] src/sys/arch/mac68k/dev
Date: Mon,  9 May 2005 17:22:46 +0000 (UTC)

 Module Name:	src
 Committed By:	tron
 Date:		Mon May  9 17:22:46 UTC 2005

 Modified Files:
 	src/sys/arch/mac68k/dev [netbsd-3]: akbdmap.h

 Log Message:
 Pull up revision 1.7 (requested by abs in ticket #268):
 Add ADB Portuguese (pt_PT) keyboard map, from Rui Paulo in PR/30126


 To generate a diff of this commit:
 cvs rdiff -r1.6 -r1.6.10.1 src/sys/arch/mac68k/dev/akbdmap.h

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Jeff Rizzo <riz@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/30126 CVS commit: [netbsd-2] src/sys/arch/mac68k/dev
Date: Mon, 16 May 2005 04:49:20 +0000 (UTC)

 Module Name:	src
 Committed By:	riz
 Date:		Mon May 16 04:49:20 UTC 2005

 Modified Files:
 	src/sys/arch/mac68k/dev [netbsd-2]: akbdmap.h

 Log Message:
 Pull up revision 1.7 via patch (requested by abs in ticket #1506):
 Add ADB Portuguese (pt_PT) keyboard map, from Rui Paulo in PR/30126


 To generate a diff of this commit:
 cvs rdiff -r1.4 -r1.4.6.1 src/sys/arch/mac68k/dev/akbdmap.h

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.