User`s manual

NIOC - Network I/O Control
3-146
3
NIOC - Network I/O Control
Command Input
NIOC
Description
The NIOC command sends command packets directly to the
Ethernet network interface driver. The packet to be sent must
already reside in memory and must follow the packet protocol of
the interface. This command facilitates in the transmission and
reception of raw packets (command identifiers 2 and 3, listed
below), as well as some control (command identifiers 0, 1, 4, and 5,
listed below).
The command packet specifies the network interface (CLUN/
DLUN), command type (identifier), the starting memory address
(data transfers), and the number of bytes to transfer (data transfers).
The command types are listed in this header file as well.
The command types (identifiers) are as follows:
The initialization (type 0) of the device/channel/node must always
be performed first. If you have booted or initiated some other
network I/O command, the initialization would already have been
done.
The flush receiver and receive buffer (type 4) would be used if, for
example, the current receive data is no longer needed, or to provide
a known buffer state prior to initiating data transfers.
0 Initialize device/channel/node
1 Get hardware (Ethernet) address (network node)
2 Transmit (put) data packet
3 Receive (get) data packet
4 Flush receiver and receive buffers
5 Reset device/channel/node