TianoCore EDK2 master
|
Go to the source code of this file.
Data Structures | |
struct | _EFI_UFS_DEVICE_CONFIG_PROTOCOL |
Macros | |
#define | EFI_UFS_DEVICE_CONFIG_GUID { 0xb81bfab0, 0xeb3, 0x4cf9, { 0x84, 0x65, 0x7f, 0xa9, 0x86, 0x36, 0x16, 0x64 }}; |
Typedefs | |
typedef struct _EFI_UFS_DEVICE_CONFIG_PROTOCOL | EFI_UFS_DEVICE_CONFIG_PROTOCOL |
typedef EFI_STATUS(EFIAPI * | EFI_UFS_DEVICE_CONFIG_RW_DESCRIPTOR) (IN EFI_UFS_DEVICE_CONFIG_PROTOCOL *This, IN BOOLEAN Read, IN UINT8 DescId, IN UINT8 Index, IN UINT8 Selector, IN OUT UINT8 *Descriptor, IN OUT UINT32 *DescSize) |
typedef EFI_STATUS(EFIAPI * | EFI_UFS_DEVICE_CONFIG_RW_FLAG) (IN EFI_UFS_DEVICE_CONFIG_PROTOCOL *This, IN BOOLEAN Read, IN UINT8 FlagId, IN OUT UINT8 *Flag) |
typedef EFI_STATUS(EFIAPI * | EFI_UFS_DEVICE_CONFIG_RW_ATTRIBUTE) (IN EFI_UFS_DEVICE_CONFIG_PROTOCOL *This, IN BOOLEAN Read, IN UINT8 AttrId, IN UINT8 Index, IN UINT8 Selector, IN OUT UINT8 *Attribute, IN OUT UINT32 *AttrSize) |
Variables | |
EFI_GUID | gEfiUfsDeviceConfigProtocolGuid |
This file defines the EFI UFS Device Config Protocol.
Copyright (c) 2017, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file UfsDeviceConfig.h.
#define EFI_UFS_DEVICE_CONFIG_GUID { 0xb81bfab0, 0xeb3, 0x4cf9, { 0x84, 0x65, 0x7f, 0xa9, 0x86, 0x36, 0x16, 0x64 }}; |
Definition at line 18 of file UfsDeviceConfig.h.
typedef struct _EFI_UFS_DEVICE_CONFIG_PROTOCOL EFI_UFS_DEVICE_CONFIG_PROTOCOL |
Definition at line 24 of file UfsDeviceConfig.h.
typedef EFI_STATUS(EFIAPI * EFI_UFS_DEVICE_CONFIG_RW_ATTRIBUTE) (IN EFI_UFS_DEVICE_CONFIG_PROTOCOL *This, IN BOOLEAN Read, IN UINT8 AttrId, IN UINT8 Index, IN UINT8 Selector, IN OUT UINT8 *Attribute, IN OUT UINT32 *AttrSize) |
Read or write specified attribute of a UFS device.
The service is used to read/write UFS attributes. The consumer of this API is responsible for allocating the data buffer pointed by Attribute.
[in] | This | The pointer to the EFI_UFS_DEVICE_CONFIG_PROTOCOL instance. |
[in] | Read | The boolean variable to show r/w direction. |
[in] | AttrId | The ID of Attribute. |
[in] | Index | The Index of Attribute. |
[in] | Selector | The Selector of Attribute. |
[in,out] | Attribute | The buffer of Attribute to be read or written. |
[in,out] | AttrSize | The size of Attribute buffer. On input, the size, in bytes, of the data buffer specified by Attribute. On output, the number of bytes that were actually transferred. |
EFI_SUCCESS | The attribute is read/written successfully. |
EFI_INVALID_PARAMETER | This is NULL or Attribute is NULL or AttrSize is NULL. AttrId, Index and Selector are invalid combination to point to a type of UFS attribute. |
EFI_DEVICE_ERROR | The attribute is not read/written successfully. |
Definition at line 112 of file UfsDeviceConfig.h.
typedef EFI_STATUS(EFIAPI * EFI_UFS_DEVICE_CONFIG_RW_DESCRIPTOR) (IN EFI_UFS_DEVICE_CONFIG_PROTOCOL *This, IN BOOLEAN Read, IN UINT8 DescId, IN UINT8 Index, IN UINT8 Selector, IN OUT UINT8 *Descriptor, IN OUT UINT32 *DescSize) |
Read or write specified device descriptor of a UFS device.
The service is used to read/write UFS device descriptors. The consumer of this API is responsible for allocating the data buffer pointed by Descriptor.
[in] | This | The pointer to the EFI_UFS_DEVICE_CONFIG_PROTOCOL instance. |
[in] | Read | The boolean variable to show r/w direction. |
[in] | DescId | The ID of device descriptor. |
[in] | Index | The Index of device descriptor. |
[in] | Selector | The Selector of device descriptor. |
[in,out] | Descriptor | The buffer of device descriptor to be read or written. |
[in,out] | DescSize | The size of device descriptor buffer. On input, the size, in bytes, of the data buffer specified by Descriptor. On output, the number of bytes that were actually transferred. |
EFI_SUCCESS | The device descriptor is read/written successfully. |
EFI_INVALID_PARAMETER | This is NULL or Descriptor is NULL or DescSize is NULL. DescId, Index and Selector are invalid combination to point to a type of UFS device descriptor. |
EFI_DEVICE_ERROR | The device descriptor is not read/written successfully. |
Definition at line 50 of file UfsDeviceConfig.h.
typedef EFI_STATUS(EFIAPI * EFI_UFS_DEVICE_CONFIG_RW_FLAG) (IN EFI_UFS_DEVICE_CONFIG_PROTOCOL *This, IN BOOLEAN Read, IN UINT8 FlagId, IN OUT UINT8 *Flag) |
Read or write specified flag of a UFS device.
The service is used to read/write UFS flag descriptors. The consumer of this API is responsible for allocating the buffer pointed by Flag. The buffer size is 1 byte as UFS flag descriptor is just a single Boolean value that represents a TRUE or FALSE, '0' or '1', ON or OFF type of value.
[in] | This | The pointer to the EFI_UFS_DEVICE_CONFIG_PROTOCOL instance. |
[in] | Read | The boolean variable to show r/w direction. |
[in] | FlagId | The ID of flag to be read or written. |
[in,out] | Flag | The buffer to set or clear flag. |
EFI_SUCCESS | The flag descriptor is set/clear successfully. |
EFI_INVALID_PARAMETER | This is NULL or Flag is NULL. FlagId is an invalid UFS flag ID. |
EFI_DEVICE_ERROR | The flag is not set/clear successfully. |
Definition at line 80 of file UfsDeviceConfig.h.