From owner-freebsd-hackers Fri May 25 8:56:39 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 2C42137B422 for ; Fri, 25 May 2001 08:56:35 -0700 (PDT) (envelope-from imp@billy-club.village.org) Received: from billy-club.village.org (billy-club.village.org [10.0.0.3]) by rover.village.org (8.11.3/8.11.3) with ESMTP id f4PFuX670399; Fri, 25 May 2001 09:56:34 -0600 (MDT) (envelope-from imp@billy-club.village.org) Received: from billy-club.village.org (localhost [127.0.0.1]) by billy-club.village.org (8.11.2/8.8.3) with ESMTP id f4PFujl42699; Fri, 25 May 2001 09:56:45 -0600 (MDT) Message-Id: <200105251556.f4PFujl42699@billy-club.village.org> To: j mckitrick Subject: Re: removing inb()/outb() from devices Cc: freebsd-hackers@FreeBSD.ORG In-reply-to: Your message of "Fri, 25 May 2001 16:40:34 BST." <20010525164033.A21603@dogma.freebsd-uk.eu.org> References: <20010525164033.A21603@dogma.freebsd-uk.eu.org> <20010523171539.A43898@dogma.freebsd-uk.eu.org> <200105250206.f4P26wl39972@billy-club.village.org> Date: Fri, 25 May 2001 09:56:45 -0600 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20010525164033.A21603@dogma.freebsd-uk.eu.org> j mckitrick writes: : In the probe routines, the values of the hardware ports are changing from : one chipset to the next. Throughout the ppc driver, the regular macros are : used to access the parallel port control registers, but in the probe routine : it reverts to inb/outb, probably because it makes no sense to allocate a : port for 2 or three operations, then deallocate it and choose another one. Yes, but it does make sense to do that. Some busses you cannot access the resources until they have been activated. pcmcia comes to mind :-). Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message