ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / drivers / ide / pci / siimage.h
1 #ifndef SIIMAGE_H
2 #define SIIMAGE_H
3
4 #include <linux/config.h>
5 #include <linux/pci.h>
6 #include <linux/ide.h>
7
8 #include <asm/io.h>
9
10 #define DISPLAY_SIIMAGE_TIMINGS
11
12 #undef SIIMAGE_VIRTUAL_DMAPIO
13 #undef SIIMAGE_BUFFERED_TASKFILE
14 #undef SIIMAGE_LARGE_DMA
15
16 #define SII_DEBUG 0
17
18 #if SII_DEBUG
19 #define siiprintk(x...) printk(x)
20 #else
21 #define siiprintk(x...)
22 #endif
23
24 static unsigned int init_chipset_siimage(struct pci_dev *, const char *);
25 static void init_iops_siimage(ide_hwif_t *);
26 static void init_hwif_siimage(ide_hwif_t *);
27
28 static ide_pci_device_t siimage_chipsets[] __devinitdata = {
29         {       /* 0 */
30                 .vendor         = PCI_VENDOR_ID_CMD,
31                 .device         = PCI_DEVICE_ID_SII_680,
32                 .name           = "SiI680",
33                 .init_chipset   = init_chipset_siimage,
34                 .init_iops      = init_iops_siimage,
35                 .init_hwif      = init_hwif_siimage,
36                 .channels       = 2,
37                 .autodma        = AUTODMA,
38                 .enablebits     = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
39                 .bootable       = ON_BOARD,
40                 .extra          = 0,
41         },{     /* 1 */
42                 .vendor         = PCI_VENDOR_ID_CMD,
43                 .device         = PCI_DEVICE_ID_SII_3112,
44                 .name           = "SiI3112 Serial ATA",
45                 .init_chipset   = init_chipset_siimage,
46                 .init_iops      = init_iops_siimage,
47                 .init_hwif      = init_hwif_siimage,
48                 .channels       = 2,
49                 .autodma        = AUTODMA,
50                 .enablebits     = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
51                 .bootable       = ON_BOARD,
52                 .extra          = 0,
53         },{     /* 2 */
54                 .vendor         = PCI_VENDOR_ID_CMD,
55                 .device         = PCI_DEVICE_ID_SII_1210SA,
56                 .name           = "Adaptec AAR-1210SA",
57                 .init_chipset   = init_chipset_siimage,
58                 .init_iops      = init_iops_siimage,
59                 .init_hwif      = init_hwif_siimage,
60                 .channels       = 2,
61                 .autodma        = AUTODMA,
62                 .enablebits     = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
63                 .bootable       = ON_BOARD,
64                 .extra          = 0,
65         },{
66                 .vendor         = 0,
67                 .device         = 0,
68                 .channels       = 0,
69                 .bootable       = EOL,
70         }
71 };
72
73 #endif /* SIIMAGE_H */