1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2015-2020 Beijing WangXun Technology Co., Ltd.
3 * Copyright(c) 2010-2017 Intel Corporation
6 #ifndef _TXGBE_REGS_GROUP_H_
7 #define _TXGBE_REGS_GROUP_H_
9 #include "txgbe_ethdev.h"
20 txgbe_read_regs(struct txgbe_hw *hw, const struct reg_info *reg,
25 for (i = 0; i < reg->count; i++)
27 reg->base_addr + i * reg->stride);
32 txgbe_regs_group_count(const struct reg_info *regs)
38 count += regs[i++].count;
43 txgbe_read_regs_group(struct rte_eth_dev *dev, uint32_t *reg_buf,
44 const struct reg_info *regs)
48 struct txgbe_hw *hw = TXGBE_DEV_HW(dev);
51 count += txgbe_read_regs(hw, ®s[i++], ®_buf[count]);
55 #endif /* _TXGBE_REGS_GROUP_H_ */