xref: /openbmc/phosphor-ipmi-flash/flags.hpp (revision 545f5658)
184778b8dSPatrick Venture #pragma once
284778b8dSPatrick Venture 
384778b8dSPatrick Venture #include <cstdint>
484778b8dSPatrick Venture 
584778b8dSPatrick Venture namespace ipmi_flash
684778b8dSPatrick Venture {
784778b8dSPatrick Venture 
884778b8dSPatrick Venture class FirmwareFlags
984778b8dSPatrick Venture {
1084778b8dSPatrick Venture   public:
1184778b8dSPatrick Venture     enum UpdateFlags : std::uint16_t
1284778b8dSPatrick Venture     {
1384778b8dSPatrick Venture         openRead = (1 << 0),  /* Flag for reading. */
1484778b8dSPatrick Venture         openWrite = (1 << 1), /* Flag for writing. */
1584778b8dSPatrick Venture         ipmi = (1 << 8), /* Expect to send contents over IPMI BlockTransfer. */
1684778b8dSPatrick Venture         p2a = (1 << 9),  /* Expect to send contents over P2A bridge. */
1784778b8dSPatrick Venture         lpc = (1 << 10), /* Expect to send contents over LPC bridge. */
18*545f5658SBenjamin Fair         /* New bridges starting with net densely pack the rest of the bits */
19*545f5658SBenjamin Fair         net = (1 << 11), /* Expect to send contents over network bridge. */
20*545f5658SBenjamin Fair         /* nextBridge = (2 << 11) */
2184778b8dSPatrick Venture     };
2284778b8dSPatrick Venture };
2384778b8dSPatrick Venture 
2484778b8dSPatrick Venture } // namespace ipmi_flash
25