@@ -210,10 +210,15 @@ static int intel_pmc_ipc_check_status(void)
210210 return ret ;
211211}
212212
213- /*
214- * intel_pmc_ipc_simple_command
215- * @cmd: command
216- * @sub: sub type
213+ /**
214+ * intel_pmc_ipc_simple_command() - Simple IPC command
215+ * @cmd: IPC command code.
216+ * @sub: IPC command sub type.
217+ *
218+ * Send a simple IPC command to PMC when don't need to specify
219+ * input/output data and source/dest pointers.
220+ *
221+ * Return: an IPC error code or 0 on success.
217222 */
218223int intel_pmc_ipc_simple_command (int cmd , int sub )
219224{
@@ -232,16 +237,20 @@ int intel_pmc_ipc_simple_command(int cmd, int sub)
232237}
233238EXPORT_SYMBOL_GPL (intel_pmc_ipc_simple_command );
234239
235- /*
236- * intel_pmc_ipc_raw_cmd
237- * @cmd: command
238- * @sub: sub type
239- * @in: input data
240- * @inlen: input length in bytes
241- * @out: output data
242- * @outlen: output length in dwords
243- * @sptr: data writing to SPTR register
244- * @dptr: data writing to DPTR register
240+ /**
241+ * intel_pmc_ipc_raw_cmd() - IPC command with data and pointers
242+ * @cmd: IPC command code.
243+ * @sub: IPC command sub type.
244+ * @in: input data of this IPC command.
245+ * @inlen: input data length in bytes.
246+ * @out: output data of this IPC command.
247+ * @outlen: output data length in dwords.
248+ * @sptr: data writing to SPTR register.
249+ * @dptr: data writing to DPTR register.
250+ *
251+ * Send an IPC command to PMC with input/output data and source/dest pointers.
252+ *
253+ * Return: an IPC error code or 0 on success.
245254 */
246255int intel_pmc_ipc_raw_cmd (u32 cmd , u32 sub , u8 * in , u32 inlen , u32 * out ,
247256 u32 outlen , u32 dptr , u32 sptr )
@@ -278,14 +287,18 @@ int intel_pmc_ipc_raw_cmd(u32 cmd, u32 sub, u8 *in, u32 inlen, u32 *out,
278287}
279288EXPORT_SYMBOL_GPL (intel_pmc_ipc_raw_cmd );
280289
281- /*
282- * intel_pmc_ipc_command
283- * @cmd: command
284- * @sub: sub type
285- * @in: input data
286- * @inlen: input length in bytes
287- * @out: output data
288- * @outlen: output length in dwords
290+ /**
291+ * intel_pmc_ipc_command() - IPC command with input/output data
292+ * @cmd: IPC command code.
293+ * @sub: IPC command sub type.
294+ * @in: input data of this IPC command.
295+ * @inlen: input data length in bytes.
296+ * @out: output data of this IPC command.
297+ * @outlen: output data length in dwords.
298+ *
299+ * Send an IPC command to PMC with input/output data.
300+ *
301+ * Return: an IPC error code or 0 on success.
289302 */
290303int intel_pmc_ipc_command (u32 cmd , u32 sub , u8 * in , u32 inlen ,
291304 u32 * out , u32 outlen )
0 commit comments