diff options
Diffstat (limited to 'include/uapi/linux/lightnvm.h')
-rw-r--r-- | include/uapi/linux/lightnvm.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/uapi/linux/lightnvm.h b/include/uapi/linux/lightnvm.h index 42d1a434af29..f9a1be7fc696 100644 --- a/include/uapi/linux/lightnvm.h +++ b/include/uapi/linux/lightnvm.h | |||
@@ -75,14 +75,23 @@ struct nvm_ioctl_create_simple { | |||
75 | __u32 lun_end; | 75 | __u32 lun_end; |
76 | }; | 76 | }; |
77 | 77 | ||
78 | struct nvm_ioctl_create_extended { | ||
79 | __u16 lun_begin; | ||
80 | __u16 lun_end; | ||
81 | __u16 op; | ||
82 | __u16 rsv; | ||
83 | }; | ||
84 | |||
78 | enum { | 85 | enum { |
79 | NVM_CONFIG_TYPE_SIMPLE = 0, | 86 | NVM_CONFIG_TYPE_SIMPLE = 0, |
87 | NVM_CONFIG_TYPE_EXTENDED = 1, | ||
80 | }; | 88 | }; |
81 | 89 | ||
82 | struct nvm_ioctl_create_conf { | 90 | struct nvm_ioctl_create_conf { |
83 | __u32 type; | 91 | __u32 type; |
84 | union { | 92 | union { |
85 | struct nvm_ioctl_create_simple s; | 93 | struct nvm_ioctl_create_simple s; |
94 | struct nvm_ioctl_create_extended e; | ||
86 | }; | 95 | }; |
87 | }; | 96 | }; |
88 | 97 | ||