File tree Expand file tree Collapse file tree
TLS13-ENC28J60-client/main
TLS13-ENC28J60-server/main Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,6 +75,25 @@ typedef union {
7575} bmcr_reg_t ;
7676#define ETH_PHY_BMCR_REG_ADDR (0x00)
7777
78+ /* standard 802.3 PHY identifier registers, also from the removed header */
79+ typedef union {
80+ struct {
81+ uint32_t oui_msb : 16 ; // Organizationally Unique Identifier bits 3:18
82+ };
83+ uint32_t val ;
84+ } phyidr1_reg_t ;
85+ #define ETH_PHY_IDR1_REG_ADDR (0x02)
86+
87+ typedef union {
88+ struct {
89+ uint32_t model_revision : 4 ; // Model revision number
90+ uint32_t vendor_model : 6 ; // Vendor model number
91+ uint32_t oui_lsb : 6 ; // Organizationally Unique Identifier bits 19:24
92+ };
93+ uint32_t val ;
94+ } phyidr2_reg_t ;
95+ #define ETH_PHY_IDR2_REG_ADDR (0x03)
96+
7897typedef union {
7998 struct {
8099 uint32_t reserved_4_0 : 5 ; // Reserved
Original file line number Diff line number Diff line change @@ -75,6 +75,25 @@ typedef union {
7575} bmcr_reg_t ;
7676#define ETH_PHY_BMCR_REG_ADDR (0x00)
7777
78+ /* standard 802.3 PHY identifier registers, also from the removed header */
79+ typedef union {
80+ struct {
81+ uint32_t oui_msb : 16 ; // Organizationally Unique Identifier bits 3:18
82+ };
83+ uint32_t val ;
84+ } phyidr1_reg_t ;
85+ #define ETH_PHY_IDR1_REG_ADDR (0x02)
86+
87+ typedef union {
88+ struct {
89+ uint32_t model_revision : 4 ; // Model revision number
90+ uint32_t vendor_model : 6 ; // Vendor model number
91+ uint32_t oui_lsb : 6 ; // Organizationally Unique Identifier bits 19:24
92+ };
93+ uint32_t val ;
94+ } phyidr2_reg_t ;
95+ #define ETH_PHY_IDR2_REG_ADDR (0x03)
96+
7897typedef union {
7998 struct {
8099 uint32_t reserved_4_0 : 5 ; // Reserved
You can’t perform that action at this time.
0 commit comments