1 #ifndef HOST_COMPILE_H_
2 #define HOST_COMPILE_H_
4 #define printk warn
5 #define MODULE_DESCRIPTION(x)
6 #define MODULE_LICENSE(x)
7 #define MODULE_AUTHOR(x)
9 //#include <asm-generic/int-ll64.h>
10 typedef unsigned char u8;
11 typedef unsigned short int u16;
12 //typedef unsigned long int u32;
13 typedef unsigned int u32;
14 typedef signed char i8;
15 typedef signed short int i16;
16 typedef signed long int i32;
17 //#define crc32 aic_crc32
18 struct aic_firmware *aic_unpickle(void *pcfw, int n);
19 unsigned int crc32_local(unsigned int *pdata, int n);
20 #if 0
21 static inline unsigned int crc32(unsigned int seed, unsigned int *pdata, int n)
22 {
23 return crc32_local(pdata, n);
24 }
25 #endif
26 # define _GNU_SOURCE
27 # include <stdlib.h>
28 # include "utils.h"
29 # include <string.h>
30 # include <assert.h>
31 #ifndef EINVAL
32 # define EINVAL 1
33 #endif
35 // Hack, Hack
36 #ifndef AIC3XX_COPS_MDSP_D
37 #define AIC3XX_COPS_MDSP_D (0x00000003u)
38 #define AIC3XX_COPS_MDSP_A (0x00000030u)
39 #endif
41 #endif