From owner-freebsd-current Mon Aug 11 12:02:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id MAA23191 for current-outgoing; Mon, 11 Aug 1997 12:02:16 -0700 (PDT) Received: from lamb.sas.com (uucp@lamb.sas.com [192.35.83.8]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id MAA23186 for ; Mon, 11 Aug 1997 12:02:11 -0700 (PDT) Received: from mozart by lamb.sas.com (5.65c/SAS/Gateway/01-23-95) id AA17636; Mon, 11 Aug 1997 15:02:10 -0400 Received: from iluvatar.unx.sas.com by mozart (5.65c/SAS/Domains/5-6-90) id AA10530; Mon, 11 Aug 1997 14:50:16 -0400 From: "John W. DeBoskey" Received: by iluvatar.unx.sas.com (5.65c/SAS/Generic 9.01/3-26-93) id AA02267; Mon, 11 Aug 1997 14:50:16 -0400 Message-Id: <199708111850.AA02267@iluvatar.unx.sas.com> Subject: Number of pci busses probed at boot time To: freebsd-current@freebsd.org Date: Mon, 11 Aug 1997 14:50:15 -0400 (EDT) X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, When I boot my system, the pci init code scans 255 pci busses looking for devices (which are found on bus 0 & 1). So, I thought I might reduce the number of pci busses probed... My confusion? Well, in pci.c, we have: static int pci_bushigh(void) { if (pic_cfgopen() == 0) return (-1); return (0); } and the return value is used in: int pci_probe(pciattach *parent) int bushigh; int bus = 0; bushigh = pci_bushigh(); while (bus <= bushigh) { ... So, how is the system finding ANY pci busses? The code above seems to only return 0 or -1. Could someone enlighten me please? Thanks, John -- jwd@unx.sas.com (w) John W. De Boskey (919) 677-8000 x6915