Guest User

Untitled

a guest
May 22nd, 2017
111
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // !!! THIS FILE IS GENERATED. DO NOT EDIT. !!!
  2. #include "stubs_asm.h"
  3.  
  4. // Camera info:
  5. // DRYOS R59 (DRYOS version 2.3, release #0059+p3) *** New DRYOS Version - please update finsig_dryos.c ***
  6. // Firmware Ver GM1.00D // Found @ 0xff0ac3bc, "GM1.00D" @ 0xff0ac3c9
  7. // Firmware build timestamp: Nov 14 2016 10:10:59
  8. // Could not find Camera name - possible corrupt firmware dump
  9.  
  10. // Values for makefile.inc
  11. // PLATFORMOSVER = 59
  12. // PLATFORMID = ? // Not found @ 0xffffffff
  13. // MAXRAMADDR = 0x07ffffff
  14. // MEMISOSTART = 0x0028e804
  15. // KEYSYS = ? Not found, possible new firmware encryption key. // Found @ 0xff014590
  16.  
  17. // Note, ROM copied to RAM :- from 0xff7762e0, to 0x006b1000, len 48241 words.
  18.  
  19. // Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S'
  20. // Name Address Rule % Comp to stubs_entry_2.S
  21. // ERROR: AllocateUncacheableMemory is not found. //--- --- *** != 0x12345678
  22. NHSTUB(DeleteFile_Fut ,0xff026cf0) // 1 90%
  23. // ERROR: FreeUncacheableMemory is not found. //--- --- *** != 0x12345678
  24. NHSTUB(GetFocusLensSubjectDistanceFromLens ,0xff1d54f0) // 3 90%
  25. // ERROR: GetKbdState is not found. //--- --- *** != 0x12345678
  26. // ERROR: MakeDirectory_Fut is not found. //--- --- *** != 0x12345678
  27. // ERROR: RefreshPhysicalScreen is not found. //--- --- *** != 0x12345678
  28. // ERROR: TurnOffBackLight is not found. //--- --- *** != 0x12345678
  29. // ERROR: TurnOnBackLight is not found. //--- --- *** != 0x12345678
  30. // ERROR: WriteSDCard is not found. //--- --- *** != 0x12345678
  31. // ERROR: _log is not found. //--- --- *** != 0x12345678
  32. // ERROR: _log10 is not found. //--- --- *** != 0x12345678
  33. // ERROR: close is not found. //--- --- *** != 0x12345678
  34. // ERROR: exmem_alloc is not found. //--- --- *** != 0x12345678
  35. // ERROR: free is not found. //--- --- *** != 0x12345678
  36. // ERROR: kbd_p1_f is not found. //--- --- *** != 0x12345678
  37. // ERROR: kbd_p1_f_cont is not found. //--- --- *** != 0x12345678
  38. // ERROR: kbd_p2_f is not found. //--- --- *** != 0x12345678
  39. // ERROR: kbd_read_keys is not found. //--- --- *** != 0x12345678
  40. // ERROR: kbd_read_keys_r2 is not found. //--- --- *** != 0x12345678
  41. // ERROR: malloc is not found. //--- --- *** != 0x12345678
  42. // ERROR: mkdir is not found. //--- --- *** != 0x12345678
  43. // ERROR: open is not found. //--- --- *** != 0x12345678
  44. // ERROR: set_control_event is not found. //--- --- *** != 0x12345678
  45. // ERROR: stat is not found. //--- --- *** != 0x12345678
  46. // ERROR: strtolx is not found. //--- --- *** != 0x12345678
  47. // ERROR: task_CaptSeq is not found. //--- --- *** != 0x12345678
  48. // ERROR: task_ExpDrv is not found. //--- --- *** != 0x12345678
  49. // ERROR: task_MovieRecord is not found. //--- --- *** != 0x12345678
  50.  
  51. // Check of modemap from 'platform/CAMERA/shooting.c':
  52. // Firmware modemap table found @ff361518 -> ff6cc3b4
  53. // Mode 32814 in firmware but not in current modemap
  54. // Mode 33337 in firmware but not in current modemap
  55. // Mode 33340 in firmware but not in current modemap
  56. // Mode 33344 in firmware but not in current modemap
  57. // Mode 33333 in firmware but not in current modemap
  58. // Current modemap entry not found in firmware - MODE_SNOW 32798
  59. // Current modemap entry not found in firmware - MODE_SUPER_VIVID 33330
  60. // Current modemap entry not found in firmware - MODE_LIVE 33345
  61. // Current modemap entry not found in firmware - MODE_MONOCHROME 33343
  62. // Current modemap entry not found in firmware - MODE_TOY_CAMERA 33339
  63. // Current modemap entry not found in firmware - MODE_FISHEYE 33335
  64. // Current modemap entry not found in firmware - MODE_DIGITAL_IS 33347
  65. // Current modemap entry not found in firmware - MODE_LOWLIGHT 32813
  66.  
  67. // Values below can be overridden in 'stubs_min.S':
  68. DEF(physw_run ,0x00001be4) // Found @0xff02cb88
  69. DEF(physw_sleep_delay ,0x00001bec) // Found @0xff02cb88
  70. DEF(levent_table ,0xff6000f8) // Found @0xff6000f8
  71. DEF(FlashParamsTable ,0xff6cc774) // Found @0xff6cc774
  72. DEF(movie_status ,0x000078e4) // Found @0xff1e078c
  73. DEF(video_compression_rate ,0x00007894) // Found @0xff1e1460
  74. DEF(full_screen_refresh ,0x0000847c) // Found @0xff203ab4
  75. DEF(canon_menu_active ,0x0000407c) // Found @0xff0b4bd4
  76. DEF(canon_shoot_menu_active ,0x0000a0a1) // Found @0xff272b60
  77. DEF(zoom_status ,0x0000b62c) // Found @0xff179148
  78. DEF(zoom_busy ,0x00007648) // Found @0xff1d8058
  79. DEF(focus_busy ,0x0000750c) // Found @0xff1d3f54
  80. // Palette colour tables found @ 0xff6044c8
  81. // Camera appears to have only 1 RAW buffer @ 0x43924c60 (Found @0xff4450bc)
  82. DEF_CONST(uiprop_count ,0x000000e9) // Found @0xff1f9bc8
  83.  
  84. // Values below go in 'lib.c':
  85. //void *vid_get_bitmap_fb() { return (void*)0x40711000; } // Found @0xff070edc
  86. //void *vid_get_viewport_fb() { return (void*)0x40866b80; } // Found @0xff44350c
  87. DEF(viewport_fb_d ,0x0000374c) // Found 0x36f0 (@0xff08e3f8) + 0x5c (@0xff08e430)
  88. //void *vid_get_viewport_fb_d() { return (void*)(*(int*)(0x36f0+0x5c)); } // Found @0xff08e3f8 & 0xff08e430
  89. DEF(jpeg_count_str ,0x000e8200) // Found @0xff25c6d0
  90. //char *camera_jpeg_count_str() { return (char*)0x000e8200; } // Found @0xff25c6d0
  91.  
  92. // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  93.  
  94. // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  95. //static KeyMap keymap[] = {
  96. // { 0, KEY_SHOOT_FULL ,0x0000000c }, // Found @0xff5ba41c, levent 0x01
  97. // { 0, KEY_SHOOT_FULL_ONLY ,0x00000008 }, // Found @0xff5ba41c, levent 0x01
  98. // { 0, KEY_SHOOT_HALF ,0x00000004 }, // Found @0xff5ba414, levent 0x00
  99. // { 0, KEY_ZOOM_IN ,0x00000200 }, // Found @0xff5ba424, levent 0x03
  100. // { 0, KEY_ZOOM_OUT ,0x00000400 }, // Found @0xff5ba42c, levent 0x04
  101. // { 2, KEY_POWER ,0x00000020 }, // Found @0xff5ba43c, levent 0x100
  102. // { 2, KEY_PLAYBACK ,0x00000080 }, // Found @0xff5ba44c, levent 0x101
  103. // { 2, KEY_VIDEO ,0x00000400 }, // Found @0xff5ba45c, levent 0x02
  104. // { 2, KEY_SET ,0x00000800 }, // Found @0xff5ba464, levent 0x0a
  105. // { 2, KEY_LEFT ,0x00001000 }, // Found @0xff5ba46c, levent 0x08
  106. // { 2, KEY_UP ,0x00002000 }, // Found @0xff5ba474, levent 0x06
  107. // { 2, KEY_RIGHT ,0x00004000 }, // Found @0xff5ba47c, levent 0x09
  108. // { 2, KEY_DOWN ,0x00008000 }, // Found @0xff5ba484, levent 0x07
  109. // { 0, 0, 0 }
  110. //};
  111.  
  112. // Values below go in 'platform_camera.h':
  113. //#define CAM_DRYOS 1
  114. //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
  115. //#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher
  116. //#define CAM_RAW_ROWPIX 5248 // Found @0xff1ab7d8
  117. //#define CAM_RAW_ROWS 3920 // Found @0xff1ab7e0
  118. //#define CAM_DATE_FOLDER_NAMING 0x080 // Found @0xff3216d8 (pass as 3rd param to GetImageFolder)
  119. //#define PARAM_CAMERA_NAME 3 // Found @0xff6caefc
  120.  
  121. // Misc stuff
  122. DEF(ctypes, 0xff5b7640)
  123.  
  124. // Stubs below matched 100%.
  125. // Name Address Comp to stubs_entry_2.S
  126. NHSTUB(Close ,0xff027414) //120
  127. NHSTUB(CreateTask ,0xff025140) //120
  128. NHSTUB(DebugAssert ,0xff025500) //107
  129. NHSTUB(DeleteDirectory_Fut ,0xff026d64) //116
  130. NHSTUB(DoAELock ,0xff0333f0) //120
  131. NHSTUB(DoAFLock ,0xff033030) //120
  132. NHSTUB(EnterToCompensationEVF ,0xff033318) //104
  133. NHSTUB(ExecuteEventProcedure ,0xff035474) //104
  134. NHSTUB(ExitFromCompensationEVF ,0xff03336c) //104
  135. NHSTUB(ExitTask ,0xff0254b0) //120
  136. NHSTUB(ExpCtrlTool_StartContiAE ,0xff0458ac) //104
  137. NHSTUB(ExpCtrlTool_StopContiAE ,0xff045c2c) //104
  138. NHSTUB(Fclose_Fut ,0xff026dfc) //120
  139. NHSTUB(Feof_Fut ,0xff026fe8) // 1
  140. NHSTUB(Fflush_Fut ,0xff027024) // 1
  141. NHSTUB(Fgets_Fut ,0xff026f50) // 6
  142. NHSTUB(Fopen_Fut ,0xff026dbc) //120
  143. NHSTUB(Fread_Fut ,0xff026ea8) //120
  144. NHSTUB(Fseek_Fut ,0xff026f9c) //120
  145. NHSTUB(Fwrite_Fut ,0xff026efc) //120
  146. NHSTUB(GetBatteryTemperature ,0xff07a1a0) //102
  147. NHSTUB(GetCCDTemperature ,0xff07a12c) //102
  148. NHSTUB(GetCurrentAvValue ,0xff092160) //120
  149. NHSTUB(GetDrive_ClusterSize ,0xff031220) //122
  150. NHSTUB(GetDrive_FreeClusters ,0xff031958) //119
  151. NHSTUB(GetDrive_TotalClusters ,0xff031958) //122
  152. NHSTUB(GetFocusLensSubjectDistance ,0xff1d510c) //102
  153. NHSTUB(GetImageFolder ,0xff1b4028) //122
  154. NHSTUB(GetMemInfo ,0xff023548) //115
  155. NHSTUB(GetOpticalTemperature ,0xff07a214) //120
  156. NHSTUB(GetParameterData ,0xff1fa718) //101
  157. NHSTUB(GetPropertyCase ,0xff0adcc4) //101
  158. NHSTUB(GetSystemTime ,0xff35ef24) //120
  159. NHSTUB(GetVRAMHPixelsSize ,0xff052834) //120
  160. NHSTUB(GetVRAMVPixelsSize ,0xff052840) //120
  161. NHSTUB(GetZoomLensCurrentPoint ,0xff1d84ec) //120
  162. NHSTUB(GetZoomLensCurrentPosition ,0xff34e8c0) //102
  163. NHSTUB(GiveSemaphore ,0xff028338) //120
  164. NHSTUB(IsStrobeChargeCompleted ,0xff0d7168) //102
  165. NHSTUB(LEDDrive ,0xff1e237c) //120
  166. NHSTUB(LocalTime ,0xff0c4ff0) //115
  167. NHSTUB(LockMainPower ,0xff0b07a4) //120
  168. NHSTUB(MakeSDCardBootable ,0xff03189c) //105
  169. NHSTUB(MoveFocusLensToDistance ,0xff4473cc) //102
  170. NHSTUB(MoveIrisWithAv ,0xff35939c) //120
  171. NHSTUB(MoveZoomLensWithPoint ,0xff359550) //120
  172. NHSTUB(Open ,0xff0273b0) //120
  173. NHSTUB(PB2Rec ,0xff05f3b4) //104
  174. NHSTUB(PT_MoveDigitalZoomToWide ,0xff1e34f0) //102
  175. NHSTUB(PT_MoveOpticalZoomAt ,0xff1e34c0) //102
  176. NHSTUB(PT_PlaySound ,0xff0bfc30) //122
  177. NHSTUB(PostLogicalEventForNotPowerType ,0xff0afc38) //120
  178. NHSTUB(PostLogicalEventToUI ,0xff0afc90) //120
  179. NHSTUB(PutInNdFilter ,0xff359200) //102
  180. NHSTUB(PutOutNdFilter ,0xff359224) //102
  181. NHSTUB(Read ,0xff024004) //120
  182. NHSTUB(ReadFastDir ,0xff33ca7c) //115
  183. NHSTUB(Rec2PB ,0xff05f414) //104
  184. NHSTUB(RenameFile_Fut ,0xff026c5c) //116
  185. NHSTUB(Restart ,0xff0384fc) //122
  186. NHSTUB(ScreenLock ,0xff0b4484) //117
  187. NHSTUB(ScreenUnlock ,0xff0b44d8) //117
  188. NHSTUB(SetAE_ShutterSpeed ,0xff44232c) //102
  189. NHSTUB(SetAutoShutdownTime ,0xff0b0818) //120
  190. NHSTUB(SetCurrentCaptureModeType ,0xff0bc3b0) //120
  191. NHSTUB(SetFileAttributes ,0xff0278f0) // 6
  192. NHSTUB(SetFileTimeStamp ,0xff027878) // 6
  193. NHSTUB(SetLogicalEventActive ,0xff0b0304) //120
  194. NHSTUB(SetParameterData ,0xff1fa678) //101
  195. NHSTUB(SetPropertyCase ,0xff0adaf0) //101
  196. NHSTUB(SetScriptMode ,0xff0b0358) //120
  197. NHSTUB(SleepTask ,0xff039bd0) //120
  198. NHSTUB(TakeSemaphore ,0xff028254) //120
  199. NHSTUB(TurnOnDisplay ,0xff0712bc) //120
  200. NHSTUB(TurnOffDisplay ,0xff0712cc) //120
  201. NHSTUB(UIFS_WriteFirmInfoToFile ,0xff21a1dc) //120
  202. NHSTUB(UnlockAE ,0xff033480) //120
  203. NHSTUB(UnlockAF ,0xff033060) //120
  204. NHSTUB(UnlockMainPower ,0xff0b06fc) //120
  205. NHSTUB(VbattGet ,0xff02be2c) //120
  206. NHSTUB(Write ,0xff027b80) //120
  207. NHSTUB(_pow ,0x006dc6d8) //121
  208. NHSTUB(_sqrt ,0x006de4f0) // 6
  209. NHSTUB(add_ptp_handler ,0xff1518dc) //121
  210. NHSTUB(apex2us ,0xff2d2d8c) //121
  211. NHSTUB(err_init_task ,0xff0248d8) //111
  212. NHSTUB(lseek ,0xff027724) //120
  213. NHSTUB(memcmp ,0xff0255c0) //120
  214. NHSTUB(memcpy ,0xff0c5aec) //120
  215. NHSTUB(memset ,0xff28e630) //120
  216. NHSTUB(mktime_ext ,0xff0c527c) // 1
  217. NHSTUB(OpenFastDir ,0xff33c928) //115
  218. NHSTUB(closedir ,0xff33c8d8) //121
  219. NHSTUB(get_fstype ,0xff031198) //122
  220. NHSTUB(qsort ,0xff28e5d0) // 6
  221. NHSTUB(rand ,0xff0c5abc) //121
  222. NHSTUB(realloc ,0xff28e6ac) //115
  223. NHSTUB(reboot_fw_update ,0xff35da58) //106
  224. NHSTUB(srand ,0xff0c5ab0) //122
  225. NHSTUB(strcat ,0xff03a7e8) // 1
  226. NHSTUB(strchr ,0xff03a870) // 1
  227. NHSTUB(strcmp ,0xff0256bc) //120
  228. NHSTUB(strcpy ,0xff0255a8) //120
  229. NHSTUB(strftime ,0xff0c52fc) //113
  230. NHSTUB(strlen ,0xff025700) //120
  231. NHSTUB(strncmp ,0xff03a824) // 1
  232. NHSTUB(strncpy ,0xff028c34) // 1
  233. NHSTUB(strrchr ,0xff0c5c38) // 1
  234. NHSTUB(strtol ,0xff03a7d4) //101
  235. DEF(task_InitFileModules ,0xff062470) //120
  236. DEF(task_PhySw ,0xff02cb84) //120
  237. DEF(hook_CreateTask ,0xff025140) //105
  238. NHSTUB(time ,0xff03a030) //119
  239. NHSTUB(vsprintf ,0xff028bf4) //115
  240. NHSTUB(EngDrvRead ,0xff02d20c) //102
  241. NHSTUB(PTM_GetCurrentItem ,0xff0b2474) //105
  242. NHSTUB(CancelHPTimer ,0xff467df8) //119
  243. NHSTUB(SetHPTimerAfterNow ,0xff467df8) //119
  244. NHSTUB(SS_MFOn ,0xff1e3584) //120
  245. NHSTUB(SS_MFOff ,0xff1e3594) //120
  246. NHSTUB(GetAdChValue ,0xff0724a8) //120
RAW Paste Data