src/dpdk/drivers/net/cxgbe/base/t4_hw.c
unsigned int t4_get_regs_len(struct adapter *adapter)
{
	unsigned int chip_version = CHELSIO_CHIP_VERSION(adapter->params.chip);

	switch (chip_version) {
	case CHELSIO_T5:
	case CHELSIO_T6:
		return T5_REGMAP_SIZE;
	}

	dev_err(adapter,
		"Unsupported chip version %d\n", chip_version);
	return 0;
}
/**
 * t4_get_regs_len - return the size of the chips register set
 * @adapter: the adapter
 *
 * Returns the size of the chip's BAR0 register space.
 */
return the size of the chips register set
@adapter: the adapter

Returns the size of the chip's BAR0 register space.
return the size of the chips register set @adapter : the adapter Returns the size of the chip ' s BAR0 register space .
unsigned int t4_get_regs_len(struct adapter *adapter)
{
	unsigned int chip_version = CHELSIO_CHIP_VERSION(adapter->params.chip);
	switch (chip_version) {
	case CHELSIO_T5:
	case CHELSIO_T6:
		return T5_REGMAP_SIZE;
	}
	dev_err(adapter,
		"Unsupported chip version %d\n", chip_version);
	return 0;
}
unsigned int t4_get_regs_len ( struct adapter * adapter ) { unsigned int chip_version = CHELSIO_CHIP_VERSION ( adapter -> params . chip ) ; switch ( chip_version ) { case CHELSIO_T5 : case CHELSIO_T6 : return T5_REGMAP_SIZE ; } dev_err ( adapter , " \n " , chip_version ) ; return 0 ; }
t4_get_regs_len - return the size of the chips register set
 @adapter: the adapter
t4_get_regs_len - return the size of the chips register set @adapter : the adapter