blob: 2aca24c586c743942f2994645cc067d4fa2cdd5b [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. */
Benjamin Fair545f5652019-10-09 14:18:54 -070018 /* New bridges starting with net densely pack the rest of the bits */
19 net = (1 << 11), /* Expect to send contents over network bridge. */
20 /* nextBridge = (2 << 11) */
Patrick Venture84778b82019-06-26 20:11:09 -070021 };
22};
23
24} // namespace ipmi_flash