summaryrefslogtreecommitdiffstats
path: root/pci_handler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pci_handler.cpp')
-rw-r--r--pci_handler.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/pci_handler.cpp b/pci_handler.cpp
index 51a2ca5..56016c7 100644
--- a/pci_handler.cpp
+++ b/pci_handler.cpp
@@ -98,8 +98,10 @@ bool PciDataHandler::close()
std::vector<std::uint8_t> PciDataHandler::copyFrom(std::uint32_t length)
{
- /* TODO: implement this. */
- return {};
+ std::vector<std::uint8_t> results(length);
+ std::memcpy(results.data(), mapped, length);
+
+ return results;
}
bool PciDataHandler::writeMeta(const std::vector<std::uint8_t>& configuration)
OpenPOWER on IntegriCloud