Newer
Older
Atmosphere / exosphere / src / smc_ams.h
@Michael Scire Michael Scire on 14 Jun 2019 951 bytes exo: add smcAmsGetEmummcConfig
/*
 * Copyright (c) 2018-2019 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/>.
 */
 
#ifndef EXOSPHERE_SMC_AMS_H
#define EXOSPHERE_SMC_AMS_H

#include "smc_api.h"

uint32_t ams_iram_copy(smc_args_t *args);
uint32_t ams_write_address(smc_args_t *args);

uint32_t ams_get_emummc_config(smc_args_t *args);

void ams_map_irampage(uintptr_t iram_address);
void ams_unmap_irampage(void);

#endif