1 /*
2 * rpmb_driver.c
3 *
4 * rpmb driver function, such as ioctl
5 *
6 * Copyright (C) 2022 Huawei Technologies Co., Ltd.
7 *
8 * This software is licensed under the terms of the GNU General Public
9 * License version 2, as published by the Free Software Foundation, and
10 * may be copied, distributed, and modified under those terms.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 */
17 #include "rpmb_driver.h"
18
rpmb_ioctl_cmd(enum func_id id,enum rpmb_op_type operation,struct storage_blk_ioc_rpmb_data * storage_data)19 int rpmb_ioctl_cmd(enum func_id id, enum rpmb_op_type operation,
20 struct storage_blk_ioc_rpmb_data *storage_data)
21 {
22 if (storage_data == NULL)
23 return -1;
24
25 return vendor_rpmb_ioctl_cmd(id, operation, storage_data);
26 }