.. | .. |
---|
25 | 25 | * Alex Deucher |
---|
26 | 26 | * Jerome Glisse |
---|
27 | 27 | */ |
---|
| 28 | + |
---|
28 | 29 | #include <linux/seq_file.h> |
---|
29 | 30 | #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 | + |
---|
31 | 36 | #include "radeon.h" |
---|
32 | 37 | #include "radeon_asic.h" |
---|
33 | 38 | #include "rs400d.h" |
---|
.. | .. |
---|
67 | 72 | tmp = RREG32_MC(RS480_GART_CACHE_CNTRL); |
---|
68 | 73 | if ((tmp & RS480_GART_CACHE_INVALIDATE) == 0) |
---|
69 | 74 | break; |
---|
70 | | - DRM_UDELAY(1); |
---|
| 75 | + udelay(1); |
---|
71 | 76 | timeout--; |
---|
72 | 77 | } while (timeout > 0); |
---|
73 | 78 | WREG32_MC(RS480_GART_CACHE_CNTRL, 0); |
---|
.. | .. |
---|
245 | 250 | if (tmp & RADEON_MC_IDLE) { |
---|
246 | 251 | return 0; |
---|
247 | 252 | } |
---|
248 | | - DRM_UDELAY(1); |
---|
| 253 | + udelay(1); |
---|
249 | 254 | } |
---|
250 | 255 | return -1; |
---|
251 | 256 | } |
---|