316
Development Tools User’s Guide
Intel
®
IXP2400/IXP2800 Network Processors
SPI4 Bus Functional Model
E.3.3
Flow Control
The flow control functions are:
•
spi4_set_rx_fc_info (see
•
spi4_set_tx_fc_info
(see
•
spi4_set_rx_calendar
(see
)
•
spi4_set_tx_calendar (see
E.3.3.1
spi4_set_rx_fc_info/spi4_set_tx_fc_info/spi4_set_rx_calendar /
spi4_set_tx_calendar
The
spi4_set_rx_fc_info
/
spi4_set_tx_fc_info
/
spi4_set_tx_calendarrspi4_set_tx_calendar
sets the flow control information.
The parameters specified in these three functions are also supported by the
spi4_set_device_rx_param
/
spi4_set_device_tx_param
.
int
spi4_set_rx_fc_info
(char
*device_id_str,
int
nBurst1
int
nBurst2
int
nMaxiFifoInterval,
int
nHWM
int
nPortAddr)
int
spi4_set_tx_fc_info
(char
*device_id_str,
int
nBurst1
int
nBurst2
int
nMaxiFifoInterval,
int
nHWM
int
nPortAddr)
where:
device_id_str
string representation of device_id
nBurst1
Rx/Tx SPI4 Flow Control MaxBurst1 (16-byte/unit)
nBurst2
Rx/Tx SPI4 Flow Control MaxBurst2 (16-byte/unit)
nMaxiFifoInterval
Tx SPI4 Flow Control time interval FIFO_MAX_T (msf cycle)
nHWM
Rx/Tx High Water Mark
nPort Addr
physical port address
int
spi4_set_rx_calendar
(int
device_id,
int
calendar_length
int
index
int
calendar
int
spi4_set_tx_calendar
(int
device_id,