Google is committed to advancing racial equity for Black communities. See how.

fuchsia.hardware.rpmb

PROTOCOLS

Rpmb

Defined in fuchsia.hardware.rpmb/rpmb.fidl

ConnectServer

Tells the RPMB driver to start listening for fuchsia.hardware.rpmb messages on server. See sdk/fidl/fuchsia.hardware.rpmb/rpmb.fidl.

Request

NameType
server handle<channel>

Response

<EMPTY>

Rpmb

Defined in fuchsia.hardware.rpmb/rpmb.fidl

GetDeviceInfo

Request

<EMPTY>

Response

NameType
info DeviceInfo

Request

Request

NameType
request Request

Response

NameType
result Rpmb_Request_Result

STRUCTS

EmmcDeviceInfo

Defined in fuchsia.hardware.rpmb/rpmb.fidl

FieldTypeDescriptionDefault
cid uint8[16]

The device's CID register.

No default
rpmb_size uint8

RPMB_SIZE_MULT from the device's EXT_CSD register.

No default
reliable_write_sector_count uint8

REL_WR_SEC_C from the device's EXT_CSD register.

No default

Request resource

Defined in fuchsia.hardware.rpmb/rpmb.fidl

Represents an RPMB operation, which consists of sending one or more frames then receiving zero or more frames. The tx_frames and rx_frames VMOs will be transferred to the protocol implementation, so clients should keep duplicates of them if access is needed after the call to Request(). The request will be aborted as soon as an error is encountered, meaning the read operation will not be performed if the write operation failed. Invalid parameters passed through tx_frames or rx_frames will cause an error to be returned immediately, without either operation having been performed.

FieldTypeDescriptionDefault
tx_frames fuchsia.mem/Range

May not be null as all operations involve sending at least one frame. tx_frames.size must be a multiple of and at least FRAME_SIZE.

No default
rx_frames fuchsia.mem/Range?

May be null if no frames need to be received. rx_frames.size must be a multiple of FRAME_SIZE if rx_frames is not null.

No default

Rpmb_Request_Response

Defined in fuchsia.hardware.rpmb/rpmb.fidl

<EMPTY>

UNIONS

DeviceInfo flexible

Defined in fuchsia.hardware.rpmb/rpmb.fidl

Ordinal
VariantTypeDescription
1 emmc_info EmmcDeviceInfo

Rpmb_Request_Result strict

Defined in fuchsia.hardware.rpmb/rpmb.fidl

Ordinal
VariantTypeDescription
1 response Rpmb_Request_Response
2 err zx/status

CONSTANTS

NameValueTypeDescription
FRAME_SIZE 512 uint32

The RPMB frame size in bytes.