Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 May 2001 09:56:45 -0600
From:      Warner Losh <imp@village.org>
To:        j mckitrick <jcm@freebsd-uk.eu.org>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: removing inb()/outb() from devices 
Message-ID:  <200105251556.f4PFujl42699@billy-club.village.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> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105251556.f4PFujl42699>