TianoCore EDK2 master
Loading...
Searching...
No Matches
EmmcDiskInfo.c
Go to the documentation of this file.
1
9#include "EmmcDxe.h"
10
28EFIAPI
31 IN OUT VOID *InquiryData,
32 IN OUT UINT32 *InquiryDataSize
33 )
34{
35 EFI_STATUS Status;
36 EMMC_PARTITION *Partition;
37 EMMC_DEVICE *Device;
38
39 Partition = EMMC_PARTITION_DATA_FROM_DISKINFO (This);
40 Device = Partition->Device;
41
42 if (*InquiryDataSize >= sizeof (Device->Cid)) {
43 Status = EFI_SUCCESS;
44 CopyMem (InquiryData, &Device->Cid, sizeof (Device->Cid));
45 } else {
46 Status = EFI_BUFFER_TOO_SMALL;
47 }
48
49 *InquiryDataSize = sizeof (Device->Cid);
50
51 return Status;
52}
53
73EFIAPI
76 IN OUT VOID *IdentifyData,
77 IN OUT UINT32 *IdentifyDataSize
78 )
79{
80 return EFI_NOT_FOUND;
81}
82
101EFIAPI
104 IN OUT VOID *SenseData,
105 IN OUT UINT32 *SenseDataSize,
106 OUT UINT8 *SenseDataNumber
107 )
108{
109 return EFI_NOT_FOUND;
110}
111
126EFIAPI
129 OUT UINT32 *IdeChannel,
130 OUT UINT32 *IdeDevice
131 )
132{
133 return EFI_UNSUPPORTED;
134}
VOID *EFIAPI CopyMem(OUT VOID *DestinationBuffer, IN CONST VOID *SourceBuffer, IN UINTN Length)
EFI_STATUS EFIAPI EmmcDiskInfoSenseData(IN EFI_DISK_INFO_PROTOCOL *This, IN OUT VOID *SenseData, IN OUT UINT32 *SenseDataSize, OUT UINT8 *SenseDataNumber)
Definition: EmmcDiskInfo.c:102
EFI_STATUS EFIAPI EmmcDiskInfoIdentify(IN EFI_DISK_INFO_PROTOCOL *This, IN OUT VOID *IdentifyData, IN OUT UINT32 *IdentifyDataSize)
Definition: EmmcDiskInfo.c:74
EFI_STATUS EFIAPI EmmcDiskInfoInquiry(IN EFI_DISK_INFO_PROTOCOL *This, IN OUT VOID *InquiryData, IN OUT UINT32 *InquiryDataSize)
Definition: EmmcDiskInfo.c:29
EFI_STATUS EFIAPI EmmcDiskInfoWhichIde(IN EFI_DISK_INFO_PROTOCOL *This, OUT UINT32 *IdeChannel, OUT UINT32 *IdeDevice)
Definition: EmmcDiskInfo.c:127
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
#define EFI_SUCCESS
Definition: UefiBaseType.h:112