890b67a07e8b8ae59a9f4c869aefafeced777334
[linux-flexiantxendom0-3.2.10.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[] = {
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
31 static ide_pci_device_t sis5513_chipsets[] __devinitdata = {
32         {       /* 0 */
33                 .vendor         = PCI_VENDOR_ID_SI,
34                 .device         = PCI_DEVICE_ID_SI_5513,
35                 .name           = "SIS5513",
36                 .init_chipset   = init_chipset_sis5513,
37                 .init_iops      = NULL,
38                 .init_hwif      = init_hwif_sis5513,
39                 .channels       = 2,
40                 .autodma        = NOAUTODMA,
41                 .enablebits     = {{0x4a,0x02,0x02}, {0x4a,0x04,0x04}},
42                 .bootable       = ON_BOARD,
43                 .extra          = 0
44         },{
45                 .vendor         = 0,
46                 .device         = 0,
47                 .channels       = 0,
48                 .bootable       = EOL,
49         }
50 };
51
52 #endif /* SIS5513_H */