Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pdc_chassis.h File Reference

Go to the source code of this file.

Macros

#define PDC_CHASSIS_DIRECT_BSTART   0
 
#define PDC_CHASSIS_DIRECT_BCOMPLETE   1
 
#define PDC_CHASSIS_DIRECT_SHUTDOWN   2
 
#define PDC_CHASSIS_DIRECT_PANIC   3
 
#define PDC_CHASSIS_DIRECT_HPMC   4
 
#define PDC_CHASSIS_DIRECT_LPMC   5
 
#define PDC_CHASSIS_DIRECT_DUMP   6 /* not yet implemented */
 
#define PDC_CHASSIS_DIRECT_OOPS   7 /* not yet implemented */
 
#define PDC_CHASSIS_DISP_DATA(v)   ((unsigned long)(v) << 17)
 
#define PDC_CHASSIS_LED_RUN_OFF   (0ULL << 4)
 
#define PDC_CHASSIS_LED_RUN_FLASH   (1ULL << 4)
 
#define PDC_CHASSIS_LED_RUN_ON   (2ULL << 4)
 
#define PDC_CHASSIS_LED_RUN_NC   (3ULL << 4)
 
#define PDC_CHASSIS_LED_ATTN_OFF   (0ULL << 6)
 
#define PDC_CHASSIS_LED_ATTN_FLASH   (1ULL << 6)
 
#define PDC_CHASSIS_LED_ATTN_NC   (3ULL << 6) /* ATTN ON is invalid */
 
#define PDC_CHASSIS_LED_FAULT_OFF   (0ULL << 8)
 
#define PDC_CHASSIS_LED_FAULT_FLASH   (1ULL << 8)
 
#define PDC_CHASSIS_LED_FAULT_ON   (2ULL << 8)
 
#define PDC_CHASSIS_LED_FAULT_NC   (3ULL << 8)
 
#define PDC_CHASSIS_LED_VALID   (1ULL << 10)
 
#define PDC_CHASSIS_LSTATE_RUN_NORMAL
 
#define PDC_CHASSIS_LSTATE_RUN_CRASHREC
 
#define PDC_CHASSIS_LSTATE_RUN_SYSINT
 
#define PDC_CHASSIS_LSTATE_RUN_NCRIT
 
#define PDC_CHASSIS_LSTATE_NONOS
 
#define PDC_CHASSIS_LSTATE_NONOS_BFAIL
 
#define PDC_CHASSIS_LSTATE_NONOS_UNEXP
 
#define PDC_CHASSIS_LSTATE_NONOS_NCRIT
 
#define PDC_CHASSIS_LSTATE_BFAIL_NCRIT
 
#define PDC_CHASSIS_LSTATE_UNEXP_NCRIT
 
#define PDC_CHASSIS_LSTATE_CANNOT_PDC
 
#define PDC_CHASSIS_LSTATE_FATAL_BFAIL
 
#define PDC_CHASSIS_LSTATE_NOCODE_NCRIT
 
#define PDC_CHASSIS_LSTATE_FATAL_NCRIT
 
#define PDC_CHASSIS_ALERT_FORWARD   (0ULL << 36) /* no failure detected */
 
#define PDC_CHASSIS_ALERT_SERPROC   (1ULL << 36) /* service proc - no failure */
 
#define PDC_CHASSIS_ALERT_NURGENT   (2ULL << 36) /* non-urgent operator attn */
 
#define PDC_CHASSIS_ALERT_BLOCKED   (3ULL << 36) /* system blocked */
 
#define PDC_CHASSIS_ALERT_CONF_CHG   (4ULL << 36) /* unexpected configuration change */
 
#define PDC_CHASSIS_ALERT_ENV_PB   (5ULL << 36) /* boot possible, environmental pb */
 
#define PDC_CHASSIS_ALERT_PENDING   (6ULL << 36) /* boot possible, pending failure */
 
#define PDC_CHASSIS_ALERT_PERF_IMP   (8ULL << 36) /* boot possible, performance impaired */
 
#define PDC_CHASSIS_ALERT_FUNC_IMP   (10ULL << 36) /* boot possible, functionality impaired */
 
#define PDC_CHASSIS_ALERT_SOFT_FAIL   (12ULL << 36) /* software failure */
 
#define PDC_CHASSIS_ALERT_HANG   (13ULL << 36) /* system hang */
 
#define PDC_CHASSIS_ALERT_ENV_FATAL   (14ULL << 36) /* fatal power or environmental pb */
 
#define PDC_CHASSIS_ALERT_HW_FATAL   (15ULL << 36) /* fatal hardware problem */
 
#define PDC_CHASSIS_SRC_NONE   (0ULL << 28) /* unknown, no source stated */
 
#define PDC_CHASSIS_SRC_PROC   (1ULL << 28) /* processor */
 
