blob: 0b3f9eb63a2f5373cf2c523b10a62662da2bdf63 [file] [log] [blame]
Nan Zhou14fe6692021-06-08 16:35:44 -07001// Copyright 2021 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15syntax = "proto2";
16
17// Note: it is important that the application is resilient to
18// incorrectly encoded protobuf's.
19
20message EventSeries {
21 enum PostCodeProtocol {
22 PROTOCOL_UNSPECIFIED = 0;
23 EIGHT_BIT_WITH_EXTENDED_CODES = 1;
24 NATIVE_32_BIT = 2;
25 }
26 // A fixed integer to confirm the type of this protobuf: 0x890ebd38ec325800
27 optional fixed64 magic = 1;
28 // Firmware version of the device reporting this data.
29 optional int32 fw_version = 2;
30 // Primary MAC address of the server this data is from (in network order).
31 optional bytes mac = 3;
32 // Time message was sent in microseconds.
33 optional int64 sent_time_us = 4;
34 // Zero or more POST codes. Some codes may be missed because the host can
35 // send out codes faster than the EC handles them. While standard values are
36 // only 8-bits, non-standard values above 255 may be used.
37 repeated int32 postcodes = 5;
38 reserved 6 to 13;
39 optional PostCodeProtocol postcodes_protocol = 14;
40}
41
42package platforms.nemora.proto;