Add support SUN TYPE 6 USB KEYBOARD

Submitted by:	<schley@cf-wnd.de>
This commit is contained in:
MIHIRA Sanpei Yoshiro 2004-01-03 15:01:04 +00:00
parent b124b5e8b3
commit 31b073a02e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124104
2 changed files with 13 additions and 5 deletions

View File

@ -34,6 +34,9 @@
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
* Modifications for SUN TYPE 6 USB Keyboard by
* Jörg Peter Schley (jps@scxnet.de)
*/
#include <sys/cdefs.h>
@ -301,11 +304,11 @@ Static u_int8_t ukbd_trtab[256] = {
104, 102, 94, 96, 103, 99, 101, 98, /* 48 - 4F */
97, 100, 95, 69, 91, 55, 74, 78, /* 50 - 57 */
89, 79, 80, 81, 75, 76, 77, 71, /* 58 - 5F */
72, 73, 82, 83, 86, 107, NN, NN, /* 60 - 67 */
72, 73, 82, 83, 86, 107, 122, NN, /* 60 - 67 */
NN, NN, NN, NN, NN, NN, NN, NN, /* 68 - 6F */
NN, NN, NN, NN, NN, NN, NN, NN, /* 70 - 77 */
NN, NN, NN, NN, NN, NN, NN, NN, /* 78 - 7F */
NN, NN, NN, NN, NN, NN, NN, 115, /* 80 - 87 */
NN, NN, NN, NN, 115, 108, 111, 113, /* 70 - 77 */
109, 110, 112, 118, 114, 116, 117, 119, /* 78 - 7F */
121, 120, NN, NN, NN, NN, NN, 115, /* 80 - 87 */
112, 125, 121, 123, NN, NN, NN, NN, /* 88 - 8F */
NN, NN, NN, NN, NN, NN, NN, NN, /* 90 - 97 */
NN, NN, NN, NN, NN, NN, NN, NN, /* 98 - 9F */
@ -1449,6 +1452,10 @@ keycode2scancode(int keycode, int shift, int up)
0x50, 0x51, 0x52, 0x53,
0x46, /* XXX Pause/Break */
0x5b, 0x5c, 0x5d,
/* SUN TYPE 6 USB KEYBOARD */
0x68, 0x5e, 0x5f, 0x60, 0x61, 0x62, 0x63,
0x64, 0x65, 0x66, 0x67, 0x25, 0x1f, 0x1e,
0x20,
};
int scancode;

View File

@ -1,4 +1,4 @@
$FreeBSD$
/$FreeBSD$
/*
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@ -537,6 +537,7 @@ product CASIO NAMELAND 0x4001 CASIO Nameland EZ-USB
/* Cherry products */
product CHERRY MY3000KBD 0x0001 My3000 keyboard
product CHERRY MY3000HUB 0x0003 My3000 hub
product CHERRY CYBOARD 0x0004 CyBoard Keyboard
/* Chic Technology products */
product CHIC MOUSE1 0x0001 mouse