Files
android/drivers/misc/mediatek/teei/400/tz_vfs/TEEI.h
T
threeeye bc1d038eac REVVL 6 Pro kernel bring-up: full working tree snapshot (2026-09-12)
Squashed backup commit (no shallow-clone history issues) of
xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream
commit 9eece662e) plus all fixes applied to get everpal_defconfig building
clean against a modern (GCC 15.2.0) toolchain -- see the previous commit
message on the lineage-23.2 branch (also in this repo history is not
available here since this is a squashed snapshot; full incremental history
lives in the local DL380 checkout and the upstream GitHub remote).

Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
2026-09-12 13:36:46 +00:00

91 lines
1.6 KiB
C

/*
* Copyright (c) 2015-2019, MICROTRUST Incorporated
* All Rights Reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#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