.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2014-2015 Hisilicon Limited. |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or modify |
---|
5 | | - * it under the terms of the GNU General Public License as published by |
---|
6 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
7 | | - * (at your option) any later version. |
---|
8 | 4 | */ |
---|
9 | 5 | |
---|
10 | 6 | #include <linux/io-64-nonatomic-hi-lo.h> |
---|
.. | .. |
---|
134 | 130 | |
---|
135 | 131 | /** |
---|
136 | 132 | *hns_xgmac_enable - enable xgmac port |
---|
137 | | - *@drv: mac driver |
---|
| 133 | + *@mac_drv: mac driver |
---|
138 | 134 | *@mode: mode of mac port |
---|
139 | 135 | */ |
---|
140 | 136 | static void hns_xgmac_enable(void *mac_drv, enum mac_commom_mode mode) |
---|
.. | .. |
---|
246 | 242 | /** |
---|
247 | 243 | *hns_xgmac_pausefrm_cfg - set pause param about xgmac |
---|
248 | 244 | *@mac_drv: mac driver |
---|
249 | | - *@newval:enable of pad and crc |
---|
| 245 | + *@rx_en: enable receive |
---|
| 246 | + *@tx_en: enable transmit |
---|
250 | 247 | */ |
---|
251 | 248 | static void hns_xgmac_pausefrm_cfg(void *mac_drv, u32 rx_en, u32 tx_en) |
---|
252 | 249 | { |
---|
.. | .. |
---|
494 | 491 | /** |
---|
495 | 492 | *hns_xgmac_get_regs - dump xgmac regs |
---|
496 | 493 | *@mac_drv: mac driver |
---|
497 | | - *@cmd:ethtool cmd |
---|
498 | 494 | *@data:data for value of regs |
---|
499 | 495 | */ |
---|
500 | 496 | static void hns_xgmac_get_regs(void *mac_drv, void *data) |
---|