(Page 2 of 26 in this chapter)


cpi_check_bs

Description

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

Prototype

#include <txcpi.h>

short cpi_check_bs (TX_HANDLE handle, CPIBS *bsp)

Return Values

Details

The handle parameter indicates which board to check and the bsp.state is then loaded with the boot state (low byte) and the CSR (high byte).

The CPIBS structure is as follows:

typedef struct _CPIBS
{
  unsigned short  state;
  unsigned char   reg[5];
} CPIBS;
The boot state can be set to one of:

 BS_BOOT         0  /* waiting to begin PREBOOT              */
 BS_READY        1  /* KERNEL loaded, initialized, and ready */
 BS_INIT         2  /* KERNEL is initializing                */
 BS_DOWN         3  /* KERNEL not responding                 */
 BS_BERR         4  /* Bus Error indicated by KERNEL         */
 BS_LOADING      5  /* Loading block of KERNEL               */
 BS_PREBOOTING   6  /* PREBOOT running, not ready for KERNEL */
 BS_WAIT_KERNEL  7  /* PREBOOT complete, waiting for KERNEL  */

The reg element in the structure is unused at this point.



(Page 2 of 26 in this chapter)


tech_support@nmss.com
Copyright © 1999, Natural MicroSystems, Inc. All rights reserved.