summaryrefslogtreecommitdiffstats
path: root/src/occ_405/thread/thrm_thread.h
diff options
context:
space:
mode:
authorWael El-Essawy <welessa@us.ibm.com>2015-12-07 15:07:09 -0600
committerWael Elessawy <welessa@us.ibm.com>2015-12-11 13:29:24 -0600
commit99ef891b7853232a80d5c1914f201c81e8a725c3 (patch)
tree7335da0a2c06a918f27fd0475b1dcb1a368e2ff5 /src/occ_405/thread/thrm_thread.h
parentca9e4420760a191828d259c1e425486fa1f658a7 (diff)
downloadtalos-occ-99ef891b7853232a80d5c1914f201c81e8a725c3.tar.gz
talos-occ-99ef891b7853232a80d5c1914f201c81e8a725c3.zip
CC: Support Thermal Control Threshold Config Data format 0x13
Support thermal control thresholds format 0x13 config data command with new version 0x20 defined in P9 interface spec. All older P8 versions of format 0x13 deleted. Tested in simics. remove thermal thread. fix a dts calculation bug. add a firmware failure error log. Change-Id: I4a9979929292833a5e6f4f7f4e162ea20983b96a RTC: 141647 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22516 Tested-by: FSP CI Jenkins Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: Wael Elessawy <welessa@us.ibm.com>
Diffstat (limited to 'src/occ_405/thread/thrm_thread.h')
-rwxr-xr-xsrc/occ_405/thread/thrm_thread.h62
1 files changed, 0 insertions, 62 deletions
diff --git a/src/occ_405/thread/thrm_thread.h b/src/occ_405/thread/thrm_thread.h
deleted file mode 100755
index 21a8b8e..0000000
--- a/src/occ_405/thread/thrm_thread.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/* IBM_PROLOG_BEGIN_TAG */
-/* This is an automatically generated prolog. */
-/* */
-/* $Source: src/occ_405/thread/thrm_thread.h $ */
-/* */
-/* OpenPOWER OnChipController Project */
-/* */
-/* Contributors Listed Below - COPYRIGHT 2011,2015 */
-/* [+] International Business Machines Corp. */
-/* */
-/* */
-/* Licensed under the Apache License, Version 2.0 (the "License"); */
-/* you may not use this file except in compliance with the License. */
-/* You may obtain a copy of the License at */
-/* */
-/* http://www.apache.org/licenses/LICENSE-2.0 */
-/* */
-/* Unless required by applicable law or agreed to in writing, software */
-/* distributed under the License is distributed on an "AS IS" BASIS, */
-/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
-/* implied. See the License for the specific language governing */
-/* permissions and limitations under the License. */
-/* */
-/* IBM_PROLOG_END_TAG */
-
-#ifndef THRM_THREAD_H
-#define THRM_THREAD_H
-
-#define THRM_MAX_NUM_ZONES 8
-
-typedef struct thrm_fru_control
-{
- uint8_t t_control;
- uint8_t error;
- uint8_t warning;
- uint8_t warning_reset;
- uint16_t t_inc_zone[THRM_MAX_NUM_ZONES];
-}thrm_fru_control_t;
-
-typedef struct thrm_fru_data
-{
- // Flag to indicate that we have timed out trying to read this thermal sensor
- uint8_t read_failure;
- // Current temperature of this FRU
- uint16_t Tcurrent;
- // Previous temperature of this FRU
- uint16_t Tprevious;
- // Coooling requests to be sent back to TMGT
- uint16_t FanIncZone[THRM_MAX_NUM_ZONES];
- // Flag to indicate if the temperature for this FRU is increasing or not
- BOOLEAN temp_increasing;
-}thrm_fru_data_t;
-
-errlHndl_t thrm_thread_load_thresholds();
-void THRM_thread_update_thresholds();
-uint8_t THRM_thread_get_cooling_request();
-BOOLEAN thrm_thread_fan_control(const uint8_t i_frutype,
- const uint16_t i_fru_temperature);
-BOOLEAN thrm_thread_vrm_fan_control(const uint16_t i_vrfan);
-void thrm_thread_main();
-
-#endif
OpenPOWER on IntegriCloud