#ifndef __MTK_DEVICE_WRAP_H__ | |
#define __MTK_DEVICE_WRAP_H__ | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#define BOOTDEV_TYPE_NAND 1 | |
#define BOOTDEV_TYPE_EMMC 2 | |
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
int mtk_device_wrap_m_open(const char *pathname, int flags, mode_t mode); | |
int mtk_device_wrap_open(const char *pathname, int flags); | |
off_t mtk_device_wrap_seek(int fd, off_t offset, int whence); | |
off64_t mtk_device_wrap_seek64(int fd, off64_t offset, int whence); | |
ssize_t mtk_device_wrap_read(int fd, void *buf, size_t count); | |
ssize_t mtk_device_wrap_write(int fd, void *buf, size_t count); | |
ssize_t mtk_device_wrap_write_force(int fd, void *buf, size_t count); | |
int mtk_device_wrap_close(int fd); | |
#ifdef __cplusplus | |
} | |
#endif | |
#endif /* __MTK_DEVICE_WRAP_H__ */ |