2 #include <linux/if_ether.h>
3 #include <linux/kernel.h>
13 static struct resource sgiwd93_0_resources[] = {
30 .num_resources =
ARRAY_SIZE(sgiwd93_0_resources),
31 .resource = sgiwd93_0_resources,
33 .platform_data = &sgiwd93_0_pd,
37 static struct resource sgiwd93_1_resources[] = {
54 .num_resources =
ARRAY_SIZE(sgiwd93_1_resources),
55 .resource = sgiwd93_1_resources,
57 .platform_data = &sgiwd93_1_pd,
65 static int __init sgiwd93_devinit(
void)
70 sgiwd93_0_pd.
wdregs = (
unsigned char *)
hpc3c0->scsi0_ext;
80 sgiwd93_1_pd.
wdregs = (
unsigned char *)
hpc3c0->scsi1_ext;
87 static struct resource sgiseeq_0_resources[] = {
101 .num_resources =
ARRAY_SIZE(sgiseeq_0_resources),
102 .resource = sgiseeq_0_resources,
104 .platform_data = ð0_pd,
108 static struct resource sgiseeq_1_resources[] = {
122 .num_resources =
ARRAY_SIZE(sgiseeq_1_resources),
123 .resource = sgiseeq_1_resources,
125 .platform_data = ð1_pd,
133 static int __init sgiseeq_devinit(
void)
140 #define EADDR_NVOFS 250
141 for (i = 0; i < 3; i++) {
144 eth0_pd.mac[2 *
i] = tmp >> 8;
145 eth0_pd.mac[2 * i + 1] = tmp & 0xff;
159 hpc3c1->pbus_piocfg[0][0] = 0x3ffff;
161 hpc3c1->pbus_extregs[0][0] = 0x30;
165 #define EADDR_NVOFS 250
166 for (i = 0; i < 3; i++) {
168 EADDR_NVOFS / 2 + i);
170 eth1_pd.mac[2 *
i] = tmp >> 8;
171 eth1_pd.mac[2 * i + 1] = tmp & 0xff;
179 static int __init sgi_hal2_devinit(
void)
181 return IS_ERR(platform_device_register_simple(
"sgihal2", 0,
NULL, 0));
186 static int __init sgi_button_devinit(
void)
191 return IS_ERR(platform_device_register_simple(
"sgibtns", -1,
NULL, 0));
196 static int __init sgi_ds1286_devinit(
void)
200 memset(&res, 0,
sizeof(res));
202 res.end = res.start +
sizeof(
hpc3c0->rtcregs) - 1;
205 return IS_ERR(platform_device_register_simple(
"rtc-ds1286", -1,