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

remove: proc get_dstrd

This commit is contained in:
Abdur-Rahman Mansoor 2024-05-29 15:45:07 -04:00
parent e25a3cd92a
commit 8620d5f2a0

View File

@ -383,19 +383,6 @@ proc cq0thbl_write stdcall, dstrd:dword
endp
proc get_dstrd stdcall, pci:dword
; Stride is (2 ^ (2 + DSTRD)) bytes
mov eax, [pci]
mov eax, dword [eax + pcidev.mmio_ptr]
mov eax, dword [eax + NVME_MMIO.CAP + 4]
and eax, CAP_DSTRD
add eax, 2
stdcall pow2, eax
ret
endp
; Calculates 2^x
proc pow2 stdcall, x:dword