summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pci_private.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2012-03-07 18:50:33 +0000
committerjhb <jhb@FreeBSD.org>2012-03-07 18:50:33 +0000
commit8696e15fa74558a90bcdc6bb97b3381c0327c92c (patch)
tree4d3ead6ea283ee1fae537cf95e0de080a44023bd /sys/dev/pci/pci_private.h
parent30c566d1d8e6e21a5fd40a35bf859a12e9ba03e1 (diff)
downloadFreeBSD-src-8696e15fa74558a90bcdc6bb97b3381c0327c92c.zip
FreeBSD-src-8696e15fa74558a90bcdc6bb97b3381c0327c92c.tar.gz
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.
Diffstat (limited to 'sys/dev/pci/pci_private.h')
-rw-r--r--sys/dev/pci/pci_private.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/dev/pci/pci_private.h b/sys/dev/pci/pci_private.h
index 5a083bf..b4c0c9e 100644
--- a/sys/dev/pci/pci_private.h
+++ b/sys/dev/pci/pci_private.h
@@ -40,7 +40,6 @@ DECLARE_CLASS(pci_driver);
struct pci_softc {
bus_dma_tag_t sc_dma_tag;
- int sc_dma_tag_valid;
};
extern int pci_do_power_resume;
OpenPOWER on IntegriCloud