| 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.00H |
|---|
| 7 | // Canon PowerShot SX30 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(Restart ,0xff83c788) //106 *** != 0xff83c78c |
|---|
| 12 | //NSTUB(kbd_pwr_off ,0xff865b9c) // 2 60% *** != 0xff810b1c |
|---|
| 13 | // ERROR: kbd_pwr_on is not found. //--- --- *** != 0xff810b1c |
|---|
| 14 | //NSTUB(write ,0xff83716c) //101 *** != 0xff81add4 |
|---|
| 15 | |
|---|
| 16 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 17 | // Firmware modemap table found @ff8a3cc0 -> ff8a068c -> ff9c1110 -> ffb00d0c -> ffc67954 |
|---|
| 18 | // No problems found with modemap table. |
|---|
| 19 | |
|---|
| 20 | // Values below go in 'stubs_min.S': |
|---|
| 21 | //DEF(physw_status ,0x00034594) // Found @0xff8349f0, stubs_min = 0x00034594 (0x34594) |
|---|
| 22 | //DEF(physw_run ,0x00001c3c) // Found @0xff8345ec, stubs_min = 0x00001c3c (0x1C30+0xC) |
|---|
| 23 | //DEF(levent_table ,0xffc0e88c) // Found @0xffc0e88c, stubs_min = 0xffc0e88c (0xFFC0E88C) |
|---|
| 24 | //DEF(FlashParamsTable ,0xffc67b58) // Found @0xffc67b58, stubs_min = 0xffc67b58 (0xFFC67B58) |
|---|
| 25 | //DEF(movie_status ,0x00003524) // Found @0xff882fc8, stubs_min = 0x00003524 (0x34E0+0x44) |
|---|
| 26 | //DEF(full_screen_refresh ,0x0000b198) // Found @0xffa46958, stubs_min = 0x0000b198 (0xB198) |
|---|
| 27 | //DEF(canon_menu_active ,0x00003a2c) // Found @0xff89a56c, stubs_min = 0x00003a2c (0x3A28+4) |
|---|
| 28 | //DEF(canon_shoot_menu_active ,0x00009901) // Found @0xff9de9ac, stubs_min = 0x00009901 (0x9900+1) |
|---|
| 29 | //DEF(playrec_mode ,0x00003758) // Found @0xff88c70c, stubs_min = 0x00003758 (0x3754+0x4) |
|---|
| 30 | //DEF(zoom_status ,0x0000e7c4) // Found @0xffb04790, stubs_min = 0x0000e7c4 (0xE7C4) |
|---|
| 31 | //DEF(some_flag_for_af_scan ,0x000085cc) // Found @0xff991078 |
|---|
| 32 | |
|---|
| 33 | // Values below go in 'lib.c': |
|---|
| 34 | //void *vid_get_bitmap_fb() { return (void*)0x40471000; } // Found @0xff85ed30 |
|---|
| 35 | //void *vid_get_viewport_fb() { return (void*)0x40587700; } // Found @0xffb56ae0 |
|---|
| 36 | //char *camera_jpeg_count_str() { return (char*)0x000cf2fc; } // Found @0xffa3bb3c |
|---|
| 37 | //long hook_raw_size() { return 0x014eb7e0; } // Found @0xffb59fa0 |
|---|
| 38 | //int get_flash_params_count(void) { return 0x9a; } // Found @0xff9c26a8 |
|---|
| 39 | |
|---|
| 40 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 41 | //#define SD_READONLY_FLAG 0x00020000 // Found @0xffb97a1c, levent 0x90a |
|---|
| 42 | //#define SD_READONLY_IDX 2 |
|---|
| 43 | //#define USB_FLAG 0x04000000 // Found @0xffb97a4c, levent 0x902 |
|---|
| 44 | //#define USB_IDX 2 |
|---|
| 45 | |
|---|
| 46 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 47 | //static KeyMap keymap[] = { |
|---|
| 48 | // { 0, KEY_UP ,0x00000400 }, // Found @0xffb97954, levent 0x04 |
|---|
| 49 | // { 0, KEY_DOWN ,0x00000800 }, // Found @0xffb9795c, levent 0x05 |
|---|
| 50 | // { 0, KEY_LEFT ,0x00001000 }, // Found @0xffb97964, levent 0x06 |
|---|
| 51 | // { 0, KEY_RIGHT ,0x00002000 }, // Found @0xffb9796c, levent 0x07 |
|---|
| 52 | // { 0, KEY_SET ,0x00004000 }, // Found @0xffb97974, levent 0x08 |
|---|
| 53 | // { 0, KEY_DISPLAY ,0x00020000 }, // Found @0xffb9798c, levent 0x0a |
|---|
| 54 | // { 0, KEY_MENU ,0x00040000 }, // Found @0xffb97994, levent 0x09 |
|---|
| 55 | // { 2, KEY_SHOOT_HALF ,0x00000100 }, // Found @0xffb979ec, levent 0x00 |
|---|
| 56 | // { 2, KEY_SHOOT_FULL ,0x00000300 }, // Found @0xffb979f4, levent 0x01 |
|---|
| 57 | // { 0, 0, 0 } |
|---|
| 58 | //}; |
|---|
| 59 | |
|---|
| 60 | // Values below go in 'platform_camera.h': |
|---|
| 61 | //#define CAM_DRYOS 1 |
|---|
| 62 | //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher |
|---|
| 63 | //#define CAM_RAW_ROWPIX 4464 // Found @0xff957868 |
|---|
| 64 | //#define CAM_RAW_ROWS 3276 // Found @0xff957874 |
|---|
| 65 | //#undef CAM_UNCACHED_BIT |
|---|
| 66 | //#define CAM_UNCACHED_BIT 0x40000000 // Found @0xff83afdc |
|---|
| 67 | |
|---|
| 68 | // Stubs below matched 100%. |
|---|
| 69 | // Name Address Comp to stubs_entry_2.S |
|---|
| 70 | NSTUB(AllocateMemory ,0xffaee008) //101 |
|---|
| 71 | NSTUB(AllocateUncacheableMemory ,0xff83af98) //112 |
|---|
| 72 | //NSTUB(Close ,0xff8370dc) //101 == 0xff8370dc |
|---|
| 73 | NSTUB(CreateTask ,0xff81e8a0) //101 |
|---|
| 74 | //NSTUB(DebugAssert ,0xff81eb78) //111 == 0xff81eb78 |
|---|
| 75 | NSTUB(DeleteFile_Fut ,0xff836a54) //112 |
|---|
| 76 | //NSTUB(DoAFLock ,0xff838ab8) //102 == 0xff838ab8 |
|---|
| 77 | //NSTUB(EnterToCompensationEVF ,0xff838d44) //104 == 0xff838d44 |
|---|
| 78 | NSTUB(ExecuteEventProcedure ,0xff895cc0) // 1 |
|---|
| 79 | //NSTUB(ExitFromCompensationEVF ,0xff838d88) //104 == 0xff838d88 |
|---|
| 80 | //NSTUB(ExitTask ,0xff81eb30) //101 == 0xff81eb30 |
|---|
| 81 | NSTUB(ExpCtrlTool_StartContiAE ,0xff8474fc) //104 |
|---|
| 82 | NSTUB(ExpCtrlTool_StopContiAE ,0xff847688) //104 |
|---|
| 83 | NSTUB(Fclose_Fut ,0xff836bd0) //101 |
|---|
| 84 | NSTUB(Feof_Fut ,0xff836dbc) // 1 |
|---|
| 85 | NSTUB(Fflush_Fut ,0xff836df8) // 1 |
|---|
| 86 | NSTUB(Fgets_Fut ,0xff836d24) // 1 |
|---|
| 87 | NSTUB(Fopen_Fut ,0xff836b90) //101 |
|---|
| 88 | NSTUB(Fread_Fut ,0xff836c7c) //101 |
|---|
| 89 | NSTUB(FreeMemory ,0xffaee000) //101 |
|---|
| 90 | //NSTUB(FreeUncacheableMemory ,0xff83afd8) //112 == 0xff83afd8 |
|---|
| 91 | NSTUB(Fseek_Fut ,0xff836d70) //101 |
|---|
| 92 | NSTUB(Fwrite_Fut ,0xff836cd0) //101 |
|---|
| 93 | //NSTUB(GetBatteryTemperature ,0xff8697ac) //102 == 0xff8697ac |
|---|
| 94 | //NSTUB(GetCCDTemperature ,0xff869738) //102 == 0xff869738 |
|---|
| 95 | //NSTUB(GetCurrentAvValue ,0xff98067c) //102 == 0xff98067c |
|---|
| 96 | //NSTUB(GetDrive_ClusterSize ,0xff87724c) // 4 == 0xff87724c |
|---|
| 97 | //NSTUB(GetDrive_FreeClusters ,0xff8772ac) // 4 == 0xff8772ac |
|---|
| 98 | //NSTUB(GetDrive_TotalClusters ,0xff877280) // 3 == 0xff877280 |
|---|
| 99 | //NSTUB(GetFocusLensSubjectDistance ,0xff97ea7c) //102 == 0xff97ea7c |
|---|
| 100 | //NSTUB(GetFocusLensSubjectDistanceFromLens ,0xff97eef4) // 3 == 0xff97eef4 |
|---|
| 101 | //NSTUB(GetImageFolder ,0xff95f0ec) //106 == 0xff95f0ec |
|---|
| 102 | //NSTUB(GetKbdState ,0xff865a28) //109 == 0xff865a28 |
|---|
| 103 | NSTUB(GetMemInfo ,0xff81a264) // 3 |
|---|
| 104 | //NSTUB(GetOpticalTemperature ,0xff869820) //102 == 0xff869820 |
|---|
| 105 | //NSTUB(GetParameterData ,0xff9c266c) //101 == 0xff9c266c |
|---|
| 106 | //NSTUB(GetPropertyCase ,0xff8999c8) //102 == 0xff8999c8 |
|---|
| 107 | //NSTUB(GetSystemTime ,0xffaee060) //101 == 0xffaee060 |
|---|
| 108 | //NSTUB(GetZoomLensCurrentPoint ,0xff87e9c4) //102 == 0xff87e9c4 |
|---|
| 109 | //NSTUB(GetZoomLensCurrentPosition ,0xff9864a8) //102 == 0xff9864a8 |
|---|
| 110 | //NSTUB(GiveSemaphore ,0xff83a9b4) //112 == 0xff83a9b4 |
|---|
| 111 | //NSTUB(IsStrobeChargeCompleted ,0xff8ec168) //102 == 0xff8ec168 |
|---|
| 112 | //NSTUB(LEDDrive ,0xff864bd4) //103 == 0xff864bd4 |
|---|
| 113 | NSTUB(LocalTime ,0xff8935a8) // 1 |
|---|
| 114 | //NSTUB(LockMainPower ,0xff8a0290) //103 == 0xff8a0290 |
|---|
| 115 | //NSTUB(Lseek ,0xff8371f8) //101 == 0xff8371f8 |
|---|
| 116 | //NSTUB(MakeDirectory_Fut ,0xff836ac8) // 1 == 0xff836ac8 |
|---|
| 117 | //NSTUB(MoveFocusLensToDistance ,0xffb52e10) //102 == 0xffb52e10 |
|---|
| 118 | //NSTUB(MoveIrisWithAv ,0xffae8e14) //102 == 0xffae8e14 |
|---|
| 119 | //NSTUB(MoveZoomLensWithPoint ,0xffae950c) //102 == 0xffae950c |
|---|
| 120 | //NSTUB(NewTaskShell ,0xff8993e4) //103 == 0xff8993e4 |
|---|
| 121 | //NSTUB(Open ,0xff837070) //101 == 0xff837070 |
|---|
| 122 | //NSTUB(PB2Rec ,0xff8a30f8) //104 == 0xff8a30f8 |
|---|
| 123 | //NSTUB(PT_MoveDigitalZoomToWide ,0xff883c2c) //102 == 0xff883c2c |
|---|
| 124 | //NSTUB(PT_MoveOpticalZoomAt ,0xff883c04) //102 == 0xff883c04 |
|---|
| 125 | //NSTUB(PT_PlaySound ,0xff88e65c) // 4 == 0xff88e65c |
|---|
| 126 | //NSTUB(PostLogicalEventForNotPowerType ,0xff89e028) //103 == 0xff89e028 |
|---|
| 127 | //NSTUB(PostLogicalEventToUI ,0xff89e074) //103 == 0xff89e074 |
|---|
| 128 | NSTUB(PutInNdFilter ,0xffb50a84) //102 |
|---|
| 129 | NSTUB(PutOutNdFilter ,0xffb50abc) //102 |
|---|
| 130 | NSTUB(Read ,0xff81ad74) //101 |
|---|
| 131 | //NSTUB(ReadFastDir ,0xffacde84) // 4 == 0xffacde84 |
|---|
| 132 | //NSTUB(Rec2PB ,0xff8a1b3c) //104 == 0xff8a1b3c |
|---|
| 133 | //NSTUB(RefreshPhysicalScreen ,0xff8b8110) //104 == 0xff8b8110 |
|---|
| 134 | //NSTUB(Remove ,0xff837110) // 4 == 0xff837110 |
|---|
| 135 | //NSTUB(RenameFile_Fut ,0xff8369c0) // 4 == 0xff8369c0 |
|---|
| 136 | //NSTUB(ScreenLock ,0xff8b9340) // 4 == 0xff8b9340 |
|---|
| 137 | //NSTUB(ScreenUnlock ,0xff8b93a4) // 3 == 0xff8b93a4 |
|---|
| 138 | NSTUB(SetAE_ShutterSpeed ,0xffb55c58) //102 |
|---|
| 139 | //NSTUB(SetAutoShutdownTime ,0xff8a0304) //103 == 0xff8a0304 |
|---|
| 140 | //NSTUB(SetCurrentCaptureModeType ,0xff8a9228) //101 == 0xff8a9228 |
|---|
| 141 | //NSTUB(SetFileTimeStamp ,0xff837378) // 4 == 0xff837378 |
|---|
| 142 | //NSTUB(SetLogicalEventActive ,0xff89ffcc) //101 == 0xff89ffcc |
|---|
| 143 | //NSTUB(SetParameterData ,0xff9c2544) //101 == 0xff9c2544 |
|---|
| 144 | //NSTUB(SetPropertyCase ,0xff8998a0) //102 == 0xff8998a0 |
|---|
| 145 | //NSTUB(SetScriptMode ,0xff8a001c) //101 == 0xff8a001c |
|---|
| 146 | //NSTUB(SleepTask ,0xff83ac1c) //101 == 0xff83ac1c |
|---|
| 147 | //NSTUB(TakeSemaphore ,0xff83a8e4) //101 == 0xff83a8e4 |
|---|
| 148 | //NSTUB(TurnOffBackLight ,0xff8b0598) //104 == 0xff8b0598 |
|---|
| 149 | //NSTUB(TurnOnBackLight ,0xff8b0580) //104 == 0xff8b0580 |
|---|
| 150 | //NSTUB(UIFS_WriteFirmInfoToFile ,0xff9aed10) //101 == 0xff9aed10 |
|---|
| 151 | //NSTUB(UnlockAF ,0xff838af0) //102 == 0xff838af0 |
|---|
| 152 | //NSTUB(UnlockMainPower ,0xff8a01e4) //103 == 0xff8a01e4 |
|---|
| 153 | //NSTUB(UpdateMBROnFlash ,0xff8770cc) // 3 == 0xff8770cc |
|---|
| 154 | //NSTUB(VbattGet ,0xff833178) //103 == 0xff833178 |
|---|
| 155 | NSTUB(Write ,0xff83716c) //101 |
|---|
| 156 | //NSTUB(WriteSDCard ,0xff96dab0) //108 == 0xff96dab0 |
|---|
| 157 | NSTUB(_log ,0xffb93b08) //111 |
|---|
| 158 | NSTUB(_log10 ,0xffb92a4c) //112 |
|---|
| 159 | NSTUB(_pow ,0xffb92bbc) //114 |
|---|
| 160 | NSTUB(_sqrt ,0xffb94ed4) // 1 |
|---|
| 161 | NSTUB(add_ptp_handler ,0xffa8ea38) // 3 |
|---|
| 162 | //NSTUB(apex2us ,0xffa4e848) // 4 == 0xffa4e848 |
|---|
| 163 | NSTUB(close ,0xff81ab8c) // 1 |
|---|
| 164 | //NSTUB(closedir ,0xffacdce0) // 4 == 0xffacdce0 |
|---|
| 165 | //NSTUB(err_init_task ,0xff815fd4) // 4 == 0xff815fd4 |
|---|
| 166 | //NSTUB(exmem_alloc ,0xff8944f4) //103 == 0xff8944f4 |
|---|
| 167 | //NSTUB(free ,0xff814244) //112 == 0xff814244 |
|---|
| 168 | //NSTUB(kbd_p1_f ,0xff834a68) //109 == 0xff834a68 |
|---|
| 169 | //NSTUB(kbd_p1_f_cont ,0xff834a74) //109 == 0xff834a74 |
|---|
| 170 | //NSTUB(kbd_p2_f ,0xff8342b8) //109 == 0xff8342b8 |
|---|
| 171 | //NSTUB(kbd_read_keys ,0xff8349f0) //109 == 0xff8349f0 |
|---|
| 172 | //NSTUB(kbd_read_keys_r2 ,0xff8651a4) //109 == 0xff8651a4 |
|---|
| 173 | //NSTUB(lseek ,0xff8371f8) //101 == 0xff8371f8 |
|---|
| 174 | NSTUB(malloc ,0xff8141e8) //112 |
|---|
| 175 | NSTUB(memcmp ,0xff8206d0) //101 |
|---|
| 176 | NSTUB(memcpy ,0xff840750) //101 |
|---|
| 177 | NSTUB(memset ,0xffa4d844) //101 |
|---|
| 178 | //NSTUB(mkdir ,0xff837578) // 4 == 0xff837578 |
|---|
| 179 | NSTUB(mktime_ext ,0xff8ba260) // 1 |
|---|
| 180 | //NSTUB(open ,0xff81aadc) // 1 == 0xff81aadc |
|---|
| 181 | //NSTUB(opendir ,0xffacdd30) // 4 == 0xffacdd30 |
|---|
| 182 | //NSTUB(openfastdir ,0xffacdd30) // 4 == 0xffacdd30 |
|---|
| 183 | //NSTUB(qsort ,0xffb4065c) // 4 == 0xffb4065c |
|---|
| 184 | //NSTUB(rand ,0xffa4d984) // 4 == 0xffa4d984 |
|---|
| 185 | NSTUB(read ,0xff81ad74) //101 |
|---|
| 186 | //NSTUB(readfastdir ,0xffacde84) // 4 == 0xffacde84 |
|---|
| 187 | //NSTUB(reboot_fw_update ,0xffad32a4) // 4 == 0xffad32a4 |
|---|
| 188 | //NSTUB(rename ,0xff8369c0) // 4 == 0xff8369c0 |
|---|
| 189 | NSTUB(set_control_event ,0xff89fbbc) //111 |
|---|
| 190 | //NSTUB(srand ,0xffa4d978) // 4 == 0xffa4d978 |
|---|
| 191 | NSTUB(stat ,0xff837240) // 3 |
|---|
| 192 | //NSTUB(strcat ,0xff8b9a1c) // 1 == 0xff8b9a1c |
|---|
| 193 | //NSTUB(strchr ,0xff8140b4) // 1 == 0xff8140b4 |
|---|
| 194 | NSTUB(strcmp ,0xff82068c) //101 |
|---|
| 195 | NSTUB(strcpy ,0xff820674) //101 |
|---|
| 196 | NSTUB(strftime ,0xff8b9c68) //113 |
|---|
| 197 | //NSTUB(strlen ,0xff814100) //101 == 0xff814100 |
|---|
| 198 | NSTUB(strncmp ,0xff814068) // 1 |
|---|
| 199 | //NSTUB(strncpy ,0xff81402c) // 1 == 0xff81402c |
|---|
| 200 | //NSTUB(strrchr ,0xff8140d8) // 1 == 0xff8140d8 |
|---|
| 201 | //NSTUB(strtol ,0xff840a30) //101 == 0xff840a30 |
|---|
| 202 | NSTUB(strtolx ,0xff840834) //109 |
|---|
| 203 | // DEF(task_CaptSeq ,0xff8868c0) //107 == 0xff8868c0 |
|---|
| 204 | // DEF(task_ExpDrv ,0xff8d0818) //110 == 0xff8d0818 |
|---|
| 205 | // DEF(task_InitFileModules ,0xff8a3b4c) //107 == 0xff8a3b4c |
|---|
| 206 | // DEF(task_MovieRecord ,0xff883348) //107 == 0xff883348 |
|---|
| 207 | DEF(task_PhySw ,0xff8345e8) //107 |
|---|
| 208 | // DEF(task_RotaryEncoder ,0xff865d08) //107 == 0xff865d08 |
|---|
| 209 | //NSTUB(time ,0xff893b88) // 2 == 0xff893b88 |
|---|
| 210 | NSTUB(vsprintf ,0xff820638) // 4 |
|---|