Development Tools User’s Guide
313
Intel
®
IXP2400/IXP2800 Network Processors
SPI4 Bus Functional Model
E.3.1.2
spi4_set_device_X_param/spi4_set_port_X_param
The
spi4_set_device_X_param
/
spi4_set_port_X_param
sets the value of the
specified parameter of the specified spi4 device/port.
int
spi4_set_device_rx_param
(int
device_id,
int
param_id,
int
param_value
)
int
spi4_set_port_rx_param
(int
device_id
,
int
port_num,
int
param_id,
int
param_value
)
int
spi4_set_device_tx_param
(int
device_id,
int
param_id,
int
param_value
)
int
spi4_set_port_tx_param
(int
device_id
,
int
port_num,
int
param_id,
int
param_value
)
where:
device_id
:
unique device id for each device
port_num
port in the specified device
param_id
parameter ID (see the table below)
param_value
the value for the specified parameter
Parameter ID
Parameter Description
1
Rx/Tx FIFO size (in byte)
2
Rx/Tx FIFO Low Water Mark (in byte)
3
Rx/Tx Line Rate (in Mb/s)
4
Rx/Tx Device/Port Physical address
5
Rx Maximum Burst Cycle (in 2-byte/unit)
6
Rx/Tx Inter-Packet Time (in nano-second)
7
Rx/Tx MSF Frequency (in MHz)
8
Rx/Tx Minimum Burst Size (in byte)
9
Rx/Tx SPI4 Flow Control MaxBurst1 (16-byte/unit)
10
Tx SPI4 Flow Control time interval FIFO_MAX_T (msf cycle)
11
Tx SPI4 Flow Control time interval FIFO_MAX_T (msf cycle)
12
Rx/Tx High Water Mark (in byte)