| #include "internal/sys.hpp" |
| #include <ipmiblob/blob_interface.hpp> |
| constexpr std::uint16_t aspeedVendorId = 0x1a03; |
| constexpr std::uint16_t aspeedDeviceId = 0x2000; |
| constexpr std::size_t aspeedP2aOffset = 0x10000; |
| constexpr std::size_t aspeedP2aConfig = 0x0f000; |
| constexpr std::size_t aspeedP2aBridge = 0x0f004; |
| constexpr std::uint32_t p2ABridgeEnabled = 0x1; |
| class P2aDataHandler : public DataInterface |
| P2aDataHandler(ipmiblob::BlobInterface* blob, HostIoInterface* io, |
| const internal::Sys* sys = &internal::sys_impl) : |
| io(io), pci(pci), sys(sys) |
| bool sendContents(const std::string& input, std::uint16_t session) override; |
| ipmi_flash::FirmwareBlobHandler::UpdateFlags supportedType() const override |
| return ipmi_flash::FirmwareBlobHandler::UpdateFlags::p2a; |
| ipmiblob::BlobInterface* blob; |
| const internal::Sys* sys; |