c05564c4d8
Android 13
84 lines
1.2 KiB
C
Executable file
84 lines
1.2 KiB
C
Executable file
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2015-2019, MICROTRUST Incorporated
|
|
* All Rights Reserved.
|
|
*
|
|
*/
|
|
|
|
#ifndef __VFS_TEEI_H_
|
|
#define __VFS_TEEI_H_
|
|
|
|
#define RPMB_IOCTL_SOTER_WRITE_DATA 5
|
|
#define RPMB_IOCTL_SOTER_READ_DATA 6
|
|
#define RPMB_IOCTL_SOTER_GET_CNT 7
|
|
|
|
#define RPMB_BUFF_SIZE 512
|
|
#define PAGE_SIZE_4K (0x1000)
|
|
|
|
|
|
struct TEEI_vfs_command {
|
|
int func;
|
|
int cmd_size;
|
|
|
|
union func_arg {
|
|
struct func_open {
|
|
int flags;
|
|
int mode;
|
|
} func_open_args;
|
|
|
|
struct func_send {
|
|
int fd;
|
|
int count;
|
|
} func_read_args;
|
|
|
|
struct func_recv {
|
|
int fd;
|
|
int count;
|
|
} func_write_args;
|
|
|
|
struct func_ioctl {
|
|
int fd;
|
|
int cmd;
|
|
int arg;
|
|
} func_ioctl_args;
|
|
|
|
struct func_close {
|
|
int fd;
|
|
} func_close_args;
|
|
|
|
struct func_trunc {
|
|
int fd;
|
|
int length;
|
|
} func_trunc_args;
|
|
|
|
struct func_lseek {
|
|
int fd;
|
|
int offset;
|
|
int origin;
|
|
} func_lseek_args;
|
|
|
|
struct func_mkdir {
|
|
int mode;
|
|
} func_mkdir_args;
|
|
|
|
struct func_readdir {
|
|
unsigned long p_dir;
|
|
unsigned int read_count;
|
|
} func_readdir_args;
|
|
|
|
struct func_closedir {
|
|
unsigned long p_dir;
|
|
} func_closedir_args;
|
|
|
|
} args;
|
|
|
|
};
|
|
|
|
union TEEI_vfs_response {
|
|
int value;
|
|
unsigned long p_dir;
|
|
};
|
|
|
|
extern char *daulOS_VFS_write_share_mem;
|
|
#endif
|