Skip to content

Commit 7893d0a

Browse files
committed
More BigMac regs + descriptions
1 parent 7f34504 commit 7893d0a

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

devices/ethernet/bigmac.h

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,28 +41,30 @@ enum BigMacReg : uint16_t {
4141
TX_FIFO_CSR = 0x100,
4242
TX_FIFO_TH = 0x110,
4343
RX_FIFO_CSR = 0x120,
44-
MEM_ADD = 0x130,
45-
MEM_DATA_HI = 0x140,
46-
MEM_DATA_LO = 0x150,
44+
MEM_ADD = 0x130, // Memory Address
45+
MEM_DATA_HI = 0x140, // Memory Data High
46+
MEM_DATA_LO = 0x150, // Memory Data Low
47+
XCVR_IF = 0x160, // Transceiver IF Control
4748
CHIP_ID = 0x170,
4849
MIF_CSR = 0x180,
50+
SROM_CSR = 0x190,
51+
TX_PNTR = 0x1A0, // Apple: TX Pointer
52+
RX_PNTR = 0x1B0, // Apple: RX Pointer
4953
GLOB_STAT = 0x200, // Apple: kSTAT, Sun: Global Status Register
5054
EVENT_MASK = 0x210, // ambiguously called INT_DISABLE in the Apple source
51-
SROM_CSR = 0x190,
52-
TX_PNTR = 0x1A0,
53-
RX_PNTR = 0x1B0,
5455
TX_SW_RST = 0x420,
5556
TX_CONFIG = 0x430,
5657
IPG_1 = 0x440, // Inter Packet Gap 1
5758
IPG_2 = 0x450,
58-
A_LIMIT = 0x460,
59+
A_LIMIT = 0x460, // Attempt Limit
5960
SLOT = 0x470,
6061
PA_LEN = 0x480, // Apple: PA Len, Sun: PA Size
6162
PA_PAT = 0x490,
6263
TX_SFD = 0x4A0,
63-
TX_MAX = 0x4C0,
64-
TX_MIN = 0x4D0,
64+
TX_MAX = 0x4C0, // Max frame size
65+
TX_MIN = 0x4D0, // Min frame size
6566
PEAK_ATT = 0x4E0, // Apple: kPAREG, Sun: PeakAttempts Register
67+
DEFER_TMR = 0x4F0, // Also called DCNT by Apple
6668
NC_CNT = 0x500, // Normal Collision Counter
6769
NT_CNT = 0x510, // Apple: Network Collision Counter
6870
EX_CNT = 0x520, // Excessive Collision Counter
@@ -71,6 +73,8 @@ enum BigMacReg : uint16_t {
7173
TX_SM = 0x550,
7274
RX_SW_RST = 0x620,
7375
RX_CONFIG = 0x630,
76+
RX_MAX = 0x640,
77+
RX_MIN = 0x650,
7478
MAC_ADDR_2 = 0x660,
7579
MAC_ADDR_1 = 0x670,
7680
MAC_ADDR_0 = 0x680,
@@ -83,6 +87,10 @@ enum BigMacReg : uint16_t {
8387
HASH_TAB_2 = 0x710,
8488
HASH_TAB_1 = 0x720,
8589
HASH_TAB_0 = 0x730,
90+
AFR_2 = 0x740, // Address Filter 2
91+
AFR_1 = 0x750, // Address Filter 1
92+
AFR_0 = 0x760, // Address Filter 0
93+
AFC_R = 0x770, // Address Filter Mask
8694
};
8795

8896
/* MIF_CSR bit definitions. */

0 commit comments

Comments
 (0)