09a3ff9442edf82f97ebfa2c6c0b4af30536a632
[linux-flexiantxendom0-3.2.10.git] / drivers / ide / pci / sc1200.h
1 #ifndef SC1200_H
2 #define SC1200_H
3
4 #include <linux/config.h>
5 #include <linux/pci.h>
6 #include <linux/ide.h>
7
8 #define DISPLAY_SC1200_TIMINGS
9
10 #if defined(DISPLAY_SC1200_TIMINGS) && defined(CONFIG_PROC_FS)
11 #include <linux/stat.h>
12 #include <linux/proc_fs.h>
13
14 static u8 sc1200_proc;
15
16 static int sc1200_get_info(char *, char **, off_t, int);
17
18 static ide_pci_host_proc_t sc1200_procs[] = {
19         {
20                 .name           = "sc1200",
21                 .set            = 1,
22                 .get_info       = sc1200_get_info,
23                 .parent         = NULL,
24         },
25 };
26 #endif /* DISPLAY_SC1200_TIMINGS && CONFIG_PROC_FS */
27
28 static unsigned int init_chipset_sc1200(struct pci_dev *, const char *);
29 static void init_hwif_sc1200(ide_hwif_t *);
30
31 static ide_pci_device_t sc1200_chipsets[] __devinitdata = {
32         {       /* 0 */
33                 .vendor         = PCI_VENDOR_ID_NS,
34                 .device         = PCI_DEVICE_ID_NS_SCx200_IDE,
35                 .name           = "SC1200",
36                 .init_chipset   = init_chipset_sc1200,
37                 .init_iops      = NULL,
38                 .init_hwif      = init_hwif_sc1200,
39                 .channels       = 2,
40                 .autodma        = AUTODMA,
41                 .enablebits     = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
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 /* SC1200_H */