19 #include <linux/kernel.h>
20 #include <linux/module.h>
21 #include <linux/pci.h>
28 #define DRV_NAME "ata_generic"
29 #define DRV_VERSION "0.2.15"
61 }
else if (ap->ioaddr.bmdma_addr) {
72 if (dma_enabled & (1 << (5 + dev->
devno))) {
104 .inherits = &ata_bmdma_port_ops,
106 .set_mode = generic_set_mode,
109 static int all_generic_ide;
133 pci_read_config_dword(dev, 0xF8, &r);
139 pci_read_config_word(dev, 0x40, &t);
145 pci_write_config_word(dev, 0x40, 1);
146 pci_read_config_word(dev, 0x40, &t);
148 pci_write_config_word(dev, 0x40, 0);
172 .port_ops = &generic_port_ops
181 if (!is_intel_ider(dev))
202 ata_pci_bmdma_clear_simplex(dev);
210 return ata_pci_bmdma_init_one(dev, ppi, &generic_sht, (
void *)
id, 0);
231 #if !defined(CONFIG_PATA_TOSHIBA) && !defined(CONFIG_PATA_TOSHIBA_MODULE)
247 static struct pci_driver ata_generic_pci_driver = {
249 .id_table = ata_generic,
250 .probe = ata_generic_init_one,
251 .remove = ata_pci_remove_one,
253 .suspend = ata_pci_device_suspend,
254 .resume = ata_pci_device_resume,