class AmlRawNand

Defined at line 70 of file ../../src/devices/nand/drivers/aml-rawnand/aml-rawnand.h

Public Methods

void AmlRawNand (zx_device_t * parent, fdf::MmioBuffer mmio_nandreg, fdf::MmioBuffer mmio_clockreg, zx::bti bti, std::unique_ptr<Onfi> onfi)

Defined at line 72 of file ../../src/devices/nand/drivers/aml-rawnand/aml-rawnand.h

void ~AmlRawNand ()

Defined at line 82 of file ../../src/devices/nand/drivers/aml-rawnand/aml-rawnand.h

zx_status_t Create (void * ctx, zx_device_t * parent)

Defined at line 1077 of file ../../src/devices/nand/drivers/aml-rawnand/aml-rawnand.cc

void DdkRelease ()

Defined at line 1003 of file ../../src/devices/nand/drivers/aml-rawnand/aml-rawnand.cc

void DdkUnbind (ddk::UnbindTxn txn)

Defined at line 1009 of file ../../src/devices/nand/drivers/aml-rawnand/aml-rawnand.cc

void DdkSuspend (ddk::SuspendTxn txn)

Defined at line 1011 of file ../../src/devices/nand/drivers/aml-rawnand/aml-rawnand.cc

zx_status_t Bind ()

Defined at line 1033 of file ../../src/devices/nand/drivers/aml-rawnand/aml-rawnand.cc

zx_status_t Init ()

Defined at line 1021 of file ../../src/devices/nand/drivers/aml-rawnand/aml-rawnand.cc

zx_status_t RawNandReadPageHwecc (uint32_t nand_page, uint8_t * data, size_t data_size, size_t * data_actual, uint8_t * oob, size_t oob_size, size_t * oob_actual, uint32_t * ecc_correct)

Defined at line 578 of file ../../src/devices/nand/drivers/aml-rawnand/aml-rawnand.cc

zx_status_t RawNandWritePageHwecc (const uint8_t * data, size_t data_size, const uint8_t * oob, size_t oob_size, uint32_t nand_page)

TODO : Right now, the driver uses a buffer for DMA, which

is not needed. We should initiate DMA to/from pages passed in.

Defined at line 694 of file ../../src/devices/nand/drivers/aml-rawnand/aml-rawnand.cc

zx_status_t RawNandEraseBlock (uint32_t nand_page)

Defined at line 766 of file ../../src/devices/nand/drivers/aml-rawnand/aml-rawnand.cc

zx_status_t RawNandGetNandInfo (nand_info_t * nand_info)

Defined at line 863 of file ../../src/devices/nand/drivers/aml-rawnand/aml-rawnand.cc

Protected Methods

const ddk::IoBuffer & data_buffer ()

Tests can fake page read/writes by copying bytes to/from these buffers.

Defined at line 107 of file ../../src/devices/nand/drivers/aml-rawnand/aml-rawnand.h

const ddk::IoBuffer & info_buffer ()

Defined at line 110 of file ../../src/devices/nand/drivers/aml-rawnand/aml-rawnand.h

const zx::bti & bti ()

Defined at line 113 of file ../../src/devices/nand/drivers/aml-rawnand/aml-rawnand.h

uint8_t AmlReadByte ()

Reads a single status byte from a NAND register. Used during initialization

to query the chip information and settings.

Defined at line 468 of file ../../src/devices/nand/drivers/aml-rawnand/aml-rawnand.cc