pci: add region parameter to constructor
Add region parameter to constructor for PCI handler so that it knows
what value to send the host when requested.
Change-Id: Iefe1302aaaa43819f84b9730d01ff61dd545e2ef
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/pci_handler.hpp b/pci_handler.hpp
index 755ee18..b72cab9 100644
--- a/pci_handler.hpp
+++ b/pci_handler.hpp
@@ -20,13 +20,17 @@
class PciDataHandler : public DataInterface
{
public:
- PciDataHandler() = default;
+ explicit PciDataHandler(std::uint32_t regionAddress) :
+ regionAddress(regionAddress){};
bool open() override;
bool close() override;
std::vector<std::uint8_t> copyFrom(std::uint32_t length) override;
bool write(const std::vector<std::uint8_t>& configuration) override;
std::vector<std::uint8_t> read() override;
+
+ private:
+ std::uint32_t regionAddress;
};
} // namespace blobs