[ Previous |
Next |
Contents |
Home |
Search ]
AIX Version 4.3 Understanding the Diagnostic Subsystem for AIX
Example {DEVICE}_ERR_DETAIL.H:
TU specific outputs
/*
* COMPONENT_NAME: TU_DEVICE
*
* FUNCTIONS: SAMPLE Header file for TU Error Detail (OUTPUT)
*
*/
#ifndef _h_device_err_detail
#define _h_device_err_detail
/*
* ERROR_DETAILS structure and related definitions follow.
*
* These structures are used to provide detailed error information
* for some of the errors that are detected by the test units.
* Whether the detailed error is available for a particular TU and error
* code is documented in the TU Component Interface Specification, and
* the actual source files where that error code is defined.
*/
/********************************************************/
/* The following structures are examples. Modify */
/* as needed. */
/********************************************************/
typedef struct {
unsigned long int error_code;
unsigned long int crc_expected;
unsigned long int crc_actual;
} CRC_ERROR_DETAILS;
typedef struct {
unsigned long int error_code;
unsigned long int miscompare_address;
unsigned long int expected_data;
unsigned long int actual_data;
} DMA_ERROR_DETAILS;
typedef union {
unsigned long int error_code;
CRC_ERROR_DETAILS crc_test;
DMA_ERROR_DETAILS dma_test;
} ERROR_DETAILS;
/* The following is required by <diag/tucb.h> file */
#define OUTPUT_DATA ERROR_DETAILS
#endif
[ Previous |
Next |
Contents |
Home |
Search ]