10 #include <linux/kernel.h>
16 static struct resource shared_res[] = {
25 .name =
"bcm63xx_enet_shared",
28 .resource = shared_res,
31 static int shared_device_registered;
33 static struct resource enet0_res[] = {
56 .name =
"bcm63xx_enet",
59 .resource = enet0_res,
61 .platform_data = &enet0_pd,
65 static struct resource enet1_res[] = {
88 .name =
"bcm63xx_enet",
91 .resource = enet1_res,
93 .platform_data = &enet1_pd,
110 if (!shared_device_registered) {
112 shared_res[0].
end = shared_res[0].
start;
121 shared_device_registered = 1;
126 enet0_res[0].
end = enet0_res[0].
start;
131 pdev = &bcm63xx_enet0_device;
134 enet1_res[0].
end = enet1_res[0].
start;
139 pdev = &bcm63xx_enet1_device;
143 dpd = pdev->
dev.platform_data;
144 memcpy(dpd, pd,
sizeof(*pd));