Anonymous user
Ne2000: Difference between revisions
Jump to navigation
Jump to search
m
replaced bold with <tt> in some places
[unchecked revision] | [unchecked revision] |
(Fixed links) |
m (replaced bold with <tt> in some places) |
||
Line 8:
The Ne2000 network card uses two ''ring buffers'' for packet handling. These are circular buffers made of 256-byte ''pages'' that the chip's [[DMA]] logic will use to store received packets or to get received packets.
Note that a packet will
bytes at the end of a page.
==== Ring Buffer ====
Two registers <tt>PSTART</tt> and <tt>PSTOP</tt> define a set of 256-byte pages in the ''buffer memory'' that will be used for the ring buffer. As soon as the DMA attempts to read/write to <tt>PSTOP</tt>, it will be sent back to <tt>PSTART</tt>
PSTART PSTOP
Line 68:
The following sequence is the one observed by the ''ne2k-pci'' module in linux. Note that some odd cards needs a patch (read-before-write) that isn't covered here. The ''data configuration'' is initialized at 0x49 (word transfer, 8086 byte order, dual 16bit DMA, loopback disabled). Note that the weird driver doesn't seem to use interrupts for completion notification.
#
#
#
#
#
# Packets data is now written to the
# Poll
== ISA configuration information ==
|