1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2015-2020
5 #ifndef _TXGBE_REGS_GROUP_H_
6 #define _TXGBE_REGS_GROUP_H_
8 #include "txgbe_ethdev.h"
19 txgbe_read_regs(struct txgbe_hw *hw, const struct reg_info *reg,
24 for (i = 0; i < reg->count; i++)
26 reg->base_addr + i * reg->stride);
31 txgbe_regs_group_count(const struct reg_info *regs)
37 count += regs[i++].count;
42 txgbe_read_regs_group(struct rte_eth_dev *dev, uint32_t *reg_buf,
43 const struct reg_info *regs)
47 struct txgbe_hw *hw = TXGBE_DEV_HW(dev);
50 count += txgbe_read_regs(hw, ®s[i++], ®_buf[count]);
54 #endif /* _TXGBE_REGS_GROUP_H_ */