mirror of
https://git.missingno.dev/kolibrios-nvme-driver/
synced 2024-12-22 22:08:47 +01:00
add get_log_page (incomplete)
This commit is contained in:
parent
04f89899de
commit
cec15b9114
@ -337,6 +337,24 @@ proc delete_io_submission_queue stdcall, pci:dword, qid:word
|
||||
|
||||
endp
|
||||
|
||||
; See page 117-118 of the NVMe 1.4 specification for reference
|
||||
; INCOMPLETE
|
||||
proc get_log_page stdcall, pci:dword, dptr:dword, lid:byte
|
||||
|
||||
push esi
|
||||
mov esi, [pci]
|
||||
mov esi, [esi + pcidev.sq_ptr]
|
||||
stdcall memset, esi, 0, sizeof.SQ_ENTRY
|
||||
stdcall set_cdw0, ADM_CMD_GET_LOG_PAGE, 0 ; [TODO: Set CID to valid value]
|
||||
mov dword [esi + SQ_ENTRY.cdw0], eax
|
||||
mov eax, [dptr]
|
||||
mov dword [esi + SQ_ENTRY.dptr], eax
|
||||
pop esi
|
||||
ret
|
||||
|
||||
endp
|
||||
|
||||
|
||||
proc detect_nvme
|
||||
|
||||
invoke GetPCIList
|
||||
|
Loading…
Reference in New Issue
Block a user