Date: Wed, 7 Mar 2012 09:43:06 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 207578 for review Message-ID: <201203070943.q279h6n8071609@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@207578?ac=10 Change 207578 by jhb@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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203070943.q279h6n8071609>