Subject: Re: high-speed mode for Cyberserial PCI, simplified
To: Frederick Bruckman <fredb@immanent.net>
From: Jason Thorpe <thorpej@wasabisystems.com>
List: tech-kern
Date: 02/03/2004 18:34:28
--Apple-Mail-19-918104085
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed
On Feb 3, 2004, at 4:13 PM, Frederick Bruckman wrote:
> Originally, I tried to use bus_space_barrier(...,
> BUS_SPACE_BARRIER_READ_BEFORE_WRITE) before pci_conf_write() [*].
> My thinking was, that the compiler would see the registers as being
> set by pci_conf_read(), whereas you might rather think of them as
> being set by bus_space_barrier(), as a side-effect; ergo "volatile".
PCI configuration space does not require barriers, and you don't need
volatile there, either. (PCI configuration space is handled through a
functional interface, and so there is already an implicit memory
clobber.)
-- Jason R. Thorpe <thorpej@wasabisystems.com>
--Apple-Mail-19-918104085
content-type: application/pgp-signature; x-mac-type=70674453;
name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)
iD8DBQFAIFo0OpVKkaBm8XkRAmt/AJ9FJMQA0fVUR2wMU4pOulOx87HETwCgjd1d
LbJHrwhKDYVy8xJflGlJDkM=
=BVn0
-----END PGP SIGNATURE-----
--Apple-Mail-19-918104085--