TianoCore EDK2 master
Loading...
Searching...
No Matches
SdDiskInfo.c
Go to the documentation of this file.
1
9#include "SdDxe.h"
10
28EFIAPI
31 IN OUT VOID *InquiryData,
32 IN OUT UINT32 *InquiryDataSize
33 )
34{
35 EFI_STATUS Status;
36 SD_DEVICE *Device;
37
38 Device = SD_DEVICE_DATA_FROM_DISKINFO (This);
39
40 if (*InquiryDataSize >= sizeof (Device->Cid)) {
41 Status = EFI_SUCCESS;
42 CopyMem (InquiryData, &Device->Cid, sizeof (Device->Cid));
43 } else {
44 Status = EFI_BUFFER_TOO_SMALL;
45 }
46
47 *InquiryDataSize = sizeof (Device->Cid);
48
49 return Status;
50}
51
71EFIAPI
74 IN OUT VOID *IdentifyData,
75 IN OUT UINT32 *IdentifyDataSize
76 )
77{
78 return EFI_NOT_FOUND;
79}
80
99EFIAPI
102 IN OUT VOID *SenseData,
103 IN OUT UINT32 *SenseDataSize,
104 OUT UINT8 *SenseDataNumber
105 )
106{
107 return EFI_NOT_FOUND;
108}
109
124EFIAPI
127 OUT UINT32 *IdeChannel,
128 OUT UINT32 *IdeDevice
129 )
130{
131 return EFI_UNSUPPORTED;
132}
VOID *EFIAPI CopyMem(OUT VOID *DestinationBuffer, IN CONST VOID *SourceBuffer, IN UINTN Length)
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS EFIAPI SdDiskInfoInquiry(IN EFI_DISK_INFO_PROTOCOL *This, IN OUT VOID *InquiryData, IN OUT UINT32 *InquiryDataSize)
Definition: SdDiskInfo.c:29
EFI_STATUS EFIAPI SdDiskInfoSenseData(IN EFI_DISK_INFO_PROTOCOL *This, IN OUT VOID *SenseData, IN OUT UINT32 *SenseDataSize, OUT UINT8 *SenseDataNumber)
Definition: SdDiskInfo.c:100
EFI_STATUS EFIAPI SdDiskInfoWhichIde(IN EFI_DISK_INFO_PROTOCOL *This, OUT UINT32 *IdeChannel, OUT UINT32 *IdeDevice)
Definition: SdDiskInfo.c:125
EFI_STATUS EFIAPI SdDiskInfoIdentify(IN EFI_DISK_INFO_PROTOCOL *This, IN OUT VOID *IdentifyData, IN OUT UINT32 *IdentifyDataSize)
Definition: SdDiskInfo.c:72
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
#define EFI_SUCCESS
Definition: UefiBaseType.h:112