4 #include <linux/config.h>
8 #define DISPLAY_CMD64X_TIMINGS
13 #define cmdprintk(x...) printk(x)
15 #define cmdprintk(x...)
19 #define SPLIT_BYTE(B,H,L) ((H)=(B>>4), (L)=(B-((B>>4)<<4)))
23 * CMD64x specific registers definition.
26 #define CFR_INTR_CH0 0x02
28 #define CNTRL_DIS_RA0 0x40
29 #define CNTRL_DIS_RA1 0x80
30 #define CNTRL_ENA_2ND 0x08
38 #define ARTTIM23_DIS_RA2 0x04
39 #define ARTTIM23_DIS_RA3 0x08
40 #define ARTTIM23_INTR_CH1 0x10
50 #define MRDMODE_INTR_CH0 0x04
51 #define MRDMODE_INTR_CH1 0x08
52 #define MRDMODE_BLK_CH0 0x10
53 #define MRDMODE_BLK_CH1 0x20
55 #define UDIDETCR0 0x73
60 #define UDIDETCR1 0x7B
63 static unsigned int init_chipset_cmd64x(struct pci_dev *, const char *);
64 static void init_hwif_cmd64x(ide_hwif_t *);
66 static ide_pci_device_t cmd64x_chipsets[] __devinitdata = {
68 .vendor = PCI_VENDOR_ID_CMD,
69 .device = PCI_DEVICE_ID_CMD_643,
71 .init_chipset = init_chipset_cmd64x,
73 .init_hwif = init_hwif_cmd64x,
76 .enablebits = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
80 .vendor = PCI_VENDOR_ID_CMD,
81 .device = PCI_DEVICE_ID_CMD_646,
83 .init_chipset = init_chipset_cmd64x,
85 .init_hwif = init_hwif_cmd64x,
88 .enablebits = {{0x00,0x00,0x00}, {0x51,0x80,0x80}},
92 .vendor = PCI_VENDOR_ID_CMD,
93 .device = PCI_DEVICE_ID_CMD_648,
95 .init_chipset = init_chipset_cmd64x,
97 .init_hwif = init_hwif_cmd64x,
100 .enablebits = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
101 .bootable = ON_BOARD,
104 .vendor = PCI_VENDOR_ID_CMD,
105 .device = PCI_DEVICE_ID_CMD_649,
107 .init_chipset = init_chipset_cmd64x,
109 .init_hwif = init_hwif_cmd64x,
112 .enablebits = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
113 .bootable = ON_BOARD,
123 #endif /* CMD64X_H */