update atp870u driver to 0.78 from D-Link source
[linux-2.4.git] / drivers / ide / pci / sis5513.h
1 #ifndef SIS5513_H
2 #define SIS5513_H
3
4 #include <linux/config.h>
5 #include <linux/pci.h>
6 #include <linux/ide.h>
7
8 #define DISPLAY_SIS_TIMINGS
9
10 #if defined(DISPLAY_SIS_TIMINGS) && defined(CONFIG_PROC_FS)
11 #include <linux/stat.h>
12 #include <linux/proc_fs.h>
13
14 static u8 sis_proc;
15
16 static int sis_get_info(char *, char **, off_t, int);
17
18 static ide_pci_host_proc_t sis_procs[] __initdata = {
19 {
20                 .name           = "sis",
21                 .set            = 1,
22                 .get_info       = sis_get_info,
23                 .parent         = NULL,
24         },
25 };
26 #endif /* defined(DISPLAY_SIS_TIMINGS) && defined(CONFIG_PROC_FS) */
27
28 static unsigned int init_chipset_sis5513(struct pci_dev *, const char *);
29 static void init_hwif_sis5513(ide_hwif_t *);
30 static void init_dma_sis5513(ide_hwif_t *, unsigned long);
31
32 static ide_pci_device_t sis5513_chipsets[] __devinitdata = {
33         {       /* 0 */
34                 .vendor         = PCI_VENDOR_ID_SI,
35                 .device         = PCI_DEVICE_ID_SI_5513,
36                 .name           = "SIS5513",
37                 .init_chipset   = init_chipset_sis5513,
38                 .init_iops      = NULL,
39                 .init_hwif      = init_hwif_sis5513,
40                 .init_dma       = init_dma_sis5513,
41                 .channels       = 2,
42                 .autodma        = NOAUTODMA,
43                 .enablebits     = {{0x4a,0x02,0x02}, {0x4a,0x04,0x04}},
44                 .bootable       = ON_BOARD,
45                 .extra          = 0
46         },{
47                 .vendor         = 0,
48                 .device         = 0,
49                 .channels       = 0,
50                 .bootable       = EOL,
51         }
52 };
53
54 #endif /* SIS5513_H */