|
|
@ -107,22 +107,14 @@ static unsigned int byte40_table_ps[8] = { |
|
|
|
static unsigned int |
|
|
|
static unsigned int |
|
|
|
compute_trfc_ps_from_spd(unsigned char trctrfc_ext, unsigned char trfc) |
|
|
|
compute_trfc_ps_from_spd(unsigned char trctrfc_ext, unsigned char trfc) |
|
|
|
{ |
|
|
|
{ |
|
|
|
unsigned int trfc_ps; |
|
|
|
return (((trctrfc_ext & 0x1) * 256) + trfc) * 1000 |
|
|
|
|
|
|
|
|
|
|
|
trfc_ps = (((trctrfc_ext & 0x1) * 256) + trfc) * 1000 |
|
|
|
|
|
|
|
+ byte40_table_ps[(trctrfc_ext >> 1) & 0x7]; |
|
|
|
+ byte40_table_ps[(trctrfc_ext >> 1) & 0x7]; |
|
|
|
|
|
|
|
|
|
|
|
return trfc_ps; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static unsigned int |
|
|
|
static unsigned int |
|
|
|
compute_trc_ps_from_spd(unsigned char trctrfc_ext, unsigned char trc) |
|
|
|
compute_trc_ps_from_spd(unsigned char trctrfc_ext, unsigned char trc) |
|
|
|
{ |
|
|
|
{ |
|
|
|
unsigned int trc_ps; |
|
|
|
return trc * 1000 + byte40_table_ps[(trctrfc_ext >> 4) & 0x7]; |
|
|
|
|
|
|
|
|
|
|
|
trc_ps = trc * 1000 + byte40_table_ps[(trctrfc_ext >> 4) & 0x7]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return trc_ps; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|