rcutorture: Eliminate unused ts_rem local from rcu_trace_clock_local()
[linux/fpc-iii.git] / drivers / gpu / drm / zte / zx_drm_drv.h
blob2a8cdc5f8be4f15afe4e0852e8cb21cf8aeeb22d
1 /*
2 * Copyright 2016 Linaro Ltd.
3 * Copyright 2016 ZTE Corporation.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 */
11 #ifndef __ZX_DRM_DRV_H__
12 #define __ZX_DRM_DRV_H__
14 extern struct platform_driver zx_crtc_driver;
15 extern struct platform_driver zx_hdmi_driver;
16 extern struct platform_driver zx_tvenc_driver;
17 extern struct platform_driver zx_vga_driver;
19 static inline u32 zx_readl(void __iomem *reg)
21 return readl_relaxed(reg);
24 static inline void zx_writel(void __iomem *reg, u32 val)
26 writel_relaxed(val, reg);
29 static inline void zx_writel_mask(void __iomem *reg, u32 mask, u32 val)
31 u32 tmp;
33 tmp = zx_readl(reg);
34 tmp = (tmp & ~mask) | (val & mask);
35 zx_writel(reg, tmp);
38 #endif /* __ZX_DRM_DRV_H__ */