/**     h8_tests.h
 **
 ** Author: Ted Schmitz
 ** Date of original creation September 2, 2009
 **
 **     There are a number of tests the h8 can perform on itself via an Octeon
 ** request to run those tests.  This module contains symbols and definitions
 ** to support those h8 tests.
 **
 **/

//#define SENSOR_DEBUG       /* define this to enable display of sensor data */

#define FIRST_SENSOR_NO 7            /* first sensor number to read from h8 */
#define LAST_SENSOR_NO 18            /* last sensor number to be read from h8 */

/**  The following symbols define the actual sensor numbers used in H8 code
 ** for the TNPA-56512 AMC board.
 **
 ** NOTE:  Sensor numbers are numbered from 07 through 18 for this product.
 **
 ** Sensor 
 ** Number Description
 ** ------ ------------------------------------------------
 **   07   Air outlet temperature
 **   08   Power supply temperature
 **   09   Air inlet temperature
 **   10   Octeon die temperature
 **   11   MMC 3.3 volt monitor
 **   12   Core 1.15 volt monitor
 **   13   1.1 volt monitor
 **   14   1.2 volt monitor
 **   15   1.8 volt monitor
 **   16   3.3 volt monitor
 **   17   12 volt monitor
 **   18   1.5 volt monitor
 **/
#define SENSOR_1 7
#define SENSOR_2 8
#define SENSOR_3 9
#define SENSOR_4 10
#define SENSOR_5 11
#define SENSOR_6 12
#define SENSOR_7 13
#define SENSOR_8 14
#define SENSOR_9 15
#define SENSOR_10 16
#define SENSOR_11 17
#define SENSOR_12 18
#define SENSOR_TABLE_TERM 0xFFFF /* sensor table terminator */

#define SENSOR_1_NAME "Air outlet temperature"
#define SENSOR_2_NAME "Power supply temperature"
#define SENSOR_3_NAME "Air inlet temperature"
#define SENSOR_4_NAME "Octeon die temperature"
#define SENSOR_5_NAME "MMC 3.3 volt"
#define SENSOR_6_NAME "1.15 Core volt"
#define SENSOR_7_NAME "1.1 volt"
#define SENSOR_8_NAME "1.2 volt"
#define SENSOR_9_NAME "1.8 volt"
#define SENSOR_10_NAME "3.3 volt"
#define SENSOR_11_NAME "12 volt"
#define SENSOR_12_NAME "1.5 volt"

/**  Structure to hold the number and ASCII name or each sensor the H8
 ** can read and retun to the Octeon.
 **/
struct sensor_table 
  {
  unsigned short sensor_no;    /* sensor number used in MMC logic */
  char * sensor_name;          /* sensoe ASCII name */
  };
