4 #include <linux/config.h>
8 #define DISPLAY_AEC62XX_TIMINGS
10 struct chipset_bus_clock_list_entry {
12 byte chipset_settings;
16 struct chipset_bus_clock_list_entry aec6xxx_33_base [] = {
17 { XFER_UDMA_6, 0x31, 0x07 },
18 { XFER_UDMA_5, 0x31, 0x06 },
19 { XFER_UDMA_4, 0x31, 0x05 },
20 { XFER_UDMA_3, 0x31, 0x04 },
21 { XFER_UDMA_2, 0x31, 0x03 },
22 { XFER_UDMA_1, 0x31, 0x02 },
23 { XFER_UDMA_0, 0x31, 0x01 },
25 { XFER_MW_DMA_2, 0x31, 0x00 },
26 { XFER_MW_DMA_1, 0x31, 0x00 },
27 { XFER_MW_DMA_0, 0x0a, 0x00 },
28 { XFER_PIO_4, 0x31, 0x00 },
29 { XFER_PIO_3, 0x33, 0x00 },
30 { XFER_PIO_2, 0x08, 0x00 },
31 { XFER_PIO_1, 0x0a, 0x00 },
32 { XFER_PIO_0, 0x00, 0x00 },
36 struct chipset_bus_clock_list_entry aec6xxx_34_base [] = {
37 { XFER_UDMA_6, 0x41, 0x06 },
38 { XFER_UDMA_5, 0x41, 0x05 },
39 { XFER_UDMA_4, 0x41, 0x04 },
40 { XFER_UDMA_3, 0x41, 0x03 },
41 { XFER_UDMA_2, 0x41, 0x02 },
42 { XFER_UDMA_1, 0x41, 0x01 },
43 { XFER_UDMA_0, 0x41, 0x01 },
45 { XFER_MW_DMA_2, 0x41, 0x00 },
46 { XFER_MW_DMA_1, 0x42, 0x00 },
47 { XFER_MW_DMA_0, 0x7a, 0x00 },
48 { XFER_PIO_4, 0x41, 0x00 },
49 { XFER_PIO_3, 0x43, 0x00 },
50 { XFER_PIO_2, 0x78, 0x00 },
51 { XFER_PIO_1, 0x7a, 0x00 },
52 { XFER_PIO_0, 0x70, 0x00 },
58 #define HIGH_4(H) ((H)=(H>>4))
61 #define LOW_4(L) ((L)=(L-((L>>4)<<4)))
64 #define SPLIT_BYTE(B,H,L) ((H)=(B>>4), (L)=(B-((B>>4)<<4)))
67 #define MAKE_WORD(W,HB,LB) ((W)=((HB<<8)+LB))
71 ((struct chipset_bus_clock_list_entry *) pci_get_drvdata((D)))
73 static void init_setup_aec6x80(struct pci_dev *, ide_pci_device_t *);
74 static void init_setup_aec62xx(struct pci_dev *, ide_pci_device_t *);
75 static unsigned int init_chipset_aec62xx(struct pci_dev *, const char *);
76 static void init_hwif_aec62xx(ide_hwif_t *);
77 static void init_dma_aec62xx(ide_hwif_t *, unsigned long);
79 static ide_pci_device_t aec62xx_chipsets[] __devinitdata = {
81 .vendor = PCI_VENDOR_ID_ARTOP,
82 .device = PCI_DEVICE_ID_ARTOP_ATP850UF,
84 .init_setup = init_setup_aec62xx,
85 .init_chipset = init_chipset_aec62xx,
86 .init_hwif = init_hwif_aec62xx,
87 .init_dma = init_dma_aec62xx,
90 .enablebits = {{0x4a,0x02,0x02}, {0x4a,0x04,0x04}},
91 .bootable = OFF_BOARD,
93 .vendor = PCI_VENDOR_ID_ARTOP,
94 .device = PCI_DEVICE_ID_ARTOP_ATP860,
96 .init_setup = init_setup_aec62xx,
97 .init_chipset = init_chipset_aec62xx,
98 .init_hwif = init_hwif_aec62xx,
99 .init_dma = init_dma_aec62xx,
101 .autodma = NOAUTODMA,
102 .bootable = OFF_BOARD,
104 .vendor = PCI_VENDOR_ID_ARTOP,
105 .device = PCI_DEVICE_ID_ARTOP_ATP860R,
107 .init_setup = init_setup_aec62xx,
108 .init_chipset = init_chipset_aec62xx,
109 .init_hwif = init_hwif_aec62xx,
110 .init_dma = init_dma_aec62xx,
113 .enablebits = {{0x4a,0x02,0x02}, {0x4a,0x04,0x04}},
114 .bootable = NEVER_BOARD,
116 .vendor = PCI_VENDOR_ID_ARTOP,
117 .device = PCI_DEVICE_ID_ARTOP_ATP865,
119 .init_setup = init_setup_aec6x80,
120 .init_chipset = init_chipset_aec62xx,
121 .init_hwif = init_hwif_aec62xx,
122 .init_dma = init_dma_aec62xx,
125 .bootable = OFF_BOARD,
127 .vendor = PCI_VENDOR_ID_ARTOP,
128 .device = PCI_DEVICE_ID_ARTOP_ATP865R,
130 .init_setup = init_setup_aec6x80,
131 .init_chipset = init_chipset_aec62xx,
132 .init_hwif = init_hwif_aec62xx,
133 .init_dma = init_dma_aec62xx,
136 .enablebits = {{0x4a,0x02,0x02}, {0x4a,0x04,0x04}},
137 .bootable = OFF_BOARD,
141 #endif /* AEC62XX_H */