Add platform id and keymap for CASIO PocketPostPet.

This commit is contained in:
takemura 2001-03-04 03:40:39 +00:00
parent 92e92121ab
commit 49cddb00a7
6 changed files with 80 additions and 6 deletions

View File

@ -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 */

View File

@ -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 = {{

View File

@ -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,

View File

@ -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

View File

@ -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;

View File

@ -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,