PERFORCE change 207578 for review
John Baldwin
jhb at FreeBSD.org
Wed Mar 7 09:43:07 UTC 2012
http://p4web.freebsd.org/@@207578?ac=10
Change 207578 by jhb at jhb_kavik on 2012/03/07 09:43:00
Don't create a tag at all for 32-bit platforms.
Affected files ...
.. //depot/projects/pci/sys/dev/pci/pci.c#35 edit
Differences ...
==== //depot/projects/pci/sys/dev/pci/pci.c#35 (text+ko) ====
@@ -72,8 +72,6 @@
#if (BUS_SPACE_MAXADDR > 0xFFFFFFFF)
#define PCI_DMA_BOUNDARY 0x100000000
-#else
-#define PCI_DMA_BOUNDARY 0
#endif
#define PCIR_IS_BIOS(cfg, reg) \
@@ -3237,7 +3235,10 @@
pci_attach_common(device_t dev)
{
struct pci_softc *sc;
- int busno, domain, error, tag_valid;
+ int busno, domain;
+#ifdef PCI_DMA_BOUNDARY
+ int error, tag_valid;
+#endif
#ifdef PCI_RES_BUS
int rid;
#endif
@@ -3257,6 +3258,7 @@
if (bootverbose)
device_printf(dev, "domain=%d, physical bus=%d\n",
domain, busno);
+#ifdef PCI_DMA_BOUNDARY
tag_valid = 0;
if (device_get_devclass(device_get_parent(device_get_parent(dev))) !=
devclass_find("pci")) {
@@ -3271,6 +3273,7 @@
tag_valid = 1;
}
if (!tag_valid)
+#endif
sc->sc_dma_tag = bus_get_dma_tag(dev);
return (0);
}
More information about the p4-projects
mailing list