PERFORCE change 195046 for review
John Baldwin
jhb at FreeBSD.org
Mon Jun 20 18:30:07 UTC 2011
http://p4web.freebsd.org/@@195046?ac=10
Change 195046 by jhb at jhb_jhbbsd on 2011/06/20 18:30:03
Style fixes and make pci_clear_bars actually do something.
Affected files ...
.. //depot/projects/pci/sys/dev/pci/pci.c#21 edit
Differences ...
==== //depot/projects/pci/sys/dev/pci/pci.c#21 (text+ko) ====
@@ -2494,7 +2494,8 @@
pci_write_config(dev, pm->pm_reg + 4, base >> 32, 4);
pm->pm_value = pci_read_config(dev, pm->pm_reg, 4);
if (ln2range == 64)
- pm->pm_value |= (pci_addr_t)pci_read_config(dev, pm->pm_reg + 4, 4) << 32;
+ pm->pm_value |= (pci_addr_t)pci_read_config(dev,
+ pm->pm_reg + 4, 4) << 32;
}
struct pci_map *
@@ -2690,9 +2691,9 @@
}
count = (pci_addr_t)1 << mapsize;
- if (basezero || base == pci_mapbase(testval)) {
+ if (basezero || base == pci_mapbase(testval) || pci_clear_bars) {
start = 0; /* Let the parent decide. */
- end = ~0ULL;
+ end = ~0ul;
} else {
start = base;
end = base + count - 1;
More information about the p4-projects
mailing list