| 123456789101112 |
- """Generated 6400 wire and snapshot constants."""
- CONTRACT_SHA256 = "9f1be59b6fe6f65fafe1f09a2c5d97076ac3e94996faa5834110066cc5714bd1"
- SOURCE_CONTRACT_FILE_SHA256 = "971702eb7d7a113cd6d106d6f0486b8863194e06f15a3b97ed29067f3faf704f"
- SOURCE_COMMIT = "66f8ee052f4b1199224f0f3d58fe863fecd21c4d"
- SNAPSHOT_PAYLOAD_LENGTH = 193
- HOST_BAUD = 921600
- COMMANDS = {'GET_SNAPSHOT': 2, 'SET_STIMULUS': 3, 'SET_TARGET': 1}
- RESPONSES = {'GET_SNAPSHOT_ACK': 130, 'SET_STIMULUS_ACK': 131, 'SET_TARGET_ACK': 129, 'SNAPSHOT_DATA': 66}
- CANONICAL_PROFILES = ('6400-control', '6400-identification', '6400-sim-debug')
- PROFILE_CAPABILITIES = {'6400-control': {'allowed_commands': ['SET_TARGET', 'GET_SNAPSHOT'], 'production': True, 'simulation_only': False, 'stimulus': False}, '6400-identification': {'allowed_commands': ['SET_TARGET', 'GET_SNAPSHOT', 'SET_STIMULUS'], 'production': False, 'simulation_only': False, 'stimulus': True}, '6400-sim-debug': {'allowed_commands': ['SET_TARGET', 'GET_SNAPSHOT', 'SET_STIMULUS'], 'production': False, 'simulation_only': True, 'stimulus': True}}
- SNAPSHOT_FIELDS = {'control_state': {'name': 'control_state', 'offset': 0, 'size': 1, 'type': 'u8'}, 'fault_flags': {'name': 'fault_flags', 'offset': 1, 'size': 2, 'type': 'u16'}, 'current_target': {'name': 'current_target', 'offset': 3, 'size': 1, 'type': 'u8', 'unit': 'degC'}, 'host_target_seen': {'name': 'host_target_seen', 'offset': 4, 'size': 1, 'type': 'u8'}, 'bmc_epoch': {'name': 'bmc_epoch', 'offset': 5, 'size': 2, 'type': 'u16'}, 'ct_epoch': {'name': 'ct_epoch', 'offset': 7, 'size': 2, 'type': 'u16'}, 'control_epoch': {'name': 'control_epoch', 'offset': 9, 'size': 2, 'type': 'u16'}, 'bmc_age': {'name': 'bmc_age', 'offset': 11, 'size': 2, 'type': 'u16', 'unit': 'control_ticks'}, 'ct_age': {'name': 'ct_age', 'offset': 13, 'size': 2, 'type': 'u16', 'unit': 'control_ticks'}, 'bmc_raw': {'count': 24, 'name': 'bmc_raw', 'offset': 15, 'size': 48, 'type': 'u16'}, 'bmc_valid_mask': {'count': 3, 'name': 'bmc_valid_mask', 'offset': 63, 'size': 3, 'type': 'bytes'}, 'ct_raw': {'count': 27, 'name': 'ct_raw', 'offset': 66, 'size': 54, 'type': 'u16'}, 'ct_valid_mask': {'count': 4, 'name': 'ct_valid_mask', 'offset': 120, 'size': 4, 'type': 'bytes'}, 'ptc_requested': {'count': 24, 'name': 'ptc_requested', 'offset': 124, 'size': 24, 'type': 'u8'}, 'ptc_applied': {'count': 24, 'name': 'ptc_applied', 'offset': 148, 'size': 24, 'type': 'u8'}, 'front_requested': {'count': 4, 'name': 'front_requested', 'offset': 172, 'size': 4, 'type': 'u8'}, 'front_applied': {'count': 4, 'name': 'front_applied', 'offset': 176, 'size': 4, 'type': 'u8'}, 'rear_requested': {'count': 4, 'name': 'rear_requested', 'offset': 180, 'size': 4, 'type': 'u8'}, 'rear_applied': {'count': 4, 'name': 'rear_applied', 'offset': 184, 'size': 4, 'type': 'u8'}, 'safety_override_mask': {'count': 3, 'name': 'safety_override_mask', 'offset': 188, 'size': 3, 'type': 'bytes'}, 'lane_fault_mask': {'name': 'lane_fault_mask', 'offset': 191, 'size': 1, 'type': 'u8'}, 'global_fault': {'name': 'global_fault', 'offset': 192, 'size': 1, 'type': 'u8'}}
- CHANNEL_MAP = [{'air_lane': 0, 'bmc_temperature_index': 0, 'cpu': 0, 'cpu_slot': 0, 'ct7428_channel': 'unknown', 'enabled': True, 'evidence': {'confidence': 'confirmed', 'location': 'topology', 'source': 'active-task-contract'}, 'front_fan_channel': 0, 'logical_dimm': 0, 'physical_label': 'CPU0_DIMM0', 'primary_cohort': True, 'ptc_channel': 0, 'rear_fan_channel': 0, 'thermal_zone': 0}, {'air_lane': 0, 'bmc_temperature_index': 1, 'cpu': 0, 'cpu_slot': 1, 'ct7428_channel': 'unknown', 'enabled': True, 'evidence': {'confidence': 'confirmed', 'location': 'topology', 'source': 'active-task-contract'}, 'front_fan_channel': 0, 'logical_dimm': 1, 'physical_label': 'CPU0_DIMM1', 'primary_cohort': True, 'ptc_channel': 1, 'rear_fan_channel': 0, 'thermal_zone': 0}, {'air_lane': 0, 'bmc_temperature_index': 2, 'cpu': 0, 'cpu_slot': 2, 'ct7428_channel': 'unknown', 'enabled': True, 'evidence': {'confidence': 'confirmed', 'location': 'topology', 'source': 'active-task-contract'}, 'front_fan_channel': 0, 'logical_dimm': 2, 'physical_label': 'CPU0_DIMM2', 'primary_cohort': True, 'ptc_channel': 2, 'rear_fan_channel': 0, 'thermal_zone': 0}, {'air_lane': 0, 'bmc_temperature_index': 3, 'cpu': 0, 'cpu_slot': 3, 'ct7428_channel': 'unknown', 'enabled': True, 'evidence': {'confidence': 'confirmed', 'location': 'topology', 'source': 'active-task-contract'}, 'front_fan_channel': 0, 'logical_dimm': 3, 'physical_label': 'CPU0_DIMM3', 'primary_cohort': True, 'ptc_channel': 3, 'rear_fan_channel': 0, 'thermal_zone': 0}, {'air_lane': 0, 'bmc_temperature_index': 4, 'cpu': 0, 'cpu_slot': 4, 'ct7428_channel': 'unknown', 'enabled': True, 'evidence': {'confidence': 'confirmed', 'location': 'topology', 'source': 'active-task-contract'}, 'front_fan_channel': 0, 'logical_dimm': 4, 'physical_label': 'CPU0_DIMM4', 'primary_cohort': True, 'ptc_channel': 4, 'rear_fan_channel': 0, 'thermal_zone': 0}, {'air_lane': 0, 'bmc_temperature_index': 5, 'cpu': 0, 'cpu_slot': 5, 'ct7428_channel': 'unknown', 'enabled': True, 'evidence': {'confidence': 'confirmed', 'location': 'topology', 'source': 'active-task-contract'}, 'front_fan_channel': 0, 'logical_dimm': 5, 'physical_label': 'CPU0_DIMM5', 'primary_cohort': True, 'ptc_channel': 5, 'rear_fan_channel': 0, 'thermal_zone': 0}, {'air_lane': 1, 'bmc_temperature_index': 6, 'cpu': 0, 'cpu_slot': 6, 'ct7428_channel': 'unknown', 'enabled': True, 'evidence': {'confidence': 'confirmed', 'location': 'topology', 'source': 'active-task-contract'}, 'front_fan_channel': 1, 'logical_dimm': 6, 'physical_label': 'CPU0_DIMM6', 'primary_cohort': True, 'ptc_channel': 6, 'rear_fan_channel': 1, 'thermal_zone': 1}, {'air_lane': 1, 'bmc_temperature_index': 7, 'cpu': 0, 'cpu_slot': 7, 'ct7428_channel': 'unknown', 'enabled': True, 'evidence': {'confidence': 'confirmed', 'location': 'topology', 'source': 'active-task-contract'}, 'front_fan_channel': 1, 'logical_dimm': 7, 'physical_label': 'CPU0_DIMM7', 'primary_cohort': True, 'ptc_channel': 7, 'rear_fan_channel': 1, 'thermal_zone': 1}, {'air_lane': 1, 'bmc_temperature_index': 8, 'cpu': 0, 'cpu_slot': 8, 'ct7428_channel': 'unknown', 'enabled': True, 'evidence': {'confidence': 'confirmed', 'location': 'topology', 'source': 'active-task-contract'}, 'front_fan_channel': 1, 'logical_dimm': 8, 'physical_label': 'CPU0_DIMM8', 'primary_cohort': True, 'ptc_channel': 8, 'rear_fan_channel': 1, 'thermal_zone': 1}, {'air_lane': 1, 'bmc_temperature_index': 9, 'cpu': 0, 'cpu_slot': 9, 'ct7428_channel': 'unknown', 'enabled': True, 'evidence': {'confidence': 'confirmed', 'location': 'topology', 'source': 'active-task-contract'}, 'front_fan_channel': 1, 'logical_dimm': 9, 'physical_label': 'CPU0_DIMM9', 'primary_cohort': True, 'ptc_channel': 9, 'rear_fan_channel': 1, 'thermal_zone': 1}, {'air_lane': 1, 'bmc_temperature_index': 10, 'cpu': 0, 'cpu_slot': 10, 'ct7428_channel': 'unknown', 'enabled': True, 'evidence': {'confidence': 'confirmed', 'location': 'topology', 'source': 'active-task-contract'}, 'front_fan_channel': 1, 'logical_dimm': 10, 'physical_label': 'CPU0_DIMM10', 'primary_cohort': True, 'ptc_channel': 10, 'rear_fan_channel': 1, 'thermal_zone': 1}, {'air_lane': 1, 'bmc_temperature_index': 11, 'cpu': 0, 'cpu_slot': 11, 'ct7428_channel': 'unknown', 'enabled': True, 'evidence': {'confidence': 'confirmed', 'location': 'topology', 'source': 'active-task-contract'}, 'front_fan_channel': 1, 'logical_dimm': 11, 'physical_label': 'CPU0_DIMM11', 'primary_cohort': True, 'ptc_channel': 11, 'rear_fan_channel': 1, 'thermal_zone': 1}, {'air_lane': 2, 'bmc_temperature_index': 12, 'cpu': 1, 'cpu_slot': 0, 'ct7428_channel': 'unknown', 'enabled': True, 'evidence': {'confidence': 'confirmed', 'location': 'topology', 'source': 'active-task-contract'}, 'front_fan_channel': 2, 'logical_dimm': 12, 'physical_label': 'CPU1_DIMM0', 'primary_cohort': True, 'ptc_channel': 12, 'rear_fan_channel': 2, 'thermal_zone': 1}, {'air_lane': 2, 'bmc_temperature_index': 13, 'cpu': 1, 'cpu_slot': 1, 'ct7428_channel': 'unknown', 'enabled': True, 'evidence': {'confidence': 'confirmed', 'location': 'topology', 'source': 'active-task-contract'}, 'front_fan_channel': 2, 'logical_dimm': 13, 'physical_label': 'CPU1_DIMM1', 'primary_cohort': True, 'ptc_channel': 13, 'rear_fan_channel': 2, 'thermal_zone': 1}, {'air_lane': 2, 'bmc_temperature_index': 14, 'cpu': 1, 'cpu_slot': 2, 'ct7428_channel': 'unknown', 'enabled': True, 'evidence': {'confidence': 'confirmed', 'location': 'topology', 'source': 'active-task-contract'}, 'front_fan_channel': 2, 'logical_dimm': 14, 'physical_label': 'CPU1_DIMM2', 'primary_cohort': True, 'ptc_channel': 14, 'rear_fan_channel': 2, 'thermal_zone': 1}, {'air_lane': 2, 'bmc_temperature_index': 15, 'cpu': 1, 'cpu_slot': 3, 'ct7428_channel': 'unknown', 'enabled': True, 'evidence': {'confidence': 'confirmed', 'location': 'topology', 'source': 'active-task-contract'}, 'front_fan_channel': 2, 'logical_dimm': 15, 'physical_label': 'CPU1_DIMM3', 'primary_cohort': True, 'ptc_channel': 15, 'rear_fan_channel': 2, 'thermal_zone': 1}, {'air_lane': 2, 'bmc_temperature_index': 16, 'cpu': 1, 'cpu_slot': 4, 'ct7428_channel': 'unknown', 'enabled': True, 'evidence': {'confidence': 'confirmed', 'location': 'topology', 'source': 'active-task-contract'}, 'front_fan_channel': 2, 'logical_dimm': 16, 'physical_label': 'CPU1_DIMM4', 'primary_cohort': True, 'ptc_channel': 16, 'rear_fan_channel': 2, 'thermal_zone': 1}, {'air_lane': 2, 'bmc_temperature_index': 17, 'cpu': 1, 'cpu_slot': 5, 'ct7428_channel': 'unknown', 'enabled': True, 'evidence': {'confidence': 'confirmed', 'location': 'topology', 'source': 'active-task-contract'}, 'front_fan_channel': 2, 'logical_dimm': 17, 'physical_label': 'CPU1_DIMM5', 'primary_cohort': True, 'ptc_channel': 17, 'rear_fan_channel': 2, 'thermal_zone': 1}, {'air_lane': 3, 'bmc_temperature_index': 18, 'cpu': 1, 'cpu_slot': 6, 'ct7428_channel': 'unknown', 'enabled': True, 'evidence': {'confidence': 'confirmed', 'location': 'topology', 'source': 'active-task-contract'}, 'front_fan_channel': 3, 'logical_dimm': 18, 'physical_label': 'CPU1_DIMM6', 'primary_cohort': False, 'ptc_channel': 18, 'rear_fan_channel': 3, 'thermal_zone': 2}, {'air_lane': 3, 'bmc_temperature_index': 19, 'cpu': 1, 'cpu_slot': 7, 'ct7428_channel': 'unknown', 'enabled': True, 'evidence': {'confidence': 'confirmed', 'location': 'topology', 'source': 'active-task-contract'}, 'front_fan_channel': 3, 'logical_dimm': 19, 'physical_label': 'CPU1_DIMM7', 'primary_cohort': False, 'ptc_channel': 19, 'rear_fan_channel': 3, 'thermal_zone': 2}, {'air_lane': 3, 'bmc_temperature_index': 20, 'cpu': 1, 'cpu_slot': 8, 'ct7428_channel': 'unknown', 'enabled': True, 'evidence': {'confidence': 'confirmed', 'location': 'topology', 'source': 'active-task-contract'}, 'front_fan_channel': 3, 'logical_dimm': 20, 'physical_label': 'CPU1_DIMM8', 'primary_cohort': False, 'ptc_channel': 20, 'rear_fan_channel': 3, 'thermal_zone': 2}, {'air_lane': 3, 'bmc_temperature_index': 21, 'cpu': 1, 'cpu_slot': 9, 'ct7428_channel': 'unknown', 'enabled': True, 'evidence': {'confidence': 'confirmed', 'location': 'topology', 'source': 'active-task-contract'}, 'front_fan_channel': 3, 'logical_dimm': 21, 'physical_label': 'CPU1_DIMM9', 'primary_cohort': False, 'ptc_channel': 21, 'rear_fan_channel': 3, 'thermal_zone': 2}, {'air_lane': 3, 'bmc_temperature_index': 22, 'cpu': 1, 'cpu_slot': 10, 'ct7428_channel': 'unknown', 'enabled': True, 'evidence': {'confidence': 'confirmed', 'location': 'topology', 'source': 'active-task-contract'}, 'front_fan_channel': 3, 'logical_dimm': 22, 'physical_label': 'CPU1_DIMM10', 'primary_cohort': False, 'ptc_channel': 22, 'rear_fan_channel': 3, 'thermal_zone': 2}, {'air_lane': 3, 'bmc_temperature_index': 23, 'cpu': 1, 'cpu_slot': 11, 'ct7428_channel': 'unknown', 'enabled': True, 'evidence': {'confidence': 'confirmed', 'location': 'topology', 'source': 'active-task-contract'}, 'front_fan_channel': 3, 'logical_dimm': 23, 'physical_label': 'CPU1_DIMM11', 'primary_cohort': False, 'ptc_channel': 23, 'rear_fan_channel': 3, 'thermal_zone': 2}]
|