Merge with Linux 2.5.48.
[linux-2.6/linux-mips.git] / drivers / ide / pci / cs5530.h
blob2a40c409ebb076d135673f1517ad7c4169ab27c5
1 #ifndef CS5530_H
2 #define CS5530_H
4 #include <linux/config.h>
5 #include <linux/pci.h>
6 #include <linux/ide.h>
8 #define DISPLAY_CS5530_TIMINGS
10 #if defined(DISPLAY_CS5530_TIMINGS) && defined(CONFIG_PROC_FS)
11 #include <linux/stat.h>
12 #include <linux/proc_fs.h>
14 static u8 cs5530_proc;
16 static int cs5530_get_info(char *, char **, off_t, int);
18 static ide_pci_host_proc_t cs5530_procs[] __initdata = {
20 .name = "cs5530",
21 .set = 1,
22 .get_info = cs5530_get_info,
23 .parent = NULL,
26 #endif /* DISPLAY_CS5530_TIMINGS && CONFIG_PROC_FS */
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);
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,
54 #endif /* CS5530_H */