// ufs.h
typedef struct {
UCHAR bLength;
UCHAR bDescriptorIDN;
UCHAR bUnitIndex;
UCHAR bLUEnable;
UCHAR bBootLunID;
UCHAR bLUWriteProtect;
UCHAR bLUQueueDepth;
UCHAR bPSASensitive;
UCHAR bMemoryType;
UCHAR Reserved;
UCHAR bLogicalBlockSize;
UCHAR qLogicalBlockCount[8];
UCHAR dEraseBlockSize[4];
UCHAR bProvisioningType;
UCHAR qPhyMemResourceCount[8];
UCHAR Reserved2[3];
} UFS_RPMB_UNIT_DESCRIPTOR, *PUFS_RPMB_UNIT_DESCRIPTOR;
View the official Windows Driver Kit DDI referenceNo description available.
UFS_RPMB_UNIT_DESCRIPTOR structure describes the contents of a Replay Protected Memory Block (RBMB) Unit.
bLengthSpecifies the length, in bytes, of this descriptor.
bDescriptorIDNSpecifies the type of the descriptor. This descriptor will have a value of UFS_DESC_UNIT_IDN.
bUnitIndexSpecifies the unit index.
bLUEnableSpecifies if the logic unit number (LUN) is enabled. If bLUEnable is equal to 0x00, the logical unit is disabled.
bBootLunIDbLUWriteProtectSpecifies if the logical unit is write-protected. Contains one of the following values:
| Value | Description |
|---|---|
| 0x00 | The logical unit is not write protected. |
| 0x01 | The logical unit is write protected. |
| 0x02 | The logical unit is permanently write protected. |
bLUQueueDepthSpecifies the logical unit queue depth. Can be any value from 0x00 to 0xff.
bPSASensitiveSpecifies if the logical unit is sensitive to soldering. Contains one of the following values:
| Value | Description |
|---|---|
| 0x00 | The logical unit is not sensitive to soldering. |
| 0x01 | The logical unit is sensitive to soldering. |
bMemoryTypeSpecifies the desired memory type. Equal to 0x0F.
ReservedReserved for future use.
bLogicalBlockSizeSpecifies the logical block size of the descriptor.
qLogicalBlockCount[8]Specifies the total number of addressable logical blocks in the logical unit.
dEraseBlockSize[4]Specifies the erase block size.
bProvisioningTypeSpecifies the provisioning type.
qPhyMemResourceCount[8]Specifies the total physical memory resources available in the logical unit.
Reserved2[3]Reserved for future use.