Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/nvme/nvme.h
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Use to mark a command to apply to all namespaces, or to retrieve global | * Use to mark a command to apply to all namespaces, or to retrieve global | ||||
* log pages. | * log pages. | ||||
*/ | */ | ||||
#define NVME_GLOBAL_NAMESPACE_TAG ((uint32_t)0xFFFFFFFF) | #define NVME_GLOBAL_NAMESPACE_TAG ((uint32_t)0xFFFFFFFF) | ||||
/* Cap nvme to 1MB transfers driver explodes with larger sizes */ | /* Cap nvme to 1MB transfers driver explodes with larger sizes */ | ||||
#define NVME_MAX_XFER_SIZE (MAXPHYS < (1<<20) ? MAXPHYS : (1<<20)) | #define NVME_MAX_XFER_SIZE (maxphys < (1<<20) ? maxphys : (1<<20)) | ||||
/* Register field definitions */ | /* Register field definitions */ | ||||
#define NVME_CAP_LO_REG_MQES_SHIFT (0) | #define NVME_CAP_LO_REG_MQES_SHIFT (0) | ||||
#define NVME_CAP_LO_REG_MQES_MASK (0xFFFF) | #define NVME_CAP_LO_REG_MQES_MASK (0xFFFF) | ||||
#define NVME_CAP_LO_REG_CQR_SHIFT (16) | #define NVME_CAP_LO_REG_CQR_SHIFT (16) | ||||
#define NVME_CAP_LO_REG_CQR_MASK (0x1) | #define NVME_CAP_LO_REG_CQR_MASK (0x1) | ||||
#define NVME_CAP_LO_REG_AMS_SHIFT (17) | #define NVME_CAP_LO_REG_AMS_SHIFT (17) | ||||
#define NVME_CAP_LO_REG_AMS_MASK (0x3) | #define NVME_CAP_LO_REG_AMS_MASK (0x3) | ||||
▲ Show 20 Lines • Show All 1,915 Lines • Show Last 20 Lines |