patch-2.4.20 linux-2.4.20/arch/ppc64/kernel/eeh.c
Next file: linux-2.4.20/arch/ppc64/kernel/entry.S
Previous file: linux-2.4.20/arch/ppc64/kernel/chrp_setup.c
Back to the patch index
Back to the overall index
- Lines: 38
- Date:
Thu Nov 28 15:53:11 2002
- Orig file:
linux-2.4.19/arch/ppc64/kernel/eeh.c
- Orig date:
Fri Aug 2 17:39:43 2002
diff -urN linux-2.4.19/arch/ppc64/kernel/eeh.c linux-2.4.20/arch/ppc64/kernel/eeh.c
@@ -59,15 +59,14 @@
return ((IO_UNMAPPED_REGION_ID << 60) | (phb << 48UL) | ((bus & 0xff) << 40UL) | (devfn << 32UL) | (offset & 0xffffffff));
}
-
-
-int eeh_get_state(unsigned long ea) {
+int eeh_get_state(unsigned long ea)
+{
return 0;
}
-
/* Check for an eeh failure at the given token address.
- * The given value has been read and it should be 1's (0xff, 0xffff or 0xffffffff).
+ * The given value has been read and it should be 1's (0xff, 0xffff or
+ * 0xffffffff).
*
* Probe to determine if an error actually occurred. If not return val.
* Otherwise panic.
@@ -113,7 +112,8 @@
return val; /* good case */
}
-void eeh_init(void) {
+void eeh_init(void)
+{
extern char cmd_line[]; /* Very early cmd line parse. Cheap, but works. */
char *eeh_force_off = strstr(cmd_line, "eeh-force-off");
char *eeh_force_on = strstr(cmd_line, "eeh-force-on");
@@ -334,6 +334,7 @@
{
return eeh_parm(str, 0);
}
+
static int __init eehon_parm(char *str)
{
return eeh_parm(str, 1);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)