1 #ifndef BCM43xx_ASM_UTIL_H_
2 #define BCM43xx_ASM_UTIL_H_
8 #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
12 #define min(x,y) ((x) < (y) ? (x) : (y))
13 #define max(x,y) ((x) > (y) ? (x) : (y))
16 void dump(const char *data,
18 const char *description);
21 void * xmalloc(size_t size);
22 char * xstrdup(const char *str);
27 typedef uint16_t be16_t;
28 typedef uint32_t be32_t;
30 be16_t cpu_to_be16(uint16_t x);
31 be32_t cpu_to_be32(uint32_t x);
33 #endif /* BCM43xx_ASM_UTIL_H_ */