Subversion Repositories zxusbnet

Rev

Rev 151 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed | ?url?

  1.  
  2. ///////////////////////////////////
  3. //#include "RBCCMD.H"
  4. ///////////////////////////////////
  5.  
  6. unsigned char EnumMassDev(void);
  7. unsigned char SPC_Inquiry(void);
  8. unsigned char SPC_RequestSense(void);
  9. unsigned char SPC_TestUnit(void);
  10. unsigned char SPC_LockMedia(void);
  11. unsigned char RBC_ReadCapacity(void);
  12. unsigned char RBC_Read(unsigned long lba,unsigned char len,unsigned char *pBuffer);
  13. unsigned char RBC_Write(unsigned long lba,unsigned char len,unsigned char *pBuffer);
  14.  
  15.  
  16.  
  17. #define RBC_CMD_READ10                                  0x28
  18. #define RBC_CMD_READCAPACITY                            0x25
  19. #define RBC_CMD_WRITE10                                 0x2A
  20. // RBC commands
  21. #define SPC_CMD_INQUIRY                                 0x12
  22. #define SPC_CMD_PRVENTALLOWMEDIUMREMOVAL                0x1E
  23. #define SPC_CMD_REQUESTSENSE                            0x03
  24. #define SPC_CMD_TESTUNITREADY                           0x00
  25. ////////////////////////////////////////////////////////////////////////////////////
  26. // Command Descriptor Block
  27. //      _RBC : Reduced Block Command
  28. //      _SPC : SPC-2 SCSI primary Command - 2
  29. ////////////////////////////////////////////////////////////////////////////////////
  30.