diff options
author | jimharris <jimharris@FreeBSD.org> | 2013-03-26 21:16:53 +0000 |
---|---|---|
committer | jimharris <jimharris@FreeBSD.org> | 2013-03-26 21:16:53 +0000 |
commit | d207d40160104608ba5d1fca69fd5d55b6398022 (patch) | |
tree | 98d78daa62dc8677444d42d356c2628bcc0f9afd /sys/dev/nvme/nvme_private.h | |
parent | 21ee92ac4f6bdb321bcb61110a71cc121390f2b9 (diff) | |
download | FreeBSD-src-d207d40160104608ba5d1fca69fd5d55b6398022.zip FreeBSD-src-d207d40160104608ba5d1fca69fd5d55b6398022.tar.gz |
Ensure the controller's MDTS is accounted for in max_xfer_size.
The controller's IDENTIFY data contains MDTS (Max Data Transfer Size) to
allow the controller to specify the maximum I/O data transfer size. nvme(4)
already provides a default maximum, but make sure it does not exceed what
MDTS reports.
Sponsored by: Intel
Reviewed by: carl
Diffstat (limited to 'sys/dev/nvme/nvme_private.h')
-rw-r--r-- | sys/dev/nvme/nvme_private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/nvme/nvme_private.h b/sys/dev/nvme/nvme_private.h index dd36a86..4a02a1b 100644 --- a/sys/dev/nvme/nvme_private.h +++ b/sys/dev/nvme/nvme_private.h @@ -265,6 +265,9 @@ struct nvme_controller { /** maximum i/o size in bytes */ uint32_t max_xfer_size; + /** minimum page size supported by this controller in bytes */ + uint32_t min_page_size; + /** interrupt coalescing time period (in microseconds) */ uint32_t int_coal_time; |