www.pudn.com > usbcode.rar > Scsi_Data.h


/*++ 
 
Module Name: 
 
         Scsi_Data.h 
 
Abstract: 
 
         Header file related to D12 module 
 
Environment: 
 
        ICCAVR 6.29 
 
Revision History: 
 
        04/23/2004      chenchi   created 
 
--*/ 
/******************************************************************/ 
 
const char SCSI_INQUIRY[36]= 
{ 
 0x00, 
 0x80, 
 0x00, 
 0x01, 
  
 0x1f, 
  
 0x00, //reserved 
 0x00, //reserved 
 0x00, //reserved 
  
 0x20, 
 0x20,  // // 10 
 0x20, // 
 0x20, // 
 0x20, 
 0x20, // 
 0x20, // 
 0x20, // 
  
 0x43, //C 
 0x48,  //H 
 0x45, //E 
 0x4e, //N 
 0x43,  //C 
 0x48, //H 
 0x49, //3// 
 0x20, // 
 0x41,// 
 0x56,  // 
 0x52, // 
 0x20, // 
 0x44, 
 0x49,         //30 
 0x53, // 
 0x4b, // 
  
 0x31, //ascII   "1" 
 0x2e,     //    "." 
 0x30,  //       "0" 
 0x30  //        "0"  //version : 1.00 
 };// 
 
const char SCSIDATA_ReadFormatCapacities[]= 
{ 
 0x00,//reserved 
 0x00,//reserved 
 0x00,//reserved 
  
 0x08,//Capacity List Length 
  
 0x00, //number of block   MSB 
 0x00, //number of block    | 
 0xff, //number of block    | 
 0xff, //number of block   LSB // 256MBYTE 
  
 0x03, //no cartridge in drive 
  
 0x00,  // length of block// 10 
 0x02, // 
 0x00//   
 }; 
 
const char SCSIDATA_ReadCapacity[]= 
{ 
 0x00, //last logic block address   MSB 
 0x00, //last logic block address    | 
 0xf9, //last logic block address    | 
 0xff,//last logic block address   LSB   
  
 0x00, //length of block   MSB 
 0x00, //length of block    | 
 0x02, //length of block    | 
 0x00//length of block   LSB 
}; 
 
const char SCSIDATA_RequestSense[]= 
{ 
   0x70, 
   	 
   0x00, 
   0x05, 
    
   0x00, 
   0x00, 
   0x00, 
   0x00, 
    
   0x0a,  
    
   0x00, 
   0x00, 
   0x00, 
   0x00, 
    
   0x20, 
   0x00, 
    
   0x00, 
   0x00, 
   0x00, 
   0x00 
}; 
 
const char SCSIDATA_Sense[]= 
{ 
   0x03, 
   0x00, 
   0x00, 
   0x00, 
  /*  
   0x00, 
   0x00, 
   0x00, 
   0x00,    
   0x00, 
   0x00, 
   0x02, 
   0x00, 
   */ 
   0x01, 
   0x0a, 
   0x00, 
   0x10,    
   0x00, 
   0x00, 
   0x00, 
   0x00,    
   0x02, 
   0x00, 
   0x00, 
   0x00, //page 1   
   0x05,//page 2 
   0x1e, 
   0x0f, 
   0xa0,    
   0x04, 
   0x10, 
   0x02, 
   0x00,    
   0x00, 
   0xfa, 
   0x00, 
   0x00,    
   0x00, 
   0x00, 
   0x00, 
   0x00,    
   0x00, 
   0x00, 
   0x00, 
   0x00,    
   0x00, 
   0x00, 
   0x00, 
   0x00,   
   0x00, 
   0x00, 
   0x00, 
   0x00, 
   0x00, 
   0x00, 
   0x00, 
   0x00 
};