20 #include <linux/types.h>
21 #include <linux/module.h>
24 #include <linux/pci.h>
39 0x00, 0x05, 0xbe, 0x01, 0x20, 0x8f, 0x00, 0x00,
40 0xa4, 0x1f, 0xb3, 0x1b, 0x00, 0x00, 0x00, 0x80,
41 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
42 0x00, 0x00, 0x00, 0x00, 0xa4, 0x83, 0x02, 0x13,
49 static int delkin_cb_init_chipset(
struct pci_dev *
dev)
54 outb(0x02, base + 0x1e);
57 for (i = 0; i <
sizeof(
setup); ++
i) {
66 .port_ops = &delkin_cb_port_ops,
70 .init_chipset = delkin_cb_init_chipset,
89 printk(
KERN_ERR "delkin_cb: pci_request_regions failed (%d)\n", rc);
95 delkin_cb_init_chipset(dev);
98 ide_std_init_ports(&
hw, base + 0x10, base + 0x1e);
106 pci_set_drvdata(dev, host);
117 delkin_cb_remove (
struct pci_dev *dev)
119 struct ide_host *host = pci_get_drvdata(dev);
139 struct ide_host *host = pci_get_drvdata(dev);
157 #define delkin_cb_suspend NULL
158 #define delkin_cb_resume NULL
168 static struct pci_driver delkin_cb_pci_driver = {
169 .name =
"Delkin-ASKA-Workbit Cardbus IDE",
170 .id_table = delkin_cb_pci_tbl,
171 .probe = delkin_cb_probe,
172 .remove = delkin_cb_remove,
177 static int __init delkin_cb_init(
void)
179 return pci_register_driver(&delkin_cb_pci_driver);
182 static void __exit delkin_cb_exit(
void)