cpi_check_bs

Determines whether the TX board specified by handle is in the boot state.

Prototype

#include txcpi.h

S16 cpi_check_bs ( TX_HANDLE handle, CPIBS *bsp)

Argument

Description

handle

TX handle number of the board to check.

bsp

Pointer to the location where the boot state is to be returned:

typedef struct _CPIBS
{
  U16  state;
  U8   reg[5];
} CPIBS;

Refer to the Details section for valid boot states.


Return values

Return value

Description

CPI_SUCCESS

Boot state determined.

CPI_ERROR

Call cpi_get_last_error to obtain the error code.


Details

The bsp.state is loaded with the boot state. The boot state can be one of the following values:

State

Description

BS_BOOT

Waiting to begin PREBOOT.

BS_READY

KERNEL loaded, initialized, and ready

BS_INIT

KERNEL is initializing.

BS_DOWN

KERNEL not responding.

BS_BERR

Bus error indicated by KERNEL.

BS_LOADING

Loading block of KERNEL.

BS_PREBOOTING

PREBOOT running, not ready for KERNEL.

BS_WAIT_KERNEL

PREBOOT complete, waiting for KERNEL.


The reg element in the structure is unused.

See also

cpi_force_bs