]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Simplify the PCI bus dma tag code a bit. First, don't create a tag at
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 7 Mar 2012 18:50:33 +0000 (18:50 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Wed, 7 Mar 2012 18:50:33 +0000 (18:50 +0000)
commit87663509242477bac68daf32a9a2eeed6e13f54e
tree4d3ead6ea283ee1fae537cf95e0de080a44023bd
parent7ad50a360b15259e51b30578e4fb0a28acd01d7b
Simplify the PCI bus dma tag code a bit.  First, don't create a tag at
all for platforms that only have 32-bit bus addresses.  Second, remove
the 'tag_valid' flag from the softc.  Instead, if we don't create a
tag in pci_attach_common(), just cache the value of our parent's tag
so that we always have a valid tag to return.
sys/dev/pci/pci.c
sys/dev/pci/pci_private.h