EMAC_MII_CMD Контроллер Ethernet: список регистров 31 |•|•|•|•|•|•|•|•|•|•|•|•|•|•|•|•| 16 15 |•|•|•|•|•|•|•|•|•|•|•|•|•|•|•|•| 00 Unused Bits 31 : 23MDC_DIV_RATIO_M Bits 22 : 20R/W 0x0 MDC Clock Divide Ratio Unused Bits 19 : 17PHY_ADDR Bits 16 : 12R/W 0x0 PHY Address Unused Bits 11 : 9PHY_REG_ADDR Bits 8 : 4R/W 0x0 PHY Register Address Unused Bits 3 : 2MII_WR Bit 1R/W 0x0 MII Write and Read MII_BUSY Bit 0R/W 0x0 0: Write no valid, read 0 indicates finish in read or write operation Команда U-Boot для чтения регистра md 5020048 1md 5030048 1 Bit fields structuretypedef union emac_mii_cmd { struct { unsigned mii_busy : 1; unsigned mii_wr : 1; unsigned unused0 : 2; unsigned phy_reg_addr : 5; unsigned unused1 : 3; unsigned phy_addr : 5; unsigned unused2 : 3; unsigned mdc_div_ratio_m : 3; unsigned unused3 : 9; } b; unsigned long w; } EMAC_MII_CMD |