Skip to content

Commit 48fd95e

Browse files
committed
Add additional BMAC registers
1 parent 15baf9a commit 48fd95e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

devices/ethernet/bigmac.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,34 @@ 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,
4447
CHIP_ID = 0x170,
4548
MIF_CSR = 0x180,
4649
GLOB_STAT = 0x200, // Apple: kSTAT, Sun: Global Status Register
4750
EVENT_MASK = 0x210, // ambiguously called INT_DISABLE in the Apple source
4851
SROM_CSR = 0x190,
52+
TX_PNTR = 0x1A0,
53+
RX_PNTR = 0x1B0,
4954
TX_SW_RST = 0x420,
5055
TX_CONFIG = 0x430,
56+
IPG_1 = 0x440, // Inter Packet Gap 1
57+
IPG_2 = 0x450,
58+
A_LIMIT = 0x460,
59+
SLOT = 0x470,
60+
PA_LEN = 0x480, // Apple: PA Len, Sun: PA Size
61+
PA_PAT = 0x490,
62+
TX_SFD = 0x4A0,
63+
TX_MAX = 0x4C0,
64+
TX_MIN = 0x4D0,
5165
PEAK_ATT = 0x4E0, // Apple: kPAREG, Sun: PeakAttempts Register
5266
NC_CNT = 0x500, // Normal Collision Counter
5367
NT_CNT = 0x510, // Apple: Network Collision Counter
5468
EX_CNT = 0x520, // Excessive Collision Counter
5569
LT_CNT = 0x530, // Late Collision Counter
5670
RNG_SEED = 0x540,
71+
TX_SM = 0x550,
5772
RX_SW_RST = 0x620,
5873
RX_CONFIG = 0x630,
5974
MAC_ADDR_2 = 0x660,

0 commit comments

Comments
 (0)