585b72766ea37aee820e9d1e61af936944c7c441
1 #ifndef _NAND_HW_API_H
2 #define _NAND_HW_API_H
3 /****************************************************************************************
4 * FILE PURPOSE: Define the nand api which applies to all nand drivers
5 ****************************************************************************************
6 * FILE NAME: nandhwapi.h
7 *
8 * DESCRIPTION: Defines the API used by all the low level nand drivers
9 *
10 * @file nandhwapi.h
11 *
12 * @brief
13 * Defines the API used by all the low level nand drivers
14 *
15 ****************************************************************************************/
17 /* Return values */
18 #define NAND_INVALID_ADDR_SIZE -810
19 #define NAND_NULL_ARG -811
20 #define NAND_INVALID_ADDR -812
21 #define NAND_ECC_FAILURE -813
24 /* Driver functions */
25 Int32 nandHwDriverInit (nandDevInfo_t *devInfo);
26 Int32 nandHwDriverReadBytes (Uint32 block, Uint32 page, Uint32 byte, Uint32 nbytes, Uint8 *data);
27 Int32 nandHwDriverReadPage(Uint32 block, Uint32 page, Uint8 *data);
28 Int32 nandHwDriverClose (void);
34 #endif /* _NAND_HW_API_H */