/*1* Copyright (c) 2018 naehrwert2* Copyright (c) 2018-2024 CTCaer3*4* This program is free software; you can redistribute it and/or modify it5* under the terms and conditions of the GNU General Public License,6* version 2, as published by the Free Software Foundation.7*8* This program is distributed in the hope it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for11* more details.12*13* You should have received a copy of the GNU General Public License14* along with this program. If not, see <http://www.gnu.org/licenses/>.15*/1617#ifndef _TSEC_H_18#define _TSEC_H_1920#include <utils/types.h>2122enum tsec_fw_type23{24// Retail Hovi Keygen.25TSEC_FW_TYPE_OLD = 0, // 1.0.0 - 6.1.0.26TSEC_FW_TYPE_EMU = 1, // 6.2.0 emulated environment.27TSEC_FW_TYPE_NEW = 2, // 7.0.0+.28};2930typedef struct _tsec_ctxt_t31{32void *fw;33u32 size;34u32 type;35void *pkg1;36u32 pkg11_off;37} tsec_ctxt_t;3839int tsec_query(void *tsec_keys, tsec_ctxt_t *tsec_ctxt);4041#endif424344