2021-06-06 11:57:39 +08:00
|
|
|
#ifndef __SPINOR_H__
|
|
|
|
#define __SPINOR_H__
|
2021-06-04 17:11:28 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <fel.h>
|
|
|
|
|
2021-11-01 19:33:09 +08:00
|
|
|
int spinor_detect(struct xfel_ctx_t * ctx, char * name, uint64_t * capacity);
|
2022-01-10 15:50:38 +08:00
|
|
|
int spinor_erase(struct xfel_ctx_t * ctx, uint64_t addr, uint64_t len);
|
2021-06-05 17:18:58 +08:00
|
|
|
int spinor_read(struct xfel_ctx_t * ctx, uint64_t addr, void * buf, uint64_t len);
|
|
|
|
int spinor_write(struct xfel_ctx_t * ctx, uint64_t addr, void * buf, uint64_t len);
|
2021-06-04 17:11:28 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2021-06-06 11:57:39 +08:00
|
|
|
#endif /* __SPINOR_H__ */
|