Module Name: src
Committed By: macallan
Date: Sun Apr 28 00:44:27 UTC 2013
Modified Files:
src/sys/arch/powerpc/oea: ofw_autoconf.c
Log Message:
some macppc boxes have onboard devices where parts or the whole PCI interrupt
register is hardwired to zero - fix this up here
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/powerpc/oea/ofw_autoconf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/powerpc/oea/ofw_autoconf.c
diff -u src/sys/arch/powerpc/oea/ofw_autoconf.c:1.17 src/sys/arch/powerpc/oea/ofw_autoconf.c:1.18
--- src/sys/arch/powerpc/oea/ofw_autoconf.c:1.17 Sun Jul 29 18:05:45 2012
+++ src/sys/arch/powerpc/oea/ofw_autoconf.c Sun Apr 28 00:44:27 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: ofw_autoconf.c,v 1.17 2012/07/29 18:05:45 mlelstv Exp $ */
+/* $NetBSD: ofw_autoconf.c,v 1.18 2013/04/28 00:44:27 macallan Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
* Copyright (C) 1995, 1996 TooLs GmbH.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofw_autoconf.c,v 1.17 2012/07/29 18:05:45 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofw_autoconf.c,v 1.18 2013/04/28 00:44:27 macallan Exp $");
#ifdef ofppc
#include "gtpci.h"
@@ -346,6 +346,15 @@ device_register(device_t dev, void *aux)
"shared-pins");
}
}
+#ifdef macppc
+ /*
+ * XXX
+ * some macppc boxes have onboard devices where parts or all of
+ * the PCI_INTERRUPT register are hardwired to 0
+ */
+ if (pa->pa_intrpin == 0)
+ pa->pa_intrpin = 1;
+#endif
}
if (booted_device)