33 CopyMem (&UsbMass->DiskInfo, &gUsbDiskInfoProtocolTemplate, sizeof (gUsbDiskInfoProtocolTemplate));
56 IN OUT VOID *InquiryData,
57 IN OUT UINT32 *InquiryDataSize
63 UsbMass = USB_MASS_DEVICE_FROM_DISK_INFO (This);
65 Status = EFI_BUFFER_TOO_SMALL;
66 if (*InquiryDataSize >=
sizeof (UsbMass->InquiryData)) {
68 CopyMem (InquiryData, &UsbMass->InquiryData, sizeof (UsbMass->InquiryData));
71 *InquiryDataSize =
sizeof (UsbMass->InquiryData);
97 IN OUT VOID *IdentifyData,
98 IN OUT UINT32 *IdentifyDataSize
101 return EFI_NOT_FOUND;
125 IN OUT VOID *SenseData,
126 IN OUT UINT32 *SenseDataSize,
127 OUT UINT8 *SenseDataNumber
130 return EFI_NOT_FOUND;
148 OUT UINT32 *IdeChannel,
149 OUT UINT32 *IdeDevice
152 return EFI_UNSUPPORTED;
VOID *EFIAPI CopyMem(OUT VOID *DestinationBuffer, IN CONST VOID *SourceBuffer, IN UINTN Length)
#define EFI_DISK_INFO_USB_INTERFACE_GUID
EFI_STATUS EFIAPI UsbDiskInfoWhichIde(IN EFI_DISK_INFO_PROTOCOL *This, OUT UINT32 *IdeChannel, OUT UINT32 *IdeDevice)
EFI_STATUS EFIAPI UsbDiskInfoInquiry(IN EFI_DISK_INFO_PROTOCOL *This, IN OUT VOID *InquiryData, IN OUT UINT32 *InquiryDataSize)
EFI_STATUS EFIAPI UsbDiskInfoIdentify(IN EFI_DISK_INFO_PROTOCOL *This, IN OUT VOID *IdentifyData, IN OUT UINT32 *IdentifyDataSize)
EFI_STATUS EFIAPI UsbDiskInfoSenseData(IN EFI_DISK_INFO_PROTOCOL *This, IN OUT VOID *SenseData, IN OUT UINT32 *SenseDataSize, OUT UINT8 *SenseDataNumber)
VOID InitializeDiskInfo(IN USB_MASS_DEVICE *UsbMass)