forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/gpu/drm/radeon/rs400.c
....@@ -25,9 +25,14 @@
2525 * Alex Deucher
2626 * Jerome Glisse
2727 */
28
+
2829 #include <linux/seq_file.h>
2930 #include <linux/slab.h>
30
-#include <drm/drmP.h>
31
+
32
+#include <drm/drm_debugfs.h>
33
+#include <drm/drm_device.h>
34
+#include <drm/drm_file.h>
35
+
3136 #include "radeon.h"
3237 #include "radeon_asic.h"
3338 #include "rs400d.h"
....@@ -67,7 +72,7 @@
6772 tmp = RREG32_MC(RS480_GART_CACHE_CNTRL);
6873 if ((tmp & RS480_GART_CACHE_INVALIDATE) == 0)
6974 break;
70
- DRM_UDELAY(1);
75
+ udelay(1);
7176 timeout--;
7277 } while (timeout > 0);
7378 WREG32_MC(RS480_GART_CACHE_CNTRL, 0);
....@@ -245,7 +250,7 @@
245250 if (tmp & RADEON_MC_IDLE) {
246251 return 0;
247252 }
248
- DRM_UDELAY(1);
253
+ udelay(1);
249254 }
250255 return -1;
251256 }