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

fuchsia.hardware.nand

PROTOCOLS

RamNand

Defined in fuchsia.hardware.nand/ram-nand.fidl

Removes the device.

Request

NameType

Response

NameType
status zx/status

RamNandCtl

Defined in fuchsia.hardware.nand/ram-nand.fidl

CreateDevice

Creates a new ram-nand device. On success, returns the device's name (not the full topological name, just the last component).

Request

NameType
info RamNandInfo

Response

NameType
status zx/status
name string[32]

STRUCTS

Info

Defined in fuchsia.hardware.nand/nand.fidl

NameTypeDescriptionDefault
page_size uint32 No default
pages_per_block uint32 No default
num_blocks uint32 No default
ecc_bits uint32 No default
oob_size uint32 No default
nand_class Class No default
partition_guid uint8[16] No default

Partition

Defined in fuchsia.hardware.nand/ram-nand.fidl

NameTypeDescriptionDefault
type_guid uint8[16]

GUID specifying the format and use of data stored in the partition.

No default
unique_guid uint8[16]

GUID unique to this partition.

No default
first_block uint32

First and last block occupied by this partition.

No default
last_block uint32 No default
copy_count uint32

The number of data copies and offset between each data copy (if relevant).

No default
copy_byte_offset uint32 No default
name uint8[32] No default
hidden bool

Not a user-visible partition.

No default
bbt bool

Contains a legacy bad block table.

No default

PartitionMap

Defined in fuchsia.hardware.nand/ram-nand.fidl

NameTypeDescriptionDefault
device_guid uint8[16] No default
partition_count uint32

Number of partitions in the map.

No default
partitions [10] No default

RamNandInfo

Defined in fuchsia.hardware.nand/ram-nand.fidl

Defines how a newly created ram-nand volume should operate.

NameTypeDescriptionDefault
vmo handle<vmo>?

VMO to use as backing store for nand device. Size should match size of nand_info. If a vmo is not provided, the device will create its own buffer and initialize it to be empty (all 1s).

No default
nand_info Info

The desired "chip" configuration.

No default
partition_map PartitionMap

Partition map for the device. This can be left fully empty (as in default-initialized), as long as no metadata has to be exported by the device. If any metadata is required, it will be extracted from this map.

No default
export_nand_config bool

If true, export "extra" partition configuration as metadata.

No default
export_partition_map bool

if true, export a boot partition map as metadata.

No default

ENUMS

Class

Type: uint32

Defined in fuchsia.hardware.nand/nand.fidl

NameValueDescription
UNKNOWN 0
PARTMAP 1
FTL 2
BBS 3
TEST 4

CONSTANTS

NameValueTypeDescription
GUID_LEN 16 uint32
MAX_PARTITIONS 10 uint32
NAME_LEN 32 uint32