mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Added feature structures from MMC-4.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2015-11-01 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
|
* SCSI/MMC/Features.cs:
|
||||||
|
Added feature structures from MMC-4.
|
||||||
|
|
||||||
2015-11-01 Natalia Portillo <claunia@claunia.com>
|
2015-11-01 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
* SCSI/MMC/Features.cs:
|
* SCSI/MMC/Features.cs:
|
||||||
|
|||||||
@@ -529,6 +529,10 @@ namespace DiscImageChef.Decoders.SCSI.MMC
|
|||||||
/// Currently in-use physical interface standard
|
/// Currently in-use physical interface standard
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public PhysicalInterfaces PhysicalInterfaceStandard;
|
public PhysicalInterfaces PhysicalInterfaceStandard;
|
||||||
|
/// <summary>
|
||||||
|
/// Supports Device Busy Event
|
||||||
|
/// </summary>
|
||||||
|
public bool DBE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -549,6 +553,11 @@ namespace DiscImageChef.Decoders.SCSI.MMC
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public bool Current;
|
public bool Current;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
/// Supports Operational Change Request/Nofitication Class Events
|
||||||
|
/// of GET EVENT/STATUS NOTIFICATION
|
||||||
|
/// </summary>
|
||||||
|
public bool OCEvent;
|
||||||
|
/// <summary>
|
||||||
/// Supports asynchronous GET EVENT/STATUS NOTIFICATION
|
/// Supports asynchronous GET EVENT/STATUS NOTIFICATION
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool Async;
|
public bool Async;
|
||||||
@@ -607,6 +616,10 @@ namespace DiscImageChef.Decoders.SCSI.MMC
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public bool Current;
|
public bool Current;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
/// Supports reading/writing Write Inhibit DCB on DVD+RW media.
|
||||||
|
/// </summary>
|
||||||
|
public bool WDCB;
|
||||||
|
/// <summary>
|
||||||
/// Supports PWP status
|
/// Supports PWP status
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool SPWP;
|
public bool SPWP;
|
||||||
@@ -684,6 +697,10 @@ namespace DiscImageChef.Decoders.SCSI.MMC
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public bool Current;
|
public bool Current;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
/// Supports DAP bit in READ CD and READ CD MSF
|
||||||
|
/// </summary>
|
||||||
|
public bool DAP;
|
||||||
|
/// <summary>
|
||||||
/// Supports C2 Error Pointers
|
/// Supports C2 Error Pointers
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool C2;
|
public bool C2;
|
||||||
@@ -817,7 +834,7 @@ namespace DiscImageChef.Decoders.SCSI.MMC
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Defect Management Feature (0024h)
|
/// Hardware Defect Management Feature (0024h)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public struct Feature_0024
|
public struct Feature_0024
|
||||||
{
|
{
|
||||||
@@ -931,6 +948,37 @@ namespace DiscImageChef.Decoders.SCSI.MMC
|
|||||||
public bool Write;
|
public bool Write;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Enhanced Defect Reporting Feature (0029h)
|
||||||
|
/// </summary>
|
||||||
|
public struct Feature_0029
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Feature version
|
||||||
|
/// </summary>
|
||||||
|
public byte Version;
|
||||||
|
/// <summary>
|
||||||
|
/// Feature is persistent
|
||||||
|
/// </summary>
|
||||||
|
public bool Persistent;
|
||||||
|
/// <summary>
|
||||||
|
/// Feature is currently in use
|
||||||
|
/// </summary>
|
||||||
|
public bool Current;
|
||||||
|
/// <summary>
|
||||||
|
/// Supports DRT-DM
|
||||||
|
/// </summary>
|
||||||
|
public bool DRTDM;
|
||||||
|
/// <summary>
|
||||||
|
/// Maximum number of DBI cache zones device can handle separately
|
||||||
|
/// </summary>
|
||||||
|
public byte DBICacheZones;
|
||||||
|
/// <summary>
|
||||||
|
/// Number of entries in worst case to case DBI overflow
|
||||||
|
/// </summary>
|
||||||
|
public ushort Entries;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// DVD+RW Feature (002Ah)
|
/// DVD+RW Feature (002Ah)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -953,11 +1001,38 @@ namespace DiscImageChef.Decoders.SCSI.MMC
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public bool Write;
|
public bool Write;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
/// FORMAT UNIT supports quick start formatting
|
||||||
|
/// </summary>
|
||||||
|
public bool QuickStart;
|
||||||
|
/// <summary>
|
||||||
/// Drive only supports read compatibility stop
|
/// Drive only supports read compatibility stop
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool CloseOnly;
|
public bool CloseOnly;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// DVD+R Feature (002Bh)
|
||||||
|
/// </summary>
|
||||||
|
public struct Feature_002B
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Feature version
|
||||||
|
/// </summary>
|
||||||
|
public byte Version;
|
||||||
|
/// <summary>
|
||||||
|
/// Feature is persistent
|
||||||
|
/// </summary>
|
||||||
|
public bool Persistent;
|
||||||
|
/// <summary>
|
||||||
|
/// Feature is currently in use
|
||||||
|
/// </summary>
|
||||||
|
public bool Current;
|
||||||
|
/// <summary>
|
||||||
|
/// Can write DVD+R
|
||||||
|
/// </summary>
|
||||||
|
public bool Write;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Rigid Restricted Overwrite Feature (002Ch)
|
/// Rigid Restricted Overwrite Feature (002Ch)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -1191,6 +1266,29 @@ namespace DiscImageChef.Decoders.SCSI.MMC
|
|||||||
public bool Blank;
|
public bool Blank;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// CD-RW Media Write Support Feature (0037h)
|
||||||
|
/// </summary>
|
||||||
|
public struct Feature_0037
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Feature version
|
||||||
|
/// </summary>
|
||||||
|
public byte Version;
|
||||||
|
/// <summary>
|
||||||
|
/// Feature is persistent
|
||||||
|
/// </summary>
|
||||||
|
public bool Persistent;
|
||||||
|
/// <summary>
|
||||||
|
/// Feature is currently in use
|
||||||
|
/// </summary>
|
||||||
|
public bool Current;
|
||||||
|
/// <summary>
|
||||||
|
/// Bitmask of supported CD-RW media sub-types
|
||||||
|
/// </summary>
|
||||||
|
public byte SubtypeSupport;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Power Management Feature (0100h)
|
/// Power Management Feature (0100h)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -1293,6 +1391,10 @@ namespace DiscImageChef.Decoders.SCSI.MMC
|
|||||||
/// Separate Volume
|
/// Separate Volume
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool SV;
|
public bool SV;
|
||||||
|
/// <summary>
|
||||||
|
/// Number of volume levels
|
||||||
|
/// </summary>
|
||||||
|
public ushort VolumeLevels;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -1331,6 +1433,14 @@ namespace DiscImageChef.Decoders.SCSI.MMC
|
|||||||
/// Feature is currently in use
|
/// Feature is currently in use
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool Current;
|
public bool Current;
|
||||||
|
/// <summary>
|
||||||
|
/// Supports G3Enable bit and Group3 Timeout field in Mode Page 1Dh
|
||||||
|
/// </summary>
|
||||||
|
public bool Group3;
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates a unit of block length, in sectors, corresponding to increase a unit of Group 3 time unit
|
||||||
|
/// </summary>
|
||||||
|
public ushort UnitLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -1418,6 +1528,25 @@ namespace DiscImageChef.Decoders.SCSI.MMC
|
|||||||
public string Serial;
|
public string Serial;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Media Serial Number Feature (0109h)
|
||||||
|
/// </summary>
|
||||||
|
public struct Feature_0109
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Feature version
|
||||||
|
/// </summary>
|
||||||
|
public byte Version;
|
||||||
|
/// <summary>
|
||||||
|
/// Feature is persistent
|
||||||
|
/// </summary>
|
||||||
|
public bool Persistent;
|
||||||
|
/// <summary>
|
||||||
|
/// Feature is currently in use
|
||||||
|
/// </summary>
|
||||||
|
public bool Current;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Disc Control Blocks Feature (010Ah)
|
/// Disc Control Blocks Feature (010Ah)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -1461,6 +1590,32 @@ namespace DiscImageChef.Decoders.SCSI.MMC
|
|||||||
public byte CPRMVersion;
|
public byte CPRMVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Firmware Information Feature (010Ch)
|
||||||
|
/// </summary>
|
||||||
|
public struct Feature_010C
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Feature version
|
||||||
|
/// </summary>
|
||||||
|
public byte Version;
|
||||||
|
/// <summary>
|
||||||
|
/// Feature is persistent
|
||||||
|
/// </summary>
|
||||||
|
public bool Persistent;
|
||||||
|
/// <summary>
|
||||||
|
/// Feature is currently in use
|
||||||
|
/// </summary>
|
||||||
|
public bool Current;
|
||||||
|
public ushort Century;
|
||||||
|
public ushort Year;
|
||||||
|
public ushort Month;
|
||||||
|
public ushort Day;
|
||||||
|
public ushort Hour;
|
||||||
|
public ushort Minute;
|
||||||
|
public ushort Second;
|
||||||
|
}
|
||||||
|
|
||||||
public static class Features
|
public static class Features
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user