14 #include <linux/kernel.h>
15 #include <linux/module.h>
16 #include <linux/pci.h>
23 #define DRV_NAME "pata_rz1000"
24 #define DRV_VERSION "0.2.4"
60 .set_mode = rz1000_set_mode,
63 static int rz1000_fifo_disable(
struct pci_dev *pdev)
67 if (pci_read_config_word(pdev, 0x40, ®) != 0)
70 if (pci_write_config_word(pdev, 0x40, reg) != 0)
91 .port_ops = &rz1000_port_ops
97 if (rz1000_fifo_disable(pdev) == 0)
98 return ata_pci_sff_init_one(pdev, ppi, &rz1000_sht,
NULL, 0);
106 static int rz1000_reinit_one(
struct pci_dev *pdev)
111 rc = ata_pci_device_do_resume(pdev);
117 if (rz1000_fifo_disable(pdev))
118 panic(
"rz1000 fifo");
120 ata_host_resume(host);
132 static struct pci_driver rz1000_pci_driver = {
134 .id_table = pata_rz1000,
135 .probe = rz1000_init_one,
136 .remove = ata_pci_remove_one,
138 .suspend = ata_pci_device_suspend,
139 .resume = rz1000_reinit_one,