| .. | .. |
|---|
| 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 | #ifndef _HNS_DSAF_MAC_H |
|---|
| .. | .. |
|---|
| 187 | 183 | /*mac para struct ,mac get param from nic or dsaf when initialize*/ |
|---|
| 188 | 184 | struct mac_params { |
|---|
| 189 | 185 | char addr[ETH_ALEN]; |
|---|
| 190 | | - void *vaddr; /*virtual address*/ |
|---|
| 186 | + u8 __iomem *vaddr; /*virtual address*/ |
|---|
| 191 | 187 | struct device *dev; |
|---|
| 192 | 188 | u8 mac_id; |
|---|
| 193 | 189 | /**< Ethernet operation mode (MAC-PHY interface and speed) */ |
|---|
| .. | .. |
|---|
| 402 | 398 | enum mac_mode mac_mode; |
|---|
| 403 | 399 | u8 mac_id; |
|---|
| 404 | 400 | struct hns_mac_cb *mac_cb; |
|---|
| 405 | | - void __iomem *io_base; |
|---|
| 401 | + u8 __iomem *io_base; |
|---|
| 406 | 402 | unsigned int mac_en_flg;/*you'd better don't enable mac twice*/ |
|---|
| 407 | 403 | unsigned int virt_dev_num; |
|---|
| 408 | 404 | struct device *dev; |
|---|