Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/nvidia We don't need to use any particular valu...



details:   https://anonhg.NetBSD.org/src/rev/9e842c0d0519
branches:  trunk
changeset: 811760:9e842c0d0519
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sat Nov 14 01:31:08 2015 +0000

description:
We don't need to use any particular value, but use the actual interrupt
number for the PCI_INTERRUPT_LINE.

diffstat:

 sys/arch/arm/nvidia/tegra_pcie.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 4b3d2ad08f9e -r 9e842c0d0519 sys/arch/arm/nvidia/tegra_pcie.c
--- a/sys/arch/arm/nvidia/tegra_pcie.c  Fri Nov 13 20:31:27 2015 +0000
+++ b/sys/arch/arm/nvidia/tegra_pcie.c  Sat Nov 14 01:31:08 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_pcie.c,v 1.7 2015/11/13 18:58:17 jakllsch Exp $ */
+/* $NetBSD: tegra_pcie.c,v 1.8 2015/11/14 01:31:08 jakllsch Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #include "locators.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_pcie.c,v 1.7 2015/11/13 18:58:17 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_pcie.c,v 1.8 2015/11/14 01:31:08 jakllsch Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -381,7 +381,9 @@
 tegra_pcie_conf_interrupt(void *v, int bus, int dev, int ipin, int swiz,
     int *ilinep)
 {
-       *ilinep = 5;
+       const struct tegra_pcie_softc * const sc = v;
+
+       *ilinep = sc->sc_intr & PCI_INTERRUPT_LINE_MASK;
 }
 
 static int



Home | Main Index | Thread Index | Old Index