lan83c175 Standard Microsystems Corp., lan83c175 Datasheet - Page 21

no-image

lan83c175

Manufacturer Part Number
lan83c175
Description
Ethernet Cardbus Integrated Controller With Modem Support Corporation
Manufacturer
Standard Microsystems Corp.
Datasheet
valid, and the RSV bit will be set to 1. In early
receive mode, the receive DMA status may be
posted before the network status for the frame
is available, in which case the RSV bit in the
descriptor will be set to 0. If the entire frame
fits into the header buffer, then the network
receive status will always be posted with the
frame. After a header copy, the receive DMA
always clears the RXQUEUED bit (also setting
the receive queue empty interrupt, which may
be masked) and waits in the idle state for the
software driver to queue a fragment list for the
rest of the frame.
After examining the header data, the software
driver may discard the frame or have it copied
into host memory as many times as it would
like. The software requests copies of the frame
by programming descriptors (and fragments
lists) and setting RXQUEUED without setting
NEXTFRAME. The frame is copied exactly as
it would be in the free buffer pool mode, with
the exception that the offset field is used with
fragment list copies. The software may not
need all of the bytes at the beginning of the
frame to be copied, so it may specify an offset
into the frame where the copy should begin.
The offset field shares a location in the
descriptor with the buffer length field because
the buffer length is not specified in a descriptor
for a fragment list. The receive DMA copies
the frame into host memory beginning from
the byte number specified in the offset. If the
offset field is not zero, then the copy will not
begin until the entire frame has been received
from the network, even if early receive is
enabled. This is so that the receive DMA does
that the number of bytes that have been
received so far. Usually, the entire frame will
have been received before the fragment list is
available.
When the copy is finished, the receive status
is posted and the receive copy complete
interrupt is set.
read the next descriptor, and if the ownership
not copy invalid data if the offset is greater
The receive DMA will then
21
bit is set it will immediately begin to copy the
same frame into host memory again.
descriptor
RXQUEUED will be cleared (and receive queue
empty interrupt set) and the receive DMA will wait
in the idle state for another command.
software driver wants another copy of the frame, it
may
RXQUEUED without setting NEXTFRAME. This
procedure will be
chooses to go on to the next frame.
The software driver discards a frame by setting
NEXTFRAME before or simultaneous to setting
RXQUEUED. If RXQUEUED is set after or along
with NEXTFRAME, the receive DMA will begin to
copy the next frame (if any) in the receive buffer.
The next descriptor queued should contain a
header buffer for the next frame.
Occasionally, the software driver may want to
discard a frame immediately after reading its
header, but still read the receive status for that
frame. If the valid network status is not posted in
the descriptor, then the software driver may read
first set NEXTFRAME
discard the frame, as described above. However,
the next descriptor in the receive descriptor list
must have the ownership bit cleared (host still
owns descriptor). This allows the LAN83C175 to
update the PRSTAT register without starting to
copy the following frame.
must poll the RQE (receive queue empty) interrupt
to determine when the status is available. When
the RQE interrupt is set, the driver may read the
receive status from the PRSTAT register.
receive status valid bit in
register will not indicate when the receive status
is available.
When the software driver only wants one more
copy of the current frame, it does not have to wait
for
NEXTFRAME.
NEXTFRAME
RXQUEUED (on the following I/O write) and begin
it from the PRSTAT register. The driver must
the
queue
copy
is
owned
immediately
another
to
The
repeated until the software
complete
software
by
and RXQUEUED to
descriptor
The software driver
the interrupt status
the
before
after
host,
may
and
setting
setting
If the
If the
then
The
set
set

Related parts for lan83c175