| .. | .. |
|---|
| 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_PPE_H |
|---|
| .. | .. |
|---|
| 80 | 76 | struct hns_ppe_hw_stats hw_stats; |
|---|
| 81 | 77 | |
|---|
| 82 | 78 | u8 index; /* index in a ppe common device */ |
|---|
| 83 | | - void __iomem *io_base; |
|---|
| 79 | + u8 __iomem *io_base; |
|---|
| 84 | 80 | int virq; |
|---|
| 85 | 81 | u32 rss_indir_table[HNS_PPEV2_RSS_IND_TBL_SIZE]; /*shadow indir tab */ |
|---|
| 86 | 82 | u32 rss_key[HNS_PPEV2_RSS_KEY_NUM]; /* rss hash key */ |
|---|
| .. | .. |
|---|
| 89 | 85 | struct ppe_common_cb { |
|---|
| 90 | 86 | struct device *dev; |
|---|
| 91 | 87 | struct dsaf_device *dsaf_dev; |
|---|
| 92 | | - void __iomem *io_base; |
|---|
| 88 | + u8 __iomem *io_base; |
|---|
| 93 | 89 | |
|---|
| 94 | 90 | enum ppe_common_mode ppe_mode; |
|---|
| 95 | 91 | |
|---|
| 96 | 92 | u8 comm_index; /*ppe_common index*/ |
|---|
| 97 | 93 | |
|---|
| 98 | 94 | u32 ppe_num; |
|---|
| 99 | | - struct hns_ppe_cb ppe_cb[0]; |
|---|
| 95 | + struct hns_ppe_cb ppe_cb[]; |
|---|
| 100 | 96 | |
|---|
| 101 | 97 | }; |
|---|
| 102 | 98 | |
|---|