blob: a6422113ce7f0cea82672ce2cfeaa16b4ec5b29e [file] [log] [blame]
// Copyright 2018 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "diagnostics/wilco_dtc_supportd/ec_constants.h"
#include <poll.h>
namespace diagnostics {
// Folder path exposed by sysfs EC driver.
const char kEcDriverSysfsPath[] = "sys/bus/platform/devices/GOOG000C:00/";
// Folder path to EC properties exposed by sysfs EC driver. Relative path to
// |kEcDriverSysfsPath|.
const char kEcDriverSysfsPropertiesPath[] = "properties/";
// Max request and response payload size for EC telemetry command.
const int64_t kEcGetTelemetryPayloadMaxSize = 32;
// Devfs node exposed by EC driver to EC telemetry data.
const char kEcGetTelemetryFilePath[] = "dev/wilco_telem0";
// EC event file path.
const char kEcEventFilePath[] = "dev/wilco_event0";
// The driver is expected to populate the |kEcEventFilePath| file, therefore
// this constant holds the specific flag for use with poll().
const int16_t kEcEventFilePollEvents = POLLIN;
} // namespace diagnostics