summaryrefslogtreecommitdiff
path: root/include/version.h
blob: 8853d76561b2cb60fdb3cb2b9bdfca1f87dd893e (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
/* Copyright (c) 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"

#define CROS_EC_VERSION_COOKIE1 0xce112233
#define CROS_EC_VERSION_COOKIE2 0xce445566

struct version_struct {
	uint32_t cookie1;
	char version[32];
	uint32_t cookie2;
} __packed;

extern const struct version_struct version_data;
extern const char build_info[];
extern const char __version_struct_offset[];

/**
 * Get the number of commits field from version string.
 */
uint32_t ver_get_numcommits(void);
#endif  /* __CROS_EC_VERSION_H */