mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-29 05:55:16 -04:00
exo: add smcAmsGetEmummcConfig
This commit is contained in:
parent
1021b4a455
commit
4f8ab5c599
15 changed files with 156 additions and 39 deletions
|
@ -78,6 +78,7 @@ uint32_t smc_read_write_register(smc_args_t *args);
|
|||
/* Atmosphere SMC prototypes */
|
||||
uint32_t smc_ams_iram_copy(smc_args_t *args);
|
||||
uint32_t smc_ams_write_address(smc_args_t *args);
|
||||
uint32_t smc_ams_get_emummc_config(smc_args_t *args);
|
||||
|
||||
/* TODO: Provide a way to set this. It's 0 on non-recovery boot anyway... */
|
||||
static uint32_t g_smc_blacklist_mask = 0;
|
||||
|
@ -135,6 +136,7 @@ static smc_table_entry_t g_smc_ams_table[] = {
|
|||
{0xF0000201, 0, smc_ams_iram_copy},
|
||||
{0xF0000002, 0, smc_read_write_register},
|
||||
{0xF0000003, 0, smc_ams_write_address},
|
||||
{0xF0000404, 0, smc_ams_get_emummc_config},
|
||||
};
|
||||
#define SMC_AMS_HANDLERS (sizeof(g_smc_ams_table) / sizeof(g_smc_ams_table[0]))
|
||||
|
||||
|
@ -724,3 +726,7 @@ uint32_t smc_ams_iram_copy(smc_args_t *args) {
|
|||
uint32_t smc_ams_write_address(smc_args_t *args) {
|
||||
return smc_wrapper_sync(args, ams_write_address);
|
||||
}
|
||||
|
||||
uint32_t smc_ams_get_emummc_config(smc_args_t *args) {
|
||||
return smc_wrapper_sync(args, ams_get_emummc_config);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue