From: Bob Supnik <bsupnik@nauticusnet.com>
Subject: Re: RQDX3 emulator - MSCP credit and unit schemes.
Date: Mon, 19 Nov 2001 10:12:09 -0500 [thread overview]
Message-ID: <4n7ivtoc4hkfelbj792p8lirafmbo0csl2@4ax.com> (raw)
In-Reply-To: tvb6rk6c36f5b8@corp.supernews.com
The RQDX3 has credits equal to the number of packets it can buffer
internally. On the very first reply, to the Set Ctrl Char, the RQDX3
awards as many of its credits to the host, within the overall protocol
limit of 15 for the field in the message header, as it can.
Thereafter, it continues to deliver credits to the host until it has
allocated all of them to the host. After that, it provides one per
returned packet.
In C-like terms, if rqcredit is its initial allocation.
if (resp pkt is end pk && resp pkt is sequential msg) {
cr_to_send = (rqcredit > 14)? 14: rqcredit;
rqcredit = rqcredit - cr_to_send;
insert (cr_to_send + 1) into resp packet; }
The host receives all the credits up front; thereafter; it receives
one additional credit for each response packet sent over.
The unit poll goes 1, 2, 3... because the GUS is being done with the
"next unit" characteristic. When VMS sends over unit 4, the RQDX3
wraps the unit number back to 0, changes the unit number in the
response packet, and reports on unit 0. This is how VMS knows that
the end of the controller has been reached.
Unit #s are keyed to the controller address. The primary controller
is units 0..3. At the secondary address, the units are 4..7, etc.
/Bob
On Fri, 16 Nov 2001 23:04:20 -0000, sword7@speakeasy.org wrote:
>Hello folks:
>
>Good news! I am working on my TS10 emulator (VAX emulator). I finally
>get more further than before after I put credits in MSCP packet (Set
>Controller Characteristics Command). I struggled to get OpenVMS and
>NetBSD to continue for many weeks. I learned that OpenVMS and NetBSD
>requires least 2 credits before can issue "Get Unit Status" packets to
>continue.
>
>In "Set Controller Characteristics" end message, I put 4 credits or so
>into Type field of message header. VMS and NetBSD finally get more
>further...
>
>NetBSD successfully attached ra0 as RRD40. It said that device type RRD40
>clearly. It successfully processed "Get Unit Status" with unit #0 but
>crashed with results from RQDX3 for unit #1.
>
>However, OpenVMS v7.2 did not issue "Get Unit Status" for unit #0 but
>starting with unit #1.
>
>I am trying figure out about unit schemes. I have some questions with
>you. Unit #0 is controller, Unit #1 is drive #0, etc.. Right? If
>not, does anyone have any information about unit schemes?
>
>Does anyone have information about credits handling because both are
>sensetive to credits from RQDX3 controller? They can't go ahead to
>issue "Get Unit Status" without least 2 credits from RQDX3 controller.
>
>Yes, I now was able to boot NetBSD/vax from CD directly because CD disc
>does not have FILES-11 but ISO-9660 format. Interesting results in
>debug.log about ISO-9660 format. Each block is 2048 bytes that I noticed.
>VMB recongizes both FILES-11 and ISO-9660 format.
>
>Thank you!
>
>-- Tim Stark
prev parent reply other threads:[~2001-11-19 15:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-16 23:04 RQDX3 emulator - MSCP credit and unit schemes sword7
2001-11-19 15:12 ` Bob Supnik [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox