/*****************************************************************************
 *
 * Copyright (c) 2018-19, Eduard Gerlits, Paula Herber, Josef Treus
 * Westfälische Wilhelms-Universität Münster, AG Embedded Systems 
 * All rights reserved.
 *
 * This file is part of SysCSec
 *
 * SysCSec is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your
 * option) any later version.
 *
 * SysCSec 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.
 *
 * You should have received a copy of the GNU General Public License
 * along with SysCSec.  If not, see <http://www.gnu.org/licenses/>.
 *
 *
 *  Please report any problems or bugs to: sysc.sec@uni-muenster.de
 *
 ****************************************************************************/


// constants

// MAP Opcodes
#define _OPCODE_NOOP_ 0
#define _OPCODE_ADD_ 1
#define _OPCODE_SUB_ 2
#define _OPCODE_MUL_ 3
#define _OPCODE_DIV_ 4

// FW Control
#define _FW_NOOP_ 0
#define _FW_ADD_ 1
#define _FW_SUB_ 2
#define _FW_MUL_ 3
#define _FW_DIV_ 4
#define _FW_PT_ADD_ 5
#define _FW_PT_DOUBLE_ 6
#define _FW_PT_MULTIPLY_ 7
#define _FW_ECDSA_SIGN_ 8
#define _FW_ECDSA_VERIFY_ 9
#define _FW_ECDSA_KEY_GENERATION_ 10

// FW Status
#define _FW_IDLE_ 0
#define _FW_PROCESSING_ 1
#define _FW_FINISHED_ 2

// FW ECDSA Verification Status
#define _FW_ECDSA_VERIFICATION_SUCCESS_ 300
#define _FW_ECDSA_VERIFICATION_FAILURE_ 404

// IO Control
#define _IO_IDLE_ 0
#define _IO_SET_DATA_ 1
#define _IO_GET_DATA_ 2
#define _IO_PACK_DATA_ 3
#define _IO_UNPACK_DATA_ 4

// IO Status
#define _IO_IDLE_ 0
#define _IO_PROCESSING_ 1
#define _IO_FINISHED_ 2


