From: Jeff Campbell <jcampbell@ins-msi.com>
Subject: Re: DEQNA/DELQA - Checksum calculation?
Date: Mon, 25 Feb 2002 01:54:57 GMT [thread overview]
Message-ID: <3C799024.F4E1DD7C@ins-msi.com> (raw)
In-Reply-To: u7g82l8b8hp087@corp.supernews.com
sword7@speakeasy.org wrote:
>
> In comp.sys.dec Mark Hittinger ?bugs@pu.net? wrote:
> ? DELQA was newer, faster, less buggy than the DEQNA.
>
> ? Post 5.2 VMS starting making DEQNA's unsupported.
>
> Ok, I get it. I will see if OpenVMS v7.2 works with DEQNA. If not,
> I have modify my DEQNA emulation to funcion as DELQA. Do both DEQNA
> and DELQA have same functions/registers?
Basically yes. The big differences are the handshake method used in
handling buffer descriptor lists and some CSR bit meanings. I wish
that the DEQNA/DELQA engineers had adopted the MSCP methods of doing
this. 8-)
Anyway, the reason the DEQNA was replaced is that it was broken
internally. You are implementing an emulated DEQNA/DELQA. Your code will
not actually *be* a DEQNA with it's INTERNAL errors. The software
interface
a DEQNA presents to a device driver writer is ok. If you code to that
interface your emulated DEQNA should be ok as well. The OS software
does not know about what the DEQNA is doing internally.
So I would recommend that since you have a DEQNA manual go ahead and
implement it. You will need only minor changes if later you decide to
implement a DELQA interface.
>
> I still am looking for information about checksum calcuation because
> KA655 firmware refuse to boot XQA0 (MOP) without right checksum value
> in last two bytes of 8 bytes station address (PROM).
From section 3.3.5 of the DELQA manual:
<quote>
Two byte locations of the SA ROM include the checksum of the Ethernet
physical address. The checksum is accessed by reading the first two
bytes in reverse order, as follows.
1. Clear CSR00 (Receiver Enable) to disable Ethernet reception.
2. Clear CSR08 (Internal Loopback) and set CSR09 (External Loopback) to
put the DELQA into external loopback mode.
3. Read the lower byte of word 1 in the DELQA I/O block.
4. Read the lower byte of word 0 in the DELQA I/O block.
5. To clear external loopback mode;
Either set and then clear CSR01 (Software Reset)
or write zero to EL (External Loopback).
</quote>
The manual doesn't give the arithmetic method of calculating the
checksum, but DEC typically used 2's complement checksums ignoring
any carrys. The sum of the data and it's checksum should be zero.
Not having tried this 8-), I think what you want to do is:
1) MOVZBW each of the 6 SA bytes to a register. ADDW2 that register
to a SUM register.
2) put the DELQA in 'read checksum mode'
3) MOVZBW the low byte of the second SA ROM address to a register.
4) MOVZBW the low byte of the first SA ROM to another register.
5) take the DELQA out of 'read checksum mode'
6) shift left 8 places the step 4 register.
7) ADDW2 the step 3 register to the step 4 register.
8) ADDW2 the step 4 register to the SUM register mentioned in step 1
The step 1 SUM register low word should be zero when done.
>
> Thank you!
>
> -- Tim Stark
>
> --
> Timothy Stark ??? Inet: sword7@speakeasy.org
> --------------------------------------------------------------------------
> "For God so loved the world, that he gave his only begotten Son, that
> whosoever believeth in him should not perish, but have everlasting life.
> Amen." -- John 3:16 (King James Version Bible)
next prev parent reply other threads:[~2002-02-25 1:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-23 0:36 DEQNA/DELQA - Checksum calculation? sword7
2002-02-23 1:01 ` Mark Hittinger
2002-02-23 23:05 ` sword7
2002-02-23 23:21 ` Mark Hittinger
2002-02-24 3:37 ` Dennis Henriksen
2002-02-24 4:08 ` Mark Hittinger
2002-02-26 12:06 ` Harti Brandt
2002-02-25 1:54 ` Jeff Campbell [this message]
2002-02-26 22:21 ` antonio.carlini
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