27 #include <linux/kernel.h>
28 #include <linux/module.h>
29 #include <linux/pci.h>
33 #include <linux/device.h>
38 #define DRV_NAME "pata_sch"
39 #define DRV_VERSION "0.2"
52 static int sch_init_one(
struct pci_dev *pdev,
65 .id_table = sch_pci_tbl,
66 .probe = sch_init_one,
67 .remove = ata_pci_remove_one,
69 .suspend = ata_pci_device_suspend,
70 .resume = ata_pci_device_resume,
79 .inherits = &ata_bmdma_port_ops,
81 .set_piomode = sch_set_piomode,
82 .set_dmamode = sch_set_dmamode,
90 .port_ops = &sch_pata_ops,
117 pci_read_config_dword(dev, port, &data);
125 pci_write_config_dword(dev, port, data);
146 pci_read_config_dword(dev, port, &data);
157 pci_write_config_dword(dev, port, data);
179 return ata_pci_bmdma_init_one(pdev, ppi, &sch_sht,
NULL, 0);