GNU Linux-libre 4.14.251-gnu1
[releases.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / hive_isp_css_include / platform_support.h
1 /*
2  * Support for Intel Camera Imaging ISP subsystem.
3  * Copyright (c) 2015, Intel Corporation.
4  *
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.
8  *
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
12  * more details.
13  */
14
15 #ifndef __PLATFORM_SUPPORT_H_INCLUDED__
16 #define __PLATFORM_SUPPORT_H_INCLUDED__
17
18 /**
19 * @file
20 * Platform specific includes and functionality.
21 */
22
23 #include "storage_class.h"
24 #include <linux/delay.h>
25 #include <linux/kernel.h>
26 #include <linux/string.h>
27
28 /* For definition of hrt_sleep() */
29 #include "hive_isp_css_custom_host_hrt.h"
30
31 #define UINT16_MAX USHRT_MAX
32 #define UINT32_MAX UINT_MAX
33 #define UCHAR_MAX  (255)
34
35 #define CSS_ALIGN(d, a) d __attribute__((aligned(a)))
36
37 /*
38  * Put here everything __KERNEL__ specific not covered in
39  * "assert_support.h", "math_support.h", etc
40  */
41
42 #endif /* __PLATFORM_SUPPORT_H_INCLUDED__ */