1pub mod features;
2
3#[repr(u8)]
4pub enum AdminCommand {
5 DeleteSubmissionQueue,
6 CreateSubmissionQueue,
7 GetLogPage,
8 DeleteCompletionQueue = 0x4,
9 CreateCompletionQueue,
10 Identify,
11 Abort = 0x8,
12 SetFeatures,
13 GetFeatures,
14 AsyncEventRequest = 0xc,
15 NamespaceManagement,
16 FirmwareCommit = 0x10,
17 FirmwareImageDownload,
18 DeviceSelfTest = 0x14,
19 NamespaceAttachment,
20 KeepAlive = 0x18,
21 DirectiveSend,
22 DirectiveReceive,
23 VirtualizationManagement = 0x1c,
24 NVMeMISend,
25 NVMeMIReceive,
26 CapacityManagement = 0x20,
27 Lockdown = 0x24,
28 DoorbellBufferConfig = 0x7c,
29 FabricsCommands = 0x7f,
30 FormatNVM,
31 SecuritySend,
32 SecurityReceive,
33 Sanitize = 0x84,
34 GetLBAStatus = 0x86,
35}
36
37impl From<AdminCommand> for u8 {
38 fn from(a: AdminCommand) -> Self {
39 a as u8
40 }
41}