mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-05 09:13:43 -04:00
Skeleton for smcGetConfig and smcSetConfig
This commit is contained in:
parent
f629a629d1
commit
f77cae48d0
4 changed files with 114 additions and 1 deletions
26
exosphere/configitem.h
Normal file
26
exosphere/configitem.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
#ifndef EXOSPHERE_CFG_ITEM_H
|
||||
#define EXOSPHERE_CFG_ITEM_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
enum ConfigItem {
|
||||
CONFIGITEM_DISABLEPROGRAMVERIFICATION = 1,
|
||||
CONFIGITEM_MEMORYCONFIGURATION = 2,
|
||||
CONFIGITEM_SECURITYENGINEIRQ = 3,
|
||||
CONFIGITEM_UNK04 = 4,
|
||||
CONFIGITEM_HARDWARETYPE = 5,
|
||||
CONFIGITEM_ISRETAIL = 6,
|
||||
CONFIGITEM_ISRECOVERYBOOT = 7,
|
||||
CONFIGITEM_DEVICEID = 8,
|
||||
CONFIGITEM_BOOTREASON = 9,
|
||||
CONFIGITEM_MEMORYARRANGE = 10,
|
||||
CONFIGITEM_ISDEBUGMODE = 11,
|
||||
CONFIGITEM_KERNELMEMORYCONFIGURATION = 12,
|
||||
CONFIGITEM_BATTERYPROFILE = 13
|
||||
};
|
||||
|
||||
uint32_t configitem_set(enum ConfigItem item, uint64_t value);
|
||||
uint32_t configitem_get(enum ConfigItem item, uint64_t *p_outvalue);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue