/* Write data to the TCAM register at address (0, 0, addr_lo) using the TCAM command cmd. The data to be written must have been set up by the caller. Returns -1 on failure, 0 on success.  */
static int mc5_write(struct adapter *adapter, u32 addr_lo, u32 cmd)
/* Write data to the TCAM register at address (0, 0, addr_lo) using the TCAM command cmd. The data to be written must have been set up by the caller. Returns -1 on failure, 0 on success.  */
static int mc5_write(struct adapter *adapter, u32 addr_lo, u32 cmd)
{
	t3_write_reg(adapter, A_MC5_DB_DBGI_REQ_ADDR0, addr_lo);
	if (mc5_cmd_write(adapter, cmd) == 0)
		return 0;
	CH_ERR(adapter, "MC5 timeout writing to TCAM address 0x%x\n",
	       addr_lo);
	return -1;
}