Регистры Allwinner H616

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


EMAC_RX_CTL0
6.1. EMAC Receive Control Register0 - адрес: 0x5020024 0x5030024 (смещение: 0x0024)

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



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

  RX_EN

Bit 31
R/W
0x0

Enable Receiver
0: Disable receiver after current reception
1: Enable


  RX_FRM_LEN_CTL

Bit 30
R/W
0x0

Frame Receive Length Control
0: Up to 2,048 bytes (JUMBO_FRM_EN==0)
Up to 10,240 bytes (JUMBO_FRM_EN==1)
1: Up to 16,384 bytes
Any bytes after that is cut off


  JUMBO_FRM_EN

Bit 29
R/W
0x0

Jumbo Frame Enable
0: Disable
1: Enable Jumbo frames of 9,018 bytes without reporting a giant


  STRIP_FCS

Bit 28
R/W
0x0

When set, strip the Pad/FCS field on received frames only when the length's
field value is less than or equal to 1,500 bytes.


  CHECK_CRC

Bit 27
R/W
0x0

Check CRC Enable
0: Disable
1: Calculate CRC and check the IPv4 Header Checksum.


  Unused

Bits 26 : 18

  RX_PAUSE_FRM_MD

Bit 17
R/W
0x0

0: Only detect multicast pause frame specified in the 802.3x standard.
1: In addition to detect multicast pause frame specified in the 802.3x
standard, also detect unicast pause frame with address specified in MAC
Address 0 High Register and MAC address 0 Low Register.


  RX_FLOW_CTL_EN

Bit 16
R/W
0x0

When set, enable the functionality that decode the received pause frame
and disable its transmitter for a specified time by pause frame.


  Unused

Bits 15 : 0


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

md 5020024 1
md 5030024 1



Bit fields structure

typedef union  emac_rx_ctl0
{
  struct
  {
   unsigned unused0 : 16;
   unsigned rx_flow_ctl_en : 1;
   unsigned rx_pause_frm_md : 1;
   unsigned unused1 : 9;
   unsigned check_crc : 1;
   unsigned strip_fcs : 1;
   unsigned jumbo_frm_en : 1;
   unsigned rx_frm_len_ctl : 1;
   unsigned rx_en : 1;
  } b;
   unsigned long w;
} EMAC_RX_CTL0
   

Allwinner H616 Manual