summaryrefslogtreecommitdiff
path: root/src/dmidecode/util.h
blob: b546f64f368575d4f3aa0ee87116578d3e0e548c (plain)
1
2
3
4
5
6
7
8
#include <sys/types.h>

#include "types.h"

#define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0]))

int checksum(const u8 *buf, size_t len);
void *mem_chunk(size_t base, size_t len, const char *devmem);