arm_nandread() function
Uses an on-chip algorithm for an ARM device to read from a NAND device and store the data into the host machine's memory.
Arguments
nand
Pointer to the arm_nand_data struct that defines the I/O
data
Pointer to the data buffer to store the read data
size
Amount of data to be stored to the buffer.
Return value
Success or failure of the operation