35 #include <linux/module.h>
36 #include <linux/types.h>
37 #include <linux/kernel.h>
39 #include <linux/pci.h>
43 #define DRV_NAME "cs5520"
67 pci_write_config_byte(pdev, 0x62 + controller,
68 (cs5520_pio_clocks[pio].recovery << 4) |
69 (cs5520_pio_clocks[pio].
assert));
75 pci_write_config_byte(pdev, 0x64 + 4*controller + (drive->
dn&1),
76 (cs5520_pio_clocks[pio].
recovery << 4) |
77 (cs5520_pio_clocks[pio].
assert));
79 pci_write_config_byte(pdev, 0x66 + 4*controller + (drive->
dn&1),
80 (cs5520_pio_clocks[pio].
recovery << 4) |
81 (cs5520_pio_clocks[pio].
assert));
89 cs5520_set_pio_mode(hwif, drive);
93 .set_pio_mode = cs5520_set_pio_mode,
94 .set_dma_mode = cs5520_set_dma_mode,
99 .enablebits = { { 0x60, 0x01, 0x01 }, { 0x60, 0x02, 0x02 } },
100 .port_ops = &cs5520_port_ops,
151 static struct pci_driver cs5520_pci_driver = {
153 .id_table = cs5520_pci_tbl,
154 .probe = cs5520_init_one,
159 static int __init cs5520_ide_init(
void)