forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.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_PPE_H
....@@ -80,7 +76,7 @@
8076 struct hns_ppe_hw_stats hw_stats;
8177
8278 u8 index; /* index in a ppe common device */
83
- void __iomem *io_base;
79
+ u8 __iomem *io_base;
8480 int virq;
8581 u32 rss_indir_table[HNS_PPEV2_RSS_IND_TBL_SIZE]; /*shadow indir tab */
8682 u32 rss_key[HNS_PPEV2_RSS_KEY_NUM]; /* rss hash key */
....@@ -89,14 +85,14 @@
8985 struct ppe_common_cb {
9086 struct device *dev;
9187 struct dsaf_device *dsaf_dev;
92
- void __iomem *io_base;
88
+ u8 __iomem *io_base;
9389
9490 enum ppe_common_mode ppe_mode;
9591
9692 u8 comm_index; /*ppe_common index*/
9793
9894 u32 ppe_num;
99
- struct hns_ppe_cb ppe_cb[0];
95
+ struct hns_ppe_cb ppe_cb[];
10096
10197 };
10298