Skip to content

Commit b938a0f

Browse files
author
Ian Seyler
committed
update comments
1 parent 0e5554e commit b938a0f

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

src/drivers/net/ena.asm

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,19 +131,26 @@ net_ena_reset_wait_clear:
131131
mov eax, [rsi+ENA_CAPS]
132132
mov eax, [rsi+ENA_CAPS_EXT]
133133

134-
; Set device memory
134+
; Configure Admin Queue
135135
mov rax, 0x600000
136136
mov [rsi+ENA_AQ_BASE_LO], eax
137137
shr rax, 32
138138
mov [rsi+ENA_AQ_BASE_HI], eax
139+
mov eax, 0x00400002
140+
mov [rsi+ENA_AQ_CAPS], eax
141+
142+
; Configure Admin Completion Queue
139143
mov rax, 0x610000
140144
mov [rsi+ENA_ACQ_BASE_LO], eax
141145
shr rax, 32
142146
mov [rsi+ENA_ACQ_BASE_HI], eax
143-
mov rax, 0x620000
144-
mov [rsi+ENA_AENQ_BASE_LO], eax
145-
shr rax, 32
146-
mov [rsi+ENA_AENQ_BASE_HI], eax
147+
mov eax, 0x00400002
148+
mov [rsi+ENA_ACQ_CAPS], eax
149+
150+
; mov rax, 0x620000
151+
; mov [rsi+ENA_AENQ_BASE_LO], eax
152+
; shr rax, 32
153+
; mov [rsi+ENA_AENQ_BASE_HI], eax
147154

148155
; Create Admin Queues
149156
; Admin Submission Queue (AQ)
@@ -155,6 +162,7 @@ net_ena_reset_wait_clear:
155162
; opcode ENA_ADMIN_GET_FEATURE = 0x0008
156163
; feat_id ENA_ADMIN_DEVICE_ATTRIBUTES = 1
157164
; Put it in the queue
165+
; Write to the doorbell [rsi+ENA_AQ_DB]
158166
; Wait for completion
159167
; Check head has changed
160168
; Verify command

0 commit comments

Comments
 (0)