mirror of
https://git.missingno.dev/kolibrios-nvme-driver/
synced 2025-01-09 06:25:55 +01:00
remove: proc get_dstrd
This commit is contained in:
parent
e25a3cd92a
commit
8620d5f2a0
@ -383,19 +383,6 @@ proc cq0thbl_write stdcall, dstrd:dword
|
|||||||
|
|
||||||
endp
|
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
|
; Calculates 2^x
|
||||||
proc pow2 stdcall, x:dword
|
proc pow2 stdcall, x:dword
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user