!*** MODULE ESFDEF *** !DEC$ OPTIONS/ALIGN=(RECORDS=PACKED,COMMONS=PACKED)/NOWARN ! ! Enumerate Item Codes for the various types of Environmental Sensor FRUs. ! PARAMETER ESF$K_TEMP = '00001000'X PARAMETER ESF$K_POWER = '00001001'X PARAMETER ESF$K_FAN = '00001002'X ! ! The sys$get_env_sensors system service will populate the user's buffer ! with an array of the following structure. The dimension of the array is ! determined by the number of sensors corresponding to the item code by a ! run-time call to sys$get_env_sensors() with a buffer address of zero or ! buffer size of zero. sys$get_env_sensors() will pass the dimensions back ! to the caller so he can allocate buffers to contain the arrays for ! subsequent calls to sys$get_env_sensors() with valid buffer pointers and ! sizes. ! See [SYS]SYS_GET_ENV_SENSORS.C ! PARAMETER esf$m_valid_status = '00000001'X PARAMETER esf$m_valid_value = '00000002'X PARAMETER esf$m_feat_reserved = '000000FC'X STRUCTURE /esfitem/ BYTE esf$b_type ! CFG_NODE config type field BYTE esf$b_subtype ! CFG_NODE config subtype field BYTE esf$B_VALUE ! Value byte BYTE esf$b_status ! Status byte UNION MAP BYTE esf$b_features ! Features of the Sensor FRU END MAP MAP PARAMETER esf$S_valid_status = 1 PARAMETER esf$V_valid_status = 0 PARAMETER esf$S_valid_value = 1 PARAMETER esf$V_valid_value = 1 PARAMETER esf$S_feat_reserved = 6 PARAMETER esf$V_feat_reserved = 2 BYTE %FILL (1) END MAP END UNION ! ! Pad out to next quad word ! BYTE esf$b_reserved_1(1:3) ! ! fru_node_id contains FRU Descriptor Node ID information to help ! identify the location of the associated sensor. See "Alpha Systems ! Configuration Tree Implementation Specification" Table 1-79 on Page 50. ! The byte fields in this 8-byte structure are declared in CFGDEF.H as ! struct cfg$_cfg_node_id_fru_desc in the CFG_NODE structure. ! INTEGER*4 esf$q_fru_node_id(2) ! ! fru_flags contains the Node Flags for the FRU. See "Alpha Configuration ! Tree Specification" Release T6.0-0023 page 7-45. ! See also cfg$iq_node_flags in CFGDEF.H. ! INTEGER*4 esf$q_fru_flags(2) ! ! console_id is a quadword that contains the offset and bitfield elements ! to be used to access the low-level hardware status or value information ! UNION MAP INTEGER*4 esf$q_console_id(2) ! Whole Console ID END MAP MAP INTEGER*4 esf$l_offset ! Offset part of Console ID INTEGER*4 esf$L_BITFIELD ! Bitfield part of Console ID END MAP END UNION END STRUCTURE ! esfitem !DEC$ END OPTIONS