@@ -140,6 +140,10 @@ static t_stat sio_dev_set_interruptoff(UNIT *uptr, int32 value, char *cptr, void
140
140
static t_stat sio_svc (UNIT * uptr );
141
141
static t_stat simh_dev_reset (DEVICE * dptr );
142
142
static t_stat simh_svc (UNIT * uptr );
143
+ static const char * sio_description (DEVICE * dptr );
144
+ static const char * simh_description (DEVICE * dptr );
145
+ static const char * ptr_description (DEVICE * dptr );
146
+ static const char * ptp_description (DEVICE * dptr );
143
147
static void mapAltairPorts (void );
144
148
int32 nulldev (const int32 port , const int32 io , const int32 data );
145
149
int32 sr_dev (const int32 port , const int32 io , const int32 data );
@@ -347,13 +351,17 @@ static MTAB sio_mod[] = {
347
351
{ 0 }
348
352
};
349
353
354
+ static const char * sio_description (DEVICE * dptr ) {
355
+ return "Serial Input Output" ;
356
+ }
357
+
350
358
DEVICE sio_dev = {
351
359
"SIO" , & sio_unit , sio_reg , sio_mod ,
352
360
1 , 10 , 31 , 1 , 8 , 8 ,
353
361
NULL , NULL , & sio_reset ,
354
362
NULL , & sio_attach , & sio_detach ,
355
363
NULL , DEV_DEBUG | DEV_MUX , 0 ,
356
- generic_dt , NULL , "Serial Input Output SIO"
364
+ generic_dt , NULL , NULL , NULL , NULL , NULL , & sio_description
357
365
};
358
366
359
367
static MTAB ptpptr_mod [] = {
@@ -369,26 +377,34 @@ static REG ptr_reg[] = {
369
377
{ NULL }
370
378
};
371
379
380
+ static const char * ptr_description (DEVICE * dptr ) {
381
+ return "Paper Tape Reader" ;
382
+ }
383
+
372
384
DEVICE ptr_dev = {
373
385
"PTR" , & ptr_unit , ptr_reg , ptpptr_mod ,
374
386
1 , 10 , 31 , 1 , 8 , 8 ,
375
387
NULL , NULL , & ptr_reset ,
376
388
NULL , NULL , NULL ,
377
389
NULL , (DEV_DISABLE | DEV_DEBUG ), 0 ,
378
- generic_dt , NULL , "Paper Tape Reader PTR"
390
+ generic_dt , NULL , NULL , NULL , NULL , NULL , & ptr_description
379
391
};
380
392
381
393
static UNIT ptp_unit = {
382
394
UDATA (NULL , UNIT_ATTABLE , 0 )
383
395
};
384
396
397
+ static const char * ptp_description (DEVICE * dptr ) {
398
+ return "Paper Tape Puncher" ;
399
+ }
400
+
385
401
DEVICE ptp_dev = {
386
402
"PTP" , & ptp_unit , NULL , ptpptr_mod ,
387
403
1 , 10 , 31 , 1 , 8 , 8 ,
388
404
NULL , NULL , & ptp_reset ,
389
405
NULL , NULL , NULL ,
390
406
NULL , (DEV_DISABLE | DEV_DEBUG ), 0 ,
391
- generic_dt , NULL , "Paper Tape Puncher PTP"
407
+ generic_dt , NULL , NULL , NULL , NULL , NULL , & ptp_description
392
408
};
393
409
394
410
/* Synthetic device SIMH for communication
@@ -465,13 +481,17 @@ static MTAB simh_mod[] = {
465
481
{ 0 }
466
482
};
467
483
484
+ const char * simh_description (DEVICE * dptr ) {
485
+ return "Pseudo Device" ;
486
+ }
487
+
468
488
DEVICE simh_device = {
469
489
"SIMH" , & simh_unit , simh_reg , simh_mod ,
470
490
1 , 10 , 31 , 1 , 16 , 4 ,
471
491
NULL , NULL , & simh_dev_reset ,
472
492
NULL , NULL , NULL ,
473
493
NULL , (DEV_DISABLE | DEV_DEBUG ), 0 ,
474
- generic_dt , NULL , "Pseudo Device SIMH"
494
+ generic_dt , NULL , NULL , NULL , NULL , NULL , & simh_description
475
495
};
476
496
477
497
static void resetSIOWarningFlags (void ) {
0 commit comments