1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * This file is subject to the terms and conditions of the GNU General Public 3*4882a593Smuzhiyun * License. See the file "COPYING" in the main directory of this archive 4*4882a593Smuzhiyun * for more details. 5*4882a593Smuzhiyun * 6*4882a593Smuzhiyun * Derived from IRIX <sys/SN/SN0/sn0_fru.h> 7*4882a593Smuzhiyun * 8*4882a593Smuzhiyun * Copyright (C) 1992 - 1997, 1999 Silcon Graphics, Inc. 9*4882a593Smuzhiyun * Copyright (C) 1999, 2006 Ralf Baechle (ralf@linux-mips) 10*4882a593Smuzhiyun */ 11*4882a593Smuzhiyun #ifndef __ASM_SN_FRU_H 12*4882a593Smuzhiyun #define __ASM_SN_FRU_H 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun #define MAX_DIMMS 8 /* max # of dimm banks */ 15*4882a593Smuzhiyun #define MAX_PCIDEV 8 /* max # of pci devices on a pci bus */ 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun typedef unsigned char confidence_t; 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun typedef struct kf_mem_s { 20*4882a593Smuzhiyun confidence_t km_confidence; /* confidence level that the memory is bad 21*4882a593Smuzhiyun * is this necessary ? 22*4882a593Smuzhiyun */ 23*4882a593Smuzhiyun confidence_t km_dimm[MAX_DIMMS]; 24*4882a593Smuzhiyun /* confidence level that dimm[i] is bad 25*4882a593Smuzhiyun *I think this is the right number 26*4882a593Smuzhiyun */ 27*4882a593Smuzhiyun 28*4882a593Smuzhiyun } kf_mem_t; 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun typedef struct kf_cpu_s { 31*4882a593Smuzhiyun confidence_t kc_confidence; /* confidence level that cpu is bad */ 32*4882a593Smuzhiyun confidence_t kc_icache; /* confidence level that instr. cache is bad */ 33*4882a593Smuzhiyun confidence_t kc_dcache; /* confidence level that data cache is bad */ 34*4882a593Smuzhiyun confidence_t kc_scache; /* confidence level that sec. cache is bad */ 35*4882a593Smuzhiyun confidence_t kc_sysbus; /* confidence level that sysad/cmd/state bus is bad */ 36*4882a593Smuzhiyun } kf_cpu_t; 37*4882a593Smuzhiyun 38*4882a593Smuzhiyun typedef struct kf_pci_bus_s { 39*4882a593Smuzhiyun confidence_t kpb_belief; /* confidence level that the pci bus is bad */ 40*4882a593Smuzhiyun confidence_t kpb_pcidev_belief[MAX_PCIDEV]; 41*4882a593Smuzhiyun /* confidence level that the pci dev is bad */ 42*4882a593Smuzhiyun } kf_pci_bus_t; 43*4882a593Smuzhiyun 44*4882a593Smuzhiyun #endif /* __ASM_SN_FRU_H */ 45