Hi everyone.
Somebody know how to issue ATA IDENTIFY DEVICE with Scsi ?!
I know issue with ATA_PASS_THRU_PROTOCOL .
Now I want issue with Scsi.
I know it:
SCSI ATA TRANSLATION - 3 (SAT - 3) page 59
8.1 INQUIRY command
I will build the CDB
cdb length = 6
cdb[0] = 0x12 //OPCODE
cdb[1] = 0x00
cdb[2] = 0x00
cdb[3] = 0x00
cdb[4] = 0x60 // PAGECODE
cdb[5] = 0x00
OR
cdb length = 10
cdb[0] = 0x25 //OPCODE
Now How to set Scsi parameter !?!
I tried it:
UINT8 Cdb[6] = {0x12,0x00,0x00,0x00,60,0x00};
UINT8 *Data;
EFI_STATU SStatus = EFI_SUCCESS;
Data = AllocateZeroPool(deviceHandle->Mode->IoAlign+96);
EFI_EXT_SCSI_PASS_THRU_SCSI_REQUEST_PACKET Packet;
Print(L"IoAlign %x",deviceHandle->Mode->IoAlign);
Packet.Cdb = Cdb;
Packet.CdbLength = 6;
Packet.Timeout = 2 * 10000000;
Packet.InDataBuffer =(void *)Data;
Packet.OutDataBuffer =(void *)Data;
Packet.InTransferLength = 96;
Packet.OutTransferLength = 96;
Packet.DataDirection = 0;
Status = deviceHandle->PassThru(deviceHandle,Target,Lun,&Packet,NULL);
Print(L"Status %r",Status);
I know it's wrong
Can help me ??
Thx and good weekend.
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel