mirror of
https://git.missingno.dev/kolibrios-nvme-driver/
synced 2024-12-22 13:58:47 +01:00
refactor: change queue size from 63 to 64
This commit is contained in:
parent
511db105a9
commit
4d3211604d
@ -18,12 +18,12 @@ VS140 = 0x00010400 ; (v1.4.0)
|
|||||||
|
|
||||||
NVM_CMDS = 64 ; Number of Commands
|
NVM_CMDS = 64 ; Number of Commands
|
||||||
NVM_MPS = 0 ; Memory Page Size (2 ^ (12 + MPS))
|
NVM_MPS = 0 ; Memory Page Size (2 ^ (12 + MPS))
|
||||||
NVM_ASQS = 63 ; Admin Submission Queue Size
|
NVM_ASQS = 64 ; Admin Submission Queue Size
|
||||||
NVM_ACQS = NVM_ASQS ; Admin Completion Queue Size
|
NVM_ACQS = NVM_ASQS ; Admin Completion Queue Size
|
||||||
LAST_QUEUE_ID = 1 ; Index of the last queue
|
LAST_QUEUE_ID = 1 ; Index of the last queue
|
||||||
SQ_ENTRIES = NVM_ASQS ; I/O and Admin Submission Queue Size
|
SQ_ENTRIES = NVM_ASQS ; I/O and Admin Submission Queue Size
|
||||||
CQ_ENTRIES = NVM_ACQS ; I/O and Admin Completion Queue Size
|
CQ_ENTRIES = NVM_ACQS ; I/O and Admin Completion Queue Size
|
||||||
PAGE_SIZE = 4096 shl NVM_MPS
|
PAGE_SIZE = 4096 shl NVM_MPS ; Use 4KiB pages
|
||||||
SUPPORTED_LBADS = 9 ; KolibriOS only supports LBADS of 512, later on we may remove this restriction
|
SUPPORTED_LBADS = 9 ; KolibriOS only supports LBADS of 512, later on we may remove this restriction
|
||||||
|
|
||||||
MSIXCAP_CID = 0x11
|
MSIXCAP_CID = 0x11
|
||||||
@ -557,6 +557,8 @@ ends
|
|||||||
assert NVM_ASQS = NVM_ACQS
|
assert NVM_ASQS = NVM_ACQS
|
||||||
assert SQ_ENTRIES = NVM_ASQS
|
assert SQ_ENTRIES = NVM_ASQS
|
||||||
assert CQ_ENTRIES = NVM_ACQS
|
assert CQ_ENTRIES = NVM_ACQS
|
||||||
|
assert NVM_MPS = 0
|
||||||
|
assert PAGE_SIZE = 0x1000
|
||||||
assert sizeof.NVME_MMIO = 4096
|
assert sizeof.NVME_MMIO = 4096
|
||||||
assert sizeof.SQ_ENTRY = 64
|
assert sizeof.SQ_ENTRY = 64
|
||||||
assert sizeof.CQ_ENTRY = 16
|
assert sizeof.CQ_ENTRY = 16
|
||||||
|
Loading…
Reference in New Issue
Block a user