This commit was manufactured by cvs2svn to create tag
[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 const char *svwks_bad_ata100[] = {
17         "ST320011A",
18         "ST340016A",
19         "ST360021A",
20         "ST380021A",
21         NULL
22 };
23
24 #define DISPLAY_SVWKS_TIMINGS   1
25
26 static void init_setup_svwks(struct pci_dev *, ide_pci_device_t *);
27 static void init_setup_csb6(struct pci_dev *, ide_pci_device_t *);
28 static unsigned int init_chipset_svwks(struct pci_dev *, const char *);
29 static void init_hwif_svwks(ide_hwif_t *);
30 static void init_dma_svwks(ide_hwif_t *, unsigned long);
31
32 static ide_pci_device_t serverworks_chipsets[] __devinitdata = {
33         {       /* 0 */
34                 .vendor         = PCI_VENDOR_ID_SERVERWORKS,
35                 .device         = PCI_DEVICE_ID_SERVERWORKS_OSB4IDE,
36                 .name           = "SvrWks OSB4",
37                 .init_setup     = init_setup_svwks,
38                 .init_chipset   = init_chipset_svwks,
39                 .init_hwif      = init_hwif_svwks,
40                 .channels       = 2,
41                 .autodma        = AUTODMA,
42                 .bootable       = ON_BOARD,
43         },{     /* 1 */
44                 .vendor         = PCI_VENDOR_ID_SERVERWORKS,
45                 .device         = PCI_DEVICE_ID_SERVERWORKS_CSB5IDE,
46                 .name           = "SvrWks CSB5",
47                 .init_setup     = init_setup_svwks,
48                 .init_chipset   = init_chipset_svwks,
49                 .init_hwif      = init_hwif_svwks,
50                 .init_dma       = init_dma_svwks,
51                 .channels       = 2,
52                 .autodma        = AUTODMA,
53                 .bootable       = ON_BOARD,
54         },{     /* 2 */
55                 .vendor         = PCI_VENDOR_ID_SERVERWORKS,
56                 .device         = PCI_DEVICE_ID_SERVERWORKS_CSB6IDE,
57                 .name           = "SvrWks CSB6",
58                 .init_setup     = init_setup_csb6,
59                 .init_chipset   = init_chipset_svwks,
60                 .init_hwif      = init_hwif_svwks,
61                 .init_dma       = init_dma_svwks,
62                 .channels       = 2,
63                 .autodma        = AUTODMA,
64                 .bootable       = ON_BOARD,
65         },{     /* 3 */
66                 .vendor         = PCI_VENDOR_ID_SERVERWORKS,
67                 .device         = PCI_DEVICE_ID_SERVERWORKS_CSB6IDE2,
68                 .name           = "SvrWks CSB6",
69                 .init_setup     = init_setup_csb6,
70                 .init_chipset   = init_chipset_svwks,
71                 .init_hwif      = init_hwif_svwks,
72                 .init_dma       = init_dma_svwks,
73                 .channels       = 1,    /* 2 */
74                 .autodma        = AUTODMA,
75                 .bootable       = ON_BOARD,
76         }
77 };
78
79 #endif /* SERVERWORKS_H */