src/dpdk/drivers/net/bnx2x/bnx2x.c
static int bnx2x_acquire_alr(struct bnx2x_softc *sc)
{
	uint32_t j, val;

	for (j = 0; j < 1000; j++) {
		val = (1UL << 31);
		REG_WR(sc, GRCBASE_MCP + 0x9c, val);
		val = REG_RD(sc, GRCBASE_MCP + 0x9c);
		if (val & (1L << 31))
			break;

		DELAY(5000);
	}

	if (!(val & (1L << 31))) {
		PMD_DRV_LOG(NOTICE, sc, "Cannot acquire MCP access lock register");
		return -1;
	}

	return 0;
}
/* acquire split MCP access lock register */
acquire split MCP access lock register
acquire split MCP access lock register
static int bnx2x_acquire_alr(struct bnx2x_softc *sc)
{
	uint32_t j, val;
	for (j = 0; j < 1000; j++) {
		val = (1UL << 31);
		REG_WR(sc, GRCBASE_MCP + 0x9c, val);
		val = REG_RD(sc, GRCBASE_MCP + 0x9c);
		if (val & (1L << 31))
			break;
		DELAY(5000);
	}
	if (!(val & (1L << 31))) {
		PMD_DRV_LOG(NOTICE, sc, "Cannot acquire MCP access lock register");
		return -1;
	}
	return 0;
}
static int bnx2x_acquire_alr ( struct bnx2x_softc * sc ) { uint32_t j , val ; for ( j = 0 ; j < 1000 ; j ++ ) { val = ( 1UL << 31 ) ; REG_WR ( sc , GRCBASE_MCP + 0x9c , val ) ; val = REG_RD ( sc , GRCBASE_MCP + 0x9c ) ; if ( val & ( 1L << 31 ) ) break ; DELAY ( 5000 ) ; } if ( ! ( val & ( 1L << 31 ) ) ) { PMD_DRV_LOG ( NOTICE , sc , " " ) ; return -1 ; } return 0 ; }
acquire split MCP access lock register
acquire split MCP access lock register