VAX QVSS: Add device descriptions to the Keyboard (LK) and Mouse (VS) devices.

This commit is contained in:
Mark Pizzolato 2015-12-01 07:46:28 -08:00
parent d1518e56a6
commit 78f4d07c3d
6 changed files with 41 additions and 27 deletions

View file

@ -77,9 +77,9 @@ DEVICE *sim_devices[] = {
&cr_dev, &cr_dev,
&lpt_dev, &lpt_dev,
#if defined(USE_SIM_VIDEO) && defined(HAVE_LIBSDL) #if defined(USE_SIM_VIDEO) && defined(HAVE_LIBSDL)
&vc_dev,
&lk_dev, &lk_dev,
&vs_dev, &vs_dev,
&vc_dev,
#endif #endif
&rl_dev, &rl_dev,
&rq_dev, &rq_dev,

View file

@ -91,9 +91,9 @@ DEVICE *sim_devices[] = {
&cr_dev, &cr_dev,
&lpt_dev, &lpt_dev,
#if defined(USE_SIM_VIDEO) && defined(HAVE_LIBSDL) #if defined(USE_SIM_VIDEO) && defined(HAVE_LIBSDL)
&vc_dev,
&lk_dev, &lk_dev,
&vs_dev, &vs_dev,
&vc_dev,
#endif #endif
&rl_dev, &rl_dev,
&rq_dev, &rq_dev,

View file

@ -176,6 +176,7 @@ t_stat lk_reset (DEVICE *dptr);
void lk_reset_mode (void); void lk_reset_mode (void);
void lk_cmd (void); void lk_cmd (void);
void lk_poll (void); void lk_poll (void);
const char *lk_description (DEVICE *dptr);
/* LK data structures /* LK data structures
@ -187,8 +188,8 @@ void lk_poll (void);
*/ */
DEBTAB lk_debug[] = { DEBTAB lk_debug[] = {
{"SERIAL", DBG_SERIAL}, {"SERIAL", DBG_SERIAL, "Serial port data"},
{"CMD", DBG_CMD}, {"CMD", DBG_CMD, "Commands"},
{0} {0}
}; };
@ -208,7 +209,8 @@ DEVICE lk_dev = {
NULL, NULL, &lk_reset, NULL, NULL, &lk_reset,
NULL, NULL, NULL, NULL, NULL, NULL,
NULL, DEV_DIS | DEV_DEBUG, 0, NULL, DEV_DIS | DEV_DEBUG, 0,
lk_debug lk_debug, NULL, NULL, NULL, NULL, NULL,
&lk_description
}; };
/* Incoming data on serial line */ /* Incoming data on serial line */
@ -828,6 +830,11 @@ switch (mode) {
} }
} }
const char *lk_description (DEVICE *dptr)
{
return " VCB01 - LK Keyboard interface";
}
#else /* defined(VAX_620) */ #else /* defined(VAX_620) */
static const char *dummy_declaration = "Something to compile"; static const char *dummy_declaration = "Something to compile";
#endif /* !defined(VAX_620) */ #endif /* !defined(VAX_620) */

View file

