14 #include <linux/types.h>
16 #include <linux/kernel.h>
19 #include <linux/module.h>
31 unsigned long port = (
unsigned long)base;
53 struct resource *res_base, *res_alt, *res_irq;
57 int ret = 0, mmio = 0;
58 struct ide_hw hw, *hws[] = { &hw };
61 pdata = pdev->
dev.platform_data;
67 if (!res_base || !res_alt) {
70 if (!res_base || !res_alt) {
85 res_base->
start, resource_size(res_base));
87 res_alt->
start, resource_size(res_alt));
89 base = devm_ioport_map(&pdev->
dev,
90 res_base->
start, resource_size(res_base));
91 alt_base = devm_ioport_map(&pdev->
dev,
92 res_alt->
start, resource_size(res_alt));
95 memset(&hw, 0,
sizeof(hw));
96 plat_ide_setup_ports(&hw, base, alt_base, pdata, res_irq->
start);
110 platform_set_drvdata(pdev, host);
129 .name =
"pata_platform",
132 .probe = plat_ide_probe,
136 static int __init platform_ide_init(
void)
141 static void __exit platform_ide_exit(
void)