ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / drivers / ide / pci / amd74xx.h
1 #ifndef AMD74XX_H
2 #define AMD74XX_H
3
4 #include <linux/config.h>
5 #include <linux/pci.h>
6 #include <linux/ide.h>
7
8 #define DISPLAY_AMD_TIMINGS
9
10 static unsigned int init_chipset_amd74xx(struct pci_dev *, const char *);
11 static void init_hwif_amd74xx(ide_hwif_t *);
12
13 static ide_pci_device_t amd74xx_chipsets[] __devinitdata = {
14         {       /* 0 */
15                 .vendor         = PCI_VENDOR_ID_AMD,
16                 .device         = PCI_DEVICE_ID_AMD_COBRA_7401,
17                 .name           = "AMD7401",
18                 .init_chipset   = init_chipset_amd74xx,
19                 .init_hwif      = init_hwif_amd74xx,
20                 .channels       = 2,
21                 .autodma        = AUTODMA,
22                 .enablebits     = {{0x40,0x02,0x02}, {0x40,0x01,0x01}},
23                 .bootable       = ON_BOARD,
24                 .extra          = 0
25         },{     /* 1 */
26                 .vendor         = PCI_VENDOR_ID_AMD,
27                 .device         = PCI_DEVICE_ID_AMD_VIPER_7409,
28                 .name           = "AMD7409",
29                 .init_chipset   = init_chipset_amd74xx,
30                 .init_hwif      = init_hwif_amd74xx,
31                 .channels       = 2,
32                 .autodma        = AUTODMA,
33                 .enablebits     = {{0x40,0x02,0x02}, {0x40,0x01,0x01}},
34                 .bootable       = ON_BOARD,
35                 .extra          = 0
36         },{     /* 2 */
37                 .vendor         = PCI_VENDOR_ID_AMD,
38                 .device         = PCI_DEVICE_ID_AMD_VIPER_7411,
39                 .name           = "AMD7411",
40                 .init_chipset   = init_chipset_amd74xx,
41                 .init_hwif      = init_hwif_amd74xx,
42                 .channels       = 2,
43                 .autodma        = AUTODMA,
44                 .enablebits     = {{0x40,0x02,0x02}, {0x40,0x01,0x01}},
45                 .bootable       = ON_BOARD,
46                 .extra          = 0
47         },{     /* 3 */
48                 .vendor         = PCI_VENDOR_ID_AMD,
49                 .device         = PCI_DEVICE_ID_AMD_OPUS_7441,
50                 .name           = "AMD7441",
51                 .init_chipset   = init_chipset_amd74xx,
52                 .init_hwif      = init_hwif_amd74xx,
53                 .channels       = 2,
54                 .autodma        = AUTODMA,
55                 .enablebits     = {{0x40,0x02,0x02}, {0x40,0x01,0x01}},
56                 .bootable       = ON_BOARD,
57                 .extra          = 0
58         },{     /* 4 */
59                 .vendor         = PCI_VENDOR_ID_AMD,
60                 .device         = PCI_DEVICE_ID_AMD_8111_IDE,
61                 .name           = "AMD8111",
62                 .init_chipset   = init_chipset_amd74xx,
63                 .init_hwif      = init_hwif_amd74xx,
64                 .autodma        = AUTODMA,
65                 .channels       = 2,
66                 .enablebits     = {{0x40,0x02,0x02}, {0x40,0x01,0x01}},
67                 .bootable       = ON_BOARD,
68                 .extra          = 0
69         },
70         {       /* 5 */
71                 .vendor         = PCI_VENDOR_ID_NVIDIA,
72                 .device         = PCI_DEVICE_ID_NVIDIA_NFORCE_IDE,
73                 .name           = "NFORCE",
74                 .init_chipset   = init_chipset_amd74xx,
75                 .init_hwif      = init_hwif_amd74xx,
76                 .channels       = 2,
77                 .autodma        = AUTODMA,
78                 .enablebits     = {{0x50,0x02,0x02}, {0x50,0x01,0x01}},
79                 .bootable       = ON_BOARD,
80                 .extra          = 0,
81         },
82         {       /* 6 */
83                 .vendor         = PCI_VENDOR_ID_NVIDIA,
84                 .device         = PCI_DEVICE_ID_NVIDIA_NFORCE2_IDE,
85                 .name           = "NFORCE2",
86                 .init_chipset   = init_chipset_amd74xx,
87                 .init_hwif      = init_hwif_amd74xx,
88                 .channels       = 2,
89                 .autodma        = AUTODMA,
90                 .enablebits     = {{0x50,0x02,0x02}, {0x50,0x01,0x01}},
91                 .bootable       = ON_BOARD,
92                 .extra          = 0,
93         },
94         {       /* 7 */
95                 .vendor         = PCI_VENDOR_ID_NVIDIA,
96                 .device         = PCI_DEVICE_ID_NVIDIA_NFORCE2S_IDE,
97                 .name           = "NFORCE2S",
98                 .init_chipset   = init_chipset_amd74xx,
99                 .init_hwif      = init_hwif_amd74xx,
100                 .channels       = 2,
101                 .autodma        = AUTODMA,
102                 .enablebits     = {{0x50,0x02,0x02}, {0x50,0x01,0x01}},
103                 .bootable       = ON_BOARD,
104         },
105         {       /* 8 */
106                 .vendor         = PCI_VENDOR_ID_NVIDIA,
107                 .device         = PCI_DEVICE_ID_NVIDIA_NFORCE2S_SATA,
108                 .name           = "NFORCE2S-SATA",
109                 .init_chipset   = init_chipset_amd74xx,
110                 .init_hwif      = init_hwif_amd74xx,
111                 .channels       = 2,
112                 .autodma        = AUTODMA,
113                 .enablebits     = {{0x50,0x02,0x02}, {0x50,0x01,0x01}},
114                 .bootable       = ON_BOARD,
115         },
116         {       /* 9 */
117                 .vendor         = PCI_VENDOR_ID_NVIDIA,
118                 .device         = PCI_DEVICE_ID_NVIDIA_NFORCE3_IDE,
119                 .name           = "NFORCE3",
120                 .init_chipset   = init_chipset_amd74xx,
121                 .init_hwif      = init_hwif_amd74xx,
122                 .channels       = 2,
123                 .autodma        = AUTODMA,
124                 .enablebits     = {{0x50,0x02,0x02}, {0x50,0x01,0x01}},
125                 .bootable       = ON_BOARD,
126         },
127         {       /* 10 */
128                 .vendor         = PCI_VENDOR_ID_NVIDIA,
129                 .device         = PCI_DEVICE_ID_NVIDIA_NFORCE3S_IDE,
130                 .name           = "NFORCE3S",
131                 .init_chipset   = init_chipset_amd74xx,
132                 .init_hwif      = init_hwif_amd74xx,
133                 .channels       = 2,
134                 .autodma        = AUTODMA,
135                 .enablebits     = {{0x50,0x02,0x02}, {0x50,0x01,0x01}},
136                 .bootable       = ON_BOARD,
137         },
138         {       /* 11 */
139                 .vendor         = PCI_VENDOR_ID_NVIDIA,
140                 .device         = PCI_DEVICE_ID_NVIDIA_NFORCE3S_SATA,
141                 .name           = "NFORCE3S-SATA",
142                 .init_chipset   = init_chipset_amd74xx,
143                 .init_hwif      = init_hwif_amd74xx,
144                 .channels       = 2,
145                 .autodma        = AUTODMA,
146                 .enablebits     = {{0x50,0x02,0x02}, {0x50,0x01,0x01}},
147                 .bootable       = ON_BOARD,
148         },
149         {       /* 12 */
150                 .vendor         = PCI_VENDOR_ID_NVIDIA,
151                 .device         = PCI_DEVICE_ID_NVIDIA_NFORCE3S_SATA2,
152                 .name           = "NFORCE3S-SATA2",
153                 .init_chipset   = init_chipset_amd74xx,
154                 .init_hwif      = init_hwif_amd74xx,
155                 .channels       = 2,
156                 .autodma        = AUTODMA,
157                 .enablebits     = {{0x50,0x02,0x02}, {0x50,0x01,0x01}},
158                 .bootable       = ON_BOARD,
159         },
160         {
161                 .vendor         = 0,
162                 .device         = 0,
163                 .channels       = 0,
164                 .bootable       = EOL,
165         }
166 };
167
168 #endif /* AMD74XX_H */