blob: 0d3e777dc544d7f1dbd6161a0ce614454dcef373 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/* Copyright 2012 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.
*/
/* Version number for Chrome EC */
#ifndef __CROS_EC_VERSION_H
#define __CROS_EC_VERSION_H
#include "common.h"
#include "system.h"
#define CROS_EC_IMAGE_DATA_COOKIE1 0xce778899
#define CROS_EC_IMAGE_DATA_COOKIE2 0xceaabbdd
struct image_data {
uint32_t cookie1;
char version[32];
uint32_t size;
int32_t rollback_version;
uint32_t cookie2;
} __packed;
extern const struct image_data current_image_data;
extern const char build_info[];
extern const char __image_data_offset[];
extern const void *__image_size;
/**
* Get the number of commits of an image
*
* @return Number of commits in integer or 0 on error
*/
int ver_get_num_commits(enum ec_image copy);
#endif /* __CROS_EC_VERSION_H */
|