Регистры Allwinner H616

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


EMAC_ADDR_HIGHN
6.1. EMAC MAC Address High RegisterN(N:1~7) - адрес: 0xa020817 0xa030817 (смещение: 0x0050+0x08*N(N=1~7))

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



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

  MAC_ADDR_CTL

Bit 31
R/W
0x0

MAC Address Valid
0: Not valid
1: Valid


  MAC_ADDR_TYPE

Bit 30
R/W
0x0

MAC Address Type
0: Used to compare with the destination address of the received frame
1: Used to compare with the source address of the received frame


  MAC_ADDR_BYTE_CTL

Bits 29 : 24
R/W
0x0

MAC Address Byte Control Mask
The lower bit of mask controls the lower byte of MAC address. When the bit
of mask is 1, do not compare the corresponding byte.


  Unused

Bits 23 : 16

  MAC_ADDR_HIGH

Bits 15 : 0
R/W
0x0

The upper 16bits of the MAC address.



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

md a020817 1
md a030817 1



Bit fields structure

typedef union  emac_addr_highn
{
  struct
  {
   unsigned mac_addr_high : 16;
   unsigned unused0 : 8;
   unsigned mac_addr_byte_ctl : 6;
   unsigned mac_addr_type : 1;
   unsigned mac_addr_ctl : 1;
  } b;
   unsigned long w;
} EMAC_ADDR_HIGHN
   

Allwinner H616 Manual