2018-09-07 15:00:13 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 Atmosphère-NX
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms and conditions of the GNU General Public License,
|
|
|
|
* version 2, as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2018-04-10 21:56:45 +00:00
|
|
|
#ifndef FUSEE_EXOSPHERE_CONFIG_H
|
|
|
|
#define FUSEE_EXOSPHERE_CONFIG_H
|
|
|
|
|
|
|
|
/* This serves to set configuration for *exosphere itself*, separate from the SecMon Exosphere mimics. */
|
|
|
|
|
|
|
|
/* "XBC0" */
|
2018-11-26 00:22:47 +00:00
|
|
|
#define MAGIC_EXOSPHERE_BOOTCONFIG_0 (0x30434258)
|
|
|
|
/* "XBC1" */
|
|
|
|
#define MAGIC_EXOSPHERE_BOOTCONFIG (0x31434258)
|
2018-04-10 21:56:45 +00:00
|
|
|
|
|
|
|
#define EXOSPHERE_TARGET_FIRMWARE_100 1
|
|
|
|
#define EXOSPHERE_TARGET_FIRMWARE_200 2
|
|
|
|
#define EXOSPHERE_TARGET_FIRMWARE_300 3
|
|
|
|
#define EXOSPHERE_TARGET_FIRMWARE_400 4
|
|
|
|
#define EXOSPHERE_TARGET_FIRMWARE_500 5
|
2018-09-17 20:03:03 +00:00
|
|
|
#define EXOSPHERE_TARGET_FIRMWARE_600 6
|
2018-11-26 00:22:47 +00:00
|
|
|
#define EXOSPHERE_TARGET_FIRMWARE_620 7
|
2018-04-10 21:56:45 +00:00
|
|
|
|
2018-04-10 22:37:58 +00:00
|
|
|
#define EXOSPHERE_TARGET_FIRMWARE_MIN EXOSPHERE_TARGET_FIRMWARE_100
|
2018-11-26 00:22:47 +00:00
|
|
|
#define EXOSPHERE_TARGET_FIRMWARE_MAX EXOSPHERE_TARGET_FIRMWARE_620
|
|
|
|
|
|
|
|
#define EXOSPHERE_FLAGS_DEFAULT 0x00000000
|
|
|
|
#define EXOSPHERE_FLAG_PERFORM_620_KEYGEN (1 << 0u)
|
2018-04-10 22:37:58 +00:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
unsigned int magic;
|
|
|
|
unsigned int target_firmware;
|
2018-11-26 00:22:47 +00:00
|
|
|
unsigned int flags;
|
2018-04-10 22:37:58 +00:00
|
|
|
} exosphere_config_t;
|
|
|
|
|
|
|
|
#define MAILBOX_EXOSPHERE_CONFIGURATION ((volatile exosphere_config_t *)(0x40002E40))
|
|
|
|
|
|
|
|
#define EXOSPHERE_TARGETFW_KEY "target_firmware"
|
2018-04-10 21:56:45 +00:00
|
|
|
|
|
|
|
#endif
|