From 8620d5f2a02a3c6d74752564ad6f998099da6a63 Mon Sep 17 00:00:00 2001 From: Abdur-Rahman Mansoor Date: Wed, 29 May 2024 15:45:07 -0400 Subject: [PATCH] remove: proc get_dstrd --- drivers/nvme/nvme.asm | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/drivers/nvme/nvme.asm b/drivers/nvme/nvme.asm index b66ae99..312f276 100644 --- a/drivers/nvme/nvme.asm +++ b/drivers/nvme/nvme.asm @@ -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