2.6.12 planetlab config file
[linux-2.6.git] / drivers / ide / pci / serverworks.h
1
2 #ifndef SERVERWORKS_H
3 #define SERVERWORKS_H
4
5 #include <linux/config.h>
6 #include <linux/pci.h>
7 #include <linux/ide.h>
8
9 #undef SVWKS_DEBUG_DRIVE_INFO
10
11 #define SVWKS_CSB5_REVISION_NEW 0x92 /* min PCI_REVISION_ID for UDMA5 (A2.0) */
12 #define SVWKS_CSB6_REVISION     0xa0 /* min PCI_REVISION_ID for UDMA4 (A1.0) */
13
14 /* Seagate Barracuda ATA IV Family drives in UDMA mode 5
15  * can overrun their FIFOs when used with the CSB5 */
16 static const char *svwks_bad_ata100[] = {
17         "ST320011A",
18         "ST340016A",
19         "ST360021A",
20         "ST380021A",
21         NULL
22 };
23
24 static void init_setup_svwks(struct pci_dev *, ide_pci_device_t *);
25 static void init_setup_csb6(struct pci_dev *, ide_pci_device_t *);
26 static unsigned int init_chipset_svwks(struct pci_dev *, const char *);
27 static void init_hwif_svwks(ide_hwif_t *);
28 static void init_dma_svwks(ide_hwif_t *, unsigned long);
29
30 static ide_pci_device_t serverworks_chipsets[] __devinitdata = {
31         {       /* 0 */
32                 .name           = "SvrWks OSB4",
33                 .init_setup     = init_setup_svwks,
34                 .init_chipset   = init_chipset_svwks,
35                 .init_hwif      = init_hwif_svwks,
36                 .channels       = 2,
37                 .autodma        = AUTODMA,
38                 .bootable       = ON_BOARD,
39         },{     /* 1 */
40                 .name           = "SvrWks CSB5",
41                 .init_setup     = init_setup_svwks,
42                 .init_chipset   = init_chipset_svwks,
43                 .init_hwif      = init_hwif_svwks,
44                 .init_dma       = init_dma_svwks,
45                 .channels       = 2,
46                 .autodma        = AUTODMA,
47                 .bootable       = ON_BOARD,
48         },{     /* 2 */
49                 .name           = "SvrWks CSB6",
50                 .init_setup     = init_setup_csb6,
51                 .init_chipset   = init_chipset_svwks,
52                 .init_hwif      = init_hwif_svwks,
53                 .init_dma       = init_dma_svwks,
54                 .channels       = 2,
55                 .autodma        = AUTODMA,
56                 .bootable       = ON_BOARD,
57         },{     /* 3 */
58                 .name           = "SvrWks CSB6",
59                 .init_setup     = init_setup_csb6,
60                 .init_chipset   = init_chipset_svwks,
61                 .init_hwif      = init_hwif_svwks,
62                 .init_dma       = init_dma_svwks,
63                 .channels       = 1,    /* 2 */
64                 .autodma        = AUTODMA,
65                 .bootable       = ON_BOARD,
66         }
67 };
68
69 #endif /* SERVERWORKS_H */