2 * Support for Intel Camera Imaging ISP subsystem.
3 * Copyright (c) 2015, Intel Corporation.
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
9 * This program is distributed in the hope it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 #ifndef __TYPE_SUPPORT_H_INCLUDED__
16 #define __TYPE_SUPPORT_H_INCLUDED__
20 * Platform specific types.
22 * Per the DLI spec, types are in "type_support.h" and
23 * "platform_support.h" is for unclassified/to be refactored
24 * platform specific definitions.
27 #define IA_CSS_UINT8_T_BITS 8
28 #define IA_CSS_UINT16_T_BITS 16
29 #define IA_CSS_UINT32_T_BITS 32
30 #define IA_CSS_INT32_T_BITS 32
31 #define IA_CSS_UINT64_T_BITS 64
35 /* For ATE compilation define the bool */
47 #define HOST_ADDRESS(x) (unsigned long long)(x)
49 #define HOST_ADDRESS(x) (unsigned long)(x)
52 #elif defined(__KERNEL__)
56 #include <linux/types.h>
57 #include <linux/limits.h>
58 #include <linux/errno.h>
59 #define HOST_ADDRESS(x) (unsigned long)(x)
61 #elif defined(__GNUC__)
62 #ifndef __STDC_LIMIT_MACROS
63 #define __STDC_LIMIT_MACROS 1
70 #define HOST_ADDRESS(x) (unsigned long)(x)
72 #else /* default is for the FIST environment */
78 #define HOST_ADDRESS(x) (unsigned long)(x)
82 #endif /* __TYPE_SUPPORT_H_INCLUDED__ */