diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-01-22 06:59:30 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-02-01 04:00:22 -0500 |
commit | 7034228792cc561e79ff8600f02884bd4c80e287 (patch) | |
tree | 89b77af37d087d9de236fc5d21f60bf552d0a2c6 /arch/mips/sgi-ip22 | |
parent | 405ab01c70e18058d9c01a1256769a61fc65413e (diff) |
MIPS: Whitespace cleanup.
Having received another series of whitespace patches I decided to do this
once and for all rather than dealing with this kind of patches trickling
in forever.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/sgi-ip22')
-rw-r--r-- | arch/mips/sgi-ip22/ip22-eisa.c | 14 | ||||
-rw-r--r-- | arch/mips/sgi-ip22/ip22-gio.c | 14 | ||||
-rw-r--r-- | arch/mips/sgi-ip22/ip22-int.c | 36 | ||||
-rw-r--r-- | arch/mips/sgi-ip22/ip22-mc.c | 44 | ||||
-rw-r--r-- | arch/mips/sgi-ip22/ip22-nvram.c | 16 | ||||
-rw-r--r-- | arch/mips/sgi-ip22/ip22-platform.c | 8 | ||||
-rw-r--r-- | arch/mips/sgi-ip22/ip22-reset.c | 4 | ||||
-rw-r--r-- | arch/mips/sgi-ip22/ip28-berr.c | 16 |
8 files changed, 76 insertions, 76 deletions
diff --git a/arch/mips/sgi-ip22/ip22-eisa.c b/arch/mips/sgi-ip22/ip22-eisa.c index 4a6057b35b9d..a0a79222ce0b 100644 --- a/arch/mips/sgi-ip22/ip22-eisa.c +++ b/arch/mips/sgi-ip22/ip22-eisa.c | |||
@@ -2,7 +2,7 @@ | |||
2 | * Basic EISA bus support for the SGI Indigo-2. | 2 | * Basic EISA bus support for the SGI Indigo-2. |
3 | * | 3 | * |
4 | * (C) 2002 Pascal Dameme <netinet@freesurf.fr> | 4 | * (C) 2002 Pascal Dameme <netinet@freesurf.fr> |
5 | * and Marc Zyngier <mzyngier@freesurf.fr> | 5 | * and Marc Zyngier <mzyngier@freesurf.fr> |
6 | * | 6 | * |
7 | * This code is released under both the GPL version 2 and BSD | 7 | * This code is released under both the GPL version 2 and BSD |
8 | * licenses. Either license may be used. | 8 | * licenses. Either license may be used. |
@@ -40,13 +40,13 @@ | |||
40 | 40 | ||
41 | /* I2 has four EISA slots. */ | 41 | /* I2 has four EISA slots. */ |
42 | #define IP22_EISA_MAX_SLOTS 4 | 42 | #define IP22_EISA_MAX_SLOTS 4 |
43 | #define EISA_MAX_IRQ 16 | 43 | #define EISA_MAX_IRQ 16 |
44 | 44 | ||
45 | #define EIU_MODE_REG 0x0001ffc0 | 45 | #define EIU_MODE_REG 0x0001ffc0 |
46 | #define EIU_STAT_REG 0x0001ffc4 | 46 | #define EIU_STAT_REG 0x0001ffc4 |
47 | #define EIU_PREMPT_REG 0x0001ffc8 | 47 | #define EIU_PREMPT_REG 0x0001ffc8 |
48 | #define EIU_QUIET_REG 0x0001ffcc | 48 | #define EIU_QUIET_REG 0x0001ffcc |
49 | #define EIU_INTRPT_ACK 0x00010004 | 49 | #define EIU_INTRPT_ACK 0x00010004 |
50 | 50 | ||
51 | static char __init *decode_eisa_sig(unsigned long addr) | 51 | static char __init *decode_eisa_sig(unsigned long addr) |
52 | { | 52 | { |
diff --git a/arch/mips/sgi-ip22/ip22-gio.c b/arch/mips/sgi-ip22/ip22-gio.c index f5ebc092aed5..ab0e379dc7e0 100644 --- a/arch/mips/sgi-ip22/ip22-gio.c +++ b/arch/mips/sgi-ip22/ip22-gio.c | |||
@@ -15,7 +15,7 @@ static struct bus_type gio_bus_type; | |||
15 | 15 | ||
16 | static struct { | 16 | static struct { |
17 | const char *name; | 17 | const char *name; |
18 | __u8 id; | 18 | __u8 id; |
19 | } gio_name_table[] = { | 19 | } gio_name_table[] = { |
20 | { .name = "SGI Impact", .id = 0x10 }, | 20 | { .name = "SGI Impact", .id = 0x10 }, |
21 | { .name = "Phobos G160", .id = 0x35 }, | 21 | { .name = "Phobos G160", .id = 0x35 }, |
@@ -376,15 +376,15 @@ static void ip22_check_gio(int slotno, unsigned long addr) | |||
376 | } | 376 | } |
377 | 377 | ||
378 | static struct bus_type gio_bus_type = { | 378 | static struct bus_type gio_bus_type = { |
379 | .name = "gio", | 379 | .name = "gio", |
380 | .dev_attrs = gio_dev_attrs, | 380 | .dev_attrs = gio_dev_attrs, |
381 | .match = gio_bus_match, | 381 | .match = gio_bus_match, |
382 | .probe = gio_device_probe, | 382 | .probe = gio_device_probe, |
383 | .remove = gio_device_remove, | 383 | .remove = gio_device_remove, |
384 | .suspend = gio_device_suspend, | 384 | .suspend = gio_device_suspend, |
385 | .resume = gio_device_resume, | 385 | .resume = gio_device_resume, |
386 | .shutdown = gio_device_shutdown, | 386 | .shutdown = gio_device_shutdown, |
387 | .uevent = gio_device_uevent, | 387 | .uevent = gio_device_uevent, |
388 | }; | 388 | }; |
389 | 389 | ||
390 | static struct resource gio_bus_resource = { | 390 | static struct resource gio_bus_resource = { |
diff --git a/arch/mips/sgi-ip22/ip22-int.c b/arch/mips/sgi-ip22/ip22-int.c index 3f2b7633f946..3db64d51798d 100644 --- a/arch/mips/sgi-ip22/ip22-int.c +++ b/arch/mips/sgi-ip22/ip22-int.c | |||
@@ -1,12 +1,12 @@ | |||
1 | /* | 1 | /* |
2 | * ip22-int.c: Routines for generic manipulation of the INT[23] ASIC | 2 | * ip22-int.c: Routines for generic manipulation of the INT[23] ASIC |
3 | * found on INDY and Indigo2 workstations. | 3 | * found on INDY and Indigo2 workstations. |
4 | * | 4 | * |
5 | * Copyright (C) 1996 David S. Miller (davem@davemloft.net) | 5 | * Copyright (C) 1996 David S. Miller (davem@davemloft.net) |
6 | * Copyright (C) 1997, 1998 Ralf Baechle (ralf@gnu.org) | 6 | * Copyright (C) 1997, 1998 Ralf Baechle (ralf@gnu.org) |
7 | * Copyright (C) 1999 Andrew R. Baker (andrewb@uab.edu) | 7 | * Copyright (C) 1999 Andrew R. Baker (andrewb@uab.edu) |
8 | * - Indigo2 changes | 8 | * - Indigo2 changes |
9 | * - Interrupt handling fixes | 9 | * - Interrupt handling fixes |
10 | * Copyright (C) 2001, 2003 Ladislav Michl (ladis@linux-mips.org) | 10 | * Copyright (C) 2001, 2003 Ladislav Michl (ladis@linux-mips.org) |
11 | */ | 11 | */ |
12 | #include <linux/types.h> | 12 | #include <linux/types.h> |
@@ -195,24 +195,24 @@ extern void indy_8254timer_irq(void); | |||
195 | * at all) like: | 195 | * at all) like: |
196 | * | 196 | * |
197 | * MIPS IRQ Source | 197 | * MIPS IRQ Source |
198 | * -------- ------ | 198 | * -------- ------ |
199 | * 0 Software (ignored) | 199 | * 0 Software (ignored) |
200 | * 1 Software (ignored) | 200 | * 1 Software (ignored) |
201 | * 2 Local IRQ level zero | 201 | * 2 Local IRQ level zero |
202 | * 3 Local IRQ level one | 202 | * 3 Local IRQ level one |
203 | * 4 8254 Timer zero | 203 | * 4 8254 Timer zero |
204 | * 5 8254 Timer one | 204 | * 5 8254 Timer one |
205 | * 6 Bus Error | 205 | * 6 Bus Error |
206 | * 7 R4k timer (what we use) | 206 | * 7 R4k timer (what we use) |
207 | * | 207 | * |
208 | * We handle the IRQ according to _our_ priority which is: | 208 | * We handle the IRQ according to _our_ priority which is: |
209 | * | 209 | * |
210 | * Highest ---- R4k Timer | 210 | * Highest ---- R4k Timer |
211 | * Local IRQ zero | 211 | * Local IRQ zero |
212 | * Local IRQ one | 212 | * Local IRQ one |
213 | * Bus Error | 213 | * Bus Error |
214 | * 8254 Timer zero | 214 | * 8254 Timer zero |
215 | * Lowest ---- 8254 Timer one | 215 | * Lowest ---- 8254 Timer one |
216 | * | 216 | * |
217 | * then we just return, if multiple IRQs are pending then we will just take | 217 | * then we just return, if multiple IRQs are pending then we will just take |
218 | * another exception, big deal. | 218 | * another exception, big deal. |
diff --git a/arch/mips/sgi-ip22/ip22-mc.c b/arch/mips/sgi-ip22/ip22-mc.c index 75ada8a9713b..7cec0a4e527d 100644 --- a/arch/mips/sgi-ip22/ip22-mc.c +++ b/arch/mips/sgi-ip22/ip22-mc.c | |||
@@ -121,22 +121,22 @@ void __init sgimc_init(void) | |||
121 | */ | 121 | */ |
122 | 122 | ||
123 | /* Step 0: Make sure we turn off the watchdog in case it's | 123 | /* Step 0: Make sure we turn off the watchdog in case it's |
124 | * still running (which might be the case after a | 124 | * still running (which might be the case after a |
125 | * soft reboot). | 125 | * soft reboot). |
126 | */ | 126 | */ |
127 | tmp = sgimc->cpuctrl0; | 127 | tmp = sgimc->cpuctrl0; |
128 | tmp &= ~SGIMC_CCTRL0_WDOG; | 128 | tmp &= ~SGIMC_CCTRL0_WDOG; |
129 | sgimc->cpuctrl0 = tmp; | 129 | sgimc->cpuctrl0 = tmp; |
130 | 130 | ||
131 | /* Step 1: The CPU/GIO error status registers will not latch | 131 | /* Step 1: The CPU/GIO error status registers will not latch |
132 | * up a new error status until the register has been | 132 | * up a new error status until the register has been |
133 | * cleared by the cpu. These status registers are | 133 | * cleared by the cpu. These status registers are |
134 | * cleared by writing any value to them. | 134 | * cleared by writing any value to them. |
135 | */ | 135 | */ |
136 | sgimc->cstat = sgimc->gstat = 0; | 136 | sgimc->cstat = sgimc->gstat = 0; |
137 | 137 | ||
138 | /* Step 2: Enable all parity checking in cpu control register | 138 | /* Step 2: Enable all parity checking in cpu control register |
139 | * zero. | 139 | * zero. |
140 | */ | 140 | */ |
141 | /* don't touch parity settings for IP28 */ | 141 | /* don't touch parity settings for IP28 */ |
142 | tmp = sgimc->cpuctrl0; | 142 | tmp = sgimc->cpuctrl0; |
@@ -147,7 +147,7 @@ void __init sgimc_init(void) | |||
147 | sgimc->cpuctrl0 = tmp; | 147 | sgimc->cpuctrl0 = tmp; |
148 | 148 | ||
149 | /* Step 3: Setup the MC write buffer depth, this is controlled | 149 | /* Step 3: Setup the MC write buffer depth, this is controlled |
150 | * in cpu control register 1 in the lower 4 bits. | 150 | * in cpu control register 1 in the lower 4 bits. |
151 | */ | 151 | */ |
152 | tmp = sgimc->cpuctrl1; | 152 | tmp = sgimc->cpuctrl1; |
153 | tmp &= ~0xf; | 153 | tmp &= ~0xf; |
@@ -155,26 +155,26 @@ void __init sgimc_init(void) | |||
155 | sgimc->cpuctrl1 = tmp; | 155 | sgimc->cpuctrl1 = tmp; |
156 | 156 | ||
157 | /* Step 4: Initialize the RPSS divider register to run as fast | 157 | /* Step 4: Initialize the RPSS divider register to run as fast |
158 | * as it can correctly operate. The register is laid | 158 | * as it can correctly operate. The register is laid |
159 | * out as follows: | 159 | * out as follows: |
160 | * | 160 | * |
161 | * ---------------------------------------- | 161 | * ---------------------------------------- |
162 | * | RESERVED | INCREMENT | DIVIDER | | 162 | * | RESERVED | INCREMENT | DIVIDER | |
163 | * ---------------------------------------- | 163 | * ---------------------------------------- |
164 | * 31 16 15 8 7 0 | 164 | * 31 16 15 8 7 0 |
165 | * | 165 | * |
166 | * DIVIDER determines how often a 'tick' happens, | 166 | * DIVIDER determines how often a 'tick' happens, |
167 | * INCREMENT determines by how the RPSS increment | 167 | * INCREMENT determines by how the RPSS increment |
168 | * registers value increases at each 'tick'. Thus, | 168 | * registers value increases at each 'tick'. Thus, |
169 | * for IP22 we get INCREMENT=1, DIVIDER=1 == 0x101 | 169 | * for IP22 we get INCREMENT=1, DIVIDER=1 == 0x101 |
170 | */ | 170 | */ |
171 | sgimc->divider = 0x101; | 171 | sgimc->divider = 0x101; |
172 | 172 | ||
173 | /* Step 5: Initialize GIO64 arbitrator configuration register. | 173 | /* Step 5: Initialize GIO64 arbitrator configuration register. |
174 | * | 174 | * |
175 | * NOTE: HPC init code in sgihpc_init() must run before us because | 175 | * NOTE: HPC init code in sgihpc_init() must run before us because |
176 | * we need to know Guiness vs. FullHouse and the board | 176 | * we need to know Guiness vs. FullHouse and the board |
177 | * revision on this machine. You have been warned. | 177 | * revision on this machine. You have been warned. |
178 | */ | 178 | */ |
179 | 179 | ||
180 | /* First the basic invariants across all GIO64 implementations. */ | 180 | /* First the basic invariants across all GIO64 implementations. */ |
@@ -187,18 +187,18 @@ void __init sgimc_init(void) | |||
187 | if (SGIOC_SYSID_BOARDREV(sgioc->sysid) < 2) { | 187 | if (SGIOC_SYSID_BOARDREV(sgioc->sysid) < 2) { |
188 | tmp |= SGIMC_GIOPAR_HPC264; /* 2nd HPC at 64bits */ | 188 | tmp |= SGIMC_GIOPAR_HPC264; /* 2nd HPC at 64bits */ |
189 | tmp |= SGIMC_GIOPAR_PLINEEXP0; /* exp0 pipelines */ | 189 | tmp |= SGIMC_GIOPAR_PLINEEXP0; /* exp0 pipelines */ |
190 | tmp |= SGIMC_GIOPAR_MASTEREXP1; /* exp1 masters */ | 190 | tmp |= SGIMC_GIOPAR_MASTEREXP1; /* exp1 masters */ |
191 | tmp |= SGIMC_GIOPAR_RTIMEEXP0; /* exp0 is realtime */ | 191 | tmp |= SGIMC_GIOPAR_RTIMEEXP0; /* exp0 is realtime */ |
192 | } else { | 192 | } else { |
193 | tmp |= SGIMC_GIOPAR_HPC264; /* 2nd HPC 64bits */ | 193 | tmp |= SGIMC_GIOPAR_HPC264; /* 2nd HPC 64bits */ |
194 | tmp |= SGIMC_GIOPAR_PLINEEXP0; /* exp[01] pipelined */ | 194 | tmp |= SGIMC_GIOPAR_PLINEEXP0; /* exp[01] pipelined */ |
195 | tmp |= SGIMC_GIOPAR_PLINEEXP1; | 195 | tmp |= SGIMC_GIOPAR_PLINEEXP1; |
196 | tmp |= SGIMC_GIOPAR_MASTEREISA; /* EISA masters */ | 196 | tmp |= SGIMC_GIOPAR_MASTEREISA; /* EISA masters */ |
197 | } | 197 | } |
198 | } else { | 198 | } else { |
199 | /* Guiness specific settings. */ | 199 | /* Guiness specific settings. */ |
200 | tmp |= SGIMC_GIOPAR_EISA64; /* MC talks to EISA at 64bits */ | 200 | tmp |= SGIMC_GIOPAR_EISA64; /* MC talks to EISA at 64bits */ |
201 | tmp |= SGIMC_GIOPAR_MASTEREISA; /* EISA bus can act as master */ | 201 | tmp |= SGIMC_GIOPAR_MASTEREISA; /* EISA bus can act as master */ |
202 | } | 202 | } |
203 | sgimc->giopar = tmp; /* poof */ | 203 | sgimc->giopar = tmp; /* poof */ |
204 | 204 | ||
diff --git a/arch/mips/sgi-ip22/ip22-nvram.c b/arch/mips/sgi-ip22/ip22-nvram.c index 0177566475d4..e077036a676a 100644 --- a/arch/mips/sgi-ip22/ip22-nvram.c +++ b/arch/mips/sgi-ip22/ip22-nvram.c | |||
@@ -14,11 +14,11 @@ | |||
14 | #define EEPROM_WRITE 0xa000 /* serial memory write */ | 14 | #define EEPROM_WRITE 0xa000 /* serial memory write */ |
15 | #define EEPROM_WRALL 0x8800 /* write all registers */ | 15 | #define EEPROM_WRALL 0x8800 /* write all registers */ |
16 | #define EEPROM_WDS 0x8000 /* disable all programming */ | 16 | #define EEPROM_WDS 0x8000 /* disable all programming */ |
17 | #define EEPROM_PRREAD 0xc000 /* read protect register */ | 17 | #define EEPROM_PRREAD 0xc000 /* read protect register */ |
18 | #define EEPROM_PREN 0x9800 /* enable protect register mode */ | 18 | #define EEPROM_PREN 0x9800 /* enable protect register mode */ |
19 | #define EEPROM_PRCLEAR 0xffff /* clear protect register */ | 19 | #define EEPROM_PRCLEAR 0xffff /* clear protect register */ |
20 | #define EEPROM_PRWRITE 0xa000 /* write protect register */ | 20 | #define EEPROM_PRWRITE 0xa000 /* write protect register */ |
21 | #define EEPROM_PRDS 0x8000 /* disable protect register, forever */ | 21 | #define EEPROM_PRDS 0x8000 /* disable protect register, forever */ |
22 | 22 | ||
23 | #define EEPROM_EPROT 0x01 /* Protect register enable */ | 23 | #define EEPROM_EPROT 0x01 /* Protect register enable */ |
24 | #define EEPROM_CSEL 0x02 /* Chip select */ | 24 | #define EEPROM_CSEL 0x02 /* Chip select */ |
@@ -27,7 +27,7 @@ | |||
27 | #define EEPROM_DATI 0x10 /* Data in */ | 27 | #define EEPROM_DATI 0x10 /* Data in */ |
28 | 28 | ||
29 | /* We need to use these functions early... */ | 29 | /* We need to use these functions early... */ |
30 | #define delay() ({ \ | 30 | #define delay() ({ \ |
31 | int x; \ | 31 | int x; \ |
32 | for (x=0; x<100000; x++) __asm__ __volatile__(""); }) | 32 | for (x=0; x<100000; x++) __asm__ __volatile__(""); }) |
33 | 33 | ||
@@ -35,7 +35,7 @@ | |||
35 | __raw_writel(__raw_readl(ptr) & ~EEPROM_DATO, ptr); \ | 35 | __raw_writel(__raw_readl(ptr) & ~EEPROM_DATO, ptr); \ |
36 | __raw_writel(__raw_readl(ptr) & ~EEPROM_ECLK, ptr); \ | 36 | __raw_writel(__raw_readl(ptr) & ~EEPROM_ECLK, ptr); \ |
37 | __raw_writel(__raw_readl(ptr) & ~EEPROM_EPROT, ptr); \ | 37 | __raw_writel(__raw_readl(ptr) & ~EEPROM_EPROT, ptr); \ |
38 | delay(); \ | 38 | delay(); \ |
39 | __raw_writel(__raw_readl(ptr) | EEPROM_CSEL, ptr); \ | 39 | __raw_writel(__raw_readl(ptr) | EEPROM_CSEL, ptr); \ |
40 | __raw_writel(__raw_readl(ptr) | EEPROM_ECLK, ptr); }) | 40 | __raw_writel(__raw_readl(ptr) | EEPROM_ECLK, ptr); }) |
41 | 41 | ||
@@ -46,7 +46,7 @@ | |||
46 | __raw_writel(__raw_readl(ptr) | EEPROM_EPROT, ptr); \ | 46 | __raw_writel(__raw_readl(ptr) | EEPROM_EPROT, ptr); \ |
47 | __raw_writel(__raw_readl(ptr) | EEPROM_ECLK, ptr); }) | 47 | __raw_writel(__raw_readl(ptr) | EEPROM_ECLK, ptr); }) |
48 | 48 | ||
49 | #define BITS_IN_COMMAND 11 | 49 | #define BITS_IN_COMMAND 11 |
50 | /* | 50 | /* |
51 | * clock in the nvram command and the register number. For the | 51 | * clock in the nvram command and the register number. For the |
52 | * national semiconductor nv ram chip the op code is 3 bits and | 52 | * national semiconductor nv ram chip the op code is 3 bits and |
diff --git a/arch/mips/sgi-ip22/ip22-platform.c b/arch/mips/sgi-ip22/ip22-platform.c index 698904daf901..a14fd32b76bd 100644 --- a/arch/mips/sgi-ip22/ip22-platform.c +++ b/arch/mips/sgi-ip22/ip22-platform.c | |||
@@ -137,7 +137,7 @@ static int __init sgiseeq_devinit(void) | |||
137 | 137 | ||
138 | eth0_pd.hpc = hpc3c0; | 138 | eth0_pd.hpc = hpc3c0; |
139 | eth0_pd.irq = SGI_ENET_IRQ; | 139 | eth0_pd.irq = SGI_ENET_IRQ; |
140 | #define EADDR_NVOFS 250 | 140 | #define EADDR_NVOFS 250 |
141 | for (i = 0; i < 3; i++) { | 141 | for (i = 0; i < 3; i++) { |
142 | unsigned short tmp = ip22_nvram_read(EADDR_NVOFS / 2 + i); | 142 | unsigned short tmp = ip22_nvram_read(EADDR_NVOFS / 2 + i); |
143 | 143 | ||
@@ -155,17 +155,17 @@ static int __init sgiseeq_devinit(void) | |||
155 | return 0; | 155 | return 0; |
156 | 156 | ||
157 | sgimc->giopar |= SGIMC_GIOPAR_MASTEREXP1 | SGIMC_GIOPAR_EXP164 | | 157 | sgimc->giopar |= SGIMC_GIOPAR_MASTEREXP1 | SGIMC_GIOPAR_EXP164 | |
158 | SGIMC_GIOPAR_HPC264; | 158 | SGIMC_GIOPAR_HPC264; |
159 | hpc3c1->pbus_piocfg[0][0] = 0x3ffff; | 159 | hpc3c1->pbus_piocfg[0][0] = 0x3ffff; |
160 | /* interrupt/config register on Challenge S Mezz board */ | 160 | /* interrupt/config register on Challenge S Mezz board */ |
161 | hpc3c1->pbus_extregs[0][0] = 0x30; | 161 | hpc3c1->pbus_extregs[0][0] = 0x30; |
162 | 162 | ||
163 | eth1_pd.hpc = hpc3c1; | 163 | eth1_pd.hpc = hpc3c1; |
164 | eth1_pd.irq = SGI_GIO_0_IRQ; | 164 | eth1_pd.irq = SGI_GIO_0_IRQ; |
165 | #define EADDR_NVOFS 250 | 165 | #define EADDR_NVOFS 250 |
166 | for (i = 0; i < 3; i++) { | 166 | for (i = 0; i < 3; i++) { |
167 | unsigned short tmp = ip22_eeprom_read(&hpc3c1->eeprom, | 167 | unsigned short tmp = ip22_eeprom_read(&hpc3c1->eeprom, |
168 | EADDR_NVOFS / 2 + i); | 168 | EADDR_NVOFS / 2 + i); |
169 | 169 | ||
170 | eth1_pd.mac[2 * i] = tmp >> 8; | 170 | eth1_pd.mac[2 * i] = tmp >> 8; |
171 | eth1_pd.mac[2 * i + 1] = tmp & 0xff; | 171 | eth1_pd.mac[2 * i + 1] = tmp & 0xff; |
diff --git a/arch/mips/sgi-ip22/ip22-reset.c b/arch/mips/sgi-ip22/ip22-reset.c index 20363d29cb58..063c2dd31e72 100644 --- a/arch/mips/sgi-ip22/ip22-reset.c +++ b/arch/mips/sgi-ip22/ip22-reset.c | |||
@@ -101,7 +101,7 @@ static void debounce(unsigned long data) | |||
101 | del_timer(&debounce_timer); | 101 | del_timer(&debounce_timer); |
102 | if (sgint->istat1 & SGINT_ISTAT1_PWR) { | 102 | if (sgint->istat1 & SGINT_ISTAT1_PWR) { |
103 | /* Interrupt still being sent. */ | 103 | /* Interrupt still being sent. */ |
104 | debounce_timer.expires = jiffies + (HZ / 20); /* 0.05s */ | 104 | debounce_timer.expires = jiffies + (HZ / 20); /* 0.05s */ |
105 | add_timer(&debounce_timer); | 105 | add_timer(&debounce_timer); |
106 | 106 | ||
107 | sgioc->panel = SGIOC_PANEL_POWERON | SGIOC_PANEL_POWERINTR | | 107 | sgioc->panel = SGIOC_PANEL_POWERON | SGIOC_PANEL_POWERINTR | |
@@ -166,7 +166,7 @@ static irqreturn_t panel_int(int irq, void *dev_id) | |||
166 | } | 166 | } |
167 | 167 | ||
168 | static int panic_event(struct notifier_block *this, unsigned long event, | 168 | static int panic_event(struct notifier_block *this, unsigned long event, |
169 | void *ptr) | 169 | void *ptr) |
170 | { | 170 | { |
171 | if (machine_state & MACHINE_PANICED) | 171 | if (machine_state & MACHINE_PANICED) |
172 | return NOTIFY_DONE; | 172 | return NOTIFY_DONE; |
diff --git a/arch/mips/sgi-ip22/ip28-berr.c b/arch/mips/sgi-ip22/ip28-berr.c index 0626555fd1a3..3f47346608d7 100644 --- a/arch/mips/sgi-ip22/ip28-berr.c +++ b/arch/mips/sgi-ip22/ip28-berr.c | |||
@@ -136,14 +136,14 @@ static void save_and_clear_buserr(void) | |||
136 | hpc3.scsi[1].cbp = hpc3c0->scsi_chan1.cbptr; | 136 | hpc3.scsi[1].cbp = hpc3c0->scsi_chan1.cbptr; |
137 | hpc3.scsi[1].ndptr = hpc3c0->scsi_chan1.ndptr; | 137 | hpc3.scsi[1].ndptr = hpc3c0->scsi_chan1.ndptr; |
138 | 138 | ||
139 | hpc3.ethrx.addr = (unsigned long)&hpc3c0->ethregs.rx_cbptr; | 139 | hpc3.ethrx.addr = (unsigned long)&hpc3c0->ethregs.rx_cbptr; |
140 | hpc3.ethrx.ctrl = hpc3c0->ethregs.rx_ctrl; /* HPC3_ERXCTRL_ACTIVE ? */ | 140 | hpc3.ethrx.ctrl = hpc3c0->ethregs.rx_ctrl; /* HPC3_ERXCTRL_ACTIVE ? */ |
141 | hpc3.ethrx.cbp = hpc3c0->ethregs.rx_cbptr; | 141 | hpc3.ethrx.cbp = hpc3c0->ethregs.rx_cbptr; |
142 | hpc3.ethrx.ndptr = hpc3c0->ethregs.rx_ndptr; | 142 | hpc3.ethrx.ndptr = hpc3c0->ethregs.rx_ndptr; |
143 | 143 | ||
144 | hpc3.ethtx.addr = (unsigned long)&hpc3c0->ethregs.tx_cbptr; | 144 | hpc3.ethtx.addr = (unsigned long)&hpc3c0->ethregs.tx_cbptr; |
145 | hpc3.ethtx.ctrl = hpc3c0->ethregs.tx_ctrl; /* HPC3_ETXCTRL_ACTIVE ? */ | 145 | hpc3.ethtx.ctrl = hpc3c0->ethregs.tx_ctrl; /* HPC3_ETXCTRL_ACTIVE ? */ |
146 | hpc3.ethtx.cbp = hpc3c0->ethregs.tx_cbptr; | 146 | hpc3.ethtx.cbp = hpc3c0->ethregs.tx_cbptr; |
147 | hpc3.ethtx.ndptr = hpc3c0->ethregs.tx_ndptr; | 147 | hpc3.ethtx.ndptr = hpc3c0->ethregs.tx_ndptr; |
148 | 148 | ||
149 | for (i = 0; i < 8; ++i) { | 149 | for (i = 0; i < 8; ++i) { |
@@ -196,11 +196,11 @@ static void print_cache_tags(void) | |||
196 | scb | (1 << 12)*i); | 196 | scb | (1 << 12)*i); |
197 | } | 197 | } |
198 | i = read_c0_config(); | 198 | i = read_c0_config(); |
199 | scb = i & (1 << 13) ? 7:6; /* scblksize = 2^[7..6] */ | 199 | scb = i & (1 << 13) ? 7:6; /* scblksize = 2^[7..6] */ |
200 | scw = ((i >> 16) & 7) + 19 - 1; /* scwaysize = 2^[24..19] / 2 */ | 200 | scw = ((i >> 16) & 7) + 19 - 1; /* scwaysize = 2^[24..19] / 2 */ |
201 | 201 | ||
202 | i = ((1 << scw) - 1) & ~((1 << scb) - 1); | 202 | i = ((1 << scw) - 1) & ~((1 << scb) - 1); |
203 | printk(KERN_ERR "S: 0: %08x %08x, 1: %08x %08x (PA[%u:%u] %05x)\n", | 203 | printk(KERN_ERR "S: 0: %08x %08x, 1: %08x %08x (PA[%u:%u] %05x)\n", |
204 | cache_tags.tags[0][0].hi, cache_tags.tags[0][0].lo, | 204 | cache_tags.tags[0][0].hi, cache_tags.tags[0][0].lo, |
205 | cache_tags.tags[0][1].hi, cache_tags.tags[0][1].lo, | 205 | cache_tags.tags[0][1].hi, cache_tags.tags[0][1].lo, |
206 | scw-1, scb, i & (unsigned)cache_tags.err_addr); | 206 | scw-1, scb, i & (unsigned)cache_tags.err_addr); |