hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/scsi/bfa/bfa_ioc_ct.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc.
34 * Copyright (c) 2014- QLogic Corporation.
....@@ -5,15 +6,6 @@
56 * www.qlogic.com
67 *
78 * Linux driver for QLogic BR-series Fibre Channel Host Bus Adapter.
8
- *
9
- * This program is free software; you can redistribute it and/or modify it
10
- * under the terms of the GNU General Public License (GPL) Version 2 as
11
- * published by the Free Software Foundation
12
- *
13
- * This program is distributed in the hope that it will be useful, but
14
- * WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
- * General Public License for more details.
179 */
1810
1911 #include "bfad_drv.h"
....@@ -372,7 +364,7 @@
372364 writel(r32, rb + FNC_PERS_REG);
373365 }
374366
375
-bfa_boolean_t
367
+static bfa_boolean_t
376368 bfa_ioc_ct2_lpu_read_stat(struct bfa_ioc_s *ioc)
377369 {
378370 u32 r32;
....@@ -504,7 +496,7 @@
504496 return BFA_FALSE;
505497 }
506498
507
-/**
499
+/*
508500 * Called from bfa_ioc_attach() to map asic specific calls.
509501 */
510502 static void
....@@ -525,7 +517,7 @@
525517 hwif->ioc_get_alt_fwstate = bfa_ioc_ct_get_alt_ioc_fwstate;
526518 }
527519
528
-/**
520
+/*
529521 * Called from bfa_ioc_attach() to map asic specific calls.
530522 */
531523 void
....@@ -540,7 +532,7 @@
540532 ioc->ioc_hwif = &hwif_ct;
541533 }
542534
543
-/**
535
+/*
544536 * Called from bfa_ioc_attach() to map asic specific calls.
545537 */
546538 void
....@@ -752,7 +744,7 @@
752744 writel(0, (rb + CT2_MBIST_CTL_REG));
753745 }
754746
755
-void
747
+static void
756748 bfa_ioc_ct2_mac_reset(void __iomem *rb)
757749 {
758750 /* put port0, port1 MAC & AHB in reset */