xfel/spinor.h

20 lines
493 B
C
Raw Normal View History

2021-06-06 11:57:39 +08:00
#ifndef __SPINOR_H__
#define __SPINOR_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <fel.h>
int spinor_detect(struct xfel_ctx_t * ctx, char * name, uint64_t * capacity);
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);
#ifdef __cplusplus
}
#endif
2021-06-06 11:57:39 +08:00
#endif /* __SPINOR_H__ */