mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-14 14:10:27 +08:00
parent
eb4dcdf76d
commit
6735da1a70
@ -44,6 +44,9 @@
|
|||||||
#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)
|
||||||
|
#ifdef __rtems__
|
||||||
|
#define NVME_GET_NAMESPACE _IOR('n', 10, struct nvme_namespace *)
|
||||||
|
#endif /* __rtems__ */
|
||||||
|
|
||||||
#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)
|
||||||
|
@ -96,6 +96,11 @@ nvme_ns_ioctl(struct cdev *cdev, u_long cmd, caddr_t arg, int flag,
|
|||||||
gnsid->nsid = ns->id;
|
gnsid->nsid = ns->id;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#ifdef __rtems__
|
||||||
|
case NVME_GET_NAMESPACE:
|
||||||
|
*(struct nvme_namespace **)arg = ns;
|
||||||
|
break;
|
||||||
|
#endif /* __rtems__ */
|
||||||
case DIOCGMEDIASIZE:
|
case DIOCGMEDIASIZE:
|
||||||
*(off_t *)arg = (off_t)nvme_ns_get_size(ns);
|
*(off_t *)arg = (off_t)nvme_ns_get_size(ns);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user