Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/bebox/pci Calculate IRQ from swiz, if bus != 0.



details:   https://anonhg.NetBSD.org/src/rev/7a73919f9460
branches:  trunk
changeset: 758358:7a73919f9460
user:      kiyohara <kiyohara%NetBSD.org@localhost>
date:      Wed Nov 03 05:23:11 2010 +0000

description:
Calculate IRQ from swiz, if bus != 0.

diffstat:

 sys/arch/bebox/pci/pci_machdep.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r 07baf03563f1 -r 7a73919f9460 sys/arch/bebox/pci/pci_machdep.c
--- a/sys/arch/bebox/pci/pci_machdep.c  Wed Nov 03 05:19:29 2010 +0000
+++ b/sys/arch/bebox/pci/pci_machdep.c  Wed Nov 03 05:23:11 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pci_machdep.c,v 1.17 2008/05/30 15:56:32 kiyohara Exp $        */
+/*     $NetBSD: pci_machdep.c,v 1.18 2010/11/03 05:23:11 kiyohara Exp $        */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All rights reserved.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.17 2008/05/30 15:56:32 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.18 2010/11/03 05:23:11 kiyohara Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -114,6 +114,6 @@
                        *iline = BEBOX_PCIBUS0_DEV2LINE(dev);
                }
        } else
-#define  BEBOX_PCIBUS_DEV2LINE(d, s)   ((((d) + (s) + 1) & 0x3) + 26)
-               *iline = BEBOX_PCIBUS_DEV2LINE(dev, swiz);
+#define  BEBOX_PCIBUS_SWIZ2LINE(s)     ((s) + 14)
+               *iline = BEBOX_PCIBUS_SWIZ2LINE(swiz);
 }



Home | Main Index | Thread Index | Old Index