firmware: add read/write flags to enum
Add read/write flags to header the tool can access.
Note: Since this tool is meant to be run from the host and not the BMC,
it's not 100% clear how it'll be built and installed properly in this
configuration.
Change-Id: Ifbeab169026b6651b815b87b3c1950e73f8dfaae
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/firmware_handler.hpp b/firmware_handler.hpp
index 897606c..728fdca 100644
--- a/firmware_handler.hpp
+++ b/firmware_handler.hpp
@@ -71,6 +71,8 @@
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. */