2
0
mirror of https://git.missingno.dev/kolibrios-nvme-driver/ synced 2024-12-23 06:18:47 +01:00

add more debug messages

This commit is contained in:
Abdur-Rahman Mansoor 2024-05-25 19:26:51 -04:00
parent 78af4fb996
commit a940d7e963

View File

@ -205,7 +205,7 @@ proc device_is_compat stdcall, pci:dword
mov ebx, [pci] mov ebx, [pci]
mov dword [ebx + pcidev.mmio_ptr], eax mov dword [ebx + pcidev.mmio_ptr], eax
mov eax, dword [eax + NVME_MMIO.VS] mov eax, dword [eax + NVME_MMIO.VS]
DEBUGF DBG_INFO, "(NVMe) controller version: 0x%x\n", eax DEBUGF DBG_INFO, "(NVMe) Controller version: 0x%x\n", eax
pop ebx pop ebx
xor eax, eax xor eax, eax
inc eax inc eax
@ -225,6 +225,14 @@ proc nvme_init stdcall, pci:dword
push ebx push ebx
mov eax, dword [pci] mov eax, dword [pci]
mov eax, dword [eax + pcidev.mmio_ptr] mov eax, dword [eax + pcidev.mmio_ptr]
if __DEBUG__
mov ebx, dword [eax + NVME_MMIO.CAP]
DEBUGF DBG_INFO, "(NVMe) CAP (0-31): 0x%x\n", ebx
mov ebx, dword [eax + NVME_MMIO.CAP + 4]
DEBUGF DBG_INFO, "(NVMe) CAP (32-63): 0x%x\n", ebx
end if
mov ebx, dword [eax + NVME_MMIO.CAP] mov ebx, dword [eax + NVME_MMIO.CAP]
test ebx, CAP_CQR test ebx, CAP_CQR
jz .cqr_not_req jz .cqr_not_req