Debian Codegraph @

util/amdtools/ec_usb_pd_fw/utils.h

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2
3 #ifndef EC_USB_PD_FW__UTILS_H__
4 #define EC_USB_PD_FW__UTILS_H__
5
6 #include <stddef.h>
7 #include <stdbool.h>
8 #include <stdint.h>
9
10 struct mem_range {
11 uint8_t *start;
12 size_t length;
13 };
14 uint8_t crc8_itu(const uint8_t *data, int len);
15
16 struct mem_range map_file(const char path[], bool rw);
17
18 void unmap_file(struct mem_range store);
19
20 #endif // EC_USB_PD_FW__UTILS_H__