This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / ide / pci / piix.h
1 #ifndef PIIX_H
2 #define PIIX_H
3
4 #include <linux/config.h>
5 #include <linux/pci.h>
6 #include <linux/ide.h>
7
8 #define PIIX_DEBUG_DRIVE_INFO           0
9
10 #define DISPLAY_PIIX_TIMINGS
11
12 static void init_setup_piix(struct pci_dev *, ide_pci_device_t *);
13 static unsigned int __devinit init_chipset_piix(struct pci_dev *, const char *);
14 static void init_hwif_piix(ide_hwif_t *);
15
16 #define DECLARE_PIIX_DEV(pci_id, name_str) \
17         {                                               \
18                 .vendor         = PCI_VENDOR_ID_INTEL,  \
19                 .device         = pci_id,               \
20                 .name           = name_str,             \
21                 .init_setup     = init_setup_piix,      \
22                 .init_chipset   = init_chipset_piix,    \
23                 .init_hwif      = init_hwif_piix,       \
24                 .channels       = 2,                    \
25                 .autodma        = AUTODMA,              \
26                 .enablebits     = {{0x41,0x80,0x80}, {0x43,0x80,0x80}}, \
27                 .bootable       = ON_BOARD,             \
28         }
29
30 /*
31  *      Table of the various PIIX capability blocks
32  *
33  */
34  
35 static ide_pci_device_t piix_pci_info[] __devinitdata = {
36         /* 0  */ DECLARE_PIIX_DEV(PCI_DEVICE_ID_INTEL_82371FB_0,  "PIIXa"),
37         /* 1  */ DECLARE_PIIX_DEV(PCI_DEVICE_ID_INTEL_82371FB_1,  "PIIXb"),
38
39         {       /* 2 */
40                 .vendor         = PCI_VENDOR_ID_INTEL,
41                 .device         = PCI_DEVICE_ID_INTEL_82371MX,
42                 .name           = "MPIIX",
43                 .init_setup     = init_setup_piix,
44                 .init_hwif      = init_hwif_piix,
45                 .channels       = 2,
46                 .autodma        = NODMA,
47                 .enablebits     = {{0x6D,0x80,0x80}, {0x6F,0x80,0x80}},
48                 .bootable       = ON_BOARD,
49         },
50
51         /* 3  */ DECLARE_PIIX_DEV(PCI_DEVICE_ID_INTEL_82371SB_1,  "PIIX3"),
52         /* 4  */ DECLARE_PIIX_DEV(PCI_DEVICE_ID_INTEL_82371AB,    "PIIX4"),
53         /* 5  */ DECLARE_PIIX_DEV(PCI_DEVICE_ID_INTEL_82801AB_1,  "ICH0"),
54         /* 6  */ DECLARE_PIIX_DEV(PCI_DEVICE_ID_INTEL_82443MX_1,  "PIIX4"),
55         /* 7  */ DECLARE_PIIX_DEV(PCI_DEVICE_ID_INTEL_82801AA_1,  "ICH"),
56         /* 8  */ DECLARE_PIIX_DEV(PCI_DEVICE_ID_INTEL_82372FB_1,  "PIIX4"),
57         /* 9  */ DECLARE_PIIX_DEV(PCI_DEVICE_ID_INTEL_82451NX,    "PIIX4"),
58         /* 10 */ DECLARE_PIIX_DEV(PCI_DEVICE_ID_INTEL_82801BA_9,  "ICH2"),
59         /* 11 */ DECLARE_PIIX_DEV(PCI_DEVICE_ID_INTEL_82801BA_8,  "ICH2M"),
60         /* 12 */ DECLARE_PIIX_DEV(PCI_DEVICE_ID_INTEL_82801CA_10, "ICH3M"),
61         /* 13 */ DECLARE_PIIX_DEV(PCI_DEVICE_ID_INTEL_82801CA_11, "ICH3"),
62         /* 14 */ DECLARE_PIIX_DEV(PCI_DEVICE_ID_INTEL_82801DB_11, "ICH4"),
63         /* 15 */ DECLARE_PIIX_DEV(PCI_DEVICE_ID_INTEL_82801EB_11, "ICH5"),
64         /* 16 */ DECLARE_PIIX_DEV(PCI_DEVICE_ID_INTEL_82801E_11,  "C-ICH"),
65         /* 17 */ DECLARE_PIIX_DEV(PCI_DEVICE_ID_INTEL_82801DB_10, "ICH4"),
66         /* 18 */ DECLARE_PIIX_DEV(PCI_DEVICE_ID_INTEL_82801EB_1,  "ICH5-SATA"),
67         /* 19 */ DECLARE_PIIX_DEV(PCI_DEVICE_ID_INTEL_ESB_2,      "ICH5"),
68         /* 20 */ DECLARE_PIIX_DEV(PCI_DEVICE_ID_INTEL_ICH6_19,    "ICH6")
69 };
70
71 #endif /* PIIX_H */