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

rename PCI_DEBUGF macro to PDEBUGF

This commit is contained in:
ramenu 2024-04-21 17:05:47 -04:00
parent 376e133db7
commit a4a57c3b44

View File

@ -8,16 +8,14 @@
;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;include "../fdo.inc"
macro PCI_DEBUGF _level*, _ptr*, _fmt*, [_args] {
macro PDEBUGF _level*, _fmt*, _bus*, _devfn*, [_args] {
push ebx
push ecx
movzx ebx, byte [_ptr + PCIDEV.devfn]
movzx ebx, _devfn
shr ebx, 3 ; get rid of 3 lowest bits (function code), the rest bits is device code
movzx ecx, byte [_ptr + PCIDEV.devfn]
movzx ecx, _devfn
and ecx, 00000111b ; get only 3 lowest bits (function code)
DEBUGF _level, _fmt, [_ptr + PCIDEV.bus], ebx, ecx, _args
DEBUGF _level, _fmt, _bus, ebx, ecx, _args
pop ecx
pop ebx
}