/****************************************************************************
 *
 * Copyright (c) Hewlett-Packard Co. 1996
 *
 * All Rights Reserved.  Reproduction, adaptation, or translation
 * without prior written permission is prohibited, except as allowed
 * under the copyright laws.
 *
 * Hewlett-Packard Company
 * 3000 Hanover Street, Palo Alto, CA  94303
 * 
 ****************************************************************************
 *
 * $Header: /blackbird/code/vxitest/vxitest.h 1.4 1997/10/30 17:01:44 garya Exp $
 *
 * Description:
 * 
 * Defines the test results structure output from the vxitest program when
 * run remotely.
 *
 ****************************************************************************/

#ifndef VXITEST_H
#define VXITEST_H

#define NUM_SLOTS		13	/* maximum slots */

typedef enum
{
  TEST_PASSED = 1,
  TEST_FAILED,
  TEST_NA,
  TEST_NO_TEST
} Result;

typedef struct				/* information for one module */
{
  unsigned long	man_id;			/* VXI manufacturer id */
  char          manuf_str [16];
  unsigned long	model;			/* VXI model number */
  char          model_str [16];
  unsigned long	logical_address;
  unsigned long	power_on_selftest_result;
  unsigned long	selftest_result;
  unsigned long	shared_ram_test_result;
  unsigned long	shared_ram_size;
  unsigned long	local_bus_test_result;
  unsigned long	e1437_fifo_size;
  unsigned long	e1485_num_dsps;
  unsigned long	e1485_main_mem_size;
  unsigned long	e2749_wwn_hi;
  unsigned long	e2749_wwn_lo;
  unsigned long	e1562_scsi_a;
  unsigned long	e1562_scsi_b;
  char          vx8_040_ddc_installed [16];
  unsigned long	vx8_040_ddc_test_result;
} Module_result;

typedef struct
{
  unsigned long	summary_result;		/* summary of all test results */
					/* test results for the modules */
  Module_result	module_results [NUM_SLOTS];
} Vxitest_results;

#endif /* VXITEST_H */
