| Electronic Components Datasheet Search |
|
SEC2410 Datasheet(PDF) 191 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
SEC2410 Datasheet(HTML) 191 Page - Microchip Technology |
|
191 / 283 page ![]() 2013 - 2014 Microchip Technology Inc. DS00001587C-page 191 SEC2410/SEC4410 The CBW may be valid, but the protocol is out of synchronization, and Processor intervention is required. If the CBW comes in at the appropriate time, the HW must validate the CBW. If a CBW comes in that will not be handled by the CBWP, that CBW will be forwarded to the Processor, and the CBW Processor will go to the WAIT_Processor state. Please refer to the USB Mass Storage Class, Bulk Only Transport Revision 1.0 for a description of the fields in the CBW. To validate a CBW, the CBW processor must do the following: 1. Check that the Signature in the CBW matches the CBW_SIGNATURE in the CBW_SIG register. If the Signature does not match, the packet is unknown, set the SIGNATURE_FAIL bit, and forward the CBW to the Processor. The Processor will stall that Endpoint. 2. Check that the CBW length matches the value in the CBW_LENGTH in the CBW_LEN register. If length does not match, the packet is unknown, set the CBW_PKT_LEN_FAIL bit, and forward the CBW to the Processor. The Processor will stall that Endpoint. 3. Check that the bCBWCBLength is equal to the length of the SCSI command. This check is only valid for Read10, Read12, Write10, Write12, or Test Unit Ready. If the length does not match, set the CBWCB_LEN_FAIL bit, and forward the CBW to the Processor. The Processor will stall that Endpoint. 4. If the CHK_RSRV bit is set in the AUTO_CBW registers, check that all the reserved bits in the CBW are ‘0’. The reserved bits are specified in the USB Mass Storage Class specification. If all the bits are not ‘0’ set the RSRV0_- FAIL bit, and forward the CBW to the Processor. The Processor will stall that Endpoint. 5. Check that the LUN number matches the MAX_LUN in the MAX_LUN register. If the LUN number is too large, set the MAX_LU_FAIL bit and forward CBW to Processor. If the LUN is not enabled for AutoCBW processing, set UNSUPPORTED_LUN interrupt and forward to the Processor. 6. Now that the Mass Storage portion of the CBW has been validated, Check the SCSI command. If the command is NOT Read10, Read12, Write10, Write12 or Test Unit Ready, pass the CBW to the Processor. If the SCSI com- mand is one of those five commands, then process the SCSI command. Process the SCSI Command: 1. If dCBWDataTransferLength not equal to SCSI length, then forward the CBW to the processor with the CB_LEN_FAIL bit set. For the actual calculation, the bCBWDataTransferLength is in bytes, while the SCSI length is in blocks. The SCSI length must be multiplied by the LBA. 2. Check that the SCSI command is one of the five supported by the ACBWP. If not, fire the SCSI_ERROR interrupt. 3. Use the LUN in the CBW to index into the LUN_DESCRIPTOR table. 4. If the start LBA address is larger than the Media Capacity in the LUN_DESCRIPTOR table, then set the SCSI_ERROR forward the CBW to the Processor. The compare can be done using block counts or byte counts. If the obsolete Relative address bit is set, set SCSI_ERROR and forward the CBW to the Processor. 5. If the start LBA address plus the length is larger than the Media Capacity, then set the SCSI_ERROR and LEN_- FAIL and forward the CBW to the Processor. The compare can be done using block counts or byte count. 6. If the Direction in the SCSI command is opposite to the Direction in the Mass Storage header set the PHASE_ER- ROR bit. Forward the CBW to the Processor. 7. If the starting address plus length of the transfer exceeds the capacity of the media being addressed, then set the DEV_CAP_FAIL bit and forward to the Processor. 8. Calculate the Physical starting address by adding the LBA starting address to the Offset in the LUN_DESCRIP- TOR table. If the SCSI commands passes, the FMDU processes the command, If it is a read there are two possibilities. 1. The CONT_RD bit is set for this LUN, and if the calculated physical start address matches the internal start address. The next access to the media is started at starting address in the SCSI command. The FMDU command is CONTINUE_READ. 2. The CONT_RD bit is not set for this LUN, or the calculated physical start address does not match the internal start address. The next access to the media is started at new calculated starting address. The FMDU command is NEW_READ. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |