1
0
mirror of https://github.com/PDP-10/klh10.git synced 2026-02-08 17:22:03 +00:00

Merge pull request #22 from PDP-10/massbus-serial-numbers

Massbus serial numbers
This commit is contained in:
Rhialto The M
2017-05-14 19:12:56 +02:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -287,8 +287,8 @@ rp_conf(FILE *f, char *s, struct rpdev *rp)
rp->rp_iswrite = TRUE;
partyp(rp, DVRP_DEFAULT_DISK); /* Default disk config */
RPREG(rp, RHR_SN) = /* Serial Number register (BCD) */
(((1 / 1000)%10) << 12)
| (((6 / 100)%10) << 8)
(((1600 / 1000)%10) << 12)
| (((1600 / 100)%10) << 8)
| (((nrps / 10)%10) << 4)
| (((nrps )%10) );
rp->rp_bufsec = 4; /* # sectors in buffer */

View File

@@ -300,8 +300,8 @@ tm03_conf(FILE *f, char *s, struct tmdev *tm)
tm->tm_typ = TM_DTTM03; /* Say formatter is TM03 for now */
tm->tm_styp = TM_DT45; /* Say slave is TU45 for now */
TMREG(tm, RHR_SN) = /* Serial Number register (BCD) */
(((9 / 1000)%10) << 12)
| (((9 / 100)%10) << 8)
(((9900 / 1000)%10) << 12)
| (((9900 / 100)%10) << 8)
| (((ntms / 10)%10) << 4)
| (((ntms )%10) );
#if KLH10_DEV_DPTM03