]> git.proxmox.com Git - mirror_smartmontools-debian.git/blobdiff - freebsd_nvme_ioctl.h
New upstream version 6.6
[mirror_smartmontools-debian.git] / freebsd_nvme_ioctl.h
index e950fd5ec8f7c04a2b102f3086c540ef15fc4bad..f5761430ea44cbd1613aa7d05cf33694a1e810f3 100644 (file)
@@ -31,6 +31,7 @@
 
 #define        NVME_PASSTHROUGH_CMD    _IOWR('n', 0, struct nvme_pt_command)
 
+#if __FreeBSD_version < 1100110
 struct nvme_command
 {
        /* dword 0 */
@@ -143,6 +144,9 @@ struct nvme_pt_command {
         */
        struct mtx *            driver_lock;
 };
+#else
+#include <dev/nvme/nvme.h>
+#endif
 
 #define nvme_completion_is_error(cpl)                                  \
        ((cpl)->status.sc != 0 || (cpl)->status.sct != 0)