318
Development Tools User’s Guide
Intel
®
IXP2400/IXP2800 Network Processors
SPI4 Bus Functional Model
int
spi4_get_receive_stats_cycle
(int
device_id
,
int
port_num)
int
spi4_get_transmit_stats_packet
(int
device_id
,
int
port_num)
int
spi4_get_transmit_stats_byte
(int
device_id
,
int
port_num)
int
spi4_get_transmit_stats_cycle
(int
device_id
,
int
port_num)
where:
device_id
:
unique device id for each device
port_num
port in the specified device
E.3.4.2
spi4_get_rx_buffer_byte/ spi4_get_tx_buffer_byte and
spi4_get_rx_buffer_int32/ spi4_get_tx_buffer_int32
The
spi4_get_rx_buffer_byte
/
spi4_get_tx_buffer_byte
returns one-byte data
from spi4_bfm rx/tx FIFO, and
spi4_get_rx_buffer_int32
/
spi4_get_tx_buffer_int32
returns four-byte of data from spi4_bfm rx/tx FIFO.
int
spi4_get_rx_buffer_byte
(int
device_id
,
int
port_num,
int
byte_index)
int
spi4_get_rx_buffer_int32
(int
device_id
,
int
port_num,
int
byte_index)
int
spi4_get_tx_buffer_byte
(int
device_id
,
int
port_num,
int
byte_index)
int
spi4_get_tx_buffer_int32
(int
device_id
,
int
port_num,
int
byte_index)
where:
device_id
:
unique device id for each device
port_num
port in the specified device
byte_index
index for the first byte in the FIFO