mirror of
https://git.missingno.dev/kolibrios-nvme-driver/
synced 2025-01-08 22:16:13 +01:00
rename PCI_DEBUGF macro to PDEBUGF
This commit is contained in:
parent
376e133db7
commit
a4a57c3b44
@ -8,16 +8,14 @@
|
|||||||
;; ;;
|
;; ;;
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
;include "../fdo.inc"
|
macro PDEBUGF _level*, _fmt*, _bus*, _devfn*, [_args] {
|
||||||
|
|
||||||
macro PCI_DEBUGF _level*, _ptr*, _fmt*, [_args] {
|
|
||||||
push ebx
|
push ebx
|
||||||
push ecx
|
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
|
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)
|
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 ecx
|
||||||
pop ebx
|
pop ebx
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user