#define PDC_CHASSIS_SRC_PROC_CACHE   (2ULL << 28) /* processor cache*/
 
#define PDC_CHASSIS_SRC_PDH   (3ULL << 28) /* processor dependent hardware */
 
#define PDC_CHASSIS_SRC_PWR   (4ULL << 28) /* power */
 
#define PDC_CHASSIS_SRC_FAB   (5ULL << 28) /* fabric connector */
 
#define PDC_CHASSIS_SRC_PLATi   (6ULL << 28) /* platform */
 
#define PDC_CHASSIS_SRC_MEM   (7ULL << 28) /* memory */
 
#define PDC_CHASSIS_SRC_IO   (8ULL << 28) /* I/O */
 
#define PDC_CHASSIS_SRC_CELL   (9ULL << 28) /* cell */
 
#define PDC_CHASSIS_SRC_PD   (10ULL << 28) /* protected domain */
 
#define PDC_CHASSIS_SRC_D_PROC   (1ULL << 24) /* processor general */
 
#define PDC_CHASSIS_SRC_ID_UNSPEC   (0ULL << 16)
 
#define PDC_CHASSIS_PB_D_PROC_NONE   (0ULL << 32) /* no problem detail */
 
#define PDC_CHASSIS_PB_D_PROC_TIMEOUT   (4ULL << 32) /* timeout */
 
#define PDC_CHASSIS_CALL_ACT_HPUX_BL   (7ULL << 12) /* Boot Loader */
 
#define PDC_CHASSIS_CALL_ACT_HPUX_PD   (8ULL << 12) /* SAL_PD activities */
 
#define PDC_CHASSIS_CALL_ACT_HPUX_EVENT   (9ULL << 12) /* SAL_EVENTS activities */
 
#define PDC_CHASSIS_CALL_ACT_HPUX_IO   (10ULL << 12) /* SAL_IO activities */
 
#define PDC_CHASSIS_CALL_ACT_HPUX_PANIC   (11ULL << 12) /* System panic */
 
#define PDC_CHASSIS_CALL_ACT_HPUX_INIT   (12ULL << 12) /* System initialization */
 
#define PDC_CHASSIS_CALL_ACT_HPUX_SHUT   (13ULL << 12) /* System shutdown */
 
#define PDC_CHASSIS_CALL_ACT_HPUX_WARN   (14ULL << 12) /* System warning */
 
#define PDC_CHASSIS_CALL_ACT_HPUX_DU   (15ULL << 12) /* Display_Activity() update */
 
#define PDC_CHASSIS_ACT_STATUS_UNSPEC   (0ULL << 0)
 
#define PDC_CHASSIS_CALL_SACT_UNSPEC   (0ULL << 4) /* implementation dependent */
 
#define PDC_CHASSIS_RET_GENERICOS   (12ULL << 52) /* generic OSes */
 
#define PDC_CHASSIS_RET_IA64_NT   (13ULL << 52) /* IA-64 NT */
 
#define PDC_CHASSIS_RET_HPUX   (14ULL << 52) /* HP-UX */
 
#define PDC_CHASSIS_RET_DIAG   (15ULL << 52) /* offline diagnostics & utilities */
 
#define PDC_CHASSIS_REID_UNSPEC   (0ULL << 44)
 
#define PDC_CHASSIS_DT_NONE   (0ULL << 59) /* data field unused */
 
#define PDC_CHASSIS_DT_PHYS_ADDR   (1ULL << 59) /* physical address */
 
#define PDC_CHASSIS_DT_DATA_EXPECT   (2ULL << 59) /* expected data */
 
#define PDC_CHASSIS_DT_ACTUAL   (3ULL << 59) /* actual data */
 
#define PDC_CHASSIS_DT_PHYS_LOC   (4ULL << 59) /* physical location */
 
#define PDC_CHASSIS_DT_PHYS_LOC_EXT   (5ULL << 59) /* physical location extension */
 
#define PDC_CHASSIS_DT_TAG   (6ULL << 59) /* tag */
 
#define PDC_CHASSIS_DT_SYNDROME   (7ULL << 59) /* syndrome */
 
#define PDC_CHASSIS_DT_CODE_ADDR   (8ULL << 59) /* code address */
 
#define PDC_CHASSIS_DT_ASCII_MSG   (9ULL << 59) /* ascii message */
 
#define PDC_CHASSIS_DT_POST   (10ULL << 59) /* POST code */
 
#define PDC_CHASSIS_DT_TIMESTAMP   (11ULL << 59) /* timestamp */
 
#define PDC_CHASSIS_DT_DEV_STAT   (12ULL << 59) /* device status */
 
#define PDC_CHASSIS_DT_DEV_TYPE   (13ULL << 59) /* device type */
 
#define PDC_CHASSIS_DT_PB_DET   (14ULL << 59) /* problem detail */
 
#define PDC_CHASSIS_DT_ACT_LEV   (15ULL << 59) /* activity level/timeout */
 
#define PDC_CHASSIS_DT_SER_NUM   (16ULL << 59) /* serial number */
 
#define PDC_CHASSIS_DT_REV_NUM   (17ULL << 59) /* revision number */
 
#define PDC_CHASSIS_DT_INTERRUPT   (18ULL << 59) /* interruption information */
 
#define PDC_CHASSIS_DT_TEST_NUM   (19ULL << 59) /* test number */
 
#define PDC_CHASSIS_DT_STATE_CHG   (20ULL << 59) /* major changes in system state */
 
#define PDC_CHASSIS_DT_PROC_DEALLOC   (21ULL << 59) /* processor deallocate */
 
#define PDC_CHASSIS_DT_RESET   (30ULL << 59) /* reset type and cause */
 
#define PDC_CHASSIS_DT_PA_LEGACY   (31ULL << 59) /* legacy PA hex chassis code */
 
#define PDC_CHASSIS_SYSTATE_BSTART   (0ULL << 0) /* boot start */
 
#define PDC_CHASSIS_SYSTATE_BCOMP   (1ULL << 0) /* boot complete */
 
#define PDC_CHASSIS_SYSTATE_CHANGE   (2ULL << 0) /* major change */
 
#define PDC_CHASSIS_SYSTATE_LED   (3ULL << 0) /* LED change */
 
#define PDC_CHASSIS_SYSTATE_PANIC   (9ULL << 0) /* OS Panic */
 
#define PDC_CHASSIS_SYSTATE_DUMP   (10ULL << 0) /* memory dump */
 
#define PDC_CHASSIS_SYSTATE_HPMC   (11ULL << 0) /* processing HPMC */
 
#define PDC_CHASSIS_SYSTATE_HALT   (15ULL << 0) /* system halted */
 
#define PDC_CHASSIS_MSG_ID   (0ULL << 40) /* we do not handle msg IDs atm */
 
#define PDC_CHASSIS_EOM_CLEAR   (0ULL << 43)
 
#define PDC_CHASSIS_EOM_SET   (1ULL << 43)
 
#define PDC_CHASSIS_PMSG_BSTART
 
#define PDC_CHASSIS_PMSG_BCOMPLETE
 
#define PDC_CHASSIS_PMSG_SHUTDOWN
 
#define PDC_CHASSIS_PMSG_PANIC
 
#define PDC_CHASSIS_PMSG_HPMC
 
#define PDC_CHASSIS_PMSG_LPMC
 

Functions

int pdc_chassis_send_status (int message)
 
void parisc_pdc_chassis_init (void)
 

Macro Definition Documentation

#define PDC_CHASSIS_ACT_STATUS_UNSPEC   (0ULL << 0)

Definition at line 223 of file pdc_chassis.h.

#define PDC_CHASSIS_ALERT_BLOCKED   (3ULL << 36) /* system blocked */

Definition at line 176 of file pdc_chassis.h.

#define PDC_CHASSIS_ALERT_CONF_CHG   (4ULL << 36) /* unexpected configuration change */

Definition at line 177 of file pdc_chassis.h.

#define PDC_CHASSIS_ALERT_ENV_FATAL   (14ULL << 36) /* fatal power or environmental pb */

Definition at line 184 of file pdc_chassis.h.

#define PDC_CHASSIS_ALERT_ENV_PB   (5ULL << 36) /* boot possible, environmental pb */

Definition at line 178 of file pdc_chassis.h.

#define PDC_CHASSIS_ALERT_FORWARD   (0ULL << 36) /* no failure detected */

Definition at line 173 of file pdc_chassis.h.

#define PDC_CHASSIS_ALERT_FUNC_IMP   (10ULL << 36) /* boot possible, functionality impaired */

Definition at line 181 of file pdc_chassis.h.

#define PDC_CHASSIS_ALERT_HANG   (13ULL << 36) /* system hang */

Definition at line 183 of file pdc_chassis.h.

#define PDC_CHASSIS_ALERT_HW_FATAL   (15ULL << 36) /* fatal hardware problem */

Definition at line 185 of file pdc_chassis.h.

#define PDC_CHASSIS_ALERT_NURGENT   (2ULL << 36) /* non-urgent operator attn */

Definition at line 175 of file pdc_chassis.h.

#define PDC_CHASSIS_ALERT_PENDING   (6ULL << 36) /* boot possible, pending failure */

Definition at line 179 of file pdc_chassis.h.

#define PDC_CHASSIS_ALERT_PERF_IMP   (8ULL << 36) /* boot possible, performance impaired */

Definition at line 180 of file pdc_chassis.h.

#define PDC_CHASSIS_ALERT_SERPROC   (1ULL << 36) /* service proc - no failure */

Definition at line 174 of file pdc_chassis.h.

#define PDC_CHASSIS_ALERT_SOFT_FAIL   (12ULL << 36) /* software failure */

Definition at line 182 of file pdc_chassis.h.

#define PDC_CHASSIS_CALL_ACT_HPUX_BL   (7ULL << 12) /* Boot Loader */

Definition at line 212 of file pdc_chassis.h.

#define PDC_CHASSIS_CALL_ACT_HPUX_DU   (15ULL << 12) /* Display_Activity() update */

Definition at line 220 of file pdc_chassis.h.

#define PDC_CHASSIS_CALL_ACT_HPUX_EVENT   (9ULL << 12) /* SAL_EVENTS activities */

Definition at line 214 of file pdc_chassis.h.

#define PDC_CHASSIS_CALL_ACT_HPUX_INIT   (12ULL << 12) /* System initialization */

Definition at line 217 of file pdc_chassis.h.

#define PDC_CHASSIS_CALL_ACT_HPUX_IO   (10ULL << 12) /* SAL_IO activities */

Definition at line 215 of file pdc_chassis.h.

#define PDC_CHASSIS_CALL_ACT_HPUX_PANIC   (11ULL << 12) /* System panic */

Definition at line 216 of file pdc_chassis.h.

#define PDC_CHASSIS_CALL_ACT_HPUX_PD   (8ULL << 12) /* SAL_PD activities */

Definition at line 213 of file pdc_chassis.h.

#define PDC_CHASSIS_CALL_ACT_HPUX_SHUT   (13ULL << 12) /* System shutdown */

Definition at line 218 of file pdc_chassis.h.

#define PDC_CHASSIS_CALL_ACT_HPUX_WARN   (14ULL << 12) /* System warning */

Definition at line 219 of file pdc_chassis.h.

#define PDC_CHASSIS_CALL_SACT_UNSPEC   (0ULL << 4) /* implementation dependent */

Definition at line 227 of file pdc_chassis.h.

#define PDC_CHASSIS_DIRECT_BCOMPLETE   1

Definition at line 48 of file pdc_chassis.h.

#define PDC_CHASSIS_DIRECT_BSTART   0

Definition at line 47 of file pdc_chassis.h.

#define PDC_CHASSIS_DIRECT_DUMP   6 /* not yet implemented */

Definition at line 53 of file pdc_chassis.h.

#define PDC_CHASSIS_DIRECT_HPMC   4

Definition at line 51 of file pdc_chassis.h.

#define PDC_CHASSIS_DIRECT_LPMC   5

Definition at line 52 of file pdc_chassis.h.

#define PDC_CHASSIS_DIRECT_OOPS   7 /* not yet implemented */

Definition at line 54 of file pdc_chassis.h.

#define PDC_CHASSIS_DIRECT_PANIC   3

Definition at line 50 of file pdc_chassis.h.

#define PDC_CHASSIS_DIRECT_SHUTDOWN   2

Definition at line 49 of file pdc_chassis.h.

#define PDC_CHASSIS_DISP_DATA (   v)    ((unsigned long)(v) << 17)

Definition at line 65 of file pdc_chassis.h.

#define PDC_CHASSIS_DT_ACT_LEV   (15ULL << 59) /* activity level/timeout */

Definition at line 255 of file pdc_chassis.h.

#define PDC_CHASSIS_DT_ACTUAL   (3ULL << 59) /* actual data */

Definition at line 243 of file pdc_chassis.h.

#define PDC_CHASSIS_DT_ASCII_MSG   (9ULL << 59) /* ascii message */

Definition at line 249 of file pdc_chassis.h.

#define PDC_CHASSIS_DT_CODE_ADDR   (8ULL << 59) /* code address */

Definition at line 248 of file pdc_chassis.h.

#define PDC_CHASSIS_DT_DATA_EXPECT   (2ULL << 59) /* expected data */

Definition at line 242 of file pdc_chassis.h.

#define PDC_CHASSIS_DT_DEV_STAT   (12ULL << 59) /* device status */

Definition at line 252 of file pdc_chassis.h.

#define PDC_CHASSIS_DT_DEV_TYPE   (13ULL << 59) /* device type */

Definition at line 253 of file pdc_chassis.h.

#define PDC_CHASSIS_DT_INTERRUPT   (18ULL << 59) /* interruption information */

Definition at line 258 of file pdc_chassis.h.

#define PDC_CHASSIS_DT_NONE   (0ULL << 59) /* data field unused */

Definition at line 239 of file pdc_chassis.h.

#define PDC_CHASSIS_DT_PA_LEGACY   (31ULL << 59) /* legacy PA hex chassis code */

Definition at line 263 of file pdc_chassis.h.

#define PDC_CHASSIS_DT_PB_DET   (14ULL << 59) /* problem detail */

Definition at line 254 of file pdc_chassis.h.

#define PDC_CHASSIS_DT_PHYS_ADDR   (1ULL << 59) /* physical address */

Definition at line 241 of file pdc_chassis.h.

#define PDC_CHASSIS_DT_PHYS_LOC   (4ULL << 59) /* physical location */

Definition at line 244 of file pdc_chassis.h.

#define PDC_CHASSIS_DT_PHYS_LOC_EXT   (5ULL << 59) /* physical location extension */

Definition at line 245 of file pdc_chassis.h.

#define PDC_CHASSIS_DT_POST   (10ULL << 59) /* POST code */

Definition at line 250 of file pdc_chassis.h.

#define PDC_CHASSIS_DT_PROC_DEALLOC   (21ULL << 59) /* processor deallocate */

Definition at line 261 of file pdc_chassis.h.

#define PDC_CHASSIS_DT_RESET   (30ULL << 59) /* reset type and cause */

Definition at line 262 of file pdc_chassis.h.

#define PDC_CHASSIS_DT_REV_NUM   (17ULL << 59) /* revision number */

Definition at line 257 of file pdc_chassis.h.

#define PDC_CHASSIS_DT_SER_NUM   (16ULL << 59) /* serial number */

Definition at line 256 of file pdc_chassis.h.

#define PDC_CHASSIS_DT_STATE_CHG   (20ULL << 59) /* major changes in system state */

Definition at line 260 of file pdc_chassis.h.

#define PDC_CHASSIS_DT_SYNDROME   (7ULL << 59) /* syndrome */

Definition at line 247 of file pdc_chassis.h.

#define PDC_CHASSIS_DT_TAG   (6ULL << 59) /* tag */

Definition at line 246 of file pdc_chassis.h.

#define PDC_CHASSIS_DT_TEST_NUM   (19ULL << 59) /* test number */

Definition at line 259 of file pdc_chassis.h.

#define PDC_CHASSIS_DT_TIMESTAMP   (11ULL << 59) /* timestamp */

Definition at line 251 of file pdc_chassis.h.

#define PDC_CHASSIS_EOM_CLEAR   (0ULL << 43)

Definition at line 279 of file pdc_chassis.h.

#define PDC_CHASSIS_EOM_SET   (1ULL << 43)

Definition at line 280 of file pdc_chassis.h.

#define PDC_CHASSIS_LED_ATTN_FLASH   (1ULL << 6)

Definition at line 76 of file pdc_chassis.h.

#define PDC_CHASSIS_LED_ATTN_NC   (3ULL << 6) /* ATTN ON is invalid */

Definition at line 77 of file pdc_chassis.h.

#define PDC_CHASSIS_LED_ATTN_OFF   (0ULL << 6)

Definition at line 75 of file pdc_chassis.h.

#define PDC_CHASSIS_LED_FAULT_FLASH   (1ULL << 8)

Definition at line 79 of file pdc_chassis.h.

#define PDC_CHASSIS_LED_FAULT_NC   (3ULL << 8)

Definition at line 81 of file pdc_chassis.h.

#define PDC_CHASSIS_LED_FAULT_OFF   (0ULL << 8)

Definition at line 78 of file pdc_chassis.h.

#define PDC_CHASSIS_LED_FAULT_ON   (2ULL << 8)

Definition at line 80 of file pdc_chassis.h.

#define PDC_CHASSIS_LED_RUN_FLASH   (1ULL << 4)

Definition at line 72 of file pdc_chassis.h.

#define PDC_CHASSIS_LED_RUN_NC   (3ULL << 4)

Definition at line 74 of file pdc_chassis.h.

#define PDC_CHASSIS_LED_RUN_OFF   (0ULL << 4)

Definition at line 71 of file pdc_chassis.h.

#define PDC_CHASSIS_LED_RUN_ON   (2ULL << 4)

Definition at line 73 of file pdc_chassis.h.

#define PDC_CHASSIS_LED_VALID   (1ULL << 10)

Definition at line 82 of file pdc_chassis.h.

#define PDC_CHASSIS_LSTATE_BFAIL_NCRIT
Value:
PDC_CHASSIS_LED_ATTN_FLASH | \
PDC_CHASSIS_LED_FAULT_ON | \
PDC_CHASSIS_LED_VALID )

Definition at line 129 of file pdc_chassis.h.

#define PDC_CHASSIS_LSTATE_CANNOT_PDC
Value:
PDC_CHASSIS_LED_ATTN_OFF | \
PDC_CHASSIS_LED_FAULT_OFF | \
PDC_CHASSIS_LED_VALID )

Definition at line 139 of file pdc_chassis.h.

#define PDC_CHASSIS_LSTATE_FATAL_BFAIL
Value:
PDC_CHASSIS_LED_ATTN_OFF | \
PDC_CHASSIS_LED_FAULT_ON | \
PDC_CHASSIS_LED_VALID )

Definition at line 144 of file pdc_chassis.h.

#define PDC_CHASSIS_LSTATE_FATAL_NCRIT
Value:
PDC_CHASSIS_LED_ATTN_FLASH | \
PDC_CHASSIS_LED_FAULT_ON | \
PDC_CHASSIS_LED_VALID )

Definition at line 154 of file pdc_chassis.h.

#define PDC_CHASSIS_LSTATE_NOCODE_NCRIT
Value:
PDC_CHASSIS_LED_ATTN_FLASH | \
PDC_CHASSIS_LED_FAULT_OFF | \
PDC_CHASSIS_LED_VALID )

Definition at line 149 of file pdc_chassis.h.

#define PDC_CHASSIS_LSTATE_NONOS
Value:
PDC_CHASSIS_LED_ATTN_OFF | \
PDC_CHASSIS_LED_FAULT_OFF | \
PDC_CHASSIS_LED_VALID )

Definition at line 109 of file pdc_chassis.h.

#define PDC_CHASSIS_LSTATE_NONOS_BFAIL
Value:
PDC_CHASSIS_LED_ATTN_OFF | \
PDC_CHASSIS_LED_FAULT_ON | \
PDC_CHASSIS_LED_VALID )

Definition at line 114 of file pdc_chassis.h.

#define PDC_CHASSIS_LSTATE_NONOS_NCRIT
Value:
PDC_CHASSIS_LED_ATTN_FLASH | \
PDC_CHASSIS_LED_FAULT_OFF | \
PDC_CHASSIS_LED_VALID )

Definition at line 124 of file pdc_chassis.h.

#define PDC_CHASSIS_LSTATE_NONOS_UNEXP
Value:
PDC_CHASSIS_LED_ATTN_OFF | \
PDC_CHASSIS_LED_FAULT_FLASH | \
PDC_CHASSIS_LED_VALID )

Definition at line 119 of file pdc_chassis.h.

#define PDC_CHASSIS_LSTATE_RUN_CRASHREC
Value:
PDC_CHASSIS_LED_ATTN_OFF | \
PDC_CHASSIS_LED_FAULT_FLASH | \
PDC_CHASSIS_LED_VALID )

Definition at line 94 of file pdc_chassis.h.

#define PDC_CHASSIS_LSTATE_RUN_NCRIT
Value:
PDC_CHASSIS_LED_ATTN_FLASH | \
PDC_CHASSIS_LED_FAULT_FLASH | \
PDC_CHASSIS_LED_VALID )

Definition at line 104 of file pdc_chassis.h.

#define PDC_CHASSIS_LSTATE_RUN_NORMAL
Value:
PDC_CHASSIS_LED_ATTN_OFF | \
PDC_CHASSIS_LED_FAULT_OFF | \
PDC_CHASSIS_LED_VALID )

Definition at line 89 of file pdc_chassis.h.

#define PDC_CHASSIS_LSTATE_RUN_SYSINT
Value:
PDC_CHASSIS_LED_ATTN_FLASH | \
PDC_CHASSIS_LED_FAULT_OFF | \
PDC_CHASSIS_LED_VALID )

Definition at line 99 of file pdc_chassis.h.

#define PDC_CHASSIS_LSTATE_UNEXP_NCRIT
Value:
PDC_CHASSIS_LED_ATTN_FLASH | \
PDC_CHASSIS_LED_FAULT_FLASH | \
PDC_CHASSIS_LED_VALID )

Definition at line 134 of file pdc_chassis.h.

#define PDC_CHASSIS_MSG_ID   (0ULL << 40) /* we do not handle msg IDs atm */

Definition at line 276 of file pdc_chassis.h.

#define PDC_CHASSIS_PB_D_PROC_NONE   (0ULL << 32) /* no problem detail */

Definition at line 208 of file pdc_chassis.h.

#define PDC_CHASSIS_PB_D_PROC_TIMEOUT   (4ULL << 32) /* timeout */

Definition at line 209 of file pdc_chassis.h.

#define PDC_CHASSIS_PMSG_BCOMPLETE
Value:
PDC_CHASSIS_SRC_PROC | \
PDC_CHASSIS_SRC_D_PROC | \
PDC_CHASSIS_SRC_ID_UNSPEC | \
PDC_CHASSIS_PB_D_PROC_NONE | \
PDC_CHASSIS_CALL_ACT_HPUX_INIT | \
PDC_CHASSIS_ACT_STATUS_UNSPEC | \
PDC_CHASSIS_CALL_SACT_UNSPEC | \
PDC_CHASSIS_RET_HPUX | \
PDC_CHASSIS_REID_UNSPEC | \
PDC_CHASSIS_DT_STATE_CHG | \
PDC_CHASSIS_SYSTATE_BCOMP | \
PDC_CHASSIS_MSG_ID | \
PDC_CHASSIS_EOM_SET )

Definition at line 303 of file pdc_chassis.h.

#define PDC_CHASSIS_PMSG_BSTART
Value:
PDC_CHASSIS_SRC_PROC | \
PDC_CHASSIS_SRC_D_PROC | \
PDC_CHASSIS_SRC_ID_UNSPEC | \
PDC_CHASSIS_PB_D_PROC_NONE | \
PDC_CHASSIS_CALL_ACT_HPUX_INIT | \
PDC_CHASSIS_ACT_STATUS_UNSPEC | \
PDC_CHASSIS_CALL_SACT_UNSPEC | \
PDC_CHASSIS_RET_HPUX | \
PDC_CHASSIS_REID_UNSPEC | \
PDC_CHASSIS_DT_STATE_CHG | \
PDC_CHASSIS_SYSTATE_BSTART | \
PDC_CHASSIS_MSG_ID | \
PDC_CHASSIS_EOM_SET )

Definition at line 287 of file pdc_chassis.h.

#define PDC_CHASSIS_PMSG_HPMC
Value:
PDC_CHASSIS_SRC_PROC | \
PDC_CHASSIS_SRC_D_PROC | \
PDC_CHASSIS_SRC_ID_UNSPEC | \
PDC_CHASSIS_PB_D_PROC_NONE | \
PDC_CHASSIS_CALL_ACT_HPUX_WARN | \
PDC_CHASSIS_RET_HPUX | \
PDC_CHASSIS_DT_STATE_CHG | \
PDC_CHASSIS_SYSTATE_HPMC | \
PDC_CHASSIS_MSG_ID | \
PDC_CHASSIS_EOM_SET )

Definition at line 352 of file pdc_chassis.h.

#define PDC_CHASSIS_PMSG_LPMC
Value:
PDC_CHASSIS_SRC_PROC | \
PDC_CHASSIS_SRC_D_PROC | \
PDC_CHASSIS_SRC_ID_UNSPEC | \
PDC_CHASSIS_PB_D_PROC_NONE | \
PDC_CHASSIS_CALL_ACT_HPUX_WARN | \
PDC_CHASSIS_ACT_STATUS_UNSPEC | \
PDC_CHASSIS_CALL_SACT_UNSPEC | \
PDC_CHASSIS_RET_HPUX | \
PDC_CHASSIS_REID_UNSPEC | \
PDC_CHASSIS_DT_STATE_CHG | \
PDC_CHASSIS_SYSTATE_CHANGE | \
PDC_CHASSIS_MSG_ID | \
PDC_CHASSIS_EOM_SET )

Definition at line 365 of file pdc_chassis.h.

#define PDC_CHASSIS_PMSG_PANIC
Value:
PDC_CHASSIS_SRC_PROC | \
PDC_CHASSIS_SRC_D_PROC | \
PDC_CHASSIS_SRC_ID_UNSPEC | \
PDC_CHASSIS_PB_D_PROC_NONE | \
PDC_CHASSIS_CALL_ACT_HPUX_PANIC| \
PDC_CHASSIS_ACT_STATUS_UNSPEC | \
PDC_CHASSIS_CALL_SACT_UNSPEC | \
PDC_CHASSIS_RET_HPUX | \
PDC_CHASSIS_REID_UNSPEC | \
PDC_CHASSIS_DT_STATE_CHG | \
PDC_CHASSIS_SYSTATE_PANIC | \
PDC_CHASSIS_MSG_ID | \
PDC_CHASSIS_EOM_SET )

Definition at line 335 of file pdc_chassis.h.

#define PDC_CHASSIS_PMSG_SHUTDOWN
Value:
PDC_CHASSIS_SRC_PROC | \
PDC_CHASSIS_SRC_D_PROC | \
PDC_CHASSIS_SRC_ID_UNSPEC | \
PDC_CHASSIS_PB_D_PROC_NONE | \
PDC_CHASSIS_CALL_ACT_HPUX_SHUT | \
PDC_CHASSIS_ACT_STATUS_UNSPEC | \
PDC_CHASSIS_CALL_SACT_UNSPEC | \
PDC_CHASSIS_RET_HPUX | \
PDC_CHASSIS_REID_UNSPEC | \
PDC_CHASSIS_DT_STATE_CHG | \
PDC_CHASSIS_SYSTATE_HALT | \
PDC_CHASSIS_MSG_ID | \
PDC_CHASSIS_EOM_SET )

Definition at line 319 of file pdc_chassis.h.

#define PDC_CHASSIS_REID_UNSPEC   (0ULL << 44)

Definition at line 236 of file pdc_chassis.h.

#define PDC_CHASSIS_RET_DIAG   (15ULL << 52) /* offline diagnostics & utilities */

Definition at line 233 of file pdc_chassis.h.

#define PDC_CHASSIS_RET_GENERICOS   (12ULL << 52) /* generic OSes */

Definition at line 230 of file pdc_chassis.h.

#define PDC_CHASSIS_RET_HPUX   (14ULL << 52) /* HP-UX */

Definition at line 232 of file pdc_chassis.h.

#define PDC_CHASSIS_RET_IA64_NT   (13ULL << 52) /* IA-64 NT */

Definition at line 231 of file pdc_chassis.h.

#define PDC_CHASSIS_SRC_CELL   (9ULL << 28) /* cell */

Definition at line 198 of file pdc_chassis.h.

#define PDC_CHASSIS_SRC_D_PROC   (1ULL << 24) /* processor general */

Definition at line 202 of file pdc_chassis.h.

#define PDC_CHASSIS_SRC_FAB   (5ULL << 28) /* fabric connector */

Definition at line 194 of file pdc_chassis.h.

#define PDC_CHASSIS_SRC_ID_UNSPEC   (0ULL << 16)

Definition at line 205 of file pdc_chassis.h.

#define PDC_CHASSIS_SRC_IO   (8ULL << 28) /* I/O */

Definition at line 197 of file pdc_chassis.h.

#define PDC_CHASSIS_SRC_MEM   (7ULL << 28) /* memory */

Definition at line 196 of file pdc_chassis.h.

#define PDC_CHASSIS_SRC_NONE   (0ULL << 28) /* unknown, no source stated */

Definition at line 188 of file pdc_chassis.h.

#define PDC_CHASSIS_SRC_PD   (10ULL << 28) /* protected domain */

Definition at line 199 of file pdc_chassis.h.

#define PDC_CHASSIS_SRC_PDH   (3ULL << 28) /* processor dependent hardware */

Definition at line 192 of file pdc_chassis.h.

#define PDC_CHASSIS_SRC_PLATi   (6ULL << 28) /* platform */

Definition at line 195 of file pdc_chassis.h.

#define PDC_CHASSIS_SRC_PROC   (1ULL << 28) /* processor */

Definition at line 189 of file pdc_chassis.h.

#define PDC_CHASSIS_SRC_PROC_CACHE   (2ULL << 28) /* processor cache*/

Definition at line 191 of file pdc_chassis.h.

#define PDC_CHASSIS_SRC_PWR   (4ULL << 28) /* power */

Definition at line 193 of file pdc_chassis.h.

#define PDC_CHASSIS_SYSTATE_BCOMP   (1ULL << 0) /* boot complete */

Definition at line 267 of file pdc_chassis.h.

#define PDC_CHASSIS_SYSTATE_BSTART   (0ULL << 0) /* boot start */

Definition at line 266 of file pdc_chassis.h.

#define PDC_CHASSIS_SYSTATE_CHANGE   (2ULL << 0) /* major change */

Definition at line 268 of file pdc_chassis.h.

#define PDC_CHASSIS_SYSTATE_DUMP   (10ULL << 0) /* memory dump */

Definition at line 271 of file pdc_chassis.h.

#define PDC_CHASSIS_SYSTATE_HALT   (15ULL << 0) /* system halted */

Definition at line 273 of file pdc_chassis.h.

#define PDC_CHASSIS_SYSTATE_HPMC   (11ULL << 0) /* processing HPMC */

Definition at line 272 of file pdc_chassis.h.

#define PDC_CHASSIS_SYSTATE_LED   (3ULL << 0) /* LED change */

Definition at line 269 of file pdc_chassis.h.

#define PDC_CHASSIS_SYSTATE_PANIC   (9ULL << 0) /* OS Panic */

Definition at line 270 of file pdc_chassis.h.

Function Documentation

void parisc_pdc_chassis_init ( void  )

parisc_pdc_chassis_init() - Called at boot time.

Definition at line 135 of file pdc_chassis.c.

int pdc_chassis_send_status ( int  message)

pdc_chassis_send_status() - Sends a predefined message to the chassis, and changes the front panel LEDs according to the new system state

Return values
PDC call return value.

Only machines with 64 bits PDC PAT and those reported in pdc_chassis_checkold() are supported atm.

returns 0 if no error, -1 if no supported PDC is present or invalid message, else returns the appropriate PDC error code.

For a list of predefined messages, see asm-parisc/pdc_chassis.h

Definition at line 171 of file pdc_chassis.c.