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 #if defined(DISPLAY_CMD64X_TIMINGS) && defined(CONFIG_PROC_FS)
64 #include <linux/stat.h>
65 #include <linux/proc_fs.h>
67 static u8 cmd64x_proc;
69 static char * print_cmd64x_get_info(char *, struct pci_dev *, int);
70 static int cmd64x_get_info(char *, char **, off_t, int);
72 static ide_pci_host_proc_t cmd64x_procs[] __initdata = {
76 .get_info = cmd64x_get_info,
80 #endif /* defined(DISPLAY_CMD64X_TIMINGS) && defined(CONFIG_PROC_FS) */
82 static unsigned int init_chipset_cmd64x(struct pci_dev *, const char *);
83 static void init_hwif_cmd64x(ide_hwif_t *);
84 static void init_dma_cmd64x(ide_hwif_t *, unsigned long);
86 static ide_pci_device_t cmd64x_chipsets[] __devinitdata = {
88 .vendor = PCI_VENDOR_ID_CMD,
89 .device = PCI_DEVICE_ID_CMD_643,
91 .init_chipset = init_chipset_cmd64x,
93 .init_hwif = init_hwif_cmd64x,
94 .init_dma = init_dma_cmd64x,
97 .enablebits = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
101 .vendor = PCI_VENDOR_ID_CMD,
102 .device = PCI_DEVICE_ID_CMD_646,
104 .init_chipset = init_chipset_cmd64x,
106 .init_hwif = init_hwif_cmd64x,
107 .init_dma = init_dma_cmd64x,
110 .enablebits = {{0x00,0x00,0x00}, {0x51,0x80,0x80}},
111 .bootable = ON_BOARD,
114 .vendor = PCI_VENDOR_ID_CMD,
115 .device = PCI_DEVICE_ID_CMD_648,
117 .init_chipset = init_chipset_cmd64x,
119 .init_hwif = init_hwif_cmd64x,
120 .init_dma = init_dma_cmd64x,
123 .enablebits = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
124 .bootable = ON_BOARD,
127 .vendor = PCI_VENDOR_ID_CMD,
128 .device = PCI_DEVICE_ID_CMD_649,
130 .init_chipset = init_chipset_cmd64x,
132 .init_hwif = init_hwif_cmd64x,
133 .init_dma = init_dma_cmd64x,
136 .enablebits = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
137 .bootable = ON_BOARD,
147 #endif /* CMD64X_H */