@ -84,9 +84,9 @@ DEVICE *sim_devices[] = {
&cr_dev, &cr_dev,
&lpt_dev, &lpt_dev,
#if defined(USE_SIM_VIDEO) && defined(HAVE_LIBSDL) #if defined(USE_SIM_VIDEO) && defined(HAVE_LIBSDL)
&vc_dev,
&lk_dev, &lk_dev,
&vs_dev, &vs_dev,
&vc_dev,
#endif #endif
&rl_dev, &rl_dev,
&rq_dev, &rq_dev,

View file

@ -278,24 +278,24 @@ DIB vc_dib = {
#define DBG_INT 0x00FF /* interrupt 0-7 */ #define DBG_INT 0x00FF /* interrupt 0-7 */
DEBTAB vc_debug[] = { DEBTAB vc_debug[] = {
{"REG", DBG_REG}, {"REG", DBG_REG, "Register activity"},
{"CRTC", DBG_CRTC}, {"CRTC", DBG_CRTC, "CRTC register activity"},
{"CURSOR", DBG_CURSOR}, {"CURSOR", DBG_CURSOR, "Cursor content, function and visibility activity"},
{"TCURSOR", DBG_TCURSOR}, {"TCURSOR", DBG_TCURSOR, "Cursor content, function and visibility activity"},
{"SCANL", DBG_SCANL}, {"SCANL", DBG_SCANL, "Scanline map activity"},
{"DUART", DBG_INT0}, {"DUART", DBG_INT0, "interrupt 0"},
{"VSYNC", DBG_INT1}, {"VSYNC", DBG_INT1, "interrupt 1"},
{"MOUSE", DBG_INT2}, {"MOUSE", DBG_INT2, "interrupt 2"},
{"CSTRT", DBG_INT3}, {"CSTRT", DBG_INT3, "interrupt 3"},
{"MBA", DBG_INT4}, {"MBA", DBG_INT4, "interrupt 4"},
{"MBB", DBG_INT5}, {"MBB", DBG_INT5, "interrupt 5"},
{"MBC", DBG_INT6}, {"MBC", DBG_INT6, "interrupt 6"},
{"SPARE", DBG_INT7}, {"SPARE", DBG_INT7, "interrupt 7"},
{"INT", DBG_INT0|DBG_INT1|DBG_INT2|DBG_INT3|DBG_INT4|DBG_INT5|DBG_INT6|DBG_INT7}, {"INT", DBG_INT0|DBG_INT1|DBG_INT2|DBG_INT3|DBG_INT4|DBG_INT5|DBG_INT6|DBG_INT7, "interrupt 0-7"},
{"VMOUSE", SIM_VID_DBG_MOUSE}, {"VMOUSE", SIM_VID_DBG_MOUSE, "Video Mouse"},
{"VCURSOR", SIM_VID_DBG_CURSOR}, {"VCURSOR", SIM_VID_DBG_CURSOR, "Video Cursor"},
{"VKEY", SIM_VID_DBG_KEY}, {"VKEY", SIM_VID_DBG_KEY, "Video Key"},
{"VVIDEO", SIM_VID_DBG_VIDEO}, {"VVIDEO", SIM_VID_DBG_VIDEO, "Video Video"},
{0} {0}
}; };

View file

@ -78,6 +78,7 @@ t_stat vs_reset (DEVICE *dptr);
void vs_cmd (int32 c); void vs_cmd (int32 c);
void vs_sendupd (void); void vs_sendupd (void);
void vs_poll (void); void vs_poll (void);
const char *vs_description (DEVICE *dptr);
/* VS data structures /* VS data structures
@ -90,8 +91,8 @@ void vs_poll (void);
*/ */
DEBTAB vs_debug[] = { DEBTAB vs_debug[] = {
{"SERIAL", DBG_SERIAL}, {"SERIAL", DBG_SERIAL, "Serial port data"},
{"CMD", DBG_CMD}, {"CMD", DBG_CMD, "Commands"},
{0} {0}
}; };
@ -111,7 +112,8 @@ DEVICE vs_dev = {
NULL, NULL, &vs_reset, NULL, NULL, &vs_reset,
NULL, NULL, NULL, NULL, NULL, NULL,
NULL, DEV_DIS | DEV_DEBUG, 0, NULL, DEV_DIS | DEV_DEBUG, 0,
vs_debug vs_debug, NULL, NULL, NULL, NULL, NULL,
&vs_description
}; };
@ -239,6 +241,11 @@ if (vs_state == VSXXX_IDLE) {
} }
} }
const char *vs_description (DEVICE *dptr)
{
return " VCB01 - VS Mouse interface";
}
#else /* defined(VAX_620) */ #else /* defined(VAX_620) */
static const char *dummy_declaration = "Something to compile"; static const char *dummy_declaration = "Something to compile";
#endif /* !defined(VAX_620) */ #endif /* !defined(VAX_620) */