/*1* Common Module Header2* Copyright (c) 2018 M4xw3* Copyright (c) 2018-2026 CTCaer4*5* This program is free software; you can redistribute it and/or modify it6* under the terms and conditions of the GNU General Public License,7* version 2, as published by the Free Software Foundation.8*9* This program is distributed in the hope it will be useful, but WITHOUT10* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for12* more details.13*14* You should have received a copy of the GNU General Public License15* along with this program. If not, see <http://www.gnu.org/licenses/>.16*/1718#ifndef _MODULE_H_19#define _MODULE_H_2021#include <stddef.h>22#include <mem/heap.h>2324#define IANOS_EXT1 0x314E41492526// Module Callback27typedef void (*cbMainModule_t)(const char *s);28typedef void (*memcpy_t)(void *, void *, size_t);29typedef void (*memset_t)(void *, int, size_t);30typedef int (*reg_voltage_set_t)(u32, u32);3132typedef struct _bdkParams_t33{34void *gfx_con;35void *gfx_ctx;36heap_t *heap;37memcpy_t memcpy;38memset_t memset;39u32 extension_magic;40} bdk_params_t;4142// Module Caller.43typedef void (*moduleEntrypoint)(void *, bdk_params_t *);4445#endif464748