Date: Mon, 20 Jun 2011 18:30:07 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 195046 for review Message-ID: <201106201830.p5KIU7NI071296@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@195046?ac=10 Change 195046 by jhb@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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106201830.p5KIU7NI071296>