src/dpdk/drivers/net/i40e/i40e_ethdev.c
static inline int i40e_valid_regs(enum i40e_mac_type type, uint32_t reg_offset)
{
	if ((type != I40E_MAC_X722) &&
	    ((reg_offset >= 0x2b800 && reg_offset <= 0x2bb00) ||
	     (reg_offset >= 0x38700 && reg_offset <= 0x38a00) ||
	     (reg_offset >= 0x3d800 && reg_offset <= 0x3db00) ||
	     (reg_offset >= 0x208e00 && reg_offset <= 0x209000) ||
	     (reg_offset >= 0x20be00 && reg_offset <= 0x20c000) ||
	     (reg_offset >= 0x263c00 && reg_offset <= 0x264000) ||
	     (reg_offset >= 0x265c00 && reg_offset <= 0x266000)))
		return 0;
	else
		return 1;
}
/**
 * This function is used to check if the register is valid.
 * Below is the valid registers list for X722 only:
 * 0x2b800--0x2bb00
 * 0x38700--0x38a00
 * 0x3d800--0x3db00
 * 0x208e00--0x209000
 * 0x20be00--0x20c000
 * 0x263c00--0x264000
 * 0x265c00--0x266000
 */
This function is used to check if the register is valid.
This function is used to check if the register is valid .
static inline int i40e_valid_regs(enum i40e_mac_type type, uint32_t reg_offset)
{
	if ((type != I40E_MAC_X722) &&
	    ((reg_offset >= 0x2b800 && reg_offset <= 0x2bb00) ||
	     (reg_offset >= 0x38700 && reg_offset <= 0x38a00) ||
	     (reg_offset >= 0x3d800 && reg_offset <= 0x3db00) ||
	     (reg_offset >= 0x208e00 && reg_offset <= 0x209000) ||
	     (reg_offset >= 0x20be00 && reg_offset <= 0x20c000) ||
	     (reg_offset >= 0x263c00 && reg_offset <= 0x264000) ||
	     (reg_offset >= 0x265c00 && reg_offset <= 0x266000)))
		return 0;
	else
		return 1;
}
static inline int i40e_valid_regs ( enum i40e_mac_type type , uint32_t reg_offset ) { if ( ( type != I40E_MAC_X722 ) && ( ( reg_offset >= 0x2b800 && reg_offset <= 0x2bb00 ) || ( reg_offset >= 0x38700 && reg_offset <= 0x38a00 ) || ( reg_offset >= 0x3d800 && reg_offset <= 0x3db00 ) || ( reg_offset >= 0x208e00 && reg_offset <= 0x209000 ) || ( reg_offset >= 0x20be00 && reg_offset <= 0x20c000 ) || ( reg_offset >= 0x263c00 && reg_offset <= 0x264000 ) || ( reg_offset >= 0x265c00 && reg_offset <= 0x266000 ) ) ) return 0 ; else return 1 ; }
This function is used to check if the register is valid.
This function is used to check if the register is valid .