Data Book.
TRANSMITTING THE PACKET:
Get the packet buffer to be transmitted.
Get the number of bytes to be transmitted.
Set the Shared
address for cop
Copy the data from packet buffer to
ing data.
memory.
Program the
register of NIC with number of
bytes to be transmitted.
Give the transmit packet coninand to the NIC.
Interrupt is generated when a packet is received or packet is transmitted.
RECEIVING THE PACKET:
Disable the interrupt from NIC Program
register
Do
l
Read the
steps till no receive/transmit event pending.
register.
l
If Packet is received with error
check for specific error cause and increment the diagn
ostic counters.
l
If packet is received without error
l
Set the source buffer address to Shared
offset used for
receiving the packet.
l
NIC Receive Packet header to get number of bytes
l
Check'the
of bytes received with the allowed maximum
and minimum values.
l
Set the buffer address where received packet is to be copied.
l
Copy the received packet from shared memory into the buffer.
l
Program the registers of NIC to be ready for next receive.
If packet is transmitted with error
check for specific error cause and increment the diagn
ostic
l
Check for next packet to be sent.
Enable the interrupt
NIC (
Program
register