diff options
| author | takemura <takemura@NetBSD.org> | 2001-03-04 03:40:39 +0000 |
|---|---|---|
| committer | takemura <takemura@NetBSD.org> | 2001-03-04 03:40:39 +0000 |
| commit | 49cddb00a717bbe9da0641996124c43f6e791d33 (patch) | |
| tree | 18e3a1b157566a12cf7e9d0585e441461f3b76f7 | |
| parent | 92e92121abccab7bd38288ec699a0c4bbf4538a2 (diff) | |
Add platform id and keymap for CASIO PocketPostPet.
| -rw-r--r-- | sys/arch/hpc/conf/platid.def | 6 | ||||
| -rw-r--r-- | sys/arch/hpc/hpc/platid_mask.c | 10 | ||||
| -rw-r--r-- | sys/arch/hpc/hpc/platid_name.c | 6 | ||||
| -rw-r--r-- | sys/arch/hpc/include/platid_generated.h | 10 | ||||
| -rw-r--r-- | sys/arch/hpc/include/platid_mask.h | 10 | ||||
| -rw-r--r-- | sys/dev/hpc/hpckbdkeymap.h | 44 |
6 files changed, 80 insertions, 6 deletions
diff --git a/sys/arch/hpc/conf/platid.def b/sys/arch/hpc/conf/platid.def index e19b695ce4b..e1bfeee77ac 100644 --- a/sys/arch/hpc/conf/platid.def +++ b/sys/arch/hpc/conf/platid.def @@ -1,4 +1,4 @@ -/* $NetBSD: platid.def,v 1.4 2001/03/03 12:56:38 takemura Exp $ */ +/* $NetBSD: platid.def,v 1.5 2001/03/04 03:40:39 takemura Exp $ */ /*- * Copyright (c) 1999-2001 @@ -140,6 +140,10 @@ CASIO { CPU=MIPS_VR_4121 E100 E105 E500 E507 } } + PocketPostPet { + CPU=MIPS_VR_4121 + PocketPostPet -" PocketPostPet" + } } #endif /* hpcmips */ diff --git a/sys/arch/hpc/hpc/platid_mask.c b/sys/arch/hpc/hpc/platid_mask.c index be0f8233178..19623ec2e90 100644 --- a/sys/arch/hpc/hpc/platid_mask.c +++ b/sys/arch/hpc/hpc/platid_mask.c @@ -1,4 +1,4 @@ -/* $NetBSD: platid_mask.c,v 1.4 2001/03/03 12:56:38 takemura Exp $ */ +/* $NetBSD: platid_mask.c,v 1.5 2001/03/04 03:40:39 takemura Exp $ */ /*- * Copyright (c) 1999-2001 @@ -329,6 +329,14 @@ platid_t platid_mask_MACH_CASIO_CASSIOPEIAE_E507 = {{ PLATID_CPU_MIPS_VR_4121, PLATID_MACH_CASIO_CASSIOPEIAE_E507 }}; +platid_t platid_mask_MACH_CASIO_POCKETPOSTPET = {{ + PLATID_WILD, + PLATID_MACH_CASIO_POCKETPOSTPET +}}; +platid_t platid_mask_MACH_CASIO_POCKETPOSTPET_POCKETPOSTPET = {{ + PLATID_CPU_MIPS_VR_4121, + PLATID_MACH_CASIO_POCKETPOSTPET_POCKETPOSTPET +}}; #endif /* hpcmips */ #ifdef hpcmips platid_t platid_mask_MACH_SHARP = {{ diff --git a/sys/arch/hpc/hpc/platid_name.c b/sys/arch/hpc/hpc/platid_name.c index 179b124f17f..0c1728b1b81 100644 --- a/sys/arch/hpc/hpc/platid_name.c +++ b/sys/arch/hpc/hpc/platid_name.c @@ -1,4 +1,4 @@ -/* $NetBSD: platid_name.c,v 1.4 2001/03/03 12:56:38 takemura Exp $ */ +/* $NetBSD: platid_name.c,v 1.5 2001/03/04 03:40:39 takemura Exp $ */ /*- * Copyright (c) 1999-2001 @@ -190,6 +190,10 @@ struct platid_name platid_name_table[] = { TEXT("CASIO Cassiopeia E500") }, { &platid_mask_MACH_CASIO_CASSIOPEIAE_E507, TEXT("CASIO Cassiopeia E507") }, + { &platid_mask_MACH_CASIO_POCKETPOSTPET, + TEXT("CASIO PocketPostPet") }, + { &platid_mask_MACH_CASIO_POCKETPOSTPET_POCKETPOSTPET, + TEXT("CASIO PocketPostPet") }, #endif /* hpcmips */ #ifdef hpcmips { &platid_mask_MACH_SHARP, diff --git a/sys/arch/hpc/include/platid_generated.h b/sys/arch/hpc/include/platid_generated.h index 416e7b84dcd..16ced252674 100644 --- a/sys/arch/hpc/include/platid_generated.h +++ b/sys/arch/hpc/include/platid_generated.h @@ -1,4 +1,4 @@ -/* $NetBSD: platid_generated.h,v 1.4 2001/03/03 12:56:39 takemura Exp $ */ +/* $NetBSD: platid_generated.h,v 1.5 2001/03/04 03:40:39 takemura Exp $ */ /*- * Copyright (c) 1999-2001 @@ -321,6 +321,14 @@ #define PLATID_MACH_CASIO_CASSIOPEIAE_E507 \ ((PLATID_MACH_CASIO_CASSIOPEIAE_E507_NUM << PLATID_SUBMODEL_SHIFT)| \ PLATID_MACH_CASIO_CASSIOPEIAE_EXXX) +#define PLATID_MACH_CASIO_POCKETPOSTPET_NUM 2 +#define PLATID_MACH_CASIO_POCKETPOSTPET \ + ((PLATID_MACH_CASIO_POCKETPOSTPET_NUM << PLATID_SERIES_SHIFT)| \ + PLATID_MACH_CASIO) +#define PLATID_MACH_CASIO_POCKETPOSTPET_POCKETPOSTPET_NUM 1 +#define PLATID_MACH_CASIO_POCKETPOSTPET_POCKETPOSTPET \ + ((PLATID_MACH_CASIO_POCKETPOSTPET_POCKETPOSTPET_NUM << PLATID_MODEL_SHIFT)| \ + PLATID_MACH_CASIO_POCKETPOSTPET) #endif /* hpcmips */ #ifdef hpcmips #define PLATID_MACH_SHARP_NUM 4 diff --git a/sys/arch/hpc/include/platid_mask.h b/sys/arch/hpc/include/platid_mask.h index a6984b4c316..ead8b3d46ac 100644 --- a/sys/arch/hpc/include/platid_mask.h +++ b/sys/arch/hpc/include/platid_mask.h @@ -1,4 +1,4 @@ -/* $NetBSD: platid_mask.h,v 1.4 2001/03/03 12:56:39 takemura Exp $ */ +/* $NetBSD: platid_mask.h,v 1.5 2001/03/04 03:40:39 takemura Exp $ */ /*- * Copyright (c) 1999-2001 @@ -327,6 +327,14 @@ extern platid_t platid_mask_MACH_CASIO_CASSIOPEIAE_E507; #ifdef PLATID_DEFINE_MASK_NICKNAME # define CASIO_CASSIOPEIAE_E507 ((int)&platid_mask_MACH_CASIO_CASSIOPEIAE_E507) #endif +extern platid_t platid_mask_MACH_CASIO_POCKETPOSTPET; +#ifdef PLATID_DEFINE_MASK_NICKNAME +# define CASIO_POCKETPOSTPET ((int)&platid_mask_MACH_CASIO_POCKETPOSTPET) +#endif +extern platid_t platid_mask_MACH_CASIO_POCKETPOSTPET_POCKETPOSTPET; +#ifdef PLATID_DEFINE_MASK_NICKNAME +# define CASIO_POCKETPOSTPET_POCKETPOSTPET ((int)&platid_mask_MACH_CASIO_POCKETPOSTPET_POCKETPOSTPET) +#endif #endif /* hpcmips */ #ifdef hpcmips extern platid_t platid_mask_MACH_SHARP; diff --git a/sys/dev/hpc/hpckbdkeymap.h b/sys/dev/hpc/hpckbdkeymap.h index 5d8429daf40..211ad91b742 100644 --- a/sys/dev/hpc/hpckbdkeymap.h +++ b/sys/dev/hpc/hpckbdkeymap.h @@ -1,4 +1,4 @@ -/* $NetBSD: hpckbdkeymap.h,v 1.4 2001/03/04 03:04:30 takemura Exp $ */ +/* $NetBSD: hpckbdkeymap.h,v 1.5 2001/03/04 03:40:39 takemura Exp $ */ /*- * Copyright (c) 1999-2001 The NetBSD Foundation, Inc. @@ -421,6 +421,43 @@ static const keysym_t sigmarion_cmdmap[] = { KC(52), KS_Cmd_ContrastUp, KS_period, KS_greater, KC(57), KS_Cmd_BacklightToggle,KS_space, }; + +/* NTT DoCoMo Pocket PostPet (Japan) */ +static u_int8_t pocketpostpet_keytrans[] = { +/*00 esc 1 q a ctrl - down left */ +/*08 tab 2 w s z - right up */ +/*10 pgup 3 e d x shift - - */ +/*18 pgdn 4 r f c alt - - */ +/*20 f5 5 t g v nfer - - */ +/*28 f6 6 y h b - - - */ +/*30 f7 7 u j n space - - */ +/*38 f8 8 i k m - - - */ +/*40 f9 9 o l , xfer - - */ +/*48 f10 0 p ; . - - - */ +/*50 \| minus @ : / ent - - */ +/*58 bs ^ [ ] \_ del - - */ +/* MailCheck -> tab */ +/* Prev -> pgup */ +/* Next -> pgdn */ +/* tab -> ctrl */ +/* h/z -> menu */ +/* k/h -> alt */ +/* knj -> nfer */ +/* eng -> xfer */ +/*----------------------------------------------------------------------*/ +/*00*/ 1, 2, 16, 30, 29, UNK, 208, 203, +/*08*/ 15, 3, 17, 31, 44, UNK, 205, 200, +/*10*/ 73, 4, 18, 32, 45, 42, UNK, UNK, +/*08*/ 81, 5, 19, 33, 46, 56, UNK, UNK, +/*20*/ 63, 6, 20, 34, 47, 123, UNK, UNK, +/*28*/ 64, 7, 21, 35, 48, UNK, UNK, UNK, +/*30*/ 65, 8, 22, 36, 49, 57, UNK, UNK, +/*38*/ 66, 9, 23, 37, 50, UNK, UNK, UNK, +/*40*/ 67, 10, 24, 38, 51, 121, UNK, UNK, +/*48*/ 68, 11, 25, 39, 52, UNK, UNK, UNK, +/*50*/ 125, 12, 26, 40, 53, 28, UNK, UNK, +/*58*/ 14, 13, 27, 43, 115, 14, UNK, UNK, +}; #endif /* hpcmips */ #ifdef hpcsh @@ -548,6 +585,11 @@ const struct hpckbd_keymap_table { NULL, NULLCMDMAP, KB_JP }, + { &platid_mask_MACH_CASIO_POCKETPOSTPET, + pocketpostpet_keytrans, + NULL, + NULLCMDMAP, + KB_JP }, #endif /* hpcmips */ #ifdef hpcsh { &platid_mask_MACH_HP_JORNADA_690JP, |
