2 Header file for EFI_DISK_INFO_PROTOCOL interface.
4 Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 Initialize the installation of DiskInfo protocol.
18 This function prepares for the installation of DiskInfo protocol on the child handle.
19 By default, it installs DiskInfo protocol with USB interface GUID.
21 @param UsbMass The pointer of USB_MASS_DEVICE.
26 IN USB_MASS_DEVICE
*UsbMass
31 Provides inquiry information for the controller type.
33 This function is used to get inquiry data. Data format
34 of Identify data is defined by the Interface GUID.
36 @param[in] This Pointer to the EFI_DISK_INFO_PROTOCOL instance.
37 @param[in, out] InquiryData Pointer to a buffer for the inquiry data.
38 @param[in, out] InquiryDataSize Pointer to the value for the inquiry data size.
40 @retval EFI_SUCCESS The command was accepted without any errors.
41 @retval EFI_NOT_FOUND Device does not support this data class
42 @retval EFI_DEVICE_ERROR Error reading InquiryData from device
43 @retval EFI_BUFFER_TOO_SMALL InquiryDataSize not big enough
49 IN EFI_DISK_INFO_PROTOCOL
*This
,
50 IN OUT VOID
*InquiryData
,
51 IN OUT UINT32
*InquiryDataSize
55 Provides identify information for the controller type.
57 This function is used to get identify data. Data format
58 of Identify data is defined by the Interface GUID.
60 @param[in] This Pointer to the EFI_DISK_INFO_PROTOCOL
62 @param[in, out] IdentifyData Pointer to a buffer for the identify data.
63 @param[in, out] IdentifyDataSize Pointer to the value for the identify data
66 @retval EFI_SUCCESS The command was accepted without any errors.
67 @retval EFI_NOT_FOUND Device does not support this data class
68 @retval EFI_DEVICE_ERROR Error reading IdentifyData from device
69 @retval EFI_BUFFER_TOO_SMALL IdentifyDataSize not big enough
75 IN EFI_DISK_INFO_PROTOCOL
*This
,
76 IN OUT VOID
*IdentifyData
,
77 IN OUT UINT32
*IdentifyDataSize
81 Provides sense data information for the controller type.
83 This function is used to get sense data.
84 Data format of Sense data is defined by the Interface GUID.
86 @param[in] This Pointer to the EFI_DISK_INFO_PROTOCOL instance.
87 @param[in, out] SenseData Pointer to the SenseData.
88 @param[in, out] SenseDataSize Size of SenseData in bytes.
89 @param[out] SenseDataNumber Pointer to the value for the sense data size.
91 @retval EFI_SUCCESS The command was accepted without any errors.
92 @retval EFI_NOT_FOUND Device does not support this data class.
93 @retval EFI_DEVICE_ERROR Error reading SenseData from device.
94 @retval EFI_BUFFER_TOO_SMALL SenseDataSize not big enough.
99 UsbDiskInfoSenseData (
100 IN EFI_DISK_INFO_PROTOCOL
*This
,
101 IN OUT VOID
*SenseData
,
102 IN OUT UINT32
*SenseDataSize
,
103 OUT UINT8
*SenseDataNumber
108 This function is used to get controller information.
110 @param[in] This Pointer to the EFI_DISK_INFO_PROTOCOL instance.
111 @param[out] IdeChannel Pointer to the Ide Channel number. Primary or secondary.
112 @param[out] IdeDevice Pointer to the Ide Device number. Master or slave.
114 @retval EFI_SUCCESS IdeChannel and IdeDevice are valid.
115 @retval EFI_UNSUPPORTED This is not an IDE device.
120 UsbDiskInfoWhichIde (
121 IN EFI_DISK_INFO_PROTOCOL
*This
,
122 OUT UINT32
*IdeChannel
,
123 OUT UINT32
*IdeDevice