lpc_aspeed: add mapping implementation
Add mapper implementation for Aspeed.
Change-Id: I4bc1cbaaa6c0bf57424b0c881cb087153d63597c
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/internal/sys.cpp b/internal/sys.cpp
index b61dfea..c87d5e6 100644
--- a/internal/sys.cpp
+++ b/internal/sys.cpp
@@ -17,6 +17,7 @@
#include "sys.hpp"
#include <fcntl.h>
+#include <sys/ioctl.h>
#include <sys/mman.h>
#include <unistd.h>
@@ -53,6 +54,11 @@
return ::getpagesize();
}
+int SysImpl::ioctl(int fd, unsigned long request, void* param) const
+{
+ return ::ioctl(fd, request, param);
+}
+
SysImpl sys_impl;
} // namespace internal