tools: p2a: check aspeed bridge
Check whether the pci-to-ahb bridge is enabled. It should be enabled
because this comes after the firmware blob is opened for writing.
Tested: Verified it reports the correct state of the value.
Change-Id: I04bd21fdbf65938164f5845c0ec46e2231b17bd9
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/tools/pci.hpp b/tools/pci.hpp
index 96f1ea4..37cd736 100644
--- a/tools/pci.hpp
+++ b/tools/pci.hpp
@@ -18,11 +18,12 @@
*/
struct PciDevice
{
- int vid;
- int did;
- int bus;
- int dev;
- int func;
+ std::uint16_t vid;
+ std::uint16_t did;
+ std::uint8_t bus;
+ std::uint8_t dev;
+ std::uint8_t func;
+ pciaddr_t bars[6];
};
/**
@@ -31,8 +32,8 @@
*/
struct PciFilter
{
- int vid;
- int did;
+ std::uint16_t vid;
+ std::uint16_t did;
};
class PciUtilInterface