2
0
mirror of https://git.missingno.dev/kolibrios-nvme-driver/ synced 2024-11-12 19:27:28 +01:00

feat: implement delete_io_submission_queue and delete_io_completion_queue

This commit is contained in:
Abdur-Rahman Mansoor 2024-06-04 15:09:39 -04:00
parent 021012d350
commit ee43919267

View File

@ -185,6 +185,36 @@ proc create_io_submission_queue stdcall, pci:dword, prp1:dword, qid:word, cqid:w
endp
proc delete_io_completion_queue stdcall, pci:dword, qid:word
push esi
mov esi, [pci]
mov esi, [esi + pcidev.sq_ptr]
stdcall memset, esi, 0, sizeof.SQ_ENTRY
mov ax, [qid]
mov word [esi + SQ_ENTRY.cdw10], ax
stdcall sqytdbl_write, [pci], [qid], 0 ; setting last param to 0 for now, change later
pop esi
ret
endp
proc delete_io_submission_queue stdcall, pci:dword, qid:word
push esi
mov esi, [pci]
mov esi, [esi + pcidev.sq_ptr]
stdcall memset, esi, 0, sizeof.SQ_ENTRY
mov ax, [qid]
mov word [esi + SQ_ENTRY.cdw10], ax
stdcall sqytdbl_write, [pci], [qid], 0 ; setting last param to 0 for now, change later
pop esi
ret
endp
proc detect_nvme
proc detect_nvme
invoke GetPCIList