ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / drivers / ide / pci / via82cxxx.h
1 #ifndef VIA82CXXX_H
2 #define VIA82CXXX_H
3
4 #include <linux/config.h>
5 #include <linux/pci.h>
6 #include <linux/ide.h>
7
8 #define DISPLAY_VIA_TIMINGS
9
10 static unsigned int init_chipset_via82cxxx(struct pci_dev *, const char *);
11 static void init_hwif_via82cxxx(ide_hwif_t *);
12
13 static ide_pci_device_t via82cxxx_chipsets[] __devinitdata = {
14         {       /* 0 */
15                 .vendor         = PCI_VENDOR_ID_VIA,
16                 .device         = PCI_DEVICE_ID_VIA_82C576_1,
17                 .name           = "VP_IDE",
18                 .init_chipset   = init_chipset_via82cxxx,
19                 .init_hwif      = init_hwif_via82cxxx,
20                 .channels       = 2,
21                 .autodma        = NOAUTODMA,
22                 .enablebits     = {{0x40,0x02,0x02}, {0x40,0x01,0x01}},
23                 .bootable       = ON_BOARD,
24                 .extra          = 0,
25         },{     /* 1 */
26                 .vendor         = PCI_VENDOR_ID_VIA,
27                 .device         = PCI_DEVICE_ID_VIA_82C586_1,
28                 .name           = "VP_IDE",
29                 .init_chipset   = init_chipset_via82cxxx,
30                 .init_hwif      = init_hwif_via82cxxx,
31                 .channels       = 2,
32                 .autodma        = NOAUTODMA,
33                 .enablebits     = {{0x40,0x02,0x02}, {0x40,0x01,0x01}},
34                 .bootable       = ON_BOARD,
35                 .extra          = 0,
36         },{
37                 .vendor         = 0,
38                 .device         = 0,
39                 .channels       = 0,
40                 .bootable       = EOL,
41         }
42 };
43
44 #endif /* VIA82CXXX_H */