From owner-freebsd-hackers Fri May 25 7: 0:21 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from serenity.mcc.ac.uk (serenity.mcc.ac.uk [130.88.200.93]) by hub.freebsd.org (Postfix) with ESMTP id B2BDD37B422 for ; Fri, 25 May 2001 07:00:16 -0700 (PDT) (envelope-from jcm@freebsd-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97] ident=root) by serenity.mcc.ac.uk with esmtp (Exim 2.05 #6) id 153I8Q-000ESR-00; Fri, 25 May 2001 15:00:11 +0100 Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.11.1/8.11.1) id f4PE09919799; Fri, 25 May 2001 15:00:09 +0100 (BST) (envelope-from jcm) Date: Fri, 25 May 2001 15:00:09 +0100 From: j mckitrick To: Warner Losh Cc: freebsd-hackers@freebsd.org Subject: Re: removing inb()/outb() from devices Message-ID: <20010525150009.A19674@dogma.freebsd-uk.eu.org> References: <20010523171539.A43898@dogma.freebsd-uk.eu.org> <200105250206.f4P26wl39972@billy-club.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200105250206.f4P26wl39972@billy-club.village.org>; from imp@village.org on Thu, May 24, 2001 at 08:06:58PM -0600 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 On Thu, May 24, 2001 at 08:06:58PM -0600, Warner Losh wrote: | In message <20010523171539.A43898@dogma.freebsd-uk.eu.org> j mckitrick writes: | : I'd like to finalize the newbus work by changing inb()/outb() calls to | : bus_space_write calls. Is there a device where this has been partially done | : already? I'd like to see the old and new styles, then i would fix the | : vpo/imm zip driver first, since i know that code well. After that, i could | : start working my way through the tree. | | Look at what I just did to the pcic_isa.c and pcic.c drivers wrt to | converting from using inb/outb to using bus_space routines. Okay, here's what i will do, then. I will just port all the macros to bus_space calls, and add bus_space_handle and tag to the softc struct for ppc. There are still a lot of direct inb/outb calls, as well as the multi-byte transfer versions. I will try to get those as well. jcm -- "I drank WHAT ?!" - Socrates To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message