/* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef MEC152X__UTILS_H__ #define MEC152X__UTILS_H__ #include #include #include struct mem_range { uint8_t *start; size_t length; }; uint8_t crc8_itu(const uint8_t *data, int len); struct mem_range map_file(const char path[], bool rw); void unmap_file(struct mem_range store); #endif // MEC152X__UTILS_H__