forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c
....@@ -1,10 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * 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.
84 */
95
106 #include <linux/io-64-nonatomic-hi-lo.h>
....@@ -134,7 +130,7 @@
134130
135131 /**
136132 *hns_xgmac_enable - enable xgmac port
137
- *@drv: mac driver
133
+ *@mac_drv: mac driver
138134 *@mode: mode of mac port
139135 */
140136 static void hns_xgmac_enable(void *mac_drv, enum mac_commom_mode mode)
....@@ -246,7 +242,8 @@
246242 /**
247243 *hns_xgmac_pausefrm_cfg - set pause param about xgmac
248244 *@mac_drv: mac driver
249
- *@newval:enable of pad and crc
245
+ *@rx_en: enable receive
246
+ *@tx_en: enable transmit
250247 */
251248 static void hns_xgmac_pausefrm_cfg(void *mac_drv, u32 rx_en, u32 tx_en)
252249 {
....@@ -494,7 +491,6 @@
494491 /**
495492 *hns_xgmac_get_regs - dump xgmac regs
496493 *@mac_drv: mac driver
497
- *@cmd:ethtool cmd
498494 *@data:data for value of regs
499495 */
500496 static void hns_xgmac_get_regs(void *mac_drv, void *data)