src/dpdk/drivers/net/bnx2x/bnx2x.c
void bnx2x_post_dmae(struct bnx2x_softc *sc, struct dmae_command *dmae, int idx)
{
	uint32_t cmd_offset;
	uint32_t i;

	cmd_offset = (DMAE_REG_CMD_MEM + (sizeof(struct dmae_command) * idx));
	for (i = 0; i < ((sizeof(struct dmae_command) / 4)); i++) {
		REG_WR(sc, (cmd_offset + (i * 4)), *(((uint32_t *) dmae) + i));
	}

	REG_WR(sc, dmae_reg_go_c[idx], 1);
}
/* copy command into DMAE command memory and set DMAE command Go */
copy command into DMAE command memory and set DMAE command Go
copy command into DMAE command memory and set DMAE command Go
void bnx2x_post_dmae(struct bnx2x_softc *sc, struct dmae_command *dmae, int idx)
{
	uint32_t cmd_offset;
	uint32_t i;
	cmd_offset = (DMAE_REG_CMD_MEM + (sizeof(struct dmae_command) * idx));
	for (i = 0; i < ((sizeof(struct dmae_command) / 4)); i++) {
		REG_WR(sc, (cmd_offset + (i * 4)), *(((uint32_t *) dmae) + i));
	}
	REG_WR(sc, dmae_reg_go_c[idx], 1);
}
void bnx2x_post_dmae ( struct bnx2x_softc * sc , struct dmae_command * dmae , int idx ) { uint32_t cmd_offset ; uint32_t i ; cmd_offset = ( DMAE_REG_CMD_MEM + ( sizeof ( struct dmae_command ) * idx ) ) ; for ( i = 0 ; i < ( ( sizeof ( struct dmae_command ) / 4 ) ) ; i ++ ) { REG_WR ( sc , ( cmd_offset + ( i * 4 ) ) , * ( ( ( uint32_t * ) dmae ) + i ) ) ; } REG_WR ( sc , dmae_reg_go_c [ idx ] , 1 ) ; }
copy command into DMAE command memory and set DMAE command Go
copy command into DMAE command memory and set DMAE command Go