]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Bus/Sd/SdDxe/SdDiskInfo.h
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Bus / Sd / SdDxe / SdDiskInfo.h
CommitLineData
af6a6bf4
HW
1/** @file\r
2 Header file for EFI_DISK_INFO_PROTOCOL interface on SD memory card devices.\r
3\r
4 Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
9d510e61 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
af6a6bf4
HW
6\r
7**/\r
8\r
9#ifndef _SD_DISKINFO_H_\r
10#define _SD_DISKINFO_H_\r
11\r
12/**\r
13 Provides inquiry information for the controller type.\r
14\r
15 This function is used by the driver entity to get inquiry data. Data format of\r
16 Identify data is defined by the Interface GUID.\r
17\r
18 @param[in] This Pointer to the EFI_DISK_INFO_PROTOCOL instance.\r
19 @param[in,out] InquiryData Pointer to a buffer for the inquiry data.\r
20 @param[in,out] InquiryDataSize Pointer to the value for the inquiry data size.\r
21\r
22 @retval EFI_SUCCESS The command was accepted without any errors.\r
23 @retval EFI_NOT_FOUND Device does not support this data class.\r
24 @retval EFI_DEVICE_ERROR Error reading InquiryData from device.\r
25 @retval EFI_BUFFER_TOO_SMALL InquiryDataSize not big enough.\r
26\r
27**/\r
28EFI_STATUS\r
29EFIAPI\r
30SdDiskInfoInquiry (\r
31 IN EFI_DISK_INFO_PROTOCOL *This,\r
32 IN OUT VOID *InquiryData,\r
33 IN OUT UINT32 *InquiryDataSize\r
34 );\r
35\r
36/**\r
37 Provides identify information for the controller type.\r
38\r
39 This function is used by the driver entity to get identify data. Data format\r
40 of Identify data is defined by the Interface GUID.\r
41\r
42 @param[in] This Pointer to the EFI_DISK_INFO_PROTOCOL\r
43 instance.\r
44 @param[in,out] IdentifyData Pointer to a buffer for the identify data.\r
45 @param[in,out] IdentifyDataSize Pointer to the value for the identify data\r
46 size.\r
47\r
48 @retval EFI_SUCCESS The command was accepted without any errors.\r
49 @retval EFI_NOT_FOUND Device does not support this data class.\r
50 @retval EFI_DEVICE_ERROR Error reading IdentifyData from device.\r
51 @retval EFI_BUFFER_TOO_SMALL IdentifyDataSize not big enough.\r
52\r
53**/\r
54EFI_STATUS\r
55EFIAPI\r
56SdDiskInfoIdentify (\r
57 IN EFI_DISK_INFO_PROTOCOL *This,\r
58 IN OUT VOID *IdentifyData,\r
59 IN OUT UINT32 *IdentifyDataSize\r
60 );\r
61\r
62/**\r
63 Provides sense data information for the controller type.\r
64\r
65 This function is used by the driver entity to get sense data. Data format of\r
66 Sense data is defined by the Interface GUID.\r
67\r
68 @param[in] This Pointer to the EFI_DISK_INFO_PROTOCOL instance.\r
69 @param[in,out] SenseData Pointer to the SenseData.\r
70 @param[in,out] SenseDataSize Size of SenseData in bytes.\r
71 @param[out] SenseDataNumber Pointer to the value for the sense data size.\r
72\r
73 @retval EFI_SUCCESS The command was accepted without any errors.\r
74 @retval EFI_NOT_FOUND Device does not support this data class.\r
75 @retval EFI_DEVICE_ERROR Error reading SenseData from device.\r
76 @retval EFI_BUFFER_TOO_SMALL SenseDataSize not big enough.\r
77\r
78**/\r
79EFI_STATUS\r
80EFIAPI\r
81SdDiskInfoSenseData (\r
82 IN EFI_DISK_INFO_PROTOCOL *This,\r
83 IN OUT VOID *SenseData,\r
84 IN OUT UINT32 *SenseDataSize,\r
85 OUT UINT8 *SenseDataNumber\r
86 );\r
87\r
88/**\r
89 Provides IDE channel and device information for the interface.\r
90\r
91 This function is used by the driver entity to get controller information.\r
92\r
93 @param[in] This Pointer to the EFI_DISK_INFO_PROTOCOL instance.\r
94 @param[out] IdeChannel Pointer to the Ide Channel number. Primary or secondary.\r
95 @param[out] IdeDevice Pointer to the Ide Device number. Master or slave.\r
96\r
97 @retval EFI_SUCCESS IdeChannel and IdeDevice are valid.\r
98 @retval EFI_UNSUPPORTED This is not an IDE device.\r
99\r
100**/\r
101EFI_STATUS\r
102EFIAPI\r
103SdDiskInfoWhichIde (\r
104 IN EFI_DISK_INFO_PROTOCOL *This,\r
105 OUT UINT32 *IdeChannel,\r
106 OUT UINT32 *IdeDevice\r
107 );\r
108\r
109#endif\r