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

fuchsia.hardware.nvram

PROTOCOLS

Device

Defined in fuchsia.hardware.nvram/nvram.fidl

A device that contains some small amount of non-volatile storage.

GetSize

Get the size of the NVRAM NVRAM.

Request

<EMPTY>

Response

NameType
size uint32

Read

Read |size| bytes of data starting at |offset|. Returns ZX_ERR_OUT_OF_RANGE if the data extends past the end of the nvram.

Request

NameType
offset uint32
size uint32

Response

NameType
result Device_Read_Result

Write

Write |data| starting at |offset|. Returns ZX_ERR_OUT_OF_RANGE if the data extends past the end of the nvram.

Request

NameType
offset uint32
data vector<uint8>[256]

Response

NameType
result Device_Write_Result

STRUCTS

Device_Read_Response

Defined in fuchsia.hardware.nvram/nvram.fidl

NameTypeDescriptionDefault
data vector<uint8>[256] No default

Device_Write_Response

Defined in fuchsia.hardware.nvram/nvram.fidl

<EMPTY>

UNIONS

Device_Read_Result strict

Defined in fuchsia.hardware.nvram/nvram.fidl

NameTypeDescription
response Device_Read_Response
err zx/status

Device_Write_Result strict

Defined in fuchsia.hardware.nvram/nvram.fidl

NameTypeDescription
response Device_Write_Response
err zx/status

CONSTANTS

NameValueTypeDescription
NVRAM_MAX 256 uint32

Maximum amount of data that can be transferred in a single transaction.