class NandDevice

Defined at line 59 of file ../../src/devices/nand/drivers/ram-nand/ram-nand.h

Provides the bulk of the functionality for a ram-backed NAND device.

Public Methods

void NandDevice (const NandParams & params, async_dispatcher_t * dispatcher, Id id, OnUnlink on_unlink)

Defined at line 67 of file ../../src/devices/nand/drivers/ram-nand/ram-nand.h

void ~NandDevice ()

Defined at line 102 of file ../../src/devices/nand/drivers/ram-nand/ram-nand.cc

zx::result<std::string> Init (fuchsia_hardware_nand::wire::RamNandInfo & info, fidl::UnownedClientEnd<fuchsia_driver_framework::Node> parent, const std::shared_ptr<fdf::Namespace> & incoming, const std::shared_ptr<fdf::OutgoingDirectory> & outgoing, const std::optional<std::string> & node_name)

Perform object initialization, and return a unique name of this device.

If `vmo` is not provided or is not valid, the device will create its own buffer, and

initialize it to be empty (all 1s).

Defined at line 118 of file ../../src/devices/nand/drivers/ram-nand/ram-nand.cc

void Unlink (UnlinkCompleter::Sync & completer)

fidl::WireServer

<fuchsia

_hardware_nand::RamNand> implementation.

Defined at line 237 of file ../../src/devices/nand/drivers/ram-nand/ram-nand.cc

void NandQuery (nand_info_t * info_out, size_t * nand_op_size_out)

NAND protocol implementation.

Defined at line 249 of file ../../src/devices/nand/drivers/ram-nand/ram-nand.cc

void NandQueue (nand_operation_t * operation, nand_queue_callback completion_cb, void * cookie)

Defined at line 254 of file ../../src/devices/nand/drivers/ram-nand/ram-nand.cc

zx_status_t NandGetFactoryBadBlockList (uint32_t * bad_blocks, size_t bad_block_len, size_t * num_bad_blocks)

Defined at line 304 of file ../../src/devices/nand/drivers/ram-nand/ram-nand.cc