This file is indexed.

/usr/include/openhpi/SaHpiXtca.h is in libopenhpi-dev 3.6.1-2.2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
/*******************************************************************************
**
** FILE:
**   SaHpiXtca.h
**
** DESCRIPTION:
**   This file provides the C language binding for the Service
**   Availability(TM) Forum HPI to AdvancedTCA(R) and MicroTCA(R)
**   Mapping.
**   It contains all of the required prototypes and type definitions.
**   This file was generated from the Mapping Specification document.
**
** SPECIFICATION VERSION:
**   SAIM-HPI-B.03.02-xTCA
**
** DATE:
**   Sat Oct 31 2009
**
** LEGAL:
**   OWNERSHIP OF SPECIFICATION AND COPYRIGHTS.
**
** Copyright(c) 2009, Service Availability(TM) Forum. All rights reserved.
**
** Permission to use, copy, modify, and distribute this software for any
** purpose without fee is hereby granted, provided that this entire notice
** is included in all copies of any software which is or includes a copy
** or modification of this software and in all copies of the supporting
** documentation for such software.
**
** THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
** WARRANTY.  IN PARTICULAR, THE SERVICE AVAILABILITY FORUM DOES NOT MAKE ANY
** REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
** OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
**
*******************************************************************************/

#ifndef __SAHPI_xTCA_H
#define __SAHPI_xTCA_H

/*
 * SaHpi.h contains the basic data types that are used in this section,
 *         e.g., SaHpiCtrlNumT.
 */
#include <SaHpi.h>

/*******************************************************************************
*  Basic Data Types and Values
*******************************************************************************/

#ifdef  __cplusplus
extern "C" {
#endif

/* Specification version */
#define XTCAHPI_SPEC_VERSION     "SAIM-HPI-B.03.02.XTCA"

/* PICMG manufacturer identifier */
#define XTCAHPI_PICMG_MID        0x00315A

/*******************************************************************************
*  Entities
*******************************************************************************/

/*
 * Common Entity Definitions
 * These definitions describe the ATCA and MicroTCA Entity Types defined
 * in this specification.
 *
 * XTCAHPI_ENT_POWER_SLOT              - ATCA Power Entry Module Slot/
 *                                       MicroTCA Power Module Slot
 * XTCAHPI_ENT_SHELF_FRU_DEVICE_SLOT   - ATCA Shelf FRU information device Slot
 * XTCAHPI_ENT_SHELF_MANAGER_SLOT      - Dedicated Shelf Manager Slot
 * XTCAHPI_ENT_FAN_TRAY_SLOT           - Fan Tray Slot/Cooling Unit Slot
 * XTCAHPI_ENT_FAN_FILTER_TRAY_SLOT    - Fan Tray Filter Slot
 * XTCAHPI_ENT_ALARM_SLOT              - Alarm Module Slot
 * XTCAHPI_ENT_AMC_SLOT                - ATCA AMC Slot
 * XTCAHPI_ENT_PMC_SLOT                - PMC Module Slot
 * XTCAHPI_ENT_RTM_SLOT                - Rear Transition Module Slot
 * XTCAHPI_ENT_CARRIER_MANAGER_SLOT    - MicroTCA MCH Slot
 * XTCAHPI_ENT_CARRIER_ SLOT           - MicroTCA Carrier Slot
 * XTCAHPI_ENT_COM_E_SLOT              - COM-E Module Slot
 *
 */

#define XTCAHPI_ENT_POWER_SLOT              \
                         ((SaHpiEntityTypeT)(SAHPI_ENT_CHASSIS_SPECIFIC + 1))
#define XTCAHPI_ENT_SHELF_FRU_DEVICE_SLOT   \
                         ((SaHpiEntityTypeT)(SAHPI_ENT_CHASSIS_SPECIFIC + 2))
#define XTCAHPI_ENT_SHELF_MANAGER_SLOT      \
                         ((SaHpiEntityTypeT)(SAHPI_ENT_CHASSIS_SPECIFIC + 3))
#define XTCAHPI_ENT_FAN_TRAY_SLOT           \
                         ((SaHpiEntityTypeT)(SAHPI_ENT_CHASSIS_SPECIFIC + 4))
#define XTCAHPI_ENT_FAN_FILTER_TRAY_SLOT    \
                         ((SaHpiEntityTypeT)(SAHPI_ENT_CHASSIS_SPECIFIC + 5))
#define XTCAHPI_ENT_ALARM_SLOT              \
                         ((SaHpiEntityTypeT)(SAHPI_ENT_CHASSIS_SPECIFIC + 6))
#define XTCAHPI_ENT_AMC_SLOT                \
                         ((SaHpiEntityTypeT)(SAHPI_ENT_CHASSIS_SPECIFIC + 7))
#define XTCAHPI_ENT_PMC_SLOT                \
                         ((SaHpiEntityTypeT)(SAHPI_ENT_CHASSIS_SPECIFIC + 8))
#define XTCAHPI_ENT_RTM_SLOT                \
                         ((SaHpiEntityTypeT)(SAHPI_ENT_CHASSIS_SPECIFIC + 9))
#define XTCAHPI_ENT_CARRIER_MANAGER_SLOT    \
                         ((SaHpiEntityTypeT)(SAHPI_ENT_CHASSIS_SPECIFIC + 0xA))
#define XTCAHPI_ENT_CARRIER_SLOT            \
                         ((SaHpiEntityTypeT)(SAHPI_ENT_CHASSIS_SPECIFIC + 0xB))
#define XTCAHPI_ENT_COM_E_SLOT              \
                         ((SaHpiEntityTypeT)(SAHPI_ENT_CHASSIS_SPECIFIC + 0xC))

/*******************************************************************************
*  Common Management Instruments
*******************************************************************************/

/*
 * Instrument numbers for:
 * IP Address 0 Control
 * IP Address 1 Control
 * Power On Sequence Controls
 * - Note that the Control numbers from
 *      XTCAHPI_CTRL_NUM_POWER_ON_SEQUENCE to
 *      XTCAHPI_CTRL_NUM_POWER_ON_SEQUENCE + FEh
 *   are reserved for Power On Sequence Controls.
 *
 * Power On Sequence Commit Control
 * Power On Sequence Commit Status Sensor
 * Telco Alarm Annunciator
 * Redundancy Sensor
 * Active Instance Sensor
 * Standby Instance Sensor
 * Failover Control
 * Slot State Sensor
 * Activation Control
 * Deactivation Control
 * FRU Info Valid Sensor
 * Assigned Power Sensors
 * - Note that the Sensor numbers from
 *      XTCAHPI_SENSOR_NUM_SLOT_ASSIGNED_PWR to
 *      XTCAHPI_SENSOR_NUM_SLOT_ASSIGNED_PWR + FEh
 *   are reserved for Assigned Power Sensors.
 *
 */

#define XTCAHPI_CTRL_NUM_IP_ADDRESS_0             ((SaHpiCtrlNumT)0x1001)
#define XTCAHPI_CTRL_NUM_IP_ADDRESS_1             ((SaHpiCtrlNumT)0x1003)
#define XTCAHPI_CTRL_NUM_POWER_ON_SEQUENCE        ((SaHpiCtrlNumT)0x1301)
#define XTCAHPI_CTRL_NUM_POWER_ON_SEQUENCE_COMMIT ((SaHpiCtrlNumT)0x1300)
#define XTCAHPI_SENSOR_NUM_PWRONSEQ_COMMIT_STATUS ((SaHpiSensorNumT)0x1300)
#define XTCAHPI_ANN_NUM_TELCO_ALARM               ((SaHpiAnnunciatorNumT)0x1000)
#define XTCAHPI_SENSOR_NUM_REDUNDANCY             ((SaHpiSensorNumT)0x1001)
#define XTCAHPI_SENSOR_NUM_ACTIVE                 ((SaHpiSensorNumT)0x1002)
#define XTCAHPI_SENSOR_NUM_STANDBY                ((SaHpiSensorNumT)0x1003)
#define XTCAHPI_CTRL_NUM_FAILOVER                 ((SaHpiCtrlNumT)0x1010)
#define XTCAHPI_CTRL_NUM_ACTIVATION               ((SaHpiCtrlNumT)0x1020)
#define XTCAHPI_CTRL_NUM_DEACTIVATION             ((SaHpiCtrlNumT)0x1021)
#define XTCAHPI_SENSOR_NUM_FRU_INFO_VALID         ((SaHpiSensorNumT)0x1000)

/*
 * Instrument numbers for:
 * ATCA Assigned Power Sensor in Slot Resource
 */

#define XTCAHPI_SENSOR_NUM_ASSIGNED_PWR        ((SaHpiSensorNumT)0x1011)

/*
 * Instrument numbers for:
 * ATCA Assigned Power Sensors in Containing entity Resource
 */

#define XTCAHPI_SENSOR_NUM_SLOT_ASSIGNED_PWR   ((SaHpiSensorNumT)0x1800)

/*******************************************************************************
*  Shelf Resource Instruments
*******************************************************************************/

/*
 * Instrument numbers for:
 * Shelf Configuration Information IDR
 * Shelf Address Control
 * Chassis Status Control
 */

#define XTCAHPI_IDR_NUM_CONFIG_INFO              ((SaHpiIdrIdT)0x0001)
#define XTCAHPI_CTRL_NUM_SHELF_ADDRESS           ((SaHpiCtrlNumT)0x1000)
#define XTCAHPI_CTRL_NUM_SHELF_STATUS            ((SaHpiCtrlNumT)0x1002)

/*******************************************************************************
*  MicroTCA Carrier Resource Instruments
*******************************************************************************/

/*
 * Instrument numbers for:
 * Shelf Manager RMCP Username Control
 * Shelf Manager RMCP Password Control
 */

#define XTCAHPI_CTRL_NUM_SHELF_MANAGER_RMCP_USERNAME   ((SaHpiCtrlNumT)0x1051)
#define XTCAHPI_CTRL_NUM_SHELF_MANAGER_RMCP_PASSWORD   ((SaHpiCtrlNumT)0x1052)

/*******************************************************************************
*  MicroTCA Module Slot Instruments
*******************************************************************************/

/*
 * Instrument numbers for:
 * In-Shelf Module Activation Control
 * In-Shelf Module Dectivation Control
 */

#define XTCAHPI_CTRL_NUM_IN_SHELF_ACTIVATION   ((SaHpiCtrlNumT)0x1060)
#define XTCAHPI_CTRL_NUM_IN_SHELF_DEACTIVATION ((SaHpiCtrlNumT)0x1061)

/*******************************************************************************
*  FRU/Module Resource Instruments
*******************************************************************************/

/*
 * Instrument numbers for:
 * Desired Power Control
 * IPMB0 Sensor
 * - Note that the Sensor numbers from XTCAHPI_SENSOR_NUM_IPMB0 to
 *   XTCAHPI_SENSOR_NUM_IPMB0 + 0x5F (0x1100-0x115F) are reserved for
 *   systems supporting a radial IPMB requiring multiple IPMB0 Sensors.
 *
 * IPMI A/B State Control
 * - Note that the Control numbers from XTCAHPI_CTRL_NUM_IPMB_A_STATE to
 *   XTCAHPI_CTRL_NUM_IPMB_B_STATE + 2*0x5F (0x1101-0x11C0) are reserved
 *   for systems supporting a radial IPMB requiring multiple IPMB0 controls
 *
 * FRU Reset and Diagnostics Control
 * FRU IPM Controller Reset Control
 * LED Controls
 * - Note that Control numbers from XTCAHPI_CTRL_NUM_APP_LED
 *   to XTCAHPI_CTRL_NUM_APP_LED + 0xFA
 *   are reserved for Application Specific LED Controls.
 *
 * AMC Power On Sequence Control
 * - Note that the Control numbers from XTCAHPI_CTRL_NUM_AMC_POWER_ON_SEQUENCE
 *   to XTCAHPI_CTRL_NUM_AMC_POWER_ON_SEQUENCE + Fh
 *   are reserved for AMC Power On Sequence Controls.
 *
 * AMC Power On Sequence Commit Control
 * AMC Power On Sequence Commit Status Sensor
 * Fan Speed Control
 * HPM.1 Global IPMC Upgrade Capabilities Sensor
 * HPM.1 Upgrade Image Capabilities Sensor
 * HPM.1 Rollback Timeout Period Sensor
 */

#define XTCAHPI_CTRL_NUM_DESIRED_PWR                   ((SaHpiCtrlNumT)0x1030)
#define XTCAHPI_SENSOR_NUM_IPMB0                       ((SaHpiSensorNumT)0x1100)
#define XTCAHPI_CTRL_NUM_IPMB_A_STATE                  ((SaHpiCtrlNumT)0x1101)
#define XTCAHPI_CTRL_NUM_IPMB_B_STATE                  ((SaHpiCtrlNumT)0x1102)
#define XTCAHPI_CTRL_NUM_FRU_CONTROL                   ((SaHpiCtrlNumT)0x1200)
#define XTCAHPI_CTRL_NUM_FRU_IPMC_RESET                ((SaHpiCtrlNumT)0x1201)
#define XTCAHPI_CTRL_NUM_BLUE_LED                      ((SaHpiCtrlNumT)0x00)
#define XTCAHPI_CTRL_NUM_LED1                          ((SaHpiCtrlNumT)0x01)
#define XTCAHPI_CTRL_NUM_LED2                          ((SaHpiCtrlNumT)0x02)
#define XTCAHPI_CTRL_NUM_LED3                          ((SaHpiCtrlNumT)0x03)
#define XTCAHPI_CTRL_NUM_APP_LED                       ((SaHpiCtrlNumT)0x04)
#define XTCAHPI_RESOURCE_AGGREGATE_LED                 ((SaHpiCtrlNumT)0xFF)
#define XTCAHPI_CTRL_NUM_AMC_POWER_ON_SEQUENCE         ((SaHpiCtrlNumT)0x1501)
#define XTCAHPI_CTRL_NUM_AMC_POWER_ON_SEQUENCE_COMMIT  ((SaHpiCtrlNumT)0x1500)
#define XTCAHPI_SENSOR_NUM_AMC_PWRONSEQ_COMMIT_STATUS  ((SaHpiSensorNumT)0x1500)
#define XTCAHPI_CTRL_NUM_FAN_SPEED                     ((SaHpiCtrlNumT)0x1400)
#define XTCAHPI_SENSOR_NUM_HPM1_IPMC_GLOBAL_CAPS       ((SaHpiSensorNumT)0x1700)
#define XTCAHPI_SENSOR_NUM_HPM1_IMAGE_CAPS             ((SaHpiSensorNumT)0x1701)
#define XTCAHPI_SENSOR_NUM_HPM1_ROLLBACK_TIMEOUT       ((SaHpiSensorNumT)0x1702)

/*******************************************************************************
*  Virtual Telco Alarm Resource Instruments
*******************************************************************************/

/*
 * Instrument numbers for:
 * Minor Telco Alarm Control
 * Major Telco Alarm Control
 * Critical Telco Alarm Control
 * Power Telco Alarm Control
 * Telco Alarm Cutoff Control
 * Telco Alarm Input Sensor
*/

#define XTCAHPI_CTRL_NUM_CRITICAL_TELCO_ALARM    ((SaHpiCtrlNumT)0x1600)
#define XTCAHPI_CTRL_NUM_MAJOR_TELCO_ALARM       ((SaHpiCtrlNumT)0x1601)
#define XTCAHPI_CTRL_NUM_MINOR_TELCO_ALARM       ((SaHpiCtrlNumT)0x1602)
#define XTCAHPI_CTRL_NUM_POWER_TELCO_ALARM       ((SaHpiCtrlNumT)0x1603)
#define XTCAHPI_CTRL_NUM_TELCO_ALARM_CUTOFF      ((SaHpiCtrlNumT)0x1604)
#define XTCAHPI_SENSOR_NUM_TELCO_ALARM_INPUT     ((SaHpiSensorNumT)0x1600)

/*
 * Telco Alarm Control Entity Locations.
 * These entity location values are used for Telco Alarm Controls.
 */
#define XTCAHPI_INDICATOR_LOC_MINOR_ALARM     ((SaHpiEntityLocationT)0x0000)
#define XTCAHPI_INDICATOR_LOC_MAJOR_ALARM     ((SaHpiEntityLocationT)0x0001)
#define XTCAHPI_INDICATOR_LOC_CRITICAL_ALARM  ((SaHpiEntityLocationT)0x0002)
#define XTCAHPI_INDICATOR_LOC_POWER_ALARM     ((SaHpiEntityLocationT)0x0003)

/*******************************************************************************
*  Shelf Configuration Information IDR Data Types
*******************************************************************************/

/*
 * Shelf Configuration Information IDR Area and Field IDs.
 */

#define XTCAHPI_CONFIG_DATA_AREA_SPEC_VERSION  ((SaHpiEntryIdT)0x0000)
#define XTCAHPI_CONFIG_DATA_FIELD_LABEL        ((SaHpiEntryIdT)0x0000)

/*******************************************************************************
*  Chassis Status Control Data Types
*******************************************************************************/

/* Bitmask for Current Power State */
/* Maps to OEM Control state byte [2] for the Chassis Status Control */
typedef SaHpiUint8T XtcaHpiCsCurrentPwrState;

/* If bit is set, powered on, powered off otherwise */
#define XTCAHPI_CS_CPS_PWR_ON                   ((XtcaHpiCsCurrentPwrState) 0x01)
/* If bit is set, chassis shut down due to power overload */
#define XTCAHPI_CS_CPS_PWR_OVERLOAD             ((XtcaHpiCsCurrentPwrState) 0x02)
/* If bit is set, chassis shut down due to interlock switch being active */
#define XTCAHPI_CS_CPS_INTERLOCK                ((XtcaHpiCsCurrentPwrState) 0x04)
/* If bit is set, fault detected in main power subsystem */
#define XTCAHPI_CS_CPS_PWR_FAULT                ((XtcaHpiCsCurrentPwrState) 0x08)
/* If bit is set, fault in power Control to power up/down */
#define XTCAHPI_CS_CPS_PWR_CTRL_FAULT           ((XtcaHpiCsCurrentPwrState) 0x10)
/* If bit is set, after power restoration, chassis is restored
   to the state it was in, else chassis stays powered off after
   power restoration */
#define XTCAHPI_CS_CPS_PWR_RESTORE_PWR_UP_PREV  ((XtcaHpiCsCurrentPwrState) 0x20)
/* If bit is set, chassis powers up after power restoration */
#define XTCAHPI_CS_CPS_PWR_RESTORE_PWR_UP       ((XtcaHpiCsCurrentPwrState) 0x40)
/* If bits are set, unknown */
#define XTCAHPI_CS_CPS_PWR_RESTORE_UNKNOWN      ((XtcaHpiCsCurrentPwrState) 0x60)

/* Bitmask for Last Power Event */
/* maps to OEM Control state byte [3] for the Chassis Status Control */
typedef SaHpiUint8T XtcaHpiCsLastPwrEvent;

/* If bit is set, AC failed */
#define XTCAHPI_CS_LPEVT_AC_FAILED       ((XtcaHpiCsLastPwrEvent) 0x01)
/* If bit is set, last power down caused by a Power overload */
#define XTCAHPI_CS_LPEVT_PWR_OVERLOAD    ((XtcaHpiCsLastPwrEvent) 0x02)
/* If bit is set, last power down caused by a power interlock being
   activated */
#define XTCAHPI_CS_LPEVT_PWR_INTERLOCK   ((XtcaHpiCsLastPwrEvent) 0x04)
/* If bit is set, last power down caused by power fault */
#define XTCAHPI_CS_LPEVT_PWR_FAULT       ((XtcaHpiCsLastPwrEvent) 0x08)
/* If bit is set, last 'Power is on' state was entered via IPMI command */
#define XTCAHPI_CS_LPEVT_PWRON_IPMI      ((XtcaHpiCsLastPwrEvent) 0x10)

/* Bitmask for Miscellaneous Chassis State */
/* maps to OEM Control state byte [4] for the Chassis Status Control */
typedef SaHpiUint8T XtcaHpiCsMiscChassisState;

/* If bit is set, Chassis intrusion is active */
#define XTCAHPI_CS_MISC_CS_INTRUSION_ACTIVE    ((XtcaHpiCsMiscChassisState) 0x01)
/* If bit is set, Front Panel Lockout is active (power off and
   reset via chassis push-buttons disabled) */
#define XTCAHPI_CS_MISC_CS_FP_LOCKOUT_ACTIVE   ((XtcaHpiCsMiscChassisState) 0x02)
/* If bit is set, indicates Drive Fault */
#define XTCAHPI_CS_MISC_CS_DRIVE_FAULT         ((XtcaHpiCsMiscChassisState) 0x04)
/* If bit is set, Cooling/fan fault detected */
#define XTCAHPI_CS_MISC_CS_COOLING_FAULT       ((XtcaHpiCsMiscChassisState) 0x08)

/* Bitmask for Front Panel Button Capabilities and disable/enable status */
/* maps to OEM Control state byte [5] for the Chassis Status Control */
typedef SaHpiUint8T XtcaHpiCsFpButtonCap;

/* If bit is set, power off button is disabled */
#define XTCAHPI_CS_FP_BUTTON_PWR_OFF             ((XtcaHpiCsFpButtonCap) 0x01)
/* If bit is set, reset button is disabled */
#define XTCAHPI_CS_FP_BUTTON_RESET_OFF           ((XtcaHpiCsFpButtonCap) 0x02)
/* If bit is set, diagnostic interrupt button is disabled */
#define XTCAHPI_CS_FP_BUTTON_DIAGINTR_OFF        ((XtcaHpiCsFpButtonCap) 0x04)
/* If bit is set, standby button is disabled */
#define XTCAHPI_CS_FP_BUTTON_STANDBY_OFF         ((XtcaHpiCsFpButtonCap) 0x08)
/* If bit is set, power off button disable is allowed */
#define XTCAHPI_CS_FP_BUTTON_ALLOW_PWR_OFF       ((XtcaHpiCsFpButtonCap) 0x10)
/* If bit is set, reset button disable is allowed */
#define XTCAHPI_CS_FP_BUTTON_ALLOW_RESET_OFF     ((XtcaHpiCsFpButtonCap) 0x20)
/* If bit is set, diagnostic interrupt button disable is allowed */
#define XTCAHPI_CS_FP_BUTTON_ALLOW_DIAGINTR_OFF  ((XtcaHpiCsFpButtonCap) 0x40)
/* If bit is set, standby button disable is allowed */
#define XTCAHPI_CS_FP_BUTTON_ALLOW_STANDBY_OFF   ((XtcaHpiCsFpButtonCap) 0x80)

/*******************************************************************************
*  xTCA LED Common Data Types
*******************************************************************************/

/*
 * Color Capabilities
 *
 * This defines the possible color capabilities for an individual LED.
 * One LED may support any number of colors using the bit mask.
 *
 * XTCAHPI_LED_WHITE
 * - Indicates that the LED supports illumination in WHITE.
 * XTCAHPI_LED_ORANGE
 * - Indicates that the LED supports illumination in ORANGE.
 * XTCAHPI_LED_AMBER
 * - Indicates that the LED supports illumination in AMBER.
 * XTCAHPI_LED_GREEN
 * - Indicates that the LED supports illumination in GREEN.
 * XTCAHPI_LED_RED
 * - Indicates that the LED supports illumination in RED.
 * XTCAHPI_LED_BLUE
 * - Indicates that the LED supports illumination in BLUE.
 *
 */
typedef SaHpiUint8T XtcaHpiColorCapabilitiesT;

#define XTCAHPI_BLINK_COLOR_LED   ((XtcaHpiColorCapabilitiesT)0x80)
#define XTCAHPI_LED_WHITE         ((XtcaHpiColorCapabilitiesT)0x40)
#define XTCAHPI_LED_ORANGE        ((XtcaHpiColorCapabilitiesT)0x20)
#define XTCAHPI_LED_AMBER         ((XtcaHpiColorCapabilitiesT)0x10)
#define XTCAHPI_LED_GREEN         ((XtcaHpiColorCapabilitiesT)0x08)
#define XTCAHPI_LED_RED           ((XtcaHpiColorCapabilitiesT)0x04)
#define XTCAHPI_LED_BLUE          ((XtcaHpiColorCapabilitiesT)0x02)

typedef enum {
    XTCAHPI_LED_COLOR_RESERVED = 0,
    XTCAHPI_LED_COLOR_BLUE,
    XTCAHPI_LED_COLOR_RED,
    XTCAHPI_LED_COLOR_GREEN,
    XTCAHPI_LED_COLOR_AMBER,
    XTCAHPI_LED_COLOR_ORANGE,
    XTCAHPI_LED_COLOR_WHITE,
    XTCAHPI_LED_COLOR_NO_CHANGE = 0x0E,
    XTCAHPI_LED_COLOR_USE_DEFAULT = 0x0F
} XtcaHpiLedColorT;

typedef enum {
    XTCAHPI_LED_AUTO,       /* Set all LEDs under this Resource to Auto mode */
    XTCAHPI_LED_MANUAL,     /* Set all LEDs under this Resource to Manual mode */
    XTCAHPI_LED_LAMP_TEST   /* Put all LEDs under this Resource in Lamp Test */
} XtcaHpiResourceLedModeT;

typedef enum {
    XTCAHPI_LED_BR_SUPPORTED,     /* Blinking Rates are Supported */
    XTCAHPI_LED_BR_NOT_SUPPORTED, /* Blinking Rates are Not Supported */
    XTCAHPI_LED_BR_UNKNOWN,       /* The HPI implementation cannot determine
                                    whether or not Blinking Rates are
                                    supported. */
} XtcaHpiLedBrSupportT;

/*******************************************************************************
*  Electronic Keying Data Types
*******************************************************************************/

/*
 * Interface types for:
 * P2P Fabric links
 * Bused Clock links, Clock links
 * P2P Base links
 * P2P Update Channel links
 * Metallic Test Bus links
 * Ringing Generator Bus links
 */
#define XTCAHPI_IF_FABRIC                 ((SaHpiEntityLocationT)0x00001)
#define XTCAHPI_IF_SYNC_CLOCK             ((SaHpiEntityLocationT)0x00002)
#define XTCAHPI_IF_BASE                   ((SaHpiEntityLocationT)0x00003)
#define XTCAHPI_IF_UPDATE_CHANNEL         ((SaHpiEntityLocationT)0x00004)
#define XTCAHPI_IF_METALLIC_TEST          ((SaHpiEntityLocationT)0x00005)
#define XTCAHPI_IF_RINGING_GENERATOR_BUS  ((SaHpiEntityLocationT)0x00006)

/*******************************************************************************
*  ConfigData Entity Locations
*******************************************************************************/

/*
 * ConfigData Entity Locations.
 * These entity location values are used for management instruments that are
 * defined with the SAHPI_ENT_CONFIG_DATA entity type to hold various items
 * of configuration information.
 */
#define XTCAHPI_CONFIG_DATA_LOC_DEFAULT             ((SaHpiEntityLocationT)0x00)
#define XTCAHPI_CONFIG_DATA_LOC_SHELF_ADDRESS       ((SaHpiEntityLocationT)0x01)
#define XTCAHPI_CONFIG_DATA_LOC_POWER_ON_SEQUENCE   ((SaHpiEntityLocationT)0x02)
#define XTCAHPI_CONFIG_DATA_LOC_CHASSIS_STATUS      ((SaHpiEntityLocationT)0x03)
#define XTCAHPI_CONFIG_DATA_LOC_ACTIVATION          ((SaHpiEntityLocationT)0x04)
#define XTCAHPI_CONFIG_DATA_LOC_DEACTIVATION        ((SaHpiEntityLocationT)0x05)
#define XTCAHPI_CONFIG_DATA_LOC_IN_SHELF_ACTIVATION ((SaHpiEntityLocationT)0x06)
#define XTCAHPI_CONFIG_DATA_LOC_IN_SHELF_DEACTIVATION   \
                                                    ((SaHpiEntityLocationT)0x07)
#define XTCAHPI_CONFIG_DATA_LOC_USERNAME            ((SaHpiEntityLocationT)0x08)
#define XTCAHPI_CONFIG_DATA_LOC_PASSWORD            ((SaHpiEntityLocationT)0x09)
#define XTCAHPI_CONFIG_DATA_LOC_FUMI_GLOBAL_UPGRADE_CAP \
                                                    ((SaHpiEntityLocationT)0x0A)
#define XTCAHPI_CONFIG_DATA_LOC_FUMI_UPGRADE_IMAGE_CAP  \
                                                    ((SaHpiEntityLocationT)0x0B)
#define XTCAHPI_CONFIG_DATA_LOC_FUMI_ROLLBACK_TIMEOUT   \
                                                    ((SaHpiEntityLocationT)0x0C)

#ifdef __cplusplus
}
#endif

#endif  /* __SAHPI_xTCA_H */