src/dpdk/drivers/event/dlb/pf/base/dlb_osdep.h
static inline enum dlb_dev_revision os_get_dev_revision(struct dlb_hw *hw)
{
	uint32_t a, b, c, d, stepping;

	RTE_SET_USED(hw);

	__cpuid(0x1, a, b, c, d);

	stepping = a & 0xf;

	switch (stepping) {
	case 0:
		return DLB_A0;
	case 1:
		return DLB_A1;
	case 2:
		return DLB_A2;
	case 3:
		return DLB_A3;
	default:
		/* Treat all revisions >= 4 as B0 */
		return DLB_B0;
	}
}
/**
 * os_get_dev_revision() - query the device_revision
 * @hw: dlb_hw handle for a particular device.
 */
query the device_revision
@hw: dlb_hw handle for a particular device.
query the device_revision @hw : dlb_hw handle for a particular device .
static inline enum dlb_dev_revision os_get_dev_revision(struct dlb_hw *hw)
{
	uint32_t a, b, c, d, stepping;
	RTE_SET_USED(hw);
	__cpuid(0x1, a, b, c, d);
	stepping = a & 0xf;
	switch (stepping) {
	case 0:
		return DLB_A0;
	case 1:
		return DLB_A1;
	case 2:
		return DLB_A2;
	case 3:
		return DLB_A3;
	default:
		return DLB_B0;
	}
}
static inline enum dlb_dev_revision os_get_dev_revision ( struct dlb_hw * hw ) { uint32_t a , b , c , d , stepping ; RTE_SET_USED ( hw ) ; __cpuid ( 0x1 , a , b , c , d ) ; stepping = a & 0xf ; switch ( stepping ) { case 0 : return DLB_A0 ; case 1 : return DLB_A1 ; case 2 : return DLB_A2 ; case 3 : return DLB_A3 ; default : return DLB_B0 ; } }
os_get_dev_revision() - query the device_revision
 @hw: dlb_hw handle for a particular device.
os_get_dev_revision () - query the device_revision @hw : dlb_hw handle for a particular device .
/* Treat all revisions >= 4 as B0 */