Регистры Allwinner H616

Сокращения  |  Дерево шин  |  Карта памяти


TSF_CBSZR
9.10.5. TSF Channel Buffer Size Register - адрес: 0x506f054 0x506f094 0x506f154 0x506f1d4 (смещение: TSF + 0x54)

Контроллер транспортного потока: список регистров



31 ||||||||||||||||| 16
15 ||||||||||||||||| 00

  Unused

Bits 31 : 26

  CHDMA_INT_THD

Bits 25 : 24
R/W
0x0

DMA Interrupt Threshold for Channel

The unit is TS packet size. When received packet (has also stored in DRAM)
size is beyond (>=) threshold value, the corresponding channel interrupt is
generated to CPU. TSC should count the new received packet again, when
exceed the specified threshold value, one new interrupt is generated again.
00: 1/2 data buffer packet size
01: 1/4 data buffer packet size
10: 1/8 data buffer packet size
11: 1/16 data buffer packet size


  Unused

Bits 23 : 21

  CH_BUF_PKT_SZ

Bits 20 : 0
R/W
0x0

Data Buffer Packet Size for Channel
The exact buffer size of buffer is N+1 bytes.
The maximum buffer size is 2 MB.
This size should be 4-word (16 bytes) aligned. The LSB four bits should be zero.



Команда U-Boot для чтения регистра

md 506f054 1
md 506f094 1
md 506f154 1
md 506f1d4 1



Bit fields structure

typedef union  tsf_cbszr
{
  struct
  {
   unsigned ch_buf_pkt_sz : 21;
   unsigned unused0 : 3;
   unsigned chdma_int_thd : 2;
   unsigned unused1 : 6;
  } b;
   unsigned long w;
} TSF_CBSZR
   

Allwinner H616 Manual