blob: d7c89d5669ecc547f48e52248ffd93430af8aec1 [file] [log] [blame]
Patrick Venture84778b82019-06-26 20:11:09 -07001#pragma once
2
3#include <cstdint>
4
5namespace ipmi_flash
6{
7
8class FirmwareFlags
9{
10 public:
11 enum UpdateFlags : std::uint16_t
12 {
13 openRead = (1 << 0), /* Flag for reading. */
14 openWrite = (1 << 1), /* Flag for writing. */
15 ipmi = (1 << 8), /* Expect to send contents over IPMI BlockTransfer. */
16 p2a = (1 << 9), /* Expect to send contents over P2A bridge. */
17 lpc = (1 << 10), /* Expect to send contents over LPC bridge. */
18 };
19};
20
21} // namespace ipmi_flash