aboutsummaryrefslogtreecommitdiff
path: root/src/ec/hp/kbc1126/ecfw_ptr.h
blob: 80f980d23aa62033cb3aa5a7bc11b177466f4543 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef _EC_HP_KBC1126_PTR_H
#define _EC_HP_KBC1126_PTR_H

#include <stdint.h>

struct __packed ecfw_addr {
	/* 8-byte offset of firmware blob in big endian */
	uint16_t off;
	/* bitwise inverse of "off", for error checking */
	uint16_t inv;
};

struct __packed ecfw_ptr {
	struct ecfw_addr fw1;
	struct ecfw_addr fw2;
};

#endif