Skip to content

Instantly share code, notes, and snippets.

@puppykitten
Created January 25, 2018 14:35
Show Gist options
  • Save puppykitten/4bec1afa503e1d86cc5e3b1cb1b50138 to your computer and use it in GitHub Desktop.
Save puppykitten/4bec1afa503e1d86cc5e3b1cb1b50138 to your computer and use it in GitHub Desktop.
int mc_fc_nsiq(void)
{
union mc_fc_generic fc;
int ret;
memset(&fc, 0, sizeof(fc));
fc.as_in.cmd = MC_SMC_N_SIQ;
mc_fastcall(&fc);
ret = convert_fc_ret(fc.as_out.ret);
if (ret)
mc_dev_err("failed: %d\n", ret);
return ret;
}
int mc_fc_yield(void)
{
union mc_fc_generic fc;
int ret;
memset(&fc, 0, sizeof(fc));
fc.as_in.cmd = MC_SMC_N_YIELD;
mc_fastcall(&fc);
ret = convert_fc_ret(fc.as_out.ret);
if (ret)
mc_dev_err("failed: %d\n", ret);
return ret;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment