rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 |
|
| 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
|
| 14 | extern "C" {
|
| 15 | #endif
|
| 16 |
|
| 17 | int mtk_device_wrap_m_open(const char *pathname, int flags, mode_t mode);
|
| 18 | int mtk_device_wrap_open(const char *pathname, int flags);
|
| 19 | off_t mtk_device_wrap_seek(int fd, off_t offset, int whence);
|
| 20 | off64_t mtk_device_wrap_seek64(int fd, off64_t offset, int whence);
|
| 21 | ssize_t mtk_device_wrap_read(int fd, void *buf, size_t count);
|
| 22 | ssize_t mtk_device_wrap_write(int fd, void *buf, size_t count);
|
| 23 | ssize_t mtk_device_wrap_write_force(int fd, void *buf, size_t count);
|
| 24 | int mtk_device_wrap_close(int fd);
|
| 25 |
|
| 26 | #ifdef __cplusplus
|
| 27 | }
|
| 28 | #endif
|
| 29 |
|
| 30 | #endif /* __MTK_DEVICE_WRAP_H__ */
|