forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 297b60346df8beafee954a0fd7c2d64f33f3b9bc
kernel/drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h
....@@ -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 #ifndef _HNS_DSAF_MAC_H
....@@ -187,7 +183,7 @@
187183 /*mac para struct ,mac get param from nic or dsaf when initialize*/
188184 struct mac_params {
189185 char addr[ETH_ALEN];
190
- void *vaddr; /*virtual address*/
186
+ u8 __iomem *vaddr; /*virtual address*/
191187 struct device *dev;
192188 u8 mac_id;
193189 /**< Ethernet operation mode (MAC-PHY interface and speed) */
....@@ -402,7 +398,7 @@
402398 enum mac_mode mac_mode;
403399 u8 mac_id;
404400 struct hns_mac_cb *mac_cb;
405
- void __iomem *io_base;
401
+ u8 __iomem *io_base;
406402 unsigned int mac_en_flg;/*you'd better don't enable mac twice*/
407403 unsigned int virt_dev_num;
408404 struct device *dev;