Lines 1-20
Link Here
|
1 |
--- freebsd_nvme_ioctl.h.orig 2016-03-28 16:25:56 UTC |
|
|
2 |
+++ freebsd_nvme_ioctl.h |
3 |
@@ -31,6 +31,7 @@ |
4 |
|
5 |
#define NVME_PASSTHROUGH_CMD _IOWR('n', 0, struct nvme_pt_command) |
6 |
|
7 |
+#if __FreeBSD_version < 1100110 |
8 |
struct nvme_command |
9 |
{ |
10 |
/* dword 0 */ |
11 |
@@ -143,6 +144,9 @@ struct nvme_pt_command { |
12 |
*/ |
13 |
struct mtx * driver_lock; |
14 |
}; |
15 |
+#else |
16 |
+#include <dev/nvme/nvme.h> |
17 |
+#endif |
18 |
|
19 |
#define nvme_completion_is_error(cpl) \ |
20 |
((cpl)->status.sc != 0 || (cpl)->status.sct != 0) |