12 #include <linux/kernel.h>
13 #include <linux/module.h>
25 unsigned int reg_shift = 0;
32 dev_err(&ofdev->
dev,
"can't get IO address from "
42 ctl_res.start = ctl_res.start+0x3f6;
43 io_res.end = ctl_res.start-1;
47 dev_err(&ofdev->
dev,
"can't get CTL address from "
69 dev_info(&ofdev->
dev,
"pio-mode unspecified, assuming PIO0\n");
72 pio_mask = 1 << pio_mode;
73 pio_mask |= (1 << pio_mode) - 1;
85 { .compatible =
"ata-generic", },
86 { .compatible =
"electra-ide", },
93 .name =
"pata_of_platform",
95 .of_match_table = pata_of_platform_match,
97 .probe = pata_of_platform_probe,