TianoCore EDK2 master
Loading...
Searching...
No Matches
UefiScsiLib.h
Go to the documentation of this file.
1
13#ifndef __SCSI_LIB_H__
14#define __SCSI_LIB_H__
15
16#include <Protocol/ScsiIo.h>
17
86EFIAPI
89 IN UINT64 Timeout,
90 IN OUT VOID *SenseData OPTIONAL,
91 IN OUT UINT8 *SenseDataLength,
92 OUT UINT8 *HostAdapterStatus,
93 OUT UINT8 *TargetStatus
94 );
95
184EFIAPI
186 IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
187 IN UINT64 Timeout,
188 IN OUT VOID *SenseData OPTIONAL,
189 IN OUT UINT8 *SenseDataLength,
190 OUT UINT8 *HostAdapterStatus,
191 OUT UINT8 *TargetStatus,
192 IN OUT VOID *InquiryDataBuffer OPTIONAL,
193 IN OUT UINT32 *InquiryDataLength,
194 IN BOOLEAN EnableVitalProductData
195 );
196
287EFIAPI
289 IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
290 IN UINT64 Timeout,
291 IN OUT VOID *SenseData OPTIONAL,
292 IN OUT UINT8 *SenseDataLength,
293 OUT UINT8 *HostAdapterStatus,
294 OUT UINT8 *TargetStatus,
295 IN OUT VOID *InquiryDataBuffer OPTIONAL,
296 IN OUT UINT32 *InquiryDataLength,
297 IN BOOLEAN EnableVitalProductData,
298 IN UINT8 PageCode
299 );
300
391EFIAPI
393 IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
394 IN UINT64 Timeout,
395 IN OUT VOID *SenseData OPTIONAL,
396 IN OUT UINT8 *SenseDataLength,
397 OUT UINT8 *HostAdapterStatus,
398 OUT UINT8 *TargetStatus,
399 IN OUT VOID *DataBuffer OPTIONAL,
400 IN OUT UINT32 *DataLength,
401 IN UINT8 DBDField OPTIONAL,
402 IN UINT8 PageControl,
403 IN UINT8 PageCode
404 );
405
439EFIAPI
441 IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
442 IN UINT64 Timeout,
443 IN OUT VOID *SenseData OPTIONAL,
444 IN OUT UINT8 *SenseDataLength,
445 OUT UINT8 *HostAdapterStatus,
446 OUT UINT8 *TargetStatus
447 );
448
494EFIAPI
496 IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
497 IN UINT64 Timeout,
498 IN OUT VOID *SenseData OPTIONAL,
499 IN OUT UINT8 *SenseDataLength,
500 OUT UINT8 *HostAdapterStatus,
501 OUT UINT8 *TargetStatus,
502 IN OUT VOID *DataBuffer OPTIONAL,
503 IN OUT UINT32 *DataLength,
504 IN BOOLEAN Pmi
505 );
506
552EFIAPI
554 IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
555 IN UINT64 Timeout,
556 IN OUT VOID *SenseData OPTIONAL,
557 IN OUT UINT8 *SenseDataLength,
558 OUT UINT8 *HostAdapterStatus,
559 OUT UINT8 *TargetStatus,
560 IN OUT VOID *DataBuffer OPTIONAL,
561 IN OUT UINT32 *DataLength,
562 IN BOOLEAN Pmi
563 );
564
611EFIAPI
613 IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
614 IN UINT64 Timeout,
615 IN OUT VOID *SenseData OPTIONAL,
616 IN OUT UINT8 *SenseDataLength,
617 OUT UINT8 *HostAdapterStatus,
618 OUT UINT8 *TargetStatus,
619 IN OUT VOID *DataBuffer OPTIONAL,
620 IN OUT UINT32 *DataLength,
621 IN UINT32 StartLba,
622 IN UINT32 SectorSize
623 );
624
671EFIAPI
673 IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
674 IN UINT64 Timeout,
675 IN OUT VOID *SenseData OPTIONAL,
676 IN OUT UINT8 *SenseDataLength,
677 OUT UINT8 *HostAdapterStatus,
678 OUT UINT8 *TargetStatus,
679 IN OUT VOID *DataBuffer OPTIONAL,
680 IN OUT UINT32 *DataLength,
681 IN UINT32 StartLba,
682 IN UINT32 SectorSize
683 );
684
731EFIAPI
733 IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
734 IN UINT64 Timeout,
735 IN OUT VOID *SenseData OPTIONAL,
736 IN OUT UINT8 *SenseDataLength,
737 OUT UINT8 *HostAdapterStatus,
738 OUT UINT8 *TargetStatus,
739 IN OUT VOID *DataBuffer OPTIONAL,
740 IN OUT UINT32 *DataLength,
741 IN UINT64 StartLba,
742 IN UINT32 SectorSize
743 );
744
791EFIAPI
793 IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
794 IN UINT64 Timeout,
795 IN OUT VOID *SenseData OPTIONAL,
796 IN OUT UINT8 *SenseDataLength,
797 OUT UINT8 *HostAdapterStatus,
798 OUT UINT8 *TargetStatus,
799 IN OUT VOID *DataBuffer OPTIONAL,
800 IN OUT UINT32 *DataLength,
801 IN UINT64 StartLba,
802 IN UINT32 SectorSize
803 );
804
854EFIAPI
856 IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
857 IN UINT64 Timeout,
858 IN OUT VOID *SenseData OPTIONAL,
859 IN OUT UINT8 *SenseDataLength,
860 OUT UINT8 *HostAdapterStatus,
861 OUT UINT8 *TargetStatus,
862 IN UINT8 SecurityProtocol,
863 IN UINT16 SecurityProtocolSpecific,
864 IN BOOLEAN Inc512,
865 IN UINTN DataLength,
866 IN OUT VOID *DataBuffer OPTIONAL,
867 OUT UINTN *TransferLength
868 );
869
916EFIAPI
918 IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
919 IN UINT64 Timeout,
920 IN OUT VOID *SenseData OPTIONAL,
921 IN OUT UINT8 *SenseDataLength,
922 OUT UINT8 *HostAdapterStatus,
923 OUT UINT8 *TargetStatus,
924 IN UINT8 SecurityProtocol,
925 IN UINT16 SecurityProtocolSpecific,
926 IN BOOLEAN Inc512,
927 IN UINTN DataLength,
928 IN OUT VOID *DataBuffer OPTIONAL
929 );
930
1005EFIAPI
1007 IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
1008 IN UINT64 Timeout,
1009 IN OUT VOID *SenseData OPTIONAL,
1010 IN OUT UINT8 *SenseDataLength,
1011 OUT UINT8 *HostAdapterStatus,
1012 OUT UINT8 *TargetStatus,
1013 IN OUT VOID *DataBuffer OPTIONAL,
1014 IN OUT UINT32 *DataLength,
1015 IN UINT32 StartLba,
1016 IN UINT32 SectorSize,
1017 IN EFI_EVENT Event OPTIONAL
1018 );
1019
1094EFIAPI
1096 IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
1097 IN UINT64 Timeout,
1098 IN OUT VOID *SenseData OPTIONAL,
1099 IN OUT UINT8 *SenseDataLength,
1100 OUT UINT8 *HostAdapterStatus,
1101 OUT UINT8 *TargetStatus,
1102 IN OUT VOID *DataBuffer OPTIONAL,
1103 IN OUT UINT32 *DataLength,
1104 IN UINT32 StartLba,
1105 IN UINT32 SectorSize,
1106 IN EFI_EVENT Event OPTIONAL
1107 );
1108
1183EFIAPI
1185 IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
1186 IN UINT64 Timeout,
1187 IN OUT VOID *SenseData OPTIONAL,
1188 IN OUT UINT8 *SenseDataLength,
1189 OUT UINT8 *HostAdapterStatus,
1190 OUT UINT8 *TargetStatus,
1191 IN OUT VOID *DataBuffer OPTIONAL,
1192 IN OUT UINT32 *DataLength,
1193 IN UINT64 StartLba,
1194 IN UINT32 SectorSize,
1195 IN EFI_EVENT Event OPTIONAL
1196 );
1197
1272EFIAPI
1274 IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
1275 IN UINT64 Timeout,
1276 IN OUT VOID *SenseData OPTIONAL,
1277 IN OUT UINT8 *SenseDataLength,
1278 OUT UINT8 *HostAdapterStatus,
1279 OUT UINT8 *TargetStatus,
1280 IN OUT VOID *DataBuffer OPTIONAL,
1281 IN OUT UINT32 *DataLength,
1282 IN UINT64 StartLba,
1283 IN UINT32 SectorSize,
1284 IN EFI_EVENT Event OPTIONAL
1285 );
1286
1287#endif
UINT64 UINTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_EVENT
Definition: UefiBaseType.h:37
EFI_STATUS EFIAPI ScsiWrite10CommandEx(IN EFI_SCSI_IO_PROTOCOL *ScsiIo, IN UINT64 Timeout, IN OUT VOID *SenseData OPTIONAL, IN OUT UINT8 *SenseDataLength, OUT UINT8 *HostAdapterStatus, OUT UINT8 *TargetStatus, IN OUT VOID *DataBuffer OPTIONAL, IN OUT UINT32 *DataLength, IN UINT32 StartLba, IN UINT32 SectorSize, IN EFI_EVENT Event OPTIONAL)
Definition: UefiScsiLib.c:1802
EFI_STATUS EFIAPI ScsiSecurityProtocolInCommand(IN EFI_SCSI_IO_PROTOCOL *ScsiIo, IN UINT64 Timeout, IN OUT VOID *SenseData OPTIONAL, IN OUT UINT8 *SenseDataLength, OUT UINT8 *HostAdapterStatus, OUT UINT8 *TargetStatus, IN UINT8 SecurityProtocol, IN UINT16 SecurityProtocolSpecific, IN BOOLEAN Inc512, IN UINTN DataLength, IN OUT VOID *DataBuffer OPTIONAL, OUT UINTN *TransferLength)
Definition: UefiScsiLib.c:1323
EFI_STATUS EFIAPI ScsiRead10CommandEx(IN EFI_SCSI_IO_PROTOCOL *ScsiIo, IN UINT64 Timeout, IN OUT VOID *SenseData OPTIONAL, IN OUT UINT8 *SenseDataLength, OUT UINT8 *HostAdapterStatus, OUT UINT8 *TargetStatus, IN OUT VOID *DataBuffer OPTIONAL, IN OUT UINT32 *DataLength, IN UINT32 StartLba, IN UINT32 SectorSize, IN EFI_EVENT Event OPTIONAL)
Definition: UefiScsiLib.c:1619
EFI_STATUS EFIAPI ScsiRead10Command(IN EFI_SCSI_IO_PROTOCOL *ScsiIo, IN UINT64 Timeout, IN OUT VOID *SenseData OPTIONAL, IN OUT UINT8 *SenseDataLength, OUT UINT8 *HostAdapterStatus, OUT UINT8 *TargetStatus, IN OUT VOID *DataBuffer OPTIONAL, IN OUT UINT32 *DataLength, IN UINT32 StartLba, IN UINT32 SectorSize)
Definition: UefiScsiLib.c:922
EFI_STATUS EFIAPI ScsiModeSense10Command(IN EFI_SCSI_IO_PROTOCOL *ScsiIo, IN UINT64 Timeout, IN OUT VOID *SenseData OPTIONAL, IN OUT UINT8 *SenseDataLength, OUT UINT8 *HostAdapterStatus, OUT UINT8 *TargetStatus, IN OUT VOID *DataBuffer OPTIONAL, IN OUT UINT32 *DataLength, IN UINT8 DBDField OPTIONAL, IN UINT8 PageControl, IN UINT8 PageCode)
Definition: UefiScsiLib.c:527
EFI_STATUS EFIAPI ScsiTestUnitReadyCommand(IN EFI_SCSI_IO_PROTOCOL *ScsiIo, IN UINT64 Timeout, IN OUT VOID *SenseData OPTIONAL, IN OUT UINT8 *SenseDataLength, OUT UINT8 *HostAdapterStatus, OUT UINT8 *TargetStatus)
Definition: UefiScsiLib.c:129
EFI_STATUS EFIAPI ScsiWrite16Command(IN EFI_SCSI_IO_PROTOCOL *ScsiIo, IN UINT64 Timeout, IN OUT VOID *SenseData OPTIONAL, IN OUT UINT8 *SenseDataLength, OUT UINT8 *HostAdapterStatus, OUT UINT8 *TargetStatus, IN OUT VOID *DataBuffer OPTIONAL, IN OUT UINT32 *DataLength, IN UINT64 StartLba, IN UINT32 SectorSize)
Definition: UefiScsiLib.c:1220
EFI_STATUS EFIAPI ScsiRequestSenseCommand(IN EFI_SCSI_IO_PROTOCOL *ScsiIo, IN UINT64 Timeout, IN OUT VOID *SenseData OPTIONAL, IN OUT UINT8 *SenseDataLength, OUT UINT8 *HostAdapterStatus, OUT UINT8 *TargetStatus)
Definition: UefiScsiLib.c:622
EFI_STATUS EFIAPI ScsiInquiryCommandEx(IN EFI_SCSI_IO_PROTOCOL *ScsiIo, IN UINT64 Timeout, IN OUT VOID *SenseData OPTIONAL, IN OUT UINT8 *SenseDataLength, OUT UINT8 *HostAdapterStatus, OUT UINT8 *TargetStatus, IN OUT VOID *InquiryDataBuffer OPTIONAL, IN OUT UINT32 *InquiryDataLength, IN BOOLEAN EnableVitalProductData, IN UINT8 PageCode)
Definition: UefiScsiLib.c:264
EFI_STATUS EFIAPI ScsiWrite16CommandEx(IN EFI_SCSI_IO_PROTOCOL *ScsiIo, IN UINT64 Timeout, IN OUT VOID *SenseData OPTIONAL, IN OUT UINT8 *SenseDataLength, OUT UINT8 *HostAdapterStatus, OUT UINT8 *TargetStatus, IN OUT VOID *DataBuffer OPTIONAL, IN OUT UINT32 *DataLength, IN UINT64 StartLba, IN UINT32 SectorSize, IN EFI_EVENT Event OPTIONAL)
Definition: UefiScsiLib.c:2168
EFI_STATUS EFIAPI ScsiSecurityProtocolOutCommand(IN EFI_SCSI_IO_PROTOCOL *ScsiIo, IN UINT64 Timeout, IN OUT VOID *SenseData OPTIONAL, IN OUT UINT8 *SenseDataLength, OUT UINT8 *HostAdapterStatus, OUT UINT8 *TargetStatus, IN UINT8 SecurityProtocol, IN UINT16 SecurityProtocolSpecific, IN BOOLEAN Inc512, IN UINTN DataLength, IN OUT VOID *DataBuffer OPTIONAL)
Definition: UefiScsiLib.c:1436
EFI_STATUS EFIAPI ScsiRead16CommandEx(IN EFI_SCSI_IO_PROTOCOL *ScsiIo, IN UINT64 Timeout, IN OUT VOID *SenseData OPTIONAL, IN OUT UINT8 *SenseDataLength, OUT UINT8 *HostAdapterStatus, OUT UINT8 *TargetStatus, IN OUT VOID *DataBuffer OPTIONAL, IN OUT UINT32 *DataLength, IN UINT64 StartLba, IN UINT32 SectorSize, IN EFI_EVENT Event OPTIONAL)
Definition: UefiScsiLib.c:1985
EFI_STATUS EFIAPI ScsiInquiryCommand(IN EFI_SCSI_IO_PROTOCOL *ScsiIo, IN UINT64 Timeout, IN OUT VOID *SenseData OPTIONAL, IN OUT UINT8 *SenseDataLength, OUT UINT8 *HostAdapterStatus, OUT UINT8 *TargetStatus, IN OUT VOID *InquiryDataBuffer OPTIONAL, IN OUT UINT32 *InquiryDataLength, IN BOOLEAN EnableVitalProductData)
Definition: UefiScsiLib.c:410
EFI_STATUS EFIAPI ScsiReadCapacity16Command(IN EFI_SCSI_IO_PROTOCOL *ScsiIo, IN UINT64 Timeout, IN OUT VOID *SenseData OPTIONAL, IN OUT UINT8 *SenseDataLength, OUT UINT8 *HostAdapterStatus, OUT UINT8 *TargetStatus, IN OUT VOID *DataBuffer OPTIONAL, IN OUT UINT32 *DataLength, IN BOOLEAN Pmi)
Definition: UefiScsiLib.c:816
EFI_STATUS EFIAPI ScsiRead16Command(IN EFI_SCSI_IO_PROTOCOL *ScsiIo, IN UINT64 Timeout, IN OUT VOID *SenseData OPTIONAL, IN OUT UINT8 *SenseDataLength, OUT UINT8 *HostAdapterStatus, OUT UINT8 *TargetStatus, IN OUT VOID *DataBuffer OPTIONAL, IN OUT UINT32 *DataLength, IN UINT64 StartLba, IN UINT32 SectorSize)
Definition: UefiScsiLib.c:1121
EFI_STATUS EFIAPI ScsiWrite10Command(IN EFI_SCSI_IO_PROTOCOL *ScsiIo, IN UINT64 Timeout, IN OUT VOID *SenseData OPTIONAL, IN OUT UINT8 *SenseDataLength, OUT UINT8 *HostAdapterStatus, OUT UINT8 *TargetStatus, IN OUT VOID *DataBuffer OPTIONAL, IN OUT UINT32 *DataLength, IN UINT32 StartLba, IN UINT32 SectorSize)
Definition: UefiScsiLib.c:1021
EFI_STATUS EFIAPI ScsiReadCapacityCommand(IN EFI_SCSI_IO_PROTOCOL *ScsiIo, IN UINT64 Timeout, IN OUT VOID *SenseData OPTIONAL, IN OUT UINT8 *SenseDataLength, OUT UINT8 *HostAdapterStatus, OUT UINT8 *TargetStatus, IN OUT VOID *DataBuffer OPTIONAL, IN OUT UINT32 *DataLength, IN BOOLEAN Pmi)
Definition: UefiScsiLib.c:713