blob: cd4da877f030baaac88d0fdce34a0f8f42a57185 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001
2#ifndef __MTK_DEVICE_WRAP_H__
3#define __MTK_DEVICE_WRAP_H__
4
5#include <sys/types.h>
6#include <sys/stat.h>
7#include <fcntl.h>
8#include <unistd.h>
9
10#define BOOTDEV_TYPE_NAND 1
11#define BOOTDEV_TYPE_EMMC 2
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17int mtk_device_wrap_m_open(const char *pathname, int flags, mode_t mode);
18int mtk_device_wrap_open(const char *pathname, int flags);
19off_t mtk_device_wrap_seek(int fd, off_t offset, int whence);
20off64_t mtk_device_wrap_seek64(int fd, off64_t offset, int whence);
21ssize_t mtk_device_wrap_read(int fd, void *buf, size_t count);
22ssize_t mtk_device_wrap_write(int fd, void *buf, size_t count);
23ssize_t mtk_device_wrap_write_force(int fd, void *buf, size_t count);
24int mtk_device_wrap_close(int fd);
25
26#ifdef __cplusplus
27}
28#endif
29
30#endif /* __MTK_DEVICE_WRAP_H__ */