blob: 25bbbdb61785bd5be97755c5d1c8b3cec5ed1ab8 (
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
31
32
33
|
#ifndef BCM43xx_ASM_UTIL_H_
#define BCM43xx_ASM_UTIL_H_
#include <stdlib.h>
#include <stdint.h>
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
#undef min
#undef max
#define min(x,y) ((x) < (y) ? (x) : (y))
#define max(x,y) ((x) > (y) ? (x) : (y))
void dump(const char *data,
size_t size,
const char *description);
void * xmalloc(size_t size);
char * xstrdup(const char *str);
typedef _Bool bool;
typedef uint16_t be16_t;
typedef uint32_t be32_t;
be16_t cpu_to_be16(uint16_t x);
be32_t cpu_to_be32(uint32_t x);
#endif /* BCM43xx_ASM_UTIL_H_ */
|