Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/nvme/nvme.h
Show All 35 Lines | |||||
#endif | #endif | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/endian.h> | #include <sys/endian.h> | ||||
#define NVME_PASSTHROUGH_CMD _IOWR('n', 0, struct nvme_pt_command) | #define NVME_PASSTHROUGH_CMD _IOWR('n', 0, struct nvme_pt_command) | ||||
#define NVME_RESET_CONTROLLER _IO('n', 1) | #define NVME_RESET_CONTROLLER _IO('n', 1) | ||||
#define NVME_GET_NSID _IOR('n', 2, struct nvme_get_nsid) | #define NVME_GET_NSID _IOR('n', 2, struct nvme_get_nsid) | ||||
#define NVME_GET_MAX_XFER_SIZE _IOR('n', 3, uint64_t) | |||||
#define NVME_IO_TEST _IOWR('n', 100, struct nvme_io_test) | #define NVME_IO_TEST _IOWR('n', 100, struct nvme_io_test) | ||||
#define NVME_BIO_TEST _IOWR('n', 101, struct nvme_io_test) | #define NVME_BIO_TEST _IOWR('n', 101, struct nvme_io_test) | ||||
/* | /* | ||||
* Macros to deal with NVME revisions, as defined VS register | * Macros to deal with NVME revisions, as defined VS register | ||||
*/ | */ | ||||
#define NVME_REV(x, y) (((x) << 16) | ((y) << 8)) | #define NVME_REV(x, y) (((x) << 16) | ((y) << 8)) | ||||
▲ Show 20 Lines • Show All 1,892 Lines • Show Last 20 Lines |