Pali Rohár | deb1e92 | 2022-02-23 14:15:47 +0100 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
2 | /* | ||||
3 | * Copyright (C) 2018 Marek Behun <marek.behun@nic.cz> | ||||
4 | */ | ||||
5 | |||||
6 | #ifndef _MVEBU_MBOX_H | ||||
7 | #define _MVEBU_MBOX_H | ||||
8 | |||||
9 | enum mbox_cmd { | ||||
10 | MBOX_CMD_GET_RANDOM = 1, | ||||
11 | MBOX_CMD_BOARD_INFO, | ||||
12 | MBOX_CMD_ECDSA_PUB_KEY, | ||||
13 | MBOX_CMD_HASH, | ||||
14 | MBOX_CMD_SIGN, | ||||
15 | MBOX_CMD_VERIFY, | ||||
16 | |||||
17 | MBOX_CMD_OTP_READ, | ||||
18 | MBOX_CMD_OTP_WRITE, | ||||
19 | }; | ||||
20 | |||||
21 | int mbox_do_cmd(enum mbox_cmd cmd, u32 *in, int nout); | ||||
22 | |||||
23 | #endif |