.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 1999 - 2010 Intel Corporation. |
---|
3 | 4 | * Copyright (C) 2010 OKI SEMICONDUCTOR Co., LTD. |
---|
4 | 5 | * |
---|
5 | 6 | * This code was derived from the Intel e1000e Linux driver. |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or modify |
---|
8 | | - * it under the terms of the GNU General Public License as published by |
---|
9 | | - * the Free Software Foundation; version 2 of the License. |
---|
10 | | - * |
---|
11 | | - * This program is distributed in the hope that it will be useful, |
---|
12 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
14 | | - * GNU General Public License for more details. |
---|
15 | | - * |
---|
16 | | - * You should have received a copy of the GNU General Public License |
---|
17 | | - * along with this program; if not, see <http://www.gnu.org/licenses/>. |
---|
18 | 7 | */ |
---|
19 | 8 | |
---|
20 | 9 | #include "pch_gbe.h" |
---|
.. | .. |
---|
24 | 13 | #define OPTION_DISABLED 0 |
---|
25 | 14 | #define OPTION_ENABLED 1 |
---|
26 | 15 | |
---|
27 | | -/** |
---|
| 16 | +/* |
---|
28 | 17 | * TxDescriptors - Transmit Descriptor Count |
---|
29 | 18 | * @Valid Range: PCH_GBE_MIN_TXD - PCH_GBE_MAX_TXD |
---|
30 | 19 | * @Default Value: PCH_GBE_DEFAULT_TXD |
---|
.. | .. |
---|
33 | 22 | module_param(TxDescriptors, int, 0); |
---|
34 | 23 | MODULE_PARM_DESC(TxDescriptors, "Number of transmit descriptors"); |
---|
35 | 24 | |
---|
36 | | -/** |
---|
| 25 | +/* |
---|
37 | 26 | * RxDescriptors -Receive Descriptor Count |
---|
38 | 27 | * @Valid Range: PCH_GBE_MIN_RXD - PCH_GBE_MAX_RXD |
---|
39 | 28 | * @Default Value: PCH_GBE_DEFAULT_RXD |
---|
.. | .. |
---|
42 | 31 | module_param(RxDescriptors, int, 0); |
---|
43 | 32 | MODULE_PARM_DESC(RxDescriptors, "Number of receive descriptors"); |
---|
44 | 33 | |
---|
45 | | -/** |
---|
| 34 | +/* |
---|
46 | 35 | * Speed - User Specified Speed Override |
---|
47 | 36 | * @Valid Range: 0, 10, 100, 1000 |
---|
48 | 37 | * - 0: auto-negotiate at all supported speeds |
---|
.. | .. |
---|
55 | 44 | module_param(Speed, int, 0); |
---|
56 | 45 | MODULE_PARM_DESC(Speed, "Speed setting"); |
---|
57 | 46 | |
---|
58 | | -/** |
---|
| 47 | +/* |
---|
59 | 48 | * Duplex - User Specified Duplex Override |
---|
60 | 49 | * @Valid Range: 0-2 |
---|
61 | 50 | * - 0: auto-negotiate for duplex |
---|
.. | .. |
---|
70 | 59 | #define HALF_DUPLEX 1 |
---|
71 | 60 | #define FULL_DUPLEX 2 |
---|
72 | 61 | |
---|
73 | | -/** |
---|
| 62 | +/* |
---|
74 | 63 | * AutoNeg - Auto-negotiation Advertisement Override |
---|
75 | 64 | * @Valid Range: 0x01-0x0F, 0x20-0x2F |
---|
76 | 65 | * |
---|
.. | .. |
---|
96 | 85 | #define PHY_ADVERTISE_1000_FULL 0x0020 |
---|
97 | 86 | #define PCH_AUTONEG_ADVERTISE_DEFAULT 0x2F |
---|
98 | 87 | |
---|
99 | | -/** |
---|
| 88 | +/* |
---|
100 | 89 | * FlowControl - User Specified Flow Control Override |
---|
101 | 90 | * @Valid Range: 0-3 |
---|
102 | 91 | * - 0: No Flow Control |
---|
.. | .. |
---|
135 | 124 | |
---|
136 | 125 | #define PCH_GBE_DEFAULT_TX_CSUM true /* trueorfalse */ |
---|
137 | 126 | |
---|
138 | | -/** |
---|
| 127 | +/* |
---|
139 | 128 | * pch_gbe_option - Force the MAC's flow control settings |
---|
140 | 129 | * @hw: Pointer to the HW structure |
---|
141 | 130 | * Returns: |
---|
.. | .. |
---|
421 | 410 | case SPEED_1000 + HALF_DUPLEX: |
---|
422 | 411 | netdev_dbg(adapter->netdev, |
---|
423 | 412 | "Half Duplex is not supported at 1000 Mbps\n"); |
---|
424 | | - /* fall through */ |
---|
| 413 | + fallthrough; |
---|
425 | 414 | case SPEED_1000 + FULL_DUPLEX: |
---|
426 | 415 | full_duplex_only: |
---|
427 | 416 | netdev_dbg(adapter->netdev, |
---|