diff options
-rw-r--r-- | drivers/gpu/drm/nouveau/core/include/core/device.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/core/include/core/device.h b/drivers/gpu/drm/nouveau/core/include/core/device.h index 1d9d893929bb..0d839e1ddaf4 100644 --- a/drivers/gpu/drm/nouveau/core/include/core/device.h +++ b/drivers/gpu/drm/nouveau/core/include/core/device.h | |||
@@ -158,6 +158,12 @@ nv_device_is_pci(struct nouveau_device *device) | |||
158 | return device->pdev != NULL; | 158 | return device->pdev != NULL; |
159 | } | 159 | } |
160 | 160 | ||
161 | static inline bool | ||
162 | nv_device_is_cpu_coherent(struct nouveau_device *device) | ||
163 | { | ||
164 | return (!IS_ENABLED(CONFIG_ARM) && nv_device_is_pci(device)); | ||
165 | } | ||
166 | |||
161 | static inline struct device * | 167 | static inline struct device * |
162 | nv_device_base(struct nouveau_device *device) | 168 | nv_device_base(struct nouveau_device *device) |
163 | { | 169 | { |