Subject: Re: disk id numbers
To: Paul Thompson <thompson@athenet.net>
From: Tim Shoppa <shoppa@alph01.triumf.ca>
List: port-vax
Date: 10/20/1998 19:14:07
> Here are some MSCP Media ID numbers I happened across.
> 
> When converted from Hex they correspond to the numbers people have 
> been looking for for MSCP disks.  I.E. RD32 = 0x25644020 = 627327008
> 
> 
>     {DEV_RA80,  1, 0x25641050,ra80_sizes},

I'm surprised there's so much discussion over something that's
so well documented in the UDA50 books; but here goes - how
to decode MSCP media ID numbers:

The lowest order 7 bits are the two-digit numeric
suffix; in the example above, 50 Hex=80 decimal.

The highest order 5 bits are the first letter of the
MSCP media identifier; here we have "00100", which
means the 4th letter of the alphabet, or "D"

The next 5 bits are the next letter; here we have
"10101", the 21st letter of the alphabet, or "U"

The next 5 bits are the next letter; here we have
"10010", the 18th letter, or "R"

The next 5 bits are the next letter; here
we have "00001", the 1st letter, or "A".

Thus 0x25641050 is "DURA80".  The same technique
can be used to decode any of the media type codes, even
for tape devices (i.e. a TK50 is "MUTK50".)

For a nice little RT-11 utility that tells you
everything you wanted to know about your MSCP devices,
see my DUSTAT utility at:

ftp://sunsite.unc.edu/pub/academic/computer-science/history/pdp-11/rt/dustat/

Tim. (shoppa@trailing-edge.com)