Coverage Report - org.jscsi.target.scsi.inquiry.ProtocolIdentifier
 
Classes in this File Line Coverage Branch Coverage Complexity
ProtocolIdentifier
0%
0/7
N/A
1
 
 1  
 package org.jscsi.target.scsi.inquiry;
 2  
 
 3  
 /**
 4  
  * The PROTOCOL IDENTIFIER field is part of IDENTIFICATION DESCRIPTORS and may indicate the SCSI transport protocol to
 5  
  * which the identification descriptor applies. If the ASSOCIATION field contains a value other than 01b (i.e., target
 6  
  * port) or 10b (i.e., SCSI target device) or the PIV bit is set to zero, then the PROTOCOL IDENTIFIER field contents
 7  
  * are reserved. If the ASSOCIATION field contains a value of 01b or 10b and the PIV bit is set to one, then the
 8  
  * PROTOCOL IDENTIFIER field shall contain one of the values defined in the following table to indicate the SCSI
 9  
  * transport protocol to which the identification descriptor applies.
 10  
  * 
 11  
  * <table border="1">
 12  
  * <tr>
 13  
  * <th>Protocol<br>
 14  
  * Identifier</th>
 15  
  * <th>Description</th>
 16  
  * <th>Protocol<br>
 17  
  * Standard</th>
 18  
  * </tr>
 19  
  * <tr>
 20  
  * <td>0x0</td>
 21  
  * <td>Fibre Channel</td>
 22  
  * <td>FCP-2</td>
 23  
  * </tr>
 24  
  * <tr>
 25  
  * <td>0x1</td>
 26  
  * <td>Parallel SCSI</td>
 27  
  * <td>SPI-5</td>
 28  
  * </tr>
 29  
  * <tr>
 30  
  * <td>0x2</td>
 31  
  * <td>SSA</td>
 32  
  * <td>SSA-S3P</td>
 33  
  * </tr>
 34  
  * <tr>
 35  
  * <td>0x3</td>
 36  
  * <td>IEEE 1394</td>
 37  
  * <td>SBP-3</td>
 38  
  * </tr>
 39  
  * <tr>
 40  
  * <td>0x4</td>
 41  
  * <td>SCSI Remote Direct Memory Access Protocol</td>
 42  
  * <td>SRP</td>
 43  
  * </tr>
 44  
  * <tr>
 45  
  * <td>0x5</td>
 46  
  * <td>Internet SCSI (iSCSI)</td>
 47  
  * <td>iSCSI</td>
 48  
  * </tr>
 49  
  * <tr>
 50  
  * <td>0x6</td>
 51  
  * <td>SAS Serial SCSI Protocol</td>
 52  
  * <td>SAS</td>
 53  
  * </tr>
 54  
  * <tr>
 55  
  * <td>0x7</td>
 56  
  * <td>Automation/Drive Interface Transport Protocol</td>
 57  
  * <td>ADT</td>
 58  
  * </tr>
 59  
  * <tr>
 60  
  * <td>0x8</td>
 61  
  * <td>AT Attachment Interface (ATA/ATAPI)</td>
 62  
  * <td>ATA/ATAPI-7</td>
 63  
  * </tr>
 64  
  * <tr>
 65  
  * <td>0x9-0xe</td>
 66  
  * <td>RESERVED</td>
 67  
  * <td></td>
 68  
  * </tr>
 69  
  * <tr>
 70  
  * <td>0xf</td>
 71  
  * <td>No speficif protocol</td>
 72  
  * <td></td>
 73  
  * </tr>
 74  
  * </table>
 75  
  * 
 76  
  * The PROTOCOL IDENTIFIER field has a length of four bits.
 77  
  * 
 78  
  * @see IdentificationDescriptor
 79  
  * @author Andreas Ergenzinger
 80  
  */
 81  0
 public enum ProtocolIdentifier {
 82  0
     FIBRE_CHANNEL((byte) 0x0), PARALLEL_SCSI((byte) 0x1), SSA((byte) 0x2), IEEE1394((byte) 0x3), SCSI_REMOTE_DIRECT_MEMORY_ACCESS_PROTOCOL((byte) 0x4), INTERNET_SCSI((byte) 0x5), SAS_SERIAL_SCSI_PROTOCOL((byte) 0x6), AUTOMATION_DRIVE_INTERFACE_TRANSPORT_PROTOCOL((byte) 0x7), AT_ATTACHEMENT_INTERFACE((byte) 0x8),
 83  
     // RESERVED not implemented
 84  0
     NO_SPECIFIC_PROTOCOL((byte) 0xf);
 85  
 
 86  0
     private ProtocolIdentifier (final byte value) {
 87  0
         this.value = value;
 88  0
     }
 89  
 
 90  
     private final byte value;
 91  
 
 92  
     public final byte getValue () {
 93  0
         return value;
 94  
     }
 95  
 }