source: trunk/platform/sx110is/sub/100b/stubs_entry_2.S @ 755

Revision 755, 11.5 KB checked in by reyalp, 4 years ago (diff)

patch from chdkj http://chdk.setepontos.com/index.php/topic,2838.msg32974.html#msg32974
also set black level, correct FI2 key, and minor cleanups.

  • Property svn:eol-style set to native
Line 
1#include "stubs_asm.h"
2NHSTUB(GetBatteryTemperature, 0xffc387ec)       //found at 0xffc3885c but camera crashs if used, so point to GetCCDTemperature
3
4//functions not found in firmware
5NHSTUB(EnterToCompensationEVF, 0xFFC15318) // "ExpComp On"
6NHSTUB(ExitFromCompensationEVF, 0xFFC1535C) // "ExpComp Off"
7NHSTUB(RefreshPhysicalScreen, 0xFFD8FC00)       //function looks different from other fw, but might be the right one
8NHSTUB(TurnOffBackLight, 0xFFC6F9FC)    //found similar code as sx100 at this address
9NHSTUB(VbattGet, 0xFFC10314)    //found similar code as sx100 at this address
10NHSTUB(kbd_pwr_on, 0xFFC3642C)                          // Hmm, function looks very different from other cams but it might be the right...
11NHSTUB(kbd_pwr_off, 0xFFC36444)                         // Hmm, function looks very different from other cams but it might be the right...
12NHSTUB(strchr, 0xFFC74A0C)      //found similar code as sx100 at this address
13NHSTUB(vsprintf, 0xFFC0D7F8)    //found similar code as sx100 at this address
14
15// functions corrected (wrong in stubs_entry.S)
16NHSTUB(AllocateUncacheableMemory, 0xFFC17828) //wrong: 0xffc17834, correct: 0xFFC17828
17NHSTUB(ExecuteEventProcedure, 0xFFC5B5B8)
18NHSTUB(GetDrive_TotalClusters, 0xffc44e00)      //wrong: 0xffc44dcc, correct: 0xffc44e00, ALT address of GetDrive_TotalClusters
19NHSTUB(GetDrive_FreeClusters, 0xffc44e34)       //wrong: 0xffc44dcc, correct: 0xffc44e34
20NHSTUB(GetPropertyCase, 0xFFC5F2A0)
21NHSTUB(kbd_read_keys_r2, 0xFFC35D7C)
22NHSTUB(SetPropertyCase, 0xFFC5F198)
23NHSTUB(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
27NHSTUB(DoAFLock, 0xFFC15048)
28NHSTUB(ExpCtrlTool_StartContiAE, 0xFFC20894)
29NHSTUB(ExpCtrlTool_StopContiAE, 0xFFC209D8)
30NHSTUB(GiveSemaphore, 0xFFC0B81C)
31NHSTUB(MakeAFScan, 0xFFD19824)  //differ from other cams
32NHSTUB(PostLEDMessage, 0xFFC357C8 ) //questionable, might be wrong...
33NHSTUB(PT_PlaySound, 0xFFC4D9AC)
34NHSTUB(SetZoomActuatorSpeedPercent, 0xFFC00940) //nullsub, there are things like SetZoomActuatorSpeedPPS in fw
35NHSTUB(TurnOffMic, 0xFFC36DD8)
36NHSTUB(TurnOnMic, 0xFFC36DAC)
37NHSTUB(UnlockAF, 0xFFC1509C)
38NHSTUB(UnsetZoomForMovie, 0xFFD3E944)
39NHSTUB(WriteSDCard, 0xFFD02B30)
40NHSTUB(PostLogicalEventForNotPowerType, 0xffc61bb4)
41NHSTUB(LEDDrive, 0xffd17758)
42NHSTUB(platformsub_kbd_fetch_data, 0xFFC362CC)
43NHSTUB(eventproc_export_PostLogicalEventToUI, 0xffc61c00)
44NHSTUB(eventproc_export_SleepTask, 0xffc176ac)
45NHSTUB(eventproc_export_ExitTask, 0xffc0bb50)
46
47//do they really exists in dryos? --> point to nullsub
48NHSTUB(Mount_FileSystem, 0xFFC00940)
49NHSTUB(rewinddir, 0xFFC00940)
50NHSTUB(Unmount_FileSystem, 0xFFC00940)
51
52
53
54
55//functions copied from stubs_entry_ida.s
56NSTUB(eventproc_export_memShow, 0xffc00bc8)
57
58NSTUB(eventproc_export_CreateCountingSemaphore, 0xffc0b648)
59NSTUB(eventproc_export_DeleteSemaphore, 0xffc0b6a0)
60
61NSTUB(eventproc_export_TakeSemaphore, 0xffc0b74c)
62NSTUB(eventproc_export_GiveSemaphore, 0xffc0b81c)
63
64NSTUB(eventproc_export_CreateTask, 0xffc0b8c0)
65
66//NSTUB(eventproc_export_ExitTask, 0xffc0bb50)
67
68NSTUB(eventproc_export_RotateConsoleZOder, 0xffc0c4a0)
69
70NSTUB(eventproc_export_CPrintf, 0xffc0c6b0)
71NSTUB(eventproc_export_CPutChar, 0xffc0c70c)
72NSTUB(eventproc_export_GetCh, 0xffc0c738)
73NSTUB(eventproc_export_GetStringWithPrompt, 0xffc0c788)
74NSTUB(eventproc_export_OpenConsole, 0xffc0c7e8)
75NSTUB(eventproc_export_CloseConsole, 0xffc0c954)
76
77NSTUB(eventproc_export_StartRedirectUART, 0xffc0d038)
78NSTUB(eventproc_export_StopRedirectUART, 0xffc0d150)
79
80NSTUB(eventproc_export_sprintf, 0xffc0d7b4)
81
82NSTUB(eventproc_export_strcpy, 0xffc0d834)
83NSTUB(eventproc_export_strcmp, 0xffc0d84c)
84NSTUB(eventproc_export_strlen, 0xffc0d890)
85NSTUB(eventproc_export_memcmp, 0xffc0d8b4)
86
87NSTUB(eventproc_export_Fopen_Fut, 0xffc12d30)
88NSTUB(eventproc_export_Fclose_Fut, 0xffc12d70)
89NSTUB(eventproc_export_Fread_Fut, 0xffc12e1c)
90NSTUB(eventproc_export_Fwrite_Fut, 0xffc12e70)
91
92NSTUB(eventproc_export_Fseek_Fut, 0xffc12f10)
93
94NSTUB(eventproc_export_Open, 0xffc13320)
95NSTUB(eventproc_export_Close, 0xffc13348)
96
97NSTUB(eventproc_export_Read, 0xffc133f0)
98NSTUB(eventproc_export_Write, 0xffc133f4)
99
100NSTUB(eventproc_export_Lseek, 0xffc13550)
101
102NSTUB(eventproc_export_StartCameraLog, 0xffc13a18)
103NSTUB(eventproc_export_ShowCameraLog, 0xffc13a1c)
104NSTUB(eventproc_export_ShowCameraLogInfo, 0xffc13a20)
105NSTUB(eventproc_export_StopCameraLog, 0xffc13a24)
106NSTUB(eventproc_export_PutsCameraLogEvent, 0xffc13a28)
107
108NSTUB(eventproc_export_NewTaskShell, 0xffc13a90)
109
110NSTUB(eventproc_export_ExMem, 0xffc13aa8)
111
112//NSTUB(eventproc_export_SleepTask, 0xffc176ac)
113
114NSTUB(eventproc_export_UnLoadScript, 0xffc58c74)
115
116NSTUB(eventproc_export_LoadScript, 0xffc58d70)
117
118NSTUB(eventproc_export_OpLog_Show, 0xffc5cb70)
119NSTUB(eventproc_export_OpLog_Stop, 0xffc5cc10)
120NSTUB(eventproc_export_OpLog_WriteToROM, 0xffc5cc3c)
121
122NSTUB(eventproc_export_OpLog_ReadFromROM, 0xffc5cc98)
123NSTUB(eventproc_export_OpLog_ReadFromSD, 0xffc5cd38)
124NSTUB(eventproc_export_OpLog_WriteToSD, 0xffc5d104)
125NSTUB(eventproc_export_OpLog_Get, 0xffc5d530)
126NSTUB(eventproc_export_OpLog_Play, 0xffc5d550)
127
128NSTUB(eventproc_export_OpLog_Start, 0xffc5d6d0)
129
130NSTUB(eventproc_export_StartWDT, 0xffc5df88)
131NSTUB(eventproc_export_StopWDT, 0xffc5dfec)
132
133NSTUB(eventproc_export_GetBuildDate, 0xffc5e0dc)
134NSTUB(eventproc_export_GetBuildTime, 0xffc5e0e4)
135NSTUB(eventproc_export_GetFirmwareVersion, 0xffc5e0ec)
136
137NSTUB(eventproc_export_CheckSumAll, 0xffc5e1f8)
138
139NSTUB(eventproc_export_RomCheckSum, 0xffc5e3f0)
140
141NSTUB(eventproc_export_CreateController, 0xffc61410)
142NSTUB(eventproc_export_DeleteController, 0xffc614cc)
143
144NSTUB(eventproc_export_MoveControllerToTopOfZOrder, 0xffc61650)
145
146NSTUB(eventproc_export_GetSelfControllerHandle, 0xffc61780)
147
148//NSTUB(eventproc_export_PostLogicalEventForNotPowerType, 0xffc61bb4)
149//NSTUB(eventproc_export_PostLogicalEventToUI, 0xffc61c00)
150NSTUB(eventproc_export_PostEventShootSeqToUI, 0xffc61c78)
151NSTUB(eventproc_export_ShowLogicalEventName, 0xffc61cd4)
152
153NSTUB(eventproc_export_IsControlEventActive, 0xffc63a80)
154NSTUB(eventproc_export_UiEvnt_SetLogicalEventActive, 0xffc63af0)
155NSTUB(eventproc_export_SetScriptMode, 0xffc63b40)
156
157NSTUB(eventproc_export_UiEvnt_StartDisguiseCradleStatus, 0xffc63b74)
158NSTUB(eventproc_export_UiEvnt_StopDisguiseCradleStatus, 0xffc63b84)
159
160NSTUB(eventproc_export_UnlockMainPower, 0xffc63cf4)
161NSTUB(eventproc_export_LockMainPower, 0xffc63da0)
162NSTUB(eventproc_export_SetAutoShutdownTime, 0xffc63e14)
163
164NSTUB(eventproc_export_HardwareDefectWithRestart, 0xffc63fec)
165NSTUB(eventproc_export_HardwareDefect, 0xffc6403c)
166
167NSTUB(eventproc_export_PTM_AllResetToFactorySetting, 0xffc64250)
168NSTUB(eventproc_export_PTM_AllReset, 0xffc64260)
169
170NSTUB(eventproc_export_PTM_SetCurrentCaptureMode, 0xffc6463c)
171
172NSTUB(eventproc_export_PTM_GetWorkingCaptureMode, 0xffc6470c)
173NSTUB(eventproc_export_PTM_SetCurrentItem, 0xffc64710)
174
175NSTUB(eventproc_export_PTM_GetCurrentItem, 0xffc6471c)
176
177NSTUB(eventproc_export_PTM_NextItem, 0xffc64788)
178NSTUB(eventproc_export_PTM_PrevItem, 0xffc6478c)
179
180NSTUB(eventproc_export_PTM_IsEnableItem, 0xffc6479c)
181NSTUB(eventproc_export_PTM_SetProprietyEnable, 0xffc647a0)
182
183NSTUB(eventproc_export_PTM_BackupUIProperty, 0xffc647b8)
184NSTUB(eventproc_export_PTM_RestoreUIProperty, 0xffc647bc)
185
186NSTUB(eventproc_export_PTM_NotifyStartRemoteCapture, 0xffc647d8)
187NSTUB(eventproc_export_PTM_NotifyEndRemoteCapture, 0xffc64930)
188
189NSTUB(eventproc_export_SetCurrentCaptureModeType, 0xffc6a8c4)
190NSTUB(eventproc_export_GetCurrentCaptureModeType, 0xffc6a900)
191
192NSTUB(eventproc_export_StartGUISystem, 0xffc74838)
193
194NSTUB(eventproc_export_atol, 0xffc74978)
195
196NSTUB(eventproc_export_memcpy, 0xffc74b70)
197
198NSTUB(eventproc_export_SetSDPwrPort, 0xffd1771c)
199NSTUB(eventproc_export_GetAdVBattBottom, 0xffd17748)
200NSTUB(eventproc_export_GetAdChValue, 0xffd1774c)
201NSTUB(eventproc_export_BeepDrive, 0xffd17750)
202NSTUB(eventproc_export_VbattGet, 0xffd17754)
203NSTUB(eventproc_export_LEDDrive, 0xffd17758)
204NSTUB(eventproc_export_ShowPhySwStatus, 0xffd1775c)
205NSTUB(eventproc_export_SetRawSWCheckMode, 0xffd1776c)
206NSTUB(eventproc_export_OnPrintPhySw, 0xffd1777c)
207NSTUB(eventproc_export_OffPrintPhySw, 0xffd1778c)
208NSTUB(eventproc_export_GetSwitchStatus, 0xffd1779c)
209NSTUB(eventproc_export_ShowSDStatus, 0xffd177a0)
210NSTUB(eventproc_export_GetSDDetect, 0xffd177b0)
211NSTUB(eventproc_export_GetSDProtect, 0xffd177b4)
212NSTUB(eventproc_export_SetIgnoreAVJACK, 0xffd177b8)
213NSTUB(eventproc_export_GetDialEventId, 0xffd177c8)
214NSTUB(eventproc_export_GetBatteryCoverClose, 0xffd177cc)
215
216NSTUB(eventproc_export_MonSelEvent, 0xffd17a08)
217NSTUB(eventproc_export_MemoryChecker, 0xffd17a0c)
218NSTUB(eventproc_export_VerifyByte, 0xffd17a10)
219NSTUB(eventproc_export_EraseSignature, 0xffd17a14)
220NSTUB(eventproc_export_SDump, 0xffd17a24)
221NSTUB(eventproc_export_Dump, 0xffd17a28)
222NSTUB(eventproc_export_Dump32, 0xffd17a38)
223NSTUB(eventproc_export_Poke32, 0xffd17a4c)
224NSTUB(eventproc_export_Poke16, 0xffd17a5c)
225NSTUB(eventproc_export_Poke8, 0xffd17a6c)
226NSTUB(eventproc_export_Peek32, 0xffd17a7c)
227NSTUB(eventproc_export_Peek16, 0xffd17a80)
228NSTUB(eventproc_export_Peek8, 0xffd17a84)
229NSTUB(eventproc_export_Wait, 0xffd17a88)
230
231NSTUB(eventproc_export_ShowAllTaskInfo, 0xffd17a9c)
232
233NSTUB(eventproc_export_UI_ShowStateOfRecMode, 0xffd18384)
234
235NSTUB(eventproc_export_UIFS_SetDialStillRec, 0xffd18490)
236NSTUB(eventproc_export_UIFS_SetCaptureModeToP, 0xffd184b0)
237NSTUB(eventproc_export_UIFS_SetDialMovieRec, 0xffd184e8)
238NSTUB(eventproc_export_UIFS_SetDialPlay, 0xffd18510)
239NSTUB(eventproc_export_UIFS_OpenPopupStrobe, 0xffd18530)
240NSTUB(eventproc_export_UIFS_ClosePopupStrobe, 0xffd18560)
241NSTUB(eventproc_export_UIFS_MountExtFlash, 0xffd18590)
242NSTUB(eventproc_export_UIFS_UnmountExtFlash, 0xffd185c0)
243NSTUB(eventproc_export_UIFS_PressTeleButton, 0xffd185f0)
244NSTUB(eventproc_export_UIFS_UnpressTeleButton, 0xffd1862c)
245NSTUB(eventproc_export_UIFS_PressWideButton, 0xffd18664)
246NSTUB(eventproc_export_UIFS_UnpressWideButton, 0xffd186a0)
247NSTUB(eventproc_export_UIFS_ConnectVideo, 0xffd186d8)
248NSTUB(eventproc_export_UIFS_DisconnectVideo, 0xffd18708)
249NSTUB(eventproc_export_UIFS_MoveZoomTo, 0xffd18738)
250NSTUB(eventproc_export_UIFS_StopPostingUIEvent, 0xffd1873c)
251NSTUB(eventproc_export_UIFS_RestartPostingUIEvent, 0xffd18740)
252NSTUB(eventproc_export_UIFS_SetCaptureModeToTv, 0xffd18744)
253NSTUB(eventproc_export_UIFS_SetCaptureModeToM, 0xffd18778)
254NSTUB(eventproc_export_UIFS_SetCaptureModeToMacro, 0xffd187ac)
255NSTUB(eventproc_export_UIFS_SetCaptureModeToISO3200, 0xffd187b4)
256NSTUB(eventproc_export_UIFS_PostModeDial, 0xffd187d4)
257NSTUB(eventproc_export_UIFS_Capture, 0xffd187fc)
258NSTUB(eventproc_export_UIFS_CaptureNoneStop, 0xffd18800)
259NSTUB(eventproc_export_UIFS_StartMovieRecord, 0xffd18804)
260NSTUB(eventproc_export_UIFS_StopMovieRecord, 0xffd18808)
261NSTUB(eventproc_export_UIFS_StartClockMode, 0xffd1880c)
262NSTUB(eventproc_export_UIFS_EndClockMode, 0xffd18814)
263NSTUB(eventproc_export_UIFS_SetCradleSetting, 0xffd1881c)
264NSTUB(eventproc_export_UIFS_WriteFirmInfoToFile, 0xffd18820)
265NSTUB(eventproc_export_UIFS_GetMovieRecoadableNumber, 0xffd18824)
266
267NSTUB(eventproc_export_UIFS_ChangeShootState, 0xffd188a0)
268
269NSTUB(eventproc_export_UIFS_ShootSeqToUI, 0xffd188c4)
270
271NSTUB(eventproc_export_EraseLogSector, 0xffd1fc74)
272
273NSTUB(eventproc_export_WriteToRom, 0xffd20380)
274NSTUB(eventproc_export_EraseSectorOfRom, 0xffd20430)
275
276NSTUB(eventproc_export_GetTimeOfSystem, 0xffd24468)
277
278NSTUB(eventproc_export_FmtMenu_ExecuteQuickFormat, 0xffd3087c)
279
280NSTUB(eventproc_export_ExecuteResetFactoryWithRomWrite, 0xffd38cdc)
281
282NSTUB(eventproc_export_StartDirectTransferManager, 0xffd7ca40)
283
284NSTUB(eventproc_export_memset, 0xffd8ff54)
285
286NSTUB(eventproc_export_sscanf, 0xffd90498)
287
288NSTUB(eventproc_export_StoptDtConfirmMenu, 0xffe1e53c)
289
290NSTUB(eventproc_export_StartDtConfirmMenu, 0xffe1e680)
291
292NSTUB(eventproc_export_StoptDtExecuteMenu, 0xffe1e84c)
293
294NSTUB(eventproc_export_StartDtExecuteMenu, 0xffe1ead8)
295
Note: See TracBrowser for help on using the repository browser.