1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
3 * Definitions for the NVM Express ioctl interface
4 * Copyright (c) 2011-2014, Intel Corporation.
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 #ifndef _UAPI_LINUX_NVME_IOCTL_H
17 #define _UAPI_LINUX_NVME_IOCTL_H
19 #include <linux/types.h>
36 struct nvme_passthru_cmd
{
57 #define nvme_admin_cmd nvme_passthru_cmd
59 #define NVME_IOCTL_ID _IO('N', 0x40)
60 #define NVME_IOCTL_ADMIN_CMD _IOWR('N', 0x41, struct nvme_admin_cmd)
61 #define NVME_IOCTL_SUBMIT_IO _IOW('N', 0x42, struct nvme_user_io)
62 #define NVME_IOCTL_IO_CMD _IOWR('N', 0x43, struct nvme_passthru_cmd)
63 #define NVME_IOCTL_RESET _IO('N', 0x44)
64 #define NVME_IOCTL_SUBSYS_RESET _IO('N', 0x45)
65 #define NVME_IOCTL_RESCAN _IO('N', 0x46)
67 #endif /* _UAPI_LINUX_NVME_IOCTL_H */