Assigns a CP number to the TX board at the given PCI bus and slot number.
#include txcpi.h
S16 cpi_set_cpid ( S16 type, U32 param1, U32 param2, U32 cpId)
Argument |
Description |
type |
Type of board. The only supported type is CPI_PCI_BUS = PCI board. |
param1 |
Bus number. |
param2 |
Slot number. |
cpId |
TX board number to associate with the board at the given bus and slot. |
Return value |
Description |
CPI_SUCCESS |
CP number successfully assigned to the given PCI bus and slot number. |
CPI_ERROR |
Call cpi_get_last_error to obtain the error code. |
cpi_set_cpid assigns a board number (CP number) to the TX board at the indicated PCI bus and slot number. After a TX board is assigned a CP number, the board can be accessed by other CPI functions.