Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm32/footbridge In footbridge_pci_intr_map(), pcv ...



details:   https://anonhg.NetBSD.org/src/rev/59addbdd29bb
branches:  trunk
changeset: 503545:59addbdd29bb
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Thu Feb 08 13:59:38 2001 +0000

description:
In footbridge_pci_intr_map(), pcv and intrtag are used
only #ifdef PCI_DEBUG. Move declarations in it.

diffstat:

 sys/arch/arm32/footbridge/footbridge_pci.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r ab64a353dcce -r 59addbdd29bb sys/arch/arm32/footbridge/footbridge_pci.c
--- a/sys/arch/arm32/footbridge/footbridge_pci.c        Thu Feb 08 13:55:45 2001 +0000
+++ b/sys/arch/arm32/footbridge/footbridge_pci.c        Thu Feb 08 13:59:38 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: footbridge_pci.c,v 1.5 2000/12/28 22:59:08 sommerfeld Exp $    */
+/*     $NetBSD: footbridge_pci.c,v 1.6 2001/02/08 13:59:38 tsutsui Exp $       */
 
 /*
  * Copyright (c) 1997,1998 Mark Brinicombe.
@@ -245,12 +245,12 @@
        struct pci_attach_args *pa;
        pci_intr_handle_t *ihp;
 {
-       void *pcv = pa->pa_pc;
-       pcitag_t intrtag = pa->pa_intrtag;
        int pin = pa->pa_intrpin, line = pa->pa_intrline;
        int intr = -1;
 
 #ifdef PCI_DEBUG
+       void *pcv = pa->pa_pc;
+       pcitag_t intrtag = pa->pa_intrtag;
        int bus, device, function;
 
        footbridge_pci_decompose_tag(pcv, intrtag, &bus, &device, &function);



Home | Main Index | Thread Index | Old Index