This patch clarifies/adds comments and changes names in device/pci_device.c<br><br>It also changes %p debug statements in various places.  I think they get in<br>the way of diffs when you have log files to compare.  I don't want to see the<br>
allocation differences most of the time.  I turned most of them into NULL<br>checks.  If they were supposed to be "Where are we in device allocation?"<br>checks, we could make them into that too.<br><br>It's a work-in-progress. Comments welcome.<br>
<br>I think most of the changes are self explanatory, but this one might not be:<br><br>If you are reading all the BARs from a device, and you come to a 64-bit BAR.<br>No matter why you skip it, you should skip it as a 64-bit BAR, and not try to<br>
read the upper half as the next 32-bit BAR.<br><br>Because of that, set the 64-bit flag IORESOURCE_PCI64 early, and don't clear<br>it on return.<br><br>Signed-off-by: Myles Watson <<a href="mailto:mylesgw@gmail.com">mylesgw@gmail.com</a>><br>
<br>Thanks,<br>Myles<br>