patch-2_6_7-vs1_9_1_12
[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(name_str) \
17         {                                               \
18                 .name           = name_str,             \
19                 .init_setup     = init_setup_piix,      \
20                 .init_chipset   = init_chipset_piix,    \
21                 .init_hwif      = init_hwif_piix,       \
22                 .channels       = 2,                    \
23                 .autodma        = AUTODMA,              \
24                 .enablebits     = {{0x41,0x80,0x80}, {0x43,0x80,0x80}}, \
25                 .bootable       = ON_BOARD,             \
26         }
27
28 /*
29  *      Table of the various PIIX capability blocks
30  *
31  */
32  
33 static ide_pci_device_t piix_pci_info[] __devinitdata = {
34         /*  0 */ DECLARE_PIIX_DEV("PIIXa"),
35         /*  1 */ DECLARE_PIIX_DEV("PIIXb"),
36
37         {       /* 2 */
38                 .name           = "MPIIX",
39                 .init_setup     = init_setup_piix,
40                 .init_hwif      = init_hwif_piix,
41                 .channels       = 2,
42                 .autodma        = NODMA,
43                 .enablebits     = {{0x6D,0x80,0x80}, {0x6F,0x80,0x80}},
44                 .bootable       = ON_BOARD,
45         },
46
47         /*  3 */ DECLARE_PIIX_DEV("PIIX3"),
48         /*  4 */ DECLARE_PIIX_DEV("PIIX4"),
49         /*  5 */ DECLARE_PIIX_DEV("ICH0"),
50         /*  6 */ DECLARE_PIIX_DEV("PIIX4"),
51         /*  7 */ DECLARE_PIIX_DEV("ICH"),
52         /*  8 */ DECLARE_PIIX_DEV("PIIX4"),
53         /*  9 */ DECLARE_PIIX_DEV("PIIX4"),
54         /* 10 */ DECLARE_PIIX_DEV("ICH2"),
55         /* 11 */ DECLARE_PIIX_DEV("ICH2M"),
56         /* 12 */ DECLARE_PIIX_DEV("ICH3M"),
57         /* 13 */ DECLARE_PIIX_DEV("ICH3"),
58         /* 14 */ DECLARE_PIIX_DEV("ICH4"),
59         /* 15 */ DECLARE_PIIX_DEV("ICH5"),
60         /* 16 */ DECLARE_PIIX_DEV("C-ICH"),
61         /* 17 */ DECLARE_PIIX_DEV("ICH4"),
62         /* 18 */ DECLARE_PIIX_DEV("ICH5-SATA"),
63         /* 19 */ DECLARE_PIIX_DEV("ICH5"),
64         /* 20 */ DECLARE_PIIX_DEV("ICH6")
65 };
66
67 #endif /* PIIX_H */