Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/oea some macppc boxes have onboard devices ...



details:   https://anonhg.NetBSD.org/src/rev/4158e97fece9
branches:  trunk
changeset: 786407:4158e97fece9
user:      macallan <macallan%NetBSD.org@localhost>
date:      Sun Apr 28 00:44:27 2013 +0000

description:
some macppc boxes have onboard devices where parts or the whole PCI interrupt
register is hardwired to zero - fix this up here

diffstat:

 sys/arch/powerpc/oea/ofw_autoconf.c |  13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r c289fb9913ee -r 4158e97fece9 sys/arch/powerpc/oea/ofw_autoconf.c
--- a/sys/arch/powerpc/oea/ofw_autoconf.c       Sun Apr 28 00:42:29 2013 +0000
+++ b/sys/arch/powerpc/oea/ofw_autoconf.c       Sun Apr 28 00:44:27 2013 +0000
@@ -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 @@
                                    "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)



Home | Main Index | Thread Index | Old Index