net/ice/base: add helper function to redirect flags
[dpdk.git] / drivers / net / ice / base / ice_flg_rd.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2001-2021 Intel Corporation
3  */
4
5 #ifndef _ICE_FLG_RD_H_
6 #define _ICE_FLG_RD_H_
7
8 struct ice_flg_rd_item {
9         u16 idx;
10         bool expose;
11         u8 intr_flg_id;
12 };
13
14 void ice_flg_rd_dump(struct ice_hw *hw, struct ice_flg_rd_item *item);
15 struct ice_flg_rd_item *ice_flg_rd_table_get(struct ice_hw *hw);
16 u64 ice_flg_redirect(struct ice_flg_rd_item *table, u64 psr_flg);
17 #endif /* _ICE_FLG_RD_H_ */