/* Reads the additive increments programmed into the HW congestion control table.  */
void t3_get_cong_cntl_tab(struct adapter *adap, unsigned short incr[NMTUS][NCCTRL_WIN])
/* Reads the additive increments programmed into the HW congestion control table.  */
void t3_get_cong_cntl_tab(struct adapter *adap, unsigned short incr[NMTUS][NCCTRL_WIN])
{
	unsigned int mtu, w;
	for (mtu = 0; mtu < NMTUS; ++mtu)
		for (w = 0; w < NCCTRL_WIN; ++w) {
			t3_write_reg(adap, A_TP_CCTRL_TABLE,
				     0xffff0000 | (mtu << 5) | w);
			incr[mtu][w] = t3_read_reg(adap, A_TP_CCTRL_TABLE) &
				       0x1fff;
		}
}