| 1 | // !!! THIS FILE IS GENERATED. DO NOT EDIT. !!! |
|---|
| 2 | #include "stubs_asm.h" |
|---|
| 3 | |
|---|
| 4 | // Camera info: |
|---|
| 5 | // DRYOS R45 (DRYOS version 2.3, release #0045) |
|---|
| 6 | // Firmware Ver GM1.01D |
|---|
| 7 | // Canon PowerShot SX130 IS |
|---|
| 8 | |
|---|
| 9 | // Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S' |
|---|
| 10 | // Name Address Rule % Comp to stubs_entry_2.S |
|---|
| 11 | //NSTUB(DoAFLock ,0xff8384d8) //102 *** != 0xff878eec |
|---|
| 12 | //NSTUB(GetBatteryTemperature ,0xff863050) //102 *** != 0x00000000 |
|---|
| 13 | //NSTUB(UnlockAF ,0xff838510) //102 *** != 0xff878efc |
|---|
| 14 | //NSTUB(kbd_pwr_off ,0xff85fc24) // 2 60% *** != 0x00000000 |
|---|
| 15 | // ERROR: kbd_pwr_on is not found. //--- --- *** != 0x00000000 |
|---|
| 16 | //NSTUB(rename ,0xff8365e0) // 4 *** != 0xff836dd8 |
|---|
| 17 | //NSTUB(write ,0xff836d8c) //101 *** != 0xff81add4 |
|---|
| 18 | |
|---|
| 19 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 20 | // Firmware modemap table found @ff897aac -> ff8943e4 -> ff992a10 -> ffac1640 -> ffbe809c |
|---|
| 21 | // No problems found with modemap table. |
|---|
| 22 | |
|---|
| 23 | // Values below go in 'stubs_min.S': |
|---|
| 24 | //DEF(physw_status ,0x00032b34) // Found @0xff834658, stubs_min = 0x00032b34 (0x32B34) |
|---|
| 25 | //DEF(physw_run ,0x00001c3c) // Found @0xff83424c, stubs_min = 0x00001c3c (0x1C30+0x0C) |
|---|
| 26 | //DEF(levent_table ,0xffb97a10) // Found @0xffb97a10, stubs_min = 0xffb97a10 (0xFFB97A10) |
|---|
| 27 | //DEF(FlashParamsTable ,0xffbe829c) // Found @0xffbe829c, stubs_min = 0xffbe829c (0xFFBE829C) |
|---|
| 28 | //DEF(movie_status ,0x00006bac) // Found @0xff9698bc, stubs_min = 0x00006bac (0x6B68+0x44) |
|---|
| 29 | //DEF(full_screen_refresh ,0x00009458) // Found @0xffa09454, stubs_min = 0x00009458 (0x9458) |
|---|
| 30 | //DEF(canon_menu_active ,0x00003038) // Found @0xff88e340, stubs_min = 0x00003038 (0x3034+4) |
|---|
| 31 | //DEF(canon_shoot_menu_active ,0x00007d89) // Found @0xff9a95b8, stubs_min = 0x00007d89 (0x7D88+1) |
|---|
| 32 | //DEF(playrec_mode ,0x00002d64) // Found @0xff880638, stubs_min = 0x00002d64 (0x2D60+0x4) |
|---|
| 33 | //DEF(zoom_status ,0x0000ce70) // Found @0xffac4bf0, stubs_min = 0x0000ce70 (0xCE70) |
|---|
| 34 | //DEF(some_flag_for_af_scan ,0x00006f68) // Found @0xff96cc44, stubs_min = 0x00006f68 (0x6F68) |
|---|
| 35 | |
|---|
| 36 | // Values below go in 'lib.c': |
|---|
| 37 | //void *vid_get_bitmap_fb() { return (void*)0x403f1000; } // Found @0xff85b5cc |
|---|
| 38 | //void *vid_get_viewport_fb() { return (void*)0x40507700; } // Found @0xffb0cec8 |
|---|
| 39 | //char *camera_jpeg_count_str() { return (char*)0x000b33a4; } // Found @0xff9ff42c |
|---|
| 40 | //long hook_raw_size() { return 0x011ca240; } // Found @0xffb10350 |
|---|
| 41 | //int get_flash_params_count(void) { return 0x9a; } // Found @0xff993a48 |
|---|
| 42 | |
|---|
| 43 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 44 | //#define SD_READONLY_FLAG 0x00020000 // Found @0xffb4f4d8, levent 0x90a |
|---|
| 45 | //#define SD_READONLY_IDX 2 |
|---|
| 46 | //#define USB_FLAG 0x04000000 // Found @0xffb4f4f8, levent 0x902 |
|---|
| 47 | //#define USB_IDX 2 |
|---|
| 48 | |
|---|
| 49 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 50 | //static KeyMap keymap[] = { |
|---|
| 51 | // { 2, KEY_SHOOT_HALF ,0x00000004 }, // Found @0xffb4f460, levent 0x00 |
|---|
| 52 | // { 2, KEY_SHOOT_FULL ,0x0000000c }, // Found @0xffb4f468, levent 0x01 |
|---|
| 53 | // { 2, KEY_ZOOM_IN ,0x00000010 }, // Found @0xffb4f470, levent 0x02 |
|---|
| 54 | // { 2, KEY_ZOOM_OUT ,0x00000020 }, // Found @0xffb4f478, levent 0x03 |
|---|
| 55 | // { 2, KEY_UP ,0x00000100 }, // Found @0xffb4f490, levent 0x04 |
|---|
| 56 | // { 2, KEY_DOWN ,0x00000200 }, // Found @0xffb4f498, levent 0x05 |
|---|
| 57 | // { 2, KEY_RIGHT ,0x00000400 }, // Found @0xffb4f4a0, levent 0x07 |
|---|
| 58 | // { 2, KEY_LEFT ,0x00000800 }, // Found @0xffb4f4a8, levent 0x06 |
|---|
| 59 | // { 2, KEY_SET ,0x00001000 }, // Found @0xffb4f4b0, levent 0x08 |
|---|
| 60 | // { 2, KEY_MENU ,0x00002000 }, // Found @0xffb4f4b8, levent 0x09 |
|---|
| 61 | // { 2, KEY_DISPLAY ,0x00004000 }, // Found @0xffb4f4c0, levent 0x0a |
|---|
| 62 | // { 0, 0, 0 } |
|---|
| 63 | //}; |
|---|
| 64 | |
|---|
| 65 | // Values below go in 'platform_camera.h': |
|---|
| 66 | //#define CAM_DRYOS 1 |
|---|
| 67 | //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher |
|---|
| 68 | //#define CAM_RAW_ROWPIX 4080 // Found @0xff93a260 |
|---|
| 69 | //#define CAM_RAW_ROWS 3048 // Found @0xff93a268 |
|---|
| 70 | //#undef CAM_UNCACHED_BIT |
|---|
| 71 | //#define CAM_UNCACHED_BIT 0x40000000 // Found @0xff83a6a0 |
|---|
| 72 | |
|---|
| 73 | // Stubs below matched 100%. |
|---|
| 74 | // Name Address Comp to stubs_entry_2.S |
|---|
| 75 | NSTUB(AllocateMemory ,0xffab19dc) //101 |
|---|
| 76 | NSTUB(AllocateUncacheableMemory ,0xff83a65c) //112 |
|---|
| 77 | //NSTUB(Close ,0xff836cfc) //101 == 0xff836cfc |
|---|
| 78 | NSTUB(CreateTask ,0xff81e8a0) //101 |
|---|
| 79 | //NSTUB(DebugAssert ,0xff81eb78) //111 == 0xff81eb78 |
|---|
| 80 | NSTUB(DeleteFile_Fut ,0xff836674) //112 |
|---|
| 81 | //NSTUB(EnterToCompensationEVF ,0xff838628) //104 == 0xff838628 |
|---|
| 82 | NSTUB(ExecuteEventProcedure ,0xff889a98) // 1 |
|---|
| 83 | //NSTUB(ExitFromCompensationEVF ,0xff83866c) //104 == 0xff83866c |
|---|
| 84 | //NSTUB(ExitTask ,0xff81eb30) //101 == 0xff81eb30 |
|---|
| 85 | NSTUB(ExpCtrlTool_StartContiAE ,0xff846a84) //104 |
|---|
| 86 | NSTUB(ExpCtrlTool_StopContiAE ,0xff846c14) //104 |
|---|
| 87 | NSTUB(Fclose_Fut ,0xff8367f0) //101 |
|---|
| 88 | NSTUB(Feof_Fut ,0xff8369dc) // 1 |
|---|
| 89 | NSTUB(Fflush_Fut ,0xff836a18) // 1 |
|---|
| 90 | NSTUB(Fgets_Fut ,0xff836944) // 1 |
|---|
| 91 | NSTUB(Fopen_Fut ,0xff8367b0) //101 |
|---|
| 92 | NSTUB(Fread_Fut ,0xff83689c) //101 |
|---|
| 93 | NSTUB(FreeMemory ,0xffab19d4) //101 |
|---|
| 94 | //NSTUB(FreeUncacheableMemory ,0xff83a69c) //112 == 0xff83a69c |
|---|
| 95 | NSTUB(Fseek_Fut ,0xff836990) //101 |
|---|
| 96 | NSTUB(Fwrite_Fut ,0xff8368f0) //101 |
|---|
| 97 | //NSTUB(GetCCDTemperature ,0xff862fdc) //102 == 0xff862fdc |
|---|
| 98 | //NSTUB(GetCurrentAvValue ,0xff9625c0) //102 == 0xff9625c0 |
|---|
| 99 | //NSTUB(GetDrive_ClusterSize ,0xff8709b8) // 4 == 0xff8709b8 |
|---|
| 100 | //NSTUB(GetDrive_FreeClusters ,0xff870a18) // 4 == 0xff870a18 |
|---|
| 101 | //NSTUB(GetDrive_TotalClusters ,0xff8709ec) // 3 == 0xff8709ec |
|---|
| 102 | //NSTUB(GetFocusLensSubjectDistance ,0xff9609ac) //102 == 0xff9609ac |
|---|
| 103 | //NSTUB(GetFocusLensSubjectDistanceFromLens ,0xff960df8) // 3 == 0xff960df8 |
|---|
| 104 | //NSTUB(GetImageFolder ,0xff9419ac) //106 == 0xff9419ac |
|---|
| 105 | //NSTUB(GetKbdState ,0xff85fc0c) //109 == 0xff85fc0c |
|---|
| 106 | NSTUB(GetMemInfo ,0xff81a264) // 3 |
|---|
| 107 | //NSTUB(GetOpticalTemperature ,0xff8630c8) //102 == 0xff8630c8 |
|---|
| 108 | //NSTUB(GetParameterData ,0xff993a0c) //101 == 0xff993a0c |
|---|
| 109 | //NSTUB(GetPropertyCase ,0xff88d7a0) //102 == 0xff88d7a0 |
|---|
| 110 | //NSTUB(GetSystemTime ,0xffab1a34) //101 == 0xffab1a34 |
|---|
| 111 | //NSTUB(GetZoomLensCurrentPoint ,0xff963fc8) //102 == 0xff963fc8 |
|---|
| 112 | //NSTUB(GetZoomLensCurrentPosition ,0xffa9fe7c) //102 == 0xffa9fe7c |
|---|
| 113 | NSTUB(GiveSemaphore ,0xff83a078) //112 |
|---|
| 114 | //NSTUB(IsStrobeChargeCompleted ,0xff8d7004) //102 == 0xff8d7004 |
|---|
| 115 | //NSTUB(LEDDrive ,0xff85f0f4) //103 == 0xff85f0f4 |
|---|
| 116 | NSTUB(LocalTime ,0xff8873e8) // 1 |
|---|
| 117 | //NSTUB(LockMainPower ,0xff893fec) //103 == 0xff893fec |
|---|
| 118 | //NSTUB(Lseek ,0xff836e18) //101 == 0xff836e18 |
|---|
| 119 | //NSTUB(MakeDirectory_Fut ,0xff8366e8) // 1 == 0xff8366e8 |
|---|
| 120 | //NSTUB(MoveFocusLensToDistance ,0xffb0994c) //102 == 0xffb0994c |
|---|
| 121 | NSTUB(MoveIrisWithAv ,0xffaae374) //102 |
|---|
| 122 | //NSTUB(MoveZoomLensWithPoint ,0xffaaea3c) //102 == 0xffaaea3c |
|---|
| 123 | //NSTUB(NewTaskShell ,0xff88d1bc) //103 == 0xff88d1bc |
|---|
| 124 | //NSTUB(Open ,0xff836c90) //101 == 0xff836c90 |
|---|
| 125 | NSTUB(PB2Rec ,0xff896f88) //104 |
|---|
| 126 | NSTUB(PT_MoveDigitalZoomToWide ,0xff878e9c) //102 |
|---|
| 127 | NSTUB(PT_MoveOpticalZoomAt ,0xff878e74) //102 |
|---|
| 128 | //NSTUB(PT_PlaySound ,0xff8824e4) // 4 == 0xff8824e4 |
|---|
| 129 | //NSTUB(PostLogicalEventForNotPowerType ,0xff891d90) //103 == 0xff891d90 |
|---|
| 130 | //NSTUB(PostLogicalEventToUI ,0xff891ddc) //103 == 0xff891ddc |
|---|
| 131 | NSTUB(PutInNdFilter ,0xffb07608) //102 |
|---|
| 132 | NSTUB(PutOutNdFilter ,0xffb07640) //102 |
|---|
| 133 | NSTUB(Read ,0xff81ad74) //101 |
|---|
| 134 | //NSTUB(ReadFastDir ,0xffa8c488) // 4 == 0xffa8c488 |
|---|
| 135 | NSTUB(Rec2PB ,0xff896fc8) //104 |
|---|
| 136 | //NSTUB(RefreshPhysicalScreen ,0xff8a788c) //104 == 0xff8a788c |
|---|
| 137 | //NSTUB(Remove ,0xff836d30) // 4 == 0xff836d30 |
|---|
| 138 | //NSTUB(RenameFile_Fut ,0xff8365e0) // 4 == 0xff8365e0 |
|---|
| 139 | //NSTUB(Restart ,0xff83be44) //106 == 0xff83be44 |
|---|
| 140 | //NSTUB(ScreenLock ,0xff8a8a1c) // 4 == 0xff8a8a1c |
|---|
| 141 | //NSTUB(ScreenUnlock ,0xff8a8a80) // 9 == 0xff8a8a80 |
|---|
| 142 | NSTUB(SetAE_ShutterSpeed ,0xffb0c094) //102 |
|---|
| 143 | //NSTUB(SetAutoShutdownTime ,0xff894060) //103 == 0xff894060 |
|---|
| 144 | //NSTUB(SetCurrentCaptureModeType ,0xff89abfc) //101 == 0xff89abfc |
|---|
| 145 | //NSTUB(SetFileTimeStamp ,0xff836f98) // 4 == 0xff836f98 |
|---|
| 146 | //NSTUB(SetLogicalEventActive ,0xff893d38) //101 == 0xff893d38 |
|---|
| 147 | //NSTUB(SetParameterData ,0xff993978) //101 == 0xff993978 |
|---|
| 148 | //NSTUB(SetPropertyCase ,0xff88d678) //102 == 0xff88d678 |
|---|
| 149 | //NSTUB(SetScriptMode ,0xff893d88) //101 == 0xff893d88 |
|---|
| 150 | //NSTUB(SleepTask ,0xff83a2e0) //101 == 0xff83a2e0 |
|---|
| 151 | //NSTUB(TakeSemaphore ,0xff839fa8) //101 == 0xff839fa8 |
|---|
| 152 | //NSTUB(TurnOffBackLight ,0xff8a0584) //104 == 0xff8a0584 |
|---|
| 153 | //NSTUB(TurnOnBackLight ,0xff8a056c) //104 == 0xff8a056c |
|---|
| 154 | //NSTUB(UIFS_WriteFirmInfoToFile ,0xff98420c) //101 == 0xff98420c |
|---|
| 155 | //NSTUB(UnlockMainPower ,0xff893f40) //103 == 0xff893f40 |
|---|
| 156 | //NSTUB(UpdateMBROnFlash ,0xff870838) // 3 == 0xff870838 |
|---|
| 157 | //NSTUB(VbattGet ,0xff832fb4) //103 == 0xff832fb4 |
|---|
| 158 | NSTUB(Write ,0xff836d8c) //101 |
|---|
| 159 | //NSTUB(WriteSDCard ,0xff950268) //108 == 0xff950268 |
|---|
| 160 | NSTUB(_log ,0xffb4b6c4) //111 |
|---|
| 161 | NSTUB(_log10 ,0xffb4a608) //112 |
|---|
| 162 | NSTUB(_pow ,0xffb4a778) //114 |
|---|
| 163 | NSTUB(_sqrt ,0xffb4ca90) // 1 |
|---|
| 164 | NSTUB(add_ptp_handler ,0xffa4c81c) // 3 |
|---|
| 165 | //NSTUB(apex2us ,0xffa0e804) // 4 == 0xffa0e804 |
|---|
| 166 | NSTUB(close ,0xff81ab8c) // 1 |
|---|
| 167 | //NSTUB(closedir ,0xffa8c2e4) // 4 == 0xffa8c2e4 |
|---|
| 168 | NSTUB(err_init_task ,0xff815fd4) // 4 |
|---|
| 169 | //NSTUB(exmem_alloc ,0xff888334) //103 == 0xff888334 |
|---|
| 170 | //NSTUB(free ,0xff814244) //112 == 0xff814244 |
|---|
| 171 | //NSTUB(kbd_p1_f ,0xff8346d0) //109 == 0xff8346d0 |
|---|
| 172 | //NSTUB(kbd_p1_f_cont ,0xff8346dc) //109 == 0xff8346dc |
|---|
| 173 | //NSTUB(kbd_p2_f ,0xff833f18) //109 == 0xff833f18 |
|---|
| 174 | //NSTUB(kbd_read_keys ,0xff834658) //109 == 0xff834658 |
|---|
| 175 | //NSTUB(kbd_read_keys_r2 ,0xff85f5c4) //109 == 0xff85f5c4 |
|---|
| 176 | //NSTUB(lseek ,0xff836e18) //101 == 0xff836e18 |
|---|
| 177 | NSTUB(malloc ,0xff8141e8) //112 |
|---|
| 178 | NSTUB(memcmp ,0xff8206d0) //101 |
|---|
| 179 | NSTUB(memcpy ,0xff83fd04) //101 |
|---|
| 180 | NSTUB(memset ,0xffa0d800) //101 |
|---|
| 181 | //NSTUB(mkdir ,0xff837198) // 4 == 0xff837198 |
|---|
| 182 | NSTUB(mktime_ext ,0xff8a9824) // 1 |
|---|
| 183 | NSTUB(open ,0xff81aadc) // 1 |
|---|
| 184 | //NSTUB(opendir ,0xffa8c334) // 4 == 0xffa8c334 |
|---|
| 185 | //NSTUB(openfastdir ,0xffa8c334) // 4 == 0xffa8c334 |
|---|
| 186 | //NSTUB(qsort ,0xffaf8800) // 4 == 0xffaf8800 |
|---|
| 187 | //NSTUB(rand ,0xffa0d940) // 4 == 0xffa0d940 |
|---|
| 188 | NSTUB(read ,0xff81ad74) //101 |
|---|
| 189 | //NSTUB(readfastdir ,0xffa8c488) // 4 == 0xffa8c488 |
|---|
| 190 | //NSTUB(reboot_fw_update ,0xffa918a8) // 4 == 0xffa918a8 |
|---|
| 191 | NSTUB(set_control_event ,0xff893928) //111 |
|---|
| 192 | //NSTUB(srand ,0xffa0d934) // 4 == 0xffa0d934 |
|---|
| 193 | NSTUB(stat ,0xff836e60) // 3 |
|---|
| 194 | //NSTUB(strcat ,0xff8a8fe0) // 1 == 0xff8a8fe0 |
|---|
| 195 | //NSTUB(strchr ,0xff8140b4) // 1 == 0xff8140b4 |
|---|
| 196 | NSTUB(strcmp ,0xff82068c) //101 |
|---|
| 197 | NSTUB(strcpy ,0xff820674) //101 |
|---|
| 198 | NSTUB(strftime ,0xff8a922c) //113 |
|---|
| 199 | //NSTUB(strlen ,0xff814100) //101 == 0xff814100 |
|---|
| 200 | NSTUB(strncmp ,0xff814068) // 1 |
|---|
| 201 | //NSTUB(strncpy ,0xff81402c) // 1 == 0xff81402c |
|---|
| 202 | //NSTUB(strrchr ,0xff8140d8) // 1 == 0xff8140d8 |
|---|
| 203 | //NSTUB(strtol ,0xff83ffe4) //101 == 0xff83ffe4 |
|---|
| 204 | NSTUB(strtolx ,0xff83fde8) //109 |
|---|
| 205 | // DEF(task_CaptSeq ,0xff87b564) //107 == 0xff87b564 |
|---|
| 206 | // DEF(task_ExpDrv ,0xff8bfa94) //110 == 0xff8bfa94 |
|---|
| 207 | // DEF(task_InitFileModules ,0xff897938) //107 == 0xff897938 |
|---|
| 208 | // DEF(task_MovieRecord ,0xff969bc8) //107 == 0xff969bc8 |
|---|
| 209 | DEF(task_PhySw ,0xff834248) //107 |
|---|
| 210 | // DEF(task_RotaryEncoder ,0xff85fd80) //107 == 0xff85fd80 |
|---|
| 211 | //NSTUB(time ,0xff8879c8) // 2 == 0xff8879c8 |
|---|
| 212 | NSTUB(vsprintf ,0xff820638) // 4 |
|---|