forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/gpu/drm/radeon/ni.c
....@@ -21,20 +21,23 @@
2121 *
2222 * Authors: Alex Deucher
2323 */
24
+
2425 #include <linux/firmware.h>
25
-#include <linux/slab.h>
2626 #include <linux/module.h>
27
-#include <drm/drmP.h>
27
+#include <linux/pci.h>
28
+#include <linux/slab.h>
29
+
30
+#include <drm/radeon_drm.h>
31
+
32
+#include "atom.h"
33
+#include "cayman_blit_shaders.h"
34
+#include "clearstate_cayman.h"
35
+#include "ni_reg.h"
36
+#include "nid.h"
2837 #include "radeon.h"
2938 #include "radeon_asic.h"
3039 #include "radeon_audio.h"
31
-#include <drm/radeon_drm.h>
32
-#include "nid.h"
33
-#include "atom.h"
34
-#include "ni_reg.h"
35
-#include "cayman_blit_shaders.h"
3640 #include "radeon_ucode.h"
37
-#include "clearstate_cayman.h"
3841
3942 /*
4043 * Indirect registers accessor
....@@ -2014,7 +2017,7 @@
20142017 * there. So it is pointless to try to go through that code
20152018 * hence why we disable uvd here.
20162019 */
2017
- rdev->has_uvd = 0;
2020
+ rdev->has_uvd = false;
20182021 return;
20192022 }
20202023 rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_obj = NULL;
....@@ -2082,7 +2085,7 @@
20822085 * there. So it is pointless to try to go through that code
20832086 * hence why we disable vce here.
20842087 */
2085
- rdev->has_vce = 0;
2088
+ rdev->has_vce = false;
20862089 return;
20872090 }
20882091 rdev->ring[TN_RING_TYPE_VCE1_INDEX].ring_obj = NULL;