2
0
mirror of https://git.missingno.dev/kolibrios-nvme-driver/ synced 2025-02-07 12:46:51 +01:00

refactor: update pcidev struct and add NVM_SUPPORTED_CONTROLLER_VERSION

This commit is contained in:
ramenu 2024-04-28 21:03:10 -04:00
parent 9bf84c4953
commit 7a2af2dca9

View File

@ -8,6 +8,9 @@
;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Supported NVMe Controller Version
NVM_SUPPORTED_CONTROLLER_VERSION = 0x00010400 ; (v1.4)
; Opcodes for NVM commands
NVM_CMD_FLUSH = 0x00
NVM_CMD_WRITE = 0x01
@ -146,8 +149,10 @@ struct SQ_ENTRY
ends
struct pcidev
devfn db ?
bus db ?
devfn db ?
dw ?
mmio_ptr dd ?
ends
TOTAL_PCIDEVS = 4
TOTAL_PCIDEVS_MALLOC_SZ = TOTAL_PCIDEVS * sizeof.pcidev