- 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.