Patrick Venture | 3356975 | 2018-03-12 18:56:14 -0700 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Kun Yi | 35b6c67 | 2018-06-11 20:44:43 -0700 | [diff] [blame] | 3 | #include <sdbusplus/bus.hpp> |
| 4 | #include <sdbusplus/server.hpp> |
Patrick Venture | b5754fd | 2018-09-10 13:13:58 -0700 | [diff] [blame] | 5 | #include <xyz/openbmc_project/State/Boot/Raw/server.hpp> |
Kun Yi | 35b6c67 | 2018-06-11 20:44:43 -0700 | [diff] [blame] | 6 | |
Patrick Venture | 3356975 | 2018-03-12 18:56:14 -0700 | [diff] [blame] | 7 | /* The LPC snoop on port 80h is mapped to this dbus path. */ |
Jonathan Doman | 60252ee | 2020-12-21 20:44:59 -0800 | [diff] [blame] | 8 | #define SNOOP_OBJECTPATH "/xyz/openbmc_project/state/boot/raw0" |
Patrick Venture | 3356975 | 2018-03-12 18:56:14 -0700 | [diff] [blame] | 9 | /* The LPC snoop on port 80h is mapped to this dbus service. */ |
| 10 | #define SNOOP_BUSNAME "xyz.openbmc_project.State.Boot.Raw" |
Kun Yi | 35b6c67 | 2018-06-11 20:44:43 -0700 | [diff] [blame] | 11 | |
| 12 | template <typename... T> |
| 13 | using ServerObject = typename sdbusplus::server::object::object<T...>; |
| 14 | using PostInterface = sdbusplus::xyz::openbmc_project::State::Boot::server::Raw; |
| 15 | using PostObject = ServerObject<PostInterface>; |
| 16 | |
| 17 | class PostReporter : public PostObject |
| 18 | { |
| 19 | public: |
| 20 | PostReporter(sdbusplus::bus::bus& bus, const char* objPath, bool defer) : |
| 21 | PostObject(bus, objPath, defer) |
| 22 | { |
| 23 | } |
| 24 | }; |