| 1 | #include "stubs_asm.h" |
|---|
| 2 | NHSTUB(GetBatteryTemperature, 0xffc387ec) //found at 0xffc3885c but camera crashs if used, so point to GetCCDTemperature |
|---|
| 3 | |
|---|
| 4 | //functions not found in firmware |
|---|
| 5 | NHSTUB(EnterToCompensationEVF, 0xFFC15318) // "ExpComp On" |
|---|
| 6 | NHSTUB(ExitFromCompensationEVF, 0xFFC1535C) // "ExpComp Off" |
|---|
| 7 | NHSTUB(RefreshPhysicalScreen, 0xFFD8FC00) //function looks different from other fw, but might be the right one |
|---|
| 8 | NHSTUB(TurnOffBackLight, 0xFFC6F9FC) //found similar code as sx100 at this address |
|---|
| 9 | NHSTUB(VbattGet, 0xFFC10314) //found similar code as sx100 at this address |
|---|
| 10 | NHSTUB(kbd_pwr_on, 0xFFC3642C) // Hmm, function looks very different from other cams but it might be the right... |
|---|
| 11 | NHSTUB(kbd_pwr_off, 0xFFC36444) // Hmm, function looks very different from other cams but it might be the right... |
|---|
| 12 | NHSTUB(strchr, 0xFFC74A0C) //found similar code as sx100 at this address |
|---|
| 13 | NHSTUB(vsprintf, 0xFFC0D7F8) //found similar code as sx100 at this address |
|---|
| 14 | |
|---|
| 15 | // functions corrected (wrong in stubs_entry.S) |
|---|
| 16 | NHSTUB(AllocateUncacheableMemory, 0xFFC17828) //wrong: 0xffc17834, correct: 0xFFC17828 |
|---|
| 17 | NHSTUB(ExecuteEventProcedure, 0xFFC5B5B8) |
|---|
| 18 | NHSTUB(GetDrive_TotalClusters, 0xffc44e00) //wrong: 0xffc44dcc, correct: 0xffc44e00, ALT address of GetDrive_TotalClusters |
|---|
| 19 | NHSTUB(GetDrive_FreeClusters, 0xffc44e34) //wrong: 0xffc44dcc, correct: 0xffc44e34 |
|---|
| 20 | NHSTUB(GetPropertyCase, 0xFFC5F2A0) |
|---|
| 21 | NHSTUB(kbd_read_keys_r2, 0xFFC35D7C) |
|---|
| 22 | NHSTUB(SetPropertyCase, 0xFFC5F198) |
|---|
| 23 | NHSTUB(strrchr, 0xFFD8FF2C) //wrong: 0xffc74a08, correct: 0xFFD8FF2C |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | //functions not found by finsig and not declared in signatures_dryos.h but needed by chdk |
|---|
| 27 | NHSTUB(DoAFLock, 0xFFC15048) |
|---|
| 28 | NHSTUB(ExpCtrlTool_StartContiAE, 0xFFC20894) |
|---|
| 29 | NHSTUB(ExpCtrlTool_StopContiAE, 0xFFC209D8) |
|---|
| 30 | NHSTUB(GiveSemaphore, 0xFFC0B81C) |
|---|
| 31 | NHSTUB(MakeAFScan, 0xFFD19824) //differ from other cams |
|---|
| 32 | NHSTUB(PostLEDMessage, 0xFFC357C8 ) //questionable, might be wrong... |
|---|
| 33 | NHSTUB(SetZoomActuatorSpeedPercent, 0xFFC00940) //nullsub, there are things like SetZoomActuatorSpeedPPS in fw |
|---|
| 34 | NHSTUB(TurnOffMic, 0xFFC36DD8) |
|---|
| 35 | NHSTUB(TurnOnMic, 0xFFC36DAC) |
|---|
| 36 | NHSTUB(UnlockAF, 0xFFC1509C) |
|---|
| 37 | NHSTUB(UnsetZoomForMovie, 0xFFD3E944) |
|---|
| 38 | NHSTUB(WriteSDCard, 0xFFD02B30) |
|---|
| 39 | NHSTUB(PostLogicalEventForNotPowerType, 0xffc61bb4) |
|---|
| 40 | NHSTUB(LEDDrive, 0xffd17758) |
|---|
| 41 | NHSTUB(platformsub_kbd_fetch_data, 0xFFC362CC) |
|---|
| 42 | NHSTUB(eventproc_export_PostLogicalEventToUI, 0xffc61c00) |
|---|
| 43 | NHSTUB(eventproc_export_SleepTask, 0xffc176ac) |
|---|
| 44 | NHSTUB(eventproc_export_ExitTask, 0xffc0bb50) |
|---|
| 45 | |
|---|
| 46 | //do they really exists in dryos? --> point to nullsub |
|---|
| 47 | NHSTUB(Mount_FileSystem, 0xFFC00940) |
|---|
| 48 | NHSTUB(rewinddir, 0xFFC00940) |
|---|
| 49 | NHSTUB(Unmount_FileSystem, 0xFFC00940) |
|---|
| 50 | |
|---|