Регистры Allwinner H616

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


EMAC_RX_CTL1
6.1. EMAC Receive Control Register1 - адрес: 0x5020028 0x5030028 (смещение: 0x0028)

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



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

  RX_DMA_START

Bit 31
R/W
0x0

When set, the RX DMA will not work. It is cleared internally and always read a 0.


  RX_DMA_EN

Bit 30
R/W
0x0

Receive DMA Enable
0: Stop RX DMA after finish receiving current frame
1: Start and run RX DMA


  Unused

Bits 29 : 25

  RX_FIFO_FLOW_CTL

Bit 24
R/W
0x0

Receive FIFO Flow Control Enable
0: Disable
1: Enable,base on RX_FLOW_CTL_TH_DEACT and RX_FLOW_CTL_TH_ACT


  RX_FLOW_CTL_TH_DEACT

Bits 23 : 22
R/W
0x0Thres

00: Full minus 1 KB
01: Full minus 2 KB
10: Full minus 3 KB
11: Full minus 4 KB
Valid in both half-duplex mode and full-duplex mode.


  RX_FLOW_CTL_TH_ACT

Bits 21 : 20
R/W
0x0

Threshold for Activating Flow Control
00: Full minus 1 KB
01: Full minus 2 KB
10: Full minus 3 KB
11: Full minus 4 KB
Valid in both half-duplex mode and full-duplex mode.


  Unused

Bits 19 : 6

  RX_TH

Bits 5 : 4
R/W
0x0

Threshold for RX DMA FIFO Start
00: 64
01: 32
10: 96
11: 128
Note: Only valid when RX_MD == 0, full frames with a length less than the
threshold are transferred automatically.


  RX_ERR_FRM

Bit 3
R/W
0x0

0: RX DMA drops frames with error
1: RX DMA forwards frames with error


  RX_RUNT_FRM

Bit 2
R/W
0x0

When setting, forward undersized frames with no error and length less than
64 bytes


  RX_MD

Bit 1
R/W
0x0

Receive Mode
0: RX start read after RX DMA FIFO bytes is greater than RX_TH
1: RX start read after RX DMA FIFO located a full frame


  FLUSH_RX_FRM

Bit 0
R/W
0x0

Flush Receive Frames
0: Enable when receive descriptors/buffers is unavailable
1: Disable



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

md 5020028 1
md 5030028 1



Bit fields structure

typedef union  emac_rx_ctl1
{
  struct
  {
   unsigned flush_rx_frm : 1;
   unsigned rx_md : 1;
   unsigned rx_runt_frm : 1;
   unsigned rx_err_frm : 1;
   unsigned rx_th : 2;
   unsigned unused0 : 14;
   unsigned rx_flow_ctl_th_act : 2;
   unsigned rx_flow_ctl_th_deact : 2;
   unsigned rx_fifo_flow_ctl : 1;
   unsigned unused1 : 5;
   unsigned rx_dma_en : 1;
   unsigned rx_dma_start : 1;
  } b;
   unsigned long w;
} EMAC_RX_CTL1
   

Allwinner H616 Manual