Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * This file is subject to the terms and conditions of the GNU General Public
0003  * License.  See the file "COPYING" in the main directory of this archive
0004  * for more details.
0005  *
0006  * Derived from IRIX <sys/SN/SN0/sn0_fru.h>
0007  *
0008  * Copyright (C) 1992 - 1997, 1999 Silcon Graphics, Inc.
0009  * Copyright (C) 1999, 2006 Ralf Baechle (ralf@linux-mips)
0010  */
0011 #ifndef __ASM_SN_FRU_H
0012 #define __ASM_SN_FRU_H
0013 
0014 #define MAX_DIMMS           8    /* max # of dimm banks */
0015 #define MAX_PCIDEV          8    /* max # of pci devices on a pci bus */
0016 
0017 typedef unsigned char confidence_t;
0018 
0019 typedef struct kf_mem_s {
0020     confidence_t km_confidence; /* confidence level that the memory is bad
0021                      * is this necessary ?
0022                      */
0023     confidence_t km_dimm[MAX_DIMMS];
0024                     /* confidence level that dimm[i] is bad
0025                      *I think this is the right number
0026                      */
0027 
0028 } kf_mem_t;
0029 
0030 typedef struct kf_cpu_s {
0031     confidence_t    kc_confidence; /* confidence level that cpu is bad */
0032     confidence_t    kc_icache; /* confidence level that instr. cache is bad */
0033     confidence_t    kc_dcache; /* confidence level that data   cache is bad */
0034     confidence_t    kc_scache; /* confidence level that sec.   cache is bad */
0035     confidence_t    kc_sysbus; /* confidence level that sysad/cmd/state bus is bad */
0036 } kf_cpu_t;
0037 
0038 typedef struct kf_pci_bus_s {
0039     confidence_t    kpb_belief; /* confidence level  that the  pci bus is bad */
0040     confidence_t    kpb_pcidev_belief[MAX_PCIDEV];
0041                     /* confidence level that the pci dev is bad */
0042 } kf_pci_bus_t;
0043 
0044 #endif /* __ASM_SN_FRU_H */