ppc64-diag
fru_prev6.h
Go to the documentation of this file.
1 
21 #ifndef _H_FRU_PREV6
22 #define _H_FRU_PREV6
23 
24 #define NAMESIZE 16
25 #define LOCSIZE 80
26 
27 #define MAXFRUS 4
28 #define ERRD1 4
29 #define ERRD2 5
30 
31 /*
32  * A fru_callout_pre_v6 represents a field replaceable unit callout that
33  * is associated with an RTAS event (prior to version 6, which is handled
34  * differently).
35  *
36  * conf confidence (probability) associated with the FRU callout.
37  *
38  * fname device name or configuration database keyword associated
39  * with the field replaceable unit that is being reported.
40  *
41  * floc location associated with fname
42  */
44  int conf; /* probability of failure */
45  char fname[NAMESIZE]; /* FRU name */
46  char floc[LOCSIZE]; /* location of fname */
47  short fmsg; /* text message number for fname */
48 };
49 
50 /*
51  * An event_description_pre_v6 struct represents the outcome of the
52  * analysis of an RTAS event (prior to version 6 events, which are
53  * handled differently).
54  *
55  * flags indicates the type of error description being added to the
56  * system. The following values are defined.
57  *
58  * ERRD1 The Error Description identifies the
59  * resource that failed, its parent, and any cables
60  * needed to attach the resource to its parent.
61  *
62  * ERRD2 Similar to ERRD1, but does not include the
63  * parent resource.
64  *
65  * sn source number of the failure.
66  *
67  * rcode reason code associated with the failure.
68  *
69  * rmsg message number of the reason code text.
70  *
71  * frus an array identifying the field replaceable unit callouts
72  * associated with this event.
73  */
75  char dname[NAMESIZE]; /* device name */
76  short flags;
77  short sn; /* source number of the failure */
78  short rcode; /* reason code for the failure */
79  char *rmsg; /* failure description */
81 };
82 
83 #endif
short fmsg
Definition: fru_prev6.h:47
#define MAXFRUS
Definition: fru_prev6.h:27
short rcode
Definition: fru_prev6.h:78
Definition: fru_prev6.h:74
short sn
Definition: fru_prev6.h:77
char fname[NAMESIZE]
Definition: fru_prev6.h:45
char dname[NAMESIZE]
Definition: fru_prev6.h:75
#define NAMESIZE
Definition: fru_prev6.h:24
int conf
Definition: fru_prev6.h:44
char * rmsg
Definition: fru_prev6.h:79
char floc[LOCSIZE]
Definition: fru_prev6.h:46
struct fru_callout_pre_v6 frus[MAXFRUS]
Definition: fru_prev6.h:80
Definition: fru_prev6.h:43
short flags
Definition: fru_prev6.h:76
#define LOCSIZE
Definition: fru_prev6.h:25