update atp870u driver to 0.78 from D-Link source
[linux-2.4.git] / drivers / ide / pci / cs5530.h
1 #ifndef CS5530_H
2 #define CS5530_H
3
4 #include <linux/config.h>
5 #include <linux/pci.h>
6 #include <linux/ide.h>
7
8 #define DISPLAY_CS5530_TIMINGS
9
10 #if defined(DISPLAY_CS5530_TIMINGS) && defined(CONFIG_PROC_FS)
11 #include <linux/stat.h>
12 #include <linux/proc_fs.h>
13
14 static u8 cs5530_proc;
15
16 static int cs5530_get_info(char *, char **, off_t, int);
17
18 static ide_pci_host_proc_t cs5530_procs[] __initdata = {
19         {
20                 .name           = "cs5530",
21                 .set            = 1,
22                 .get_info       = cs5530_get_info,
23                 .parent         = NULL,
24         },
25 };
26 #endif /* DISPLAY_CS5530_TIMINGS && CONFIG_PROC_FS */
27
28 static unsigned int init_chipset_cs5530(struct pci_dev *, const char *);
29 static void init_hwif_cs5530(ide_hwif_t *);
30 static void init_dma_cs5530(ide_hwif_t *, unsigned long);
31
32 static ide_pci_device_t cs5530_chipsets[] __devinitdata = {
33         {       /* 0 */
34                 .vendor         = PCI_VENDOR_ID_CYRIX,
35                 .device         = PCI_DEVICE_ID_CYRIX_5530_IDE,
36                 .name           = "CS5530",
37                 .init_chipset   = init_chipset_cs5530,
38                 .init_iops      = NULL,
39                 .init_hwif      = init_hwif_cs5530,
40                 .init_dma       = init_dma_cs5530,
41                 .channels       = 2,
42                 .autodma        = AUTODMA,
43                 .enablebits     = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
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 /* CS5530_H */