• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Allwinner SoCs display driver.
3  *
4  * Copyright (C) 2016 Allwinner.
5  *
6  * This file is licensed under the terms of the GNU General Public
7  * License version 2.  This program is licensed "as is" without any
8  * warranty of any kind, whether express or implied.
9  */
10 
11 #ifndef _DRV_VDPO_COMMON_H
12 #define _DRV_VDPO_COMMON_H
13 
14 #include <linux/module.h>
15 #include <linux/uaccess.h>
16 #include <asm/memory.h>
17 #include <asm/unistd.h>
18 #include "asm-generic/int-ll64.h"
19 #include "linux/kernel.h"
20 #include "linux/mm.h"
21 #include "linux/semaphore.h"
22 #include <linux/vmalloc.h>
23 #include <linux/fs.h>
24 #include <linux/dma-mapping.h>
25 #include <linux/sched.h>
26 #include <linux/kthread.h>
27 #include <linux/err.h>
28 #include <linux/delay.h>
29 #include <linux/platform_device.h>
30 #include <linux/errno.h>
31 #include <linux/slab.h>
32 #include <linux/delay.h>
33 #include <linux/init.h>
34 #include <linux/dma-mapping.h>
35 #include <linux/interrupt.h>
36 #include <linux/clk.h>
37 #include <linux/cdev.h>
38 #include <linux/types.h>
39 #include <linux/module.h>
40 #include <linux/of_irq.h>
41 #include <linux/of_address.h>
42 #include <linux/of_iommu.h>
43 #include <linux/of_device.h>
44 #include <linux/of_platform.h>
45 #include <linux/of_gpio.h>
46 #include <linux/compat.h>
47 #include <video/sunxi_display2.h>
48 
49 #define VDPO_DEBUG_LEVEL 0
50 
51 #define vdpo_wrn(fmt, ...)                                                     \
52 	pr_warn("[VDPO] %s:%d " fmt "", __func__, __LINE__, ##__VA_ARGS__)
53 
54 #if VDPO_DEBUG_LEVEL == 2
55 #define vdpo_here pr_warn("[VDPO] %s:%d\n", __func__, __LINE__)
56 #else
57 #define vdpo_here
58 #endif /*endif VDPO_DEBUG */
59 
60 #if VDPO_DEBUG_LEVEL >= 1
61 #define vdpo_dbg(fmt, ...)                                                     \
62 	pr_warn("[VDPO] %s:%d " fmt "", __func__, __LINE__, ##__VA_ARGS__)
63 #else
64 #define vdpo_dbg(fmt, ...)
65 #endif /*endif VDPO_DEBUG */
66 
67 #endif /*End of file*/
68