SCP: Add device descriptions to internal devices visible in SHOW FEATURE -I
This commit is contained in:
parent
65cfd2a63d
commit
36276a79e1
2 changed files with 28 additions and 4 deletions
|
@ -211,11 +211,17 @@ static MTAB sim_con_mod[] = {
|
||||||
{ 0 },
|
{ 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const char *sim_con_telnet_description (DEVICE *dptr)
|
||||||
|
{
|
||||||
|
return "Console telnet support";
|
||||||
|
}
|
||||||
|
|
||||||
DEVICE sim_con_telnet = {
|
DEVICE sim_con_telnet = {
|
||||||
"CON-TEL", &sim_con_unit, sim_con_reg, sim_con_mod,
|
"CON-TEL", &sim_con_unit, sim_con_reg, sim_con_mod,
|
||||||
1, 0, 0, 0, 0, 0,
|
1, 0, 0, 0, 0, 0,
|
||||||
NULL, NULL, sim_con_reset, NULL, sim_con_attach, sim_con_detach,
|
NULL, NULL, sim_con_reset, NULL, sim_con_attach, sim_con_detach,
|
||||||
NULL, DEV_DEBUG, 0, sim_con_debug};
|
NULL, DEV_DEBUG, 0, sim_con_debug,
|
||||||
|
NULL, NULL, NULL, NULL, NULL, sim_con_telnet_description};
|
||||||
TMLN sim_con_ldsc = { 0 }; /* console line descr */
|
TMLN sim_con_ldsc = { 0 }; /* console line descr */
|
||||||
TMXR sim_con_tmxr = { 1, 0, 0, &sim_con_ldsc, NULL, &sim_con_telnet };/* console line mux */
|
TMXR sim_con_tmxr = { 1, 0, 0, &sim_con_ldsc, NULL, &sim_con_telnet };/* console line mux */
|
||||||
|
|
||||||
|
@ -416,11 +422,17 @@ MTAB sim_rem_con_mod[] = {
|
||||||
{ 0 },
|
{ 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const char *sim_rem_con_description (DEVICE *dptr)
|
||||||
|
{
|
||||||
|
return "Remote Console Facility";
|
||||||
|
}
|
||||||
|
|
||||||
DEVICE sim_remote_console = {
|
DEVICE sim_remote_console = {
|
||||||
"REM-CON", sim_rem_con_unit, NULL, sim_rem_con_mod,
|
"REM-CON", sim_rem_con_unit, NULL, sim_rem_con_mod,
|
||||||
2, 0, 0, 0, 0, 0,
|
2, 0, 0, 0, 0, 0,
|
||||||
NULL, NULL, sim_rem_con_reset, NULL, NULL, NULL,
|
NULL, NULL, sim_rem_con_reset, NULL, NULL, NULL,
|
||||||
NULL, DEV_DEBUG | DEV_NOSAVE, 0, sim_rem_con_debug};
|
NULL, DEV_DEBUG | DEV_NOSAVE, 0, sim_rem_con_debug,
|
||||||
|
NULL, NULL, NULL, NULL, NULL, sim_rem_con_description};
|
||||||
#define MAX_REMOTE_SESSIONS 40 /* Arbitrary Session Limit */
|
#define MAX_REMOTE_SESSIONS 40 /* Arbitrary Session Limit */
|
||||||
static int32 *sim_rem_buf_size = NULL;
|
static int32 *sim_rem_buf_size = NULL;
|
||||||
static int32 *sim_rem_buf_ptr = NULL;
|
static int32 *sim_rem_buf_ptr = NULL;
|
||||||
|
|
16
sim_timer.c
16
sim_timer.c
|
@ -1313,14 +1313,24 @@ MTAB sim_timer_mod[] = {
|
||||||
|
|
||||||
static t_stat sim_timer_clock_reset (DEVICE *dptr);
|
static t_stat sim_timer_clock_reset (DEVICE *dptr);
|
||||||
|
|
||||||
|
static const char *sim_timer_description (DEVICE *dptr)
|
||||||
|
{
|
||||||
|
return "Internal Timer facilities";
|
||||||
|
}
|
||||||
|
|
||||||
|
static const char *sim_throttle_description (DEVICE *dptr)
|
||||||
|
{
|
||||||
|
return "Internal Throttle facility";
|
||||||
|
}
|
||||||
|
|
||||||
DEVICE sim_timer_dev = {
|
DEVICE sim_timer_dev = {
|
||||||
"TIMER", sim_timer_units, sim_timer_reg, sim_timer_mod,
|
"INT-TMR", sim_timer_units, sim_timer_reg, sim_timer_mod,
|
||||||
SIM_NTIMERS+1, 0, 0, 0, 0, 0,
|
SIM_NTIMERS+1, 0, 0, 0, 0, 0,
|
||||||
NULL, NULL, &sim_timer_clock_reset, NULL, NULL, NULL,
|
NULL, NULL, &sim_timer_clock_reset, NULL, NULL, NULL,
|
||||||
NULL, DEV_DEBUG | DEV_NOSAVE, 0, sim_timer_debug};
|
NULL, DEV_DEBUG | DEV_NOSAVE, 0, sim_timer_debug};
|
||||||
|
|
||||||
DEVICE sim_throttle_dev = {
|
DEVICE sim_throttle_dev = {
|
||||||
"THROT-TLE", &sim_throttle_unit, sim_throttle_reg, NULL, 1};
|
"INT-THR", &sim_throttle_unit, sim_throttle_reg};
|
||||||
|
|
||||||
|
|
||||||
/* SET CLOCK command */
|
/* SET CLOCK command */
|
||||||
|
@ -2104,6 +2114,8 @@ static t_stat sim_timer_clock_reset (DEVICE *dptr)
|
||||||
{
|
{
|
||||||
sim_debug (DBG_TRC, &sim_timer_dev, "sim_timer_clock_reset()\n");
|
sim_debug (DBG_TRC, &sim_timer_dev, "sim_timer_clock_reset()\n");
|
||||||
_rtcn_configure_calibrated_clock (sim_calb_tmr);
|
_rtcn_configure_calibrated_clock (sim_calb_tmr);
|
||||||
|
sim_timer_dev.description = &sim_timer_description;
|
||||||
|
sim_throttle_dev.description = &sim_throttle_description;
|
||||||
if (sim_switches & SWMASK ('P')) {
|
if (sim_switches & SWMASK ('P')) {
|
||||||
sim_cancel (&SIM_INTERNAL_UNIT);
|
sim_cancel (&SIM_INTERNAL_UNIT);
|
||||||
sim_calb_tmr = -1;
|
sim_calb_tmr = -1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue