hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/scsi/aacraid/sa.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Adaptec AAC series RAID controller driver
34 * (c) Copyright 2001 Red Hat Inc.
....@@ -9,25 +10,10 @@
910 * 2010-2015 PMC-Sierra, Inc. (aacraid@pmc-sierra.com)
1011 * 2016-2017 Microsemi Corp. (aacraid@microsemi.com)
1112 *
12
- * This program is free software; you can redistribute it and/or modify
13
- * it under the terms of the GNU General Public License as published by
14
- * the Free Software Foundation; either version 2, or (at your option)
15
- * any later version.
16
- *
17
- * This program is distributed in the hope that it will be useful,
18
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
- * GNU General Public License for more details.
21
- *
22
- * You should have received a copy of the GNU General Public License
23
- * along with this program; see the file COPYING. If not, write to
24
- * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
25
- *
2613 * Module Name:
2714 * sa.c
2815 *
2916 * Abstract: Drawbridge specific support functions
30
- *
3117 */
3218
3319 #include <linux/kernel.h>
....@@ -149,13 +135,21 @@
149135 * @dev: Adapter
150136 * @command: Command to execute
151137 * @p1: first parameter
138
+ * @p2: second parameter
139
+ * @p3: third parameter
140
+ * @p4: forth parameter
141
+ * @p5: fifth parameter
142
+ * @p6: sixth parameter
152143 * @ret: adapter status
144
+ * @r1: first return value
145
+ * @r2: second return value
146
+ * @r3: third return value
147
+ * @r4: forth return value
153148 *
154
- * This routine will send a synchronous command to the adapter and wait
149
+ * This routine will send a synchronous command to the adapter and wait
155150 * for its completion.
156151 */
157
-
158
-static int sa_sync_cmd(struct aac_dev *dev, u32 command,
152
+static int sa_sync_cmd(struct aac_dev *dev, u32 command,
159153 u32 p1, u32 p2, u32 p3, u32 p4, u32 p5, u32 p6,
160154 u32 *ret, u32 *r1, u32 *r2, u32 *r3, u32 *r4)
161155 {
....@@ -297,6 +291,7 @@
297291
298292 /**
299293 * aac_sa_ioremap
294
+ * @dev: device to ioremap
300295 * @size: mapping resize request
301296 *
302297 */
....@@ -314,8 +309,8 @@
314309 * aac_sa_init - initialize an ARM based AAC card
315310 * @dev: device to configure
316311 *
317
- * Allocate and set up resources for the ARM based AAC variants. The
318
- * device_interface in the commregion will be allocated and linked
312
+ * Allocate and set up resources for the ARM based AAC variants. The
313
+ * device_interface in the commregion will be allocated and linked
319314 * to the comm region.
320315 */
321316