Secure Monitor: Difference between revisions
No edit summary |
|||
(6 intermediate revisions by 2 users not shown) | |||
Line 168: | Line 168: | ||
| 0xC3000004 || [[#GetConfig|GetConfig]] (same as in [[#FunctionId0]]) | | 0xC3000004 || [[#GetConfig|GetConfig]] (same as in [[#FunctionId0]]) | ||
|- | |- | ||
| 0xC3000005 || [[#GenerateRandomBytes| | | 0xC3000005 || [[#GenerateRandomBytes|GenerateRandomBytesNonBlocking]] | ||
|- | |- | ||
| 0xC3000006 || [[#ShowError|ShowError]] | | 0xC3000006 || [[#ShowError|ShowError]] | ||
Line 228: | Line 228: | ||
| 13 || [[#IsChargerHiZModeEnabled]] | | 13 || [[#IsChargerHiZModeEnabled]] | ||
|- | |- | ||
| 14 || [4.0.0+] [[# | | 14 || [4.0.0+] [[#QuestState]] | ||
|- | |- | ||
| 15 || [5.0.0+] [[#RegulatorType]] | | 15 || [5.0.0+] [[#RegulatorType]] | ||
Line 256: | Line 256: | ||
|- | |- | ||
| 3 | | 3 | ||
| | | EristaCopperSamsung4gb | ||
|- | |- | ||
| 4 | | 4 | ||
Line 262: | Line 262: | ||
|- | |- | ||
| 5 | | 5 | ||
| [4.0.0+] | | [4.0.0+] EristaCopperHynix4gb | ||
|- | |- | ||
| 6 | | 6 | ||
| [4.0.0+] | | [4.0.0+] EristaCopperMicron4gb | ||
|- | |- | ||
| 7 | | 7 | ||
Line 568: | Line 568: | ||
===== FuseVersion ===== | ===== FuseVersion ===== | ||
The current [[Package2#Versions| | The current [[Package2#Versions|bootloader maximum version]] - 1. | ||
===== HardwareType ===== | ===== HardwareType ===== | ||
Line 595: | Line 595: | ||
[7.0.0+] This item can now only be 0 (Icosa) or 15 (Invalid) in Erista units. | [7.0.0+] This item can now only be 0 (Icosa) or 15 (Invalid) in Erista units. | ||
Hardware is '''Icosa''' (Erista retail, EDEV and SDEV) if | Hardware is '''Icosa''' (Erista retail, EDEV and SDEV) if [[Fuse_registers#FUSE_RESERVED_ODM4|HardwareType1]] (bit 2) is 1 and [[Fuse_registers#FUSE_RESERVED_ODM4|HardwareType2]] (bit 8) is 0. | ||
Hardware is '''Copper''' (Erista prototype) if | Hardware is '''Copper''' (Erista prototype) if [[Fuse_registers#FUSE_RESERVED_ODM4|HardwareType1]] (bit 2) is 0 and [[Fuse_registers#FUSE_RESERVED_ODM4|HardwareType2]] (bit 8) is 1. | ||
[4.0.0+] Hardware is '''Iowa''' (Mariko retail, EDEV and SDEV) if | [4.0.0+] Hardware is '''Iowa''' (Mariko retail, EDEV and SDEV) if [[Fuse_registers#FUSE_RESERVED_ODM4|HardwareType3]] (bits 16-19) is 1. | ||
[8.0.0+] Hardware is '''Hoag''' (Mariko Lite retail and HDEV) if | [8.0.0+] Hardware is '''Hoag''' (Mariko Lite retail and HDEV) if [[Fuse_registers#FUSE_RESERVED_ODM4|HardwareType3]] (bits 16-19) is 2. | ||
[8.0.0+] Hardware is '''Calcio''' (Mariko prototype) if | [8.0.0+] Hardware is '''Calcio''' (Mariko prototype) if [[Fuse_registers#FUSE_RESERVED_ODM4|HardwareType1]] (bit 2) is 0 and [[Fuse_registers#FUSE_RESERVED_ODM4|HardwareType2]] (bit 8) is 1. | ||
[10.0.0+] Hardware is '''Unknown''' if | [10.0.0+] Hardware is '''Unknown''' if [[Fuse_registers#FUSE_RESERVED_ODM4|HardwareType3]] (bits 16-19) is 4. | ||
===== HardwareState ===== | ===== HardwareState ===== | ||
Line 619: | Line 619: | ||
This item is obtained by checking bits 9 and 0-1 from [[Fuse_registers#FUSE_RESERVED_ODM4|FUSE_RESERVED_ODM4]]. | This item is obtained by checking bits 9 and 0-1 from [[Fuse_registers#FUSE_RESERVED_ODM4|FUSE_RESERVED_ODM4]]. | ||
Hardware is '''Development''' if [[Fuse_registers#FUSE_RESERVED_ODM4|HardwareState1]] (bits 0-1) is 3 and [[Fuse_registers#FUSE_RESERVED_ODM4|HardwareState2]] (bit 9) is 0. | |||
Hardware is '''Production''' if [[Fuse_registers#FUSE_RESERVED_ODM4|HardwareState1]] (bits 0-1) is 0 and [[Fuse_registers#FUSE_RESERVED_ODM4|HardwareState2]] (bit 9) is 1. | |||
===== IsRecoveryBoot ===== | ===== IsRecoveryBoot ===== | ||
Line 739: | Line 743: | ||
This tells if the TI Charger (bq24192) is active. | This tells if the TI Charger (bq24192) is active. | ||
===== | ===== QuestState ===== | ||
{| class=wikitable | |||
! Value || Description | |||
|- | |||
| 0 || Disabled | |||
|- | |||
| 1 || Enabled | |||
|} | |||
This item is bit 10 from [[Fuse_registers#FUSE_RESERVED_ODM4|FUSE_RESERVED_ODM4]]. | This item is bit 10 from [[Fuse_registers#FUSE_RESERVED_ODM4|FUSE_RESERVED_ODM4]]. | ||