forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/gpu/drm/drm_dma.c
....@@ -1,4 +1,4 @@
1
-/**
1
+/*
22 * \file drm_dma.c
33 * DMA IOCTL and function support
44 *
....@@ -34,14 +34,18 @@
3434 */
3535
3636 #include <linux/export.h>
37
-#include <drm/drmP.h>
37
+#include <linux/pci.h>
38
+
39
+#include <drm/drm_drv.h>
40
+#include <drm/drm_print.h>
41
+
3842 #include "drm_legacy.h"
3943
4044 /**
41
- * Initialize the DMA data.
45
+ * drm_legacy_dma_setup() - Initialize the DMA data.
4246 *
43
- * \param dev DRM device.
44
- * \return zero on success or a negative value on failure.
47
+ * @dev: DRM device.
48
+ * Return: zero on success or a negative value on failure.
4549 *
4650 * Allocate and initialize a drm_device_dma structure.
4751 */
....@@ -67,9 +71,9 @@
6771 }
6872
6973 /**
70
- * Cleanup the DMA resources.
74
+ * drm_legacy_dma_takedown() - Cleanup the DMA resources.
7175 *
72
- * \param dev DRM device.
76
+ * @dev: DRM device.
7377 *
7478 * Free all pages associated with DMA buffers, the buffers and pages lists, and
7579 * finally the drm_device::dma structure itself.
....@@ -116,10 +120,10 @@
116120 }
117121
118122 /**
119
- * Free a buffer.
123
+ * drm_legacy_free_buffer() - Free a buffer.
120124 *
121
- * \param dev DRM device.
122
- * \param buf buffer to free.
125
+ * @dev: DRM device.
126
+ * @buf: buffer to free.
123127 *
124128 * Resets the fields of \p buf.
125129 */
....@@ -135,9 +139,10 @@
135139 }
136140
137141 /**
138
- * Reclaim the buffers.
142
+ * drm_legacy_reclaim_buffers() - Reclaim the buffers.
139143 *
140
- * \param file_priv DRM file private.
144
+ * @dev: DRM device.
145
+ * @file_priv: DRM file private.
141146 *
142147 * Frees each buffer associated with \p file_priv not already on the hardware.
143148 */