|
RTEMS 6.1-rc5
|
Loading...
Searching...
No Matches
1#ifndef __LINUX_MTD_RAWNAND_H__
2#define __LINUX_MTD_RAWNAND_H__
4#define mtd_read_oob(mtd_sp, offset, ops) ({ \
5 struct jffs2_sb_info *sb_info = RTEMS_CONTAINER_OF(&(mtd_sp), struct jffs2_sb_info, mtd); \
6 int sc = jffs2_flash_oob_read(sb_info, offset, (ops)->oobbuf, (ops)->ooblen); \
10 (ops)->oobretlen = (ops)->ooblen; \
14#define mtd_write_oob(mtd_sp, offset, ops) ({ \
15 struct jffs2_sb_info *sb_info = RTEMS_CONTAINER_OF(&(mtd_sp), struct jffs2_sb_info, mtd); \
16 int sc = jffs2_flash_oob_write(sb_info, offset, (ops)->oobbuf, (ops)->ooblen); \
17 if (sc != RTEMS_SUCCESSFUL) { \
20 (ops)->oobretlen = (ops)->ooblen; \
24#define MTD_OPS_AUTO_OOB 1