Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
amd8111_edac.h
Go to the documentation of this file.
1 /*
2  * amd8111_edac.h, EDAC defs for AMD8111 hypertransport chip
3  *
4  * Copyright (c) 2008 Wind River Systems, Inc.
5  *
6  * Authors: Cao Qingtao <[email protected]>
7  * Benjamin Walsh <[email protected]>
8  * Hu Yongqi <[email protected]>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License version 2 as
12  * published by the Free Software Foundation.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17  * See the GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22  */
23 
24 #ifndef _AMD8111_EDAC_H_
25 #define _AMD8111_EDAC_H_
26 
27 /************************************************************
28  * PCI Bridge Status and Command Register, DevA:0x04
29  ************************************************************/
30 #define REG_PCI_STSCMD 0x04
39 };
40 
41 /************************************************************
42  * PCI Bridge Memory Base-Limit Register, DevA:0x1c
43  ************************************************************/
44 #define REG_MEM_LIM 0x1c
58 };
59 
60 /************************************************************
61  * HyperTransport Link Control Register, DevA:0xc4
62  ************************************************************/
63 #define REG_HT_LINK 0xc4
68 };
69 
70 /************************************************************
71  * PCI Bridge Interrupt and Bridge Control, DevA:0x3c
72  ************************************************************/
73 #define REG_PCI_INTBRG_CTRL 0x3c
84 };
85 
86 /************************************************************
87  * I/O Control 1 Register, DevB:0x40
88  ************************************************************/
89 #define REG_IO_CTRL_1 0x40
95 };
96 
97 /************************************************************
98  * Legacy I/O Space Registers
99  ************************************************************/
100 #define REG_AT_COMPAT 0x61
106 };
107 
109  u16 err_dev; /* PCI Device ID */
110  struct pci_dev *dev;
111  int edac_idx; /* device index */
112  char *ctl_name;
117 };
118 
120  u16 err_dev; /* PCI Device ID */
121  struct pci_dev *dev;
122  int edac_idx; /* pci index */
123  const char *ctl_name;
124  struct edac_pci_ctl_info *edac_dev;
127  void (*check)(struct edac_pci_ctl_info *edac_dev);
128 };
129 
130 #endif /* _AMD8111_EDAC_H_ */