PROTOCOLS
RamNand
Defined in fuchsia.hardware.nand/ram-nand.fidl
Unlink
Removes the device.
Request
Name | Type |
---|
Response
Name | Type |
---|---|
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
Name | Type |
---|---|
info |
RamNandInfo
|
Response
Name | Type |
---|---|
status |
zx/status
|
name |
string[32]
|
STRUCTS
Info
Defined in fuchsia.hardware.nand/nand.fidl
Name | Type | Description | Default |
---|---|---|---|
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
Name | Type | Description | Default |
---|---|---|---|
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 | |
bbt |
bool
|
Contains a legacy bad block table. |
No default |
PartitionMap
Defined in fuchsia.hardware.nand/ram-nand.fidl
Name | Type | Description | Default |
---|---|---|---|
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.
Name | Type | Description | Default |
---|---|---|---|
vmo |
handle<vmo>?
|
VMO to use as backing store for nand device. Size should match size of |
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
Name | Value | Description |
---|---|---|
UNKNOWN |
0 |
|
PARTMAP |
1 |
|
FTL |
2 |
|
BBS |
3 |
|
TEST |
4 |
CONSTANTS
Name | Value | Type | Description |
---|---|---|---|
GUID_LEN |
16
|
uint32 |
|
MAX_PARTITIONS |
10
|
uint32 |
|
NAME_LEN |
32
|
uint32 |