mirror of
https://git.missingno.dev/kolibrios-nvme-driver/
synced 2025-01-08 22:16:13 +01:00
refactor: remove some fields from pci_dev and add some constants
This commit is contained in:
parent
c74460ded2
commit
f652c5f362
@ -113,6 +113,9 @@ CC_CRIME = 1 shl 24
|
|||||||
CC_DEFAULT_IOSQES = 6 shl 16
|
CC_DEFAULT_IOSQES = 6 shl 16
|
||||||
CC_DEFAULT_IOCQES = 4 shl 16
|
CC_DEFAULT_IOCQES = 4 shl 16
|
||||||
|
|
||||||
|
MAX_NVM_PCIDEVS_BYTES = 16
|
||||||
|
MAX_NVM_PCIDEVS = MAX_NVM_PCIDEVS_BYTES / 4
|
||||||
|
|
||||||
struct NVME_REG_MAP
|
struct NVME_REG_MAP
|
||||||
CAP rq 1 ; Controller Capabilities
|
CAP rq 1 ; Controller Capabilities
|
||||||
VS rd 1 ; Version
|
VS rd 1 ; Version
|
||||||
@ -144,15 +147,10 @@ struct SQ_ENTRY
|
|||||||
cdw15 rd 1
|
cdw15 rd 1
|
||||||
ends
|
ends
|
||||||
|
|
||||||
; Completion Queue Entry ()
|
struct pcidev
|
||||||
|
bus dd ?
|
||||||
struc nvme_dev {
|
devfn dd ?
|
||||||
.pci_bus dd ?
|
ends
|
||||||
.pci_devfn dd ?
|
|
||||||
.bar0 dd ?
|
|
||||||
.serial db 20
|
|
||||||
.model db 40
|
|
||||||
}
|
|
||||||
|
|
||||||
struct NVME_IDENT_CONTROLLER
|
struct NVME_IDENT_CONTROLLER
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user