blob: 0780a8deac7a3c10386f278a137b8c800b9d3d5b [file]
// Copyright 2023 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "libec/flash_region_info_command.h"
namespace ec {
FlashRegionInfoCommand::FlashRegionInfoCommand(enum ec_flash_region region)
: EcCommand(EC_CMD_FLASH_REGION_INFO, 1) {
Req()->region = region;
}
uint32_t FlashRegionInfoCommand::GetOffset() const {
return Resp()->offset;
}
uint32_t FlashRegionInfoCommand::GetSize() const {
return Resp()->size;
}
} // namespace ec