home .. forth .. colorforth mail list archive ..

Re: [colorforth] Realtek Ethernet driver


Mark,

The crynwr packet drivers, written by Russ Nelson from www.crynwr.com
might give you a clue to how to address the realtek chip. 8139 is if i
remember correctly the same kind of chip used in the NE2000 (Novell)
ethernet cards, which used to be very standard.

Googling for them brings up this link first:

http://www.dunfield.com/downloads.htm

The files you would be looking for are:
PKTD11.ZIP (425K) Crynwr v11.x packet drivers exectutables and docs
PKTD11A.ZIP (319K) Crynwr v11.x packet drivers source, 1 of 2
PKTD11B.ZIP (337K) Crynwr v11.x packet drives source, 2 of 2
PKTD11C.ZIP (93K)  Crynwr 11.x packet drivers update

Packet drivers are written in assembler and address the ethernet card
close to the chip -- this was a sort-of standard way to have ethernet
support in MS-DOS or Windows 3.1.

A lot of the Linux drivers used these drivers as "supplementary
documentation".

Arno


On Mon, 7 Jun 2004, Mark Slicker wrote:

> On Sun, 6 Jun 2004, Oninoshiko wrote:
>
> > On Sun, 6 Jun 2004, Mark Slicker wrote:
> >
> > > The FIFO buffer is an intermediate step. Once a threshold is met the
> > > packet is transfered by the realtek card from the FIFO to host (main)
> > > memory. This operation is enabled by setting a bit in the Command
> > > Register on the realtek chip, and is independent of whether interupts are
> > > enabled either on the CPU or the realtek chip.
> >
> > I stand corrected, on rereading, the buffer (main/host memory?) is a
> > cyclic buffer (8k+1536b overrun?). It looks like I have registers to
> > tell me where in this buffer I am (37h bit 0 (RX Buffer Empty), 38h-39h
> > (CAPR)). i wanted to conferm this.
>
> It says it is a ring buffer, I think that implies a cyclic buffer. I don't
> see anywhere in the rtl8139b documentation a precise description of the
> operation. Chuck uses (CAPR + 16 + rx + 4) as the address of the
> recieved packet, I not quite sure how this is derived. In addition he sets
> CAPR to (CBR - 16) and CBR to 0.
>
> > > The interrupt is used for signaling. Chuck has enabled the ROK (Recieve
> > > OK) interupt, which will signal when a packet has succesfully been
> > > recieved to host memory.
> >
> > am i understanding this correctly?
>
> As well as I do it seems, the documentation is not a clear as it could be.
>
> >
> > thanks for all your help,
> >
>
> No problem, and besides this list is much to quiet! ;)
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: colorforth-unsubscribe@xxxxxxxxxxxxxxxxxx
> For additional commands, e-mail: colorforth-help@xxxxxxxxxxxxxxxxxx
> Main web page - http://www.colorforth.com
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: colorforth-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: colorforth-help@xxxxxxxxxxxxxxxxxx
Main web page - http://www.colorforth.com