28 #include <linux/types.h>
29 #include <linux/module.h>
30 #include <linux/kernel.h>
31 #include <linux/pci.h>
35 #define DRV_NAME "triflex"
40 u32 triflex_timings = 0;
44 pci_read_config_dword(dev, channel_offset, &triflex_timings);
78 triflex_timings &= ~(0xFFFF << (16 *
unit));
79 triflex_timings |= (timing << (16 *
unit));
81 pci_write_config_dword(dev, channel_offset, triflex_timings);
87 triflex_set_mode(hwif, drive);
91 .set_pio_mode = triflex_set_pio_mode,
92 .set_dma_mode = triflex_set_mode,
97 .enablebits = {{0x80, 0x01, 0x01}, {0x80, 0x02, 0x02}},
98 .port_ops = &triflex_port_ops,
127 #define triflex_ide_pci_suspend NULL
130 static struct pci_driver triflex_pci_driver = {
131 .name =
"TRIFLEX_IDE",
132 .id_table = triflex_pci_tbl,
133 .probe = triflex_init_one,
139 static int __init triflex_ide_init(
void)
144 static void __exit triflex_ide_exit(
void)