This source file includes following definitions.
- zx_readl
- zx_writel
- zx_writel_mask
1
2
3
4
5
6
7 #ifndef __ZX_DRM_DRV_H__
8 #define __ZX_DRM_DRV_H__
9
10 extern struct platform_driver zx_crtc_driver;
11 extern struct platform_driver zx_hdmi_driver;
12 extern struct platform_driver zx_tvenc_driver;
13 extern struct platform_driver zx_vga_driver;
14
15 static inline u32 zx_readl(void __iomem *reg)
16 {
17 return readl_relaxed(reg);
18 }
19
20 static inline void zx_writel(void __iomem *reg, u32 val)
21 {
22 writel_relaxed(val, reg);
23 }
24
25 static inline void zx_writel_mask(void __iomem *reg, u32 mask, u32 val)
26 {
27 u32 tmp;
28
29 tmp = zx_readl(reg);
30 tmp = (tmp & ~mask) | (val & mask);
31 zx_writel(reg, tmp);
32 }
33
34 #endif