34 lines
671 B
C
34 lines
671 B
C
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||
|
/*
|
||
|
* Copyright (c) 2015-2019, MICROTRUST Incorporated
|
||
|
* All Rights Reserved.
|
||
|
*
|
||
|
*/
|
||
|
#ifndef __TEEI_FDRV_H__
|
||
|
#define __TEEI_FDRV_H__
|
||
|
|
||
|
#include <linux/list.h>
|
||
|
#include <notify_queue.h>
|
||
|
#include <teei_common.h>
|
||
|
|
||
|
struct teei_fdrv {
|
||
|
void *buf;
|
||
|
int buff_size;
|
||
|
int call_type;
|
||
|
struct list_head list;
|
||
|
};
|
||
|
|
||
|
/* used by fdrv drivers */
|
||
|
void register_fdrv(struct teei_fdrv *fdrv);
|
||
|
|
||
|
int create_fdrv(struct teei_fdrv *fdrv);
|
||
|
int fdrv_notify(struct teei_fdrv *fdrv);
|
||
|
|
||
|
void teei_handle_fdrv_call(struct NQ_entry *entry);
|
||
|
|
||
|
/* used internally by tz_driver */
|
||
|
int create_all_fdrv(void);
|
||
|
int __call_fdrv(struct fdrv_call_struct *fdrv_ent);
|
||
|
|
||
|
#endif
|