blob: 63470b0d9361f3afd7c57980c8a9d61bb98cd041 [file] [log] [blame] [edit]
// Copyright 2021 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef RMAD_UTILS_FLASHROM_UTILS_H_
#define RMAD_UTILS_FLASHROM_UTILS_H_
namespace rmad {
class FlashromUtils {
public:
FlashromUtils() = default;
virtual ~FlashromUtils() = default;
virtual bool GetApWriteProtectionStatus(bool* enabled) = 0;
virtual bool GetEcWriteProtectionStatus(bool* enabled) = 0;
virtual bool EnableApSoftwareWriteProtection() = 0;
virtual bool DisableSoftwareWriteProtection() = 0;
};
} // namespace rmad
#endif // RMAD_UTILS_FLASHROM_UTILS_H_