Merge with Linux 2.5.48.
[linux-2.6/linux-mips.git] / drivers / ide / pci / nvidia.h
blobd0746d089d5dbf8d66d485ee383822514b50e2f2
1 #ifndef NFORCE_H
2 #define NFORCE_H
4 #include <linux/config.h>
5 #include <linux/pci.h>
6 #include <linux/ide.h>
8 #define DISPLAY_NFORCE_TIMINGS
10 #if defined(DISPLAY_NFORCE_TIMINGS) && defined(CONFIG_PROC_FS)
11 #include <linux/stat.h>
12 #include <linux/proc_fs.h>
14 static u8 nforce_proc;
16 static int nforce_get_info(char *, char **, off_t, int);
18 static ide_pci_host_proc_t nforce_procs[] __initdata = {
20 .name = "nforce",
21 .set = 1,
22 .get_info = nforce_get_info,
23 .parent = NULL,
26 #endif /* defined(DISPLAY_NFORCE_TIMINGS) && defined(CONFIG_PROC_FS) */
28 static unsigned int init_chipset_nforce(struct pci_dev *, const char *);
29 static void init_hwif_nforce(ide_hwif_t *);
30 static void init_dma_nforce(ide_hwif_t *, unsigned long);
32 static ide_pci_device_t nvidia_chipsets[] __devinitdata = {
34 .vendor = PCI_VENDOR_ID_NVIDIA,
35 .device = PCI_DEVICE_ID_NVIDIA_NFORCE_IDE,
36 .name = "NFORCE",
37 .init_chipset = init_chipset_nforce,
38 .init_iops = NULL,
39 .init_hwif = init_hwif_nforce,
40 .init_dma = init_dma_nforce,
41 .channels = 2,
42 .autodma = AUTODMA,
43 .enablebits = {{0x50,0x01,0x01}, {0x50,0x02,0x02}},
44 .bootable = ON_BOARD,
45 .extra = 0,
50 #endif /* NFORCE_H */