.. | .. |
---|
11 | 11 | int rockchip_iommu_enable(struct device *dev); |
---|
12 | 12 | int rockchip_iommu_disable(struct device *dev); |
---|
13 | 13 | bool rockchip_iommu_is_enabled(struct device *dev); |
---|
| 14 | +int rockchip_pagefault_done(struct device *master_dev); |
---|
| 15 | +void __iomem *rockchip_get_iommu_base(struct device *master_dev, int idx); |
---|
| 16 | +int rockchip_iommu_force_reset(struct device *dev); |
---|
14 | 17 | #else |
---|
15 | 18 | static inline int rockchip_iommu_enable(struct device *dev) |
---|
16 | 19 | { |
---|
.. | .. |
---|
24 | 27 | { |
---|
25 | 28 | return false; |
---|
26 | 29 | } |
---|
| 30 | +static inline int rockchip_pagefault_done(struct device *master_dev) |
---|
| 31 | +{ |
---|
| 32 | + return 0; |
---|
| 33 | +} |
---|
| 34 | +static inline void __iomem *rockchip_get_iommu_base(struct device *master_dev, int idx) |
---|
| 35 | +{ |
---|
| 36 | + return NULL; |
---|
| 37 | +} |
---|
| 38 | +static inline int rockchip_iommu_force_reset(struct device *dev) |
---|
| 39 | +{ |
---|
| 40 | + return -ENODEV; |
---|
| 41 | +} |
---|
27 | 42 | #endif |
---|
28 | 43 | |
---|
29 | 44 | #endif |
---|