From owner-freebsd-new-bus Tue May 29 7:24:10 2001 Delivered-To: freebsd-new-bus@freebsd.org Received: from probity.mcc.ac.uk (probity.mcc.ac.uk [130.88.200.94]) by hub.freebsd.org (Postfix) with ESMTP id D85A237B43C for ; Tue, 29 May 2001 07:24:08 -0700 (PDT) (envelope-from jcm@freebsd-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97] ident=root) by probity.mcc.ac.uk with esmtp (Exim 2.05 #4) id 154kPn-0005KA-00 for freebsd-new-bus@freebsd.org; Tue, 29 May 2001 15:24:07 +0100 Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.11.1/8.11.1) id f4TEO6C26552 for freebsd-new-bus@freebsd.org; Tue, 29 May 2001 15:24:06 +0100 (BST) (envelope-from jcm) Date: Tue, 29 May 2001 15:24:06 +0100 From: j mckitrick To: freebsd-new-bus@freebsd.org Subject: correct newbus handling in probe() functions Message-ID: <20010529152406.A26446@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Some devices, such as ppc, go through a series of very different addresses when probing for different chipsets. In drivers where the io port does not change, the standard newbus policy appears to be to assign a bus handle and tag to this port, and access it with standard newbus calls. What about ppc, where probing involves read/writes to one io port, then select another, then another, etc? Should these continue to use inb/outb, or should each one go through the overhead of assigning bus handles and tags to each possible port value during the probe? jcm -- "I drank WHAT ?!" - Socrates To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message