FreeBSD/sys/dev/cxgb/common/cxgb_t3_hw.c
/**
 *	t3_read_pace_tbl - read the pace table
 *	@adap: the adapter
 *	@pace_vals: holds the returned values
 *
 *	Returns the values of TP's pace table in nanoseconds.
 */
read the pace table
@adap: the adapter
@pace_vals: holds the returned values

Returns the values of TP's pace table in nanoseconds.
read the pace table @adap : the adapter @pace_vals : holds the returned values Returns the values of TP ' s pace table in nanoseconds .
void t3_read_pace_tbl(adapter_t *adap, unsigned int pace_vals[NTX_SCHED])
{
	unsigned int i, tick_ns = dack_ticks_to_usec(adap, 1000);
	for (i = 0; i < NTX_SCHED; i++) {
		t3_write_reg(adap, A_TP_PACE_TABLE, 0xffff0000 + i);
		pace_vals[i] = t3_read_reg(adap, A_TP_PACE_TABLE) * tick_ns;
	}
}
void t3_read_pace_tbl ( adapter_t * adap , unsigned int pace_vals [ NTX_SCHED ] ) { unsigned int i , tick_ns = dack_ticks_to_usec ( adap , 1000 ) ; for ( i = 0 ; i < NTX_SCHED ; i ++ ) { t3_write_reg ( adap , A_TP_PACE_TABLE , 0xffff0000 + i ) ; pace_vals [ i ] = t3_read_reg ( adap , A_TP_PACE_TABLE ) * tick_ns ; } }
t3_read_pace_tbl - read the pace table
      @adap: the adapter
      @pace_vals: holds the returned values
t3_read_pace_tbl - read the pace table @adap : the adapter @pace_vals : holds the returned values