pci_handler: add aspeed-p2a-ctrl path
Add the path to the aspeed-p2a-ctrl device for mapping access.
The need to map, read, etc, is similar to lpc_handler, and they may
converge.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I0b8e7bf1581f77abb819d10dba136569034c21e9
diff --git a/pci_handler.cpp b/pci_handler.cpp
index 3f9b99f..b82d16a 100644
--- a/pci_handler.cpp
+++ b/pci_handler.cpp
@@ -18,11 +18,14 @@
#include <cstdint>
#include <cstring>
+#include <string>
#include <vector>
namespace blobs
{
+const std::string PciDataHandler::p2aControlPath = "/dev/aspeed-p2a-ctrl";
+
bool PciDataHandler::open()
{
/* TODO: For the ASPEED P2A driver, this method will enable the memory
diff --git a/pci_handler.hpp b/pci_handler.hpp
index bb9e429..f99a811 100644
--- a/pci_handler.hpp
+++ b/pci_handler.hpp
@@ -4,6 +4,7 @@
#include "internal/sys.hpp"
#include <cstdint>
+#include <string>
#include <vector>
namespace blobs
@@ -37,6 +38,7 @@
private:
std::uint32_t regionAddress;
const internal::Sys* sys;
+ static const std::string p2aControlPath;
};
} // namespace blobs