blob: 94bc73d0dfa38ea035a50af2843b2ce0bed6253a [file] [log] [blame]
Patrick Venture1cde5f92018-11-07 08:26:47 -08001#include "lpc_handler.hpp"
2
3#include <cstdint>
Patrick Venture8c535332018-11-08 15:58:00 -08004#include <cstring>
Patrick Venture1cde5f92018-11-07 08:26:47 -08005#include <vector>
6
7namespace blobs
8{
9
10std::vector<std::uint8_t> LpcDataHandler::copyFrom(std::uint32_t length)
11{
12 /* TODO: implement this. */
13 return {};
14}
15
Patrick Venture8c535332018-11-08 15:58:00 -080016bool LpcDataHandler::write(const std::vector<std::uint8_t>& configuration)
17{
18 struct LpcRegion lpcRequest;
19
20 if (configuration.size() != sizeof(lpcRequest))
21 {
22 return false;
23 }
24
25 std::memcpy(&lpcRequest, configuration.data(), configuration.size());
26 /* TODO: Implement the call to the driver or aspeed lpc ctrl library to send
27 * ioctl.
28 */
29
30 return false;
31}
32
33std::vector<std::uint8_t> LpcDataHandler::read()
34{
35 return {};
36}
37
Patrick Venture1cde5f92018-11-07 08:26:47 -080038} // namespace blobs