summaryrefslogtreecommitdiffstats
path: root/flags.hpp
blob: 2aca24c586c743942f2994645cc067d4fa2cdd5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

#include <cstdint>

namespace ipmi_flash
{

class FirmwareFlags
{
  public:
    enum UpdateFlags : std::uint16_t
    {
        openRead = (1 << 0),  /* Flag for reading. */
        openWrite = (1 << 1), /* Flag for writing. */
        ipmi = (1 << 8), /* Expect to send contents over IPMI BlockTransfer. */
        p2a = (1 << 9),  /* Expect to send contents over P2A bridge. */
        lpc = (1 << 10), /* Expect to send contents over LPC bridge. */
        /* New bridges starting with net densely pack the rest of the bits */
        net = (1 << 11), /* Expect to send contents over network bridge. */
        /* nextBridge = (2 << 11) */
    };
};

} // namespace ipmi_flash
OpenPOWER on IntegriCloud