Skip to content

Commit 8e1f0f9

Browse files
author
Ian Seyler
committed
Add comments to net_table
1 parent a84c0a2 commit 8e1f0f9

File tree

1 file changed

+16
-22
lines changed

1 file changed

+16
-22
lines changed

src/sysvar.asm

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,6 @@ key: equ os_SystemVariables + 0x0301
116116
key_shift: equ os_SystemVariables + 0x0302
117117
os_BusEnabled: equ os_SystemVariables + 0x0303 ; 1 if PCI is enabled, 2 if PCIe is enabled
118118
os_NetEnabled: equ os_SystemVariables + 0x0304 ; 1 if a supported network card was enabled
119-
;os_NetIRQ: equ os_SystemVariables + 0x0305 ; Set to Interrupt line that NIC is connected to
120-
;os_NetActivity_TX: equ os_SystemVariables + 0x0306
121-
;os_NetActivity_RX: equ os_SystemVariables + 0x0307
122-
;os_EthernetBuffer_C1: equ os_SystemVariables + 0x0308 ; Counter 1 for the Ethernet RX Ring Buffer
123-
;os_EthernetBuffer_C2: equ os_SystemVariables + 0x0309 ; Counter 2 for the Ethernet RX Ring Buffer
124-
;os_nvsEnabled: equ os_SystemVariables + 0x030A
125-
;os_nvsActivity: equ os_SystemVariables + 0x030B
126119
os_NVMeIRQ: equ os_SystemVariables + 0x030C
127120
os_NVMeMJR: equ os_SystemVariables + 0x030D
128121
os_NVMeMNR: equ os_SystemVariables + 0x030E
@@ -149,21 +142,22 @@ net_table: equ os_SystemVariables + 0xA000
149142
os_PacketBuffers: equ os_SystemVariables + 0xC000 ; 16KiB
150143

151144
; net_table values (per device - 128 bytes)
152-
nt_ID: equ 0x00 ; 16-bit
153-
nt_lock: equ 0x02 ; 16-bit
154-
nt_MAC: equ 0x08 ; 48-bit
155-
nt_base: equ 0x10 ; 64-bit
156-
nt_len: equ 0x18 ; 64-bit
157-
nt_transmit: equ 0x20 ; 64-bit
158-
nt_poll: equ 0x28 ; 64-bit
159-
nt_tx_desc: equ 0x30 ; 64-bit
160-
nt_rx_desc: equ 0x38 ; 64-bit
161-
nt_tx_tail: equ 0x40 ; 64-bit
162-
nt_rx_head: equ 0x44 ; 64-bit
163-
nt_tx_packets: equ 0x50 ; 64-bit
164-
nt_tx_bytes: equ 0x58 ; 64-bit
165-
nt_rx_packets: equ 0x60 ; 64-bit
166-
nt_rx_bytes: equ 0x68 ; 64-bit
145+
nt_ID: equ 0x00 ; 16-bit Driver ID
146+
nt_lock: equ 0x02 ; 16-bit Lock for b_net_tx
147+
nt_MAC: equ 0x08 ; 48-bit MAC Address
148+
nt_base: equ 0x10 ; 64-bit Base MMIO
149+
nt_len: equ 0x18 ; 64-bit Length of MMIO
150+
nt_transmit: equ 0x20 ; 64-bit Transmit function address
151+
nt_poll: equ 0x28 ; 64-bit Poll function address
152+
; nt_desc: equ 0xXX ; 64-bit Address of TX/RX descriptors
153+
nt_tx_desc: equ 0x30 ; 64-bit Address of TX descriptors
154+
nt_rx_desc: equ 0x38 ; 64-bit Address of RX descriptors
155+
nt_tx_tail: equ 0x40 ; 64-bit TX Tail
156+
nt_rx_head: equ 0x44 ; 64-bit RX Head
157+
nt_tx_packets: equ 0x50 ; 64-bit Number of packets transmitted
158+
nt_tx_bytes: equ 0x58 ; 64-bit Number of bytes transmitted
159+
nt_rx_packets: equ 0x60 ; 64-bit Number of packets received
160+
nt_rx_bytes: equ 0x68 ; 64-bit Number of bytes received
167161
; bytes 70-7F for future use
168162

169163

0 commit comments

Comments
 (0)