40 lines
900 B
C
40 lines
900 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2015-2019, MICROTRUST Incorporated
|
|
* All Rights Reserved.
|
|
*
|
|
*/
|
|
|
|
#ifndef BACKWARD_DRIVER_H
|
|
#define BACKWARD_DRIVER_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include "teei_common.h"
|
|
|
|
#define TEEI_BDRV_TYPE (0x10)
|
|
#define TEEI_LOAD_IMG_TYPE (0x20)
|
|
|
|
struct bdrv_work_struct {
|
|
unsigned long long bdrv_work_type;
|
|
void *param_p;
|
|
struct list_head c_link;
|
|
};
|
|
|
|
extern struct service_handler reetime;
|
|
extern struct service_handler vfs_handler;
|
|
extern unsigned char *daulOS_VFS_share_mem;
|
|
|
|
int notify_vfs_handle(void);
|
|
int wait_for_vfs_done(void);
|
|
|
|
int init_all_service_handlers(void);
|
|
int vfs_thread_function(unsigned long virt_addr,
|
|
unsigned long para_vaddr, unsigned long buff_vaddr);
|
|
|
|
int init_bdrv_comp_fn(void);
|
|
void teei_notify_bdrv_fn(void);
|
|
int teei_bdrv_fn(void *work);
|
|
void teei_wait_for_bdrv_done(void);
|
|
|
|
#endif /* end of BACKWARD_DRIVER_H */
|