mirror of
https://github.com/xboot/xfel.git
synced 2024-11-26 19:23:28 +08:00
21 lines
607 B
C
21 lines
607 B
C
#ifndef __SPINAND_H__
|
|
#define __SPINAND_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <fel.h>
|
|
|
|
int spinand_detect(struct xfel_ctx_t * ctx, char * name, uint64_t * capacity);
|
|
int spinand_erase(struct xfel_ctx_t * ctx, uint64_t addr, uint64_t len);
|
|
int spinand_read(struct xfel_ctx_t * ctx, uint64_t addr, void * buf, uint64_t len);
|
|
int spinand_write(struct xfel_ctx_t * ctx, uint64_t addr, void * buf, uint64_t len);
|
|
int spinand_splwrite(struct xfel_ctx_t * ctx, uint32_t splitsz, uint64_t addr, void * buf, uint64_t len);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __SPINAND_H__ */
|