aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/nouveau/core/include/core/device.h6
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
161static inline bool
162nv_device_is_cpu_coherent(struct nouveau_device *device)
163{
164 return (!IS_ENABLED(CONFIG_ARM) && nv_device_is_pci(device));
165}
166
161static inline struct device * 167static inline struct device *
162nv_device_base(struct nouveau_device *device) 168nv_device_base(struct nouveau_device *device)
163{ 169{