Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Add a prototype for set_busreg(), fix a couple o...



details:   https://anonhg.NetBSD.org/src/rev/df9bc7a326f0
branches:  trunk
changeset: 539114:df9bc7a326f0
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Nov 08 07:01:26 2002 +0000

description:
Add a prototype for set_busreg(), fix a couple of white space nits.

diffstat:

 sys/dev/pci/pciconf.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r 49b4dbccdc20 -r df9bc7a326f0 sys/dev/pci/pciconf.c
--- a/sys/dev/pci/pciconf.c     Fri Nov 08 06:07:52 2002 +0000
+++ b/sys/dev/pci/pciconf.c     Fri Nov 08 07:01:26 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pciconf.c,v 1.17 2002/07/30 15:00:03 augustss Exp $    */
+/*     $NetBSD: pciconf.c,v 1.18 2002/11/08 07:01:26 simonb Exp $      */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pciconf.c,v 1.17 2002/07/30 15:00:03 augustss Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pciconf.c,v 1.18 2002/11/08 07:01:26 simonb Exp $");
 
 #include "opt_pci.h"
 
@@ -153,6 +153,7 @@
 
 static int     probe_bus(pciconf_bus_t *);
 static void    alloc_busno(pciconf_bus_t *, pciconf_bus_t *);
+static void    set_busreg(pci_chipset_tag_t, pcitag_t, int, int, int);
 static int     pci_do_device_query(pciconf_bus_t *, pcitag_t, int, int, int);
 static int     setup_iowins(pciconf_bus_t *);
 static int     setup_memwins(pciconf_bus_t *);
@@ -227,9 +228,9 @@
 
 #ifdef __PCI_BUS_DEVORDER
        pci_bus_devorder(pb->pc, pb->busno, devs);
-       for (i=0; (device=devs[i]) < 32 && device >= 0; i++) {
+       for (i = 0; (device = devs[i]) < 32 && device >= 0; i++) {
 #else
-       for (device=0; device < maxdevs; device++) {
+       for (device = 0; device < maxdevs; device++) {
 #endif
                pcitag_t tag;
                pcireg_t id, bhlcr;



Home | Main Index | Thread Index | Old Index