Add other enums
This commit is contained in:
parent
a8e72dbfb3
commit
227c8a4a09
|
@ -0,0 +1,15 @@
|
|||
pub enum Device {
|
||||
DirectAccessDevice, // (SBC-4)
|
||||
ZonedBlockDevice, // (ZBC)
|
||||
SequentialAccessDevice, // (SSC-5)
|
||||
ProcessorDevice, // (SPC-2)
|
||||
CDDVDDevice, // (MMC-6)
|
||||
OpticalMemoryDevice, // (SBC)
|
||||
MediaChangerDevice, // (SMC-3)
|
||||
StorageArrayDevice, // (SCC-2)
|
||||
EnclosureServicesDevice, // (SES-3)
|
||||
SimplifiedDirectAccessDevice, // (RBC)
|
||||
OpticalCardReaderWriterDevice, // (OCRW)
|
||||
AutomationDriveInterfaceDevice, // (ADC-4)
|
||||
ObjectBasedStorageDevice, // (OSD-2)
|
||||
}
|
|
@ -1,3 +1,6 @@
|
|||
#![no_std]
|
||||
|
||||
pub mod commands;
|
||||
pub mod command;
|
||||
pub mod device;
|
||||
pub mod status;
|
||||
pub mod sense_key;
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
pub enum SenseKey {
|
||||
NoSense = 0x00,
|
||||
RecoveredError = 0x01,
|
||||
NotReady = 0x02,
|
||||
MediumError = 0x03,
|
||||
HardwareError = 0x04,
|
||||
IllegalRequest = 0x05,
|
||||
UnitAttention = 0x06,
|
||||
DataProtect = 0x07,
|
||||
BlankCheck = 0x08,
|
||||
VendorSpecific = 0x09,
|
||||
CopyAborted = 0x0A,
|
||||
AbortedCommand = 0x0B,
|
||||
VolumeOverflow = 0x0D,
|
||||
Miscompare = 0x0E,
|
||||
Completed = 0x0F,
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
pub enum Status {
|
||||
Good = 0x00,
|
||||
CheckCondition = 0x02,
|
||||
ConditionMet = 0x04,
|
||||
Busy = 0x08,
|
||||
ReservationConflict = 0x18,
|
||||
TaskSetFull = 0x28,
|
||||
AcaActive = 0x30,
|
||||
TaskAborted = 0x40,
|
||||
}
|
Loading…
Reference in New Issue