13 #include <linux/kernel.h>
20 #include <asm/pci-bridge.h>
26 { .compatible =
"simple-bus", },
30 static int __init declare_of_platform_devices(
void)
32 of_platform_bus_probe(
NULL, of_bus_ids,
NULL);
47 if (bus_range ==
NULL || len < 2 *
sizeof(
int))
55 hose->
last_busno = bus_range ? bus_range[1] : 0xff;
65 static void __init linkstation_setup_arch(
void)
70 for_each_compatible_node(np,
"pci",
"mpc10x-pci")
71 linkstation_add_bridge(np);
81 static
void __init linkstation_init_IRQ(
void)
103 static void linkstation_restart(
char *
cmd)
116 static void linkstation_power_off(
void)
130 static void linkstation_halt(
void)
132 linkstation_power_off();
136 static void linkstation_show_cpuinfo(
struct seq_file *
m)
138 seq_printf(m,
"vendor\t\t: Buffalo Technology\n");
139 seq_printf(m,
"machine\t\t: Linkstation I/Kurobox(HG)\n");
142 static int __init linkstation_probe(
void)
146 root = of_get_flat_dt_root();
148 if (!of_flat_dt_is_compatible(root,
"linkstation"))
154 .name =
"Buffalo Linkstation",
155 .probe = linkstation_probe,
156 .setup_arch = linkstation_setup_arch,
157 .init_IRQ = linkstation_init_IRQ,
158 .show_cpuinfo = linkstation_show_cpuinfo,
160 .restart = linkstation_restart,
161 .power_off = linkstation_power_off,
162 .halt = linkstation_halt,