int wait_for_cmd_complete(nic_t * sp)
static int wait_for_cmd_complete(nic_t * sp)
int wait_for_cmd_complete(nic_t * sp){	XENA_dev_config_t __iomem *bar0 = sp->bar0;	int ret = FAILURE, cnt = 0;	u64 val64;	while (TRUE) {		val64 = readq(&bar0->rmac_addr_cmd_mem);		if (!(val64 & RMAC_ADDR_CMD_MEM_STROBE_CMD_EXECUTING)) {			ret = SUCCESS;			break;		}		msleep(50);		if (cnt++ > 10)			break;	}	return ret;}