• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2020 The ChromiumOS Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5syntax = "proto3";
6
7package chromiumos.config.api;
8
9option go_package = "go.chromium.org/chromiumos/config/go/api";
10
11// Uniquely identifies a hardware configuration that will be developed
12// for a given hardware design project.
13message DesignConfigId {
14  string value = 1;
15
16  // Config used to scan an actual device to determine a given DesignConfig
17  message ScanConfig {
18    reserved 1, 2;
19    reserved "smbios_name_match", "device_tree_compatible_match";
20
21    oneof firmware_name_match {
22      // String pattern (partial) that is matched against the
23      // contents of first available:
24      // /proc/device-tree/firmware/chromeos/readonly-firmware-version
25      // /sys/devices/platform/chromeos_acpi/FRID
26      string frid = 4;
27    }
28
29    // SKU configured during board manufacturing. Should match the value
30    // returned by "cros_config /identity sku-id" (which abstracts how SKU is
31    // encoded on the specific platform). Must be in the range [0, 0x7FFFFFFF].
32    uint32 firmware_sku = 3;
33  }
34}
35