mirror of
https://git.missingno.dev/kolibrios-nvme-driver/
synced 2024-12-22 22:08:47 +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_IOCQES = 4 shl 16
|
||||
|
||||
MAX_NVM_PCIDEVS_BYTES = 16
|
||||
MAX_NVM_PCIDEVS = MAX_NVM_PCIDEVS_BYTES / 4
|
||||
|
||||
struct NVME_REG_MAP
|
||||
CAP rq 1 ; Controller Capabilities
|
||||
VS rd 1 ; Version
|
||||
@ -144,15 +147,10 @@ struct SQ_ENTRY
|
||||
cdw15 rd 1
|
||||
ends
|
||||
|
||||
; Completion Queue Entry ()
|
||||
|
||||
struc nvme_dev {
|
||||
.pci_bus dd ?
|
||||
.pci_devfn dd ?
|
||||
.bar0 dd ?
|
||||
.serial db 20
|
||||
.model db 40
|
||||
}
|
||||
struct pcidev
|
||||
bus dd ?
|
||||
devfn dd ?
|
||||
ends
|
||||
|
||||
struct NVME_IDENT_CONTROLLER
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user