| [1328] | 1 | // !!! THIS FILE IS GENERATED. DO NOT EDIT. !!! |
|---|
| 2 | #include "stubs_asm.h" |
|---|
| 3 | |
|---|
| 4 | // Camera info: |
|---|
| [1391] | 5 | // DRYOS R45 (DRYOS version 2.3, release #0045) |
|---|
| 6 | // Firmware Ver GM1.00P |
|---|
| 7 | // Canon PowerShot SX30 IS |
|---|
| [1328] | 8 | |
|---|
| [1391] | 9 | // Values for makefile.inc |
|---|
| 10 | // PLATFORMID = 12816 (0x3210) // Found @ 0xfffe0130 |
|---|
| 11 | // MAXRAMADDR = 0x07ffffff |
|---|
| 12 | // KEYSYS = d4b // Found @ 0xffff3680 |
|---|
| 13 | // NEED_ENCODED_DISKBOOT = 5 // Found @ 0xffff3690 |
|---|
| 14 | |
|---|
| [1328] | 15 | // Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S' |
|---|
| 16 | // Name Address Rule % Comp to stubs_entry_2.S |
|---|
| 17 | //NSTUB(kbd_pwr_off ,0xff865b9c) // 2 60% *** != 0xff810b1c |
|---|
| 18 | // ERROR: kbd_pwr_on is not found. //--- --- *** != 0xff810b1c |
|---|
| 19 | |
|---|
| 20 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 21 | // Firmware modemap table found @ff8a3cc4 -> ff8a0690 -> ff9c133c -> ffb00f38 -> ffc67b50 |
|---|
| 22 | // No problems found with modemap table. |
|---|
| 23 | |
|---|
| [1444] | 24 | // Values below can be overridden in 'stubs_min.S': |
|---|
| 25 | DEF(physw_status ,0x00034594) // Found @0xff8349f0 |
|---|
| 26 | DEF(physw_run ,0x00001c3c) // Found @0xff8345ec |
|---|
| 27 | DEF(levent_table ,0xffc0ea88) // Found @0xffc0ea88 |
|---|
| 28 | DEF(FlashParamsTable ,0xffc67d54) // Found @0xffc67d54 |
|---|
| 29 | DEF(movie_status ,0x00003524) // Found @0xff882fb4 |
|---|
| 30 | DEF(full_screen_refresh ,0x0000b198) // Found @0xffa46b84 |
|---|
| 31 | DEF(canon_menu_active ,0x00003a2c) // Found @0xff89a570 |
|---|
| 32 | DEF(canon_shoot_menu_active ,0x00009901) // Found @0xff9debd8 |
|---|
| 33 | DEF(playrec_mode ,0x00003758) // Found @0xff88c71c |
|---|
| 34 | DEF(zoom_status ,0x0000e7c4) // Found @0xffb049bc |
|---|
| 35 | DEF(some_flag_for_af_scan ,0x000085cc) // Found @0xff9912a4 |
|---|
| [1448] | 36 | // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c). |
|---|
| 37 | // each entry contains 1 int value, which is the the zoom focus length. |
|---|
| 38 | // there are 201 entries in the table - set NUM_FL to 201 |
|---|
| 39 | DEF(focus_len_table ,0xfffea5cc) // Found @0xfffea5cc |
|---|
| 40 | DEF(zoom_busy ,0x00003448) // Found @0xff87e640 |
|---|
| 41 | DEF(focus_busy ,0x00007a74) // Found @0xff97dfc0 |
|---|
| 42 | DEF(recreview_hold ,0x0000468c) // Found @0xff8ac614 |
|---|
| [1328] | 43 | |
|---|
| 44 | // Values below go in 'lib.c': |
|---|
| [1636] | 45 | //void *vid_get_bitmap_fb() { return (void*)0x40471000; } // Found @0xff85ed30 |
|---|
| 46 | //void *vid_get_viewport_fb() { return (void*)0x40587700; } // Found @0xffb56cec |
|---|
| 47 | //void *vid_get_viewport_fb_d() { return (void*)(*(int*)(0x32b0+0x58)); } // Found @0xff878ab0 & 0xff878ae8 |
|---|
| 48 | //char *camera_jpeg_count_str() { return (char*)0x000cf2fc; } // Found @0xffa3bd68 |
|---|
| 49 | //long hook_raw_size() { return 0x014eb7e0; } // Found @0xffb5a1ac |
|---|
| 50 | //int get_flash_params_count(void) { return 0x9a; } // Found @0xff9c28d4 |
|---|
| [1328] | 51 | |
|---|
| 52 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 53 | //#define SD_READONLY_FLAG 0x00020000 // Found @0xffb97c18, levent 0x90a |
|---|
| 54 | //#define SD_READONLY_IDX 2 |
|---|
| [1397] | 55 | //#define USB_MASK 0x04000000 // Found @0xffb97c48, levent 0x902 |
|---|
| [1328] | 56 | //#define USB_IDX 2 |
|---|
| 57 | |
|---|
| 58 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 59 | //static KeyMap keymap[] = { |
|---|
| [1397] | 60 | // { 0, KEY_UP ,0x00000400 }, // Found @0xffb97b50, levent 0x04 |
|---|
| 61 | // { 0, KEY_DOWN ,0x00000800 }, // Found @0xffb97b58, levent 0x05 |
|---|
| 62 | // { 0, KEY_LEFT ,0x00001000 }, // Found @0xffb97b60, levent 0x06 |
|---|
| 63 | // { 0, KEY_RIGHT ,0x00002000 }, // Found @0xffb97b68, levent 0x07 |
|---|
| 64 | // { 0, KEY_SET ,0x00004000 }, // Found @0xffb97b70, levent 0x08 |
|---|
| 65 | // { 0, KEY_DISPLAY ,0x00020000 }, // Found @0xffb97b88, levent 0x0a |
|---|
| 66 | // { 0, KEY_MENU ,0x00040000 }, // Found @0xffb97b90, levent 0x09 |
|---|
| 67 | // { 2, KEY_SHOOT_FULL ,0x00000300 }, // Found @0xffb97bf0, levent 0x01 |
|---|
| 68 | // { 2, KEY_SHOOT_FULL_ONLY ,0x00000200 }, // Found @0xffb97bf0, levent 0x01 |
|---|
| 69 | // { 2, KEY_SHOOT_HALF ,0x00000100 }, // Found @0xffb97be8, levent 0x00 |
|---|
| [1328] | 70 | // { 0, 0, 0 } |
|---|
| 71 | //}; |
|---|
| 72 | |
|---|
| 73 | // Values below go in 'platform_camera.h': |
|---|
| 74 | //#define CAM_DRYOS 1 |
|---|
| 75 | //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher |
|---|
| 76 | //#define CAM_RAW_ROWPIX 4464 // Found @0xff9578f0 |
|---|
| 77 | //#define CAM_RAW_ROWS 3276 // Found @0xff9578fc |
|---|
| 78 | //#undef CAM_UNCACHED_BIT |
|---|
| 79 | //#define CAM_UNCACHED_BIT 0x40000000 // Found @0xff83afdc |
|---|
| 80 | |
|---|
| [1444] | 81 | // Misc stuff |
|---|
| 82 | DEF(ctypes, 0xffb963ba) |
|---|
| 83 | |
|---|
| [1636] | 84 | // For capt_seq.c |
|---|
| 85 | //static long *nrflag = (long*)(0x8608+0x08); // Found @ ff995754 & ff99576c |
|---|
| 86 | //#define NR_AUTO (0) // have to explictly reset value back to 0 to enable auto |
|---|
| 87 | |
|---|
| [1328] | 88 | // Stubs below matched 100%. |
|---|
| 89 | // Name Address Comp to stubs_entry_2.S |
|---|
| 90 | NSTUB(AllocateMemory ,0xffaee234) //101 |
|---|
| 91 | NSTUB(AllocateUncacheableMemory ,0xff83af98) //112 |
|---|
| 92 | NSTUB(Close ,0xff8370dc) //101 |
|---|
| 93 | NSTUB(CreateTask ,0xff81e8a0) //101 |
|---|
| 94 | NSTUB(DebugAssert ,0xff81eb78) //111 |
|---|
| [1612] | 95 | NSTUB(DeleteDirectory_Fut ,0xff836b38) // 1 |
|---|
| [1328] | 96 | NSTUB(DeleteFile_Fut ,0xff836a54) //112 |
|---|
| 97 | NSTUB(DoAFLock ,0xff838ab8) //102 |
|---|
| 98 | NSTUB(EnterToCompensationEVF ,0xff838d44) //104 |
|---|
| 99 | NSTUB(ExecuteEventProcedure ,0xff895cc4) // 1 |
|---|
| 100 | NSTUB(ExitFromCompensationEVF ,0xff838d88) //104 |
|---|
| 101 | NSTUB(ExitTask ,0xff81eb30) //101 |
|---|
| 102 | NSTUB(ExpCtrlTool_StartContiAE ,0xff8474fc) //104 |
|---|
| 103 | NSTUB(ExpCtrlTool_StopContiAE ,0xff847688) //104 |
|---|
| 104 | NSTUB(Fclose_Fut ,0xff836bd0) //101 |
|---|
| 105 | NSTUB(Feof_Fut ,0xff836dbc) // 1 |
|---|
| 106 | NSTUB(Fflush_Fut ,0xff836df8) // 1 |
|---|
| 107 | NSTUB(Fgets_Fut ,0xff836d24) // 1 |
|---|
| 108 | NSTUB(Fopen_Fut ,0xff836b90) //101 |
|---|
| 109 | NSTUB(Fread_Fut ,0xff836c7c) //101 |
|---|
| 110 | NSTUB(FreeMemory ,0xffaee22c) //101 |
|---|
| 111 | NSTUB(FreeUncacheableMemory ,0xff83afd8) //112 |
|---|
| 112 | NSTUB(Fseek_Fut ,0xff836d70) //101 |
|---|
| 113 | NSTUB(Fwrite_Fut ,0xff836cd0) //101 |
|---|
| 114 | NSTUB(GetBatteryTemperature ,0xff8697ac) //102 |
|---|
| 115 | NSTUB(GetCCDTemperature ,0xff869738) //102 |
|---|
| 116 | NSTUB(GetCurrentAvValue ,0xff980704) //102 |
|---|
| 117 | NSTUB(GetDrive_ClusterSize ,0xff87724c) // 4 |
|---|
| 118 | NSTUB(GetDrive_FreeClusters ,0xff8772ac) // 4 |
|---|
| 119 | NSTUB(GetDrive_TotalClusters ,0xff877280) // 3 |
|---|
| 120 | NSTUB(GetFocusLensSubjectDistance ,0xff97eb04) //102 |
|---|
| 121 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xff97ef7c) // 3 |
|---|
| 122 | NSTUB(GetImageFolder ,0xff95f174) //106 |
|---|
| 123 | NSTUB(GetKbdState ,0xff865a28) //109 |
|---|
| 124 | NSTUB(GetMemInfo ,0xff81a264) // 3 |
|---|
| 125 | NSTUB(GetOpticalTemperature ,0xff869820) //102 |
|---|
| 126 | NSTUB(GetParameterData ,0xff9c2898) //101 |
|---|
| 127 | NSTUB(GetPropertyCase ,0xff8999cc) //102 |
|---|
| 128 | NSTUB(GetSystemTime ,0xffaee28c) //101 |
|---|
| 129 | NSTUB(GetZoomLensCurrentPoint ,0xff87e9c4) //102 |
|---|
| 130 | NSTUB(GetZoomLensCurrentPosition ,0xff986530) //102 |
|---|
| 131 | NSTUB(GiveSemaphore ,0xff83a9b4) //112 |
|---|
| 132 | NSTUB(IsStrobeChargeCompleted ,0xff8ec16c) //102 |
|---|
| 133 | NSTUB(LEDDrive ,0xff864bd4) //103 |
|---|
| 134 | NSTUB(LocalTime ,0xff8935ac) // 1 |
|---|
| 135 | NSTUB(LockMainPower ,0xff8a0294) //103 |
|---|
| 136 | NSTUB(Lseek ,0xff8371f8) //101 |
|---|
| 137 | NSTUB(MakeDirectory_Fut ,0xff836ac8) // 1 |
|---|
| 138 | NSTUB(MoveFocusLensToDistance ,0xffb5301c) //102 |
|---|
| 139 | NSTUB(MoveIrisWithAv ,0xffae9040) //102 |
|---|
| 140 | NSTUB(MoveZoomLensWithPoint ,0xffae9738) //102 |
|---|
| 141 | NSTUB(NewTaskShell ,0xff8993e8) //103 |
|---|
| 142 | NSTUB(Open ,0xff837070) //101 |
|---|
| 143 | NSTUB(PB2Rec ,0xff8a30fc) //104 |
|---|
| 144 | NSTUB(PT_MoveDigitalZoomToWide ,0xff883c30) //102 |
|---|
| 145 | NSTUB(PT_MoveOpticalZoomAt ,0xff883c08) //102 |
|---|
| 146 | NSTUB(PT_PlaySound ,0xff88e660) // 4 |
|---|
| 147 | NSTUB(PostLogicalEventForNotPowerType ,0xff89e02c) //103 |
|---|
| 148 | NSTUB(PostLogicalEventToUI ,0xff89e078) //103 |
|---|
| 149 | NSTUB(PutInNdFilter ,0xffb50c90) //102 |
|---|
| 150 | NSTUB(PutOutNdFilter ,0xffb50cc8) //102 |
|---|
| 151 | NSTUB(Read ,0xff81ad74) //101 |
|---|
| 152 | NSTUB(ReadFastDir ,0xfface0b0) // 4 |
|---|
| 153 | NSTUB(Rec2PB ,0xff8a1b40) //104 |
|---|
| 154 | NSTUB(RefreshPhysicalScreen ,0xff8b8114) //104 |
|---|
| 155 | NSTUB(Remove ,0xff837110) // 4 |
|---|
| 156 | NSTUB(RenameFile_Fut ,0xff8369c0) // 4 |
|---|
| 157 | NSTUB(Restart ,0xff83c788) //106 |
|---|
| 158 | NSTUB(ScreenLock ,0xff8b9344) // 4 |
|---|
| 159 | NSTUB(ScreenUnlock ,0xff8b93a8) // 3 |
|---|
| 160 | NSTUB(SetAE_ShutterSpeed ,0xffb55e64) //102 |
|---|
| 161 | NSTUB(SetAutoShutdownTime ,0xff8a0308) //103 |
|---|
| 162 | NSTUB(SetCurrentCaptureModeType ,0xff8a922c) //101 |
|---|
| 163 | NSTUB(SetFileTimeStamp ,0xff837378) // 4 |
|---|
| 164 | NSTUB(SetLogicalEventActive ,0xff89ffd0) //101 |
|---|
| 165 | NSTUB(SetParameterData ,0xff9c2770) //101 |
|---|
| 166 | NSTUB(SetPropertyCase ,0xff8998a4) //102 |
|---|
| 167 | NSTUB(SetScriptMode ,0xff8a0020) //101 |
|---|
| 168 | NSTUB(SleepTask ,0xff83ac1c) //101 |
|---|
| 169 | NSTUB(TakeSemaphore ,0xff83a8e4) //101 |
|---|
| 170 | NSTUB(TurnOffBackLight ,0xff8b059c) //104 |
|---|
| 171 | NSTUB(TurnOnBackLight ,0xff8b0584) //104 |
|---|
| 172 | NSTUB(UIFS_WriteFirmInfoToFile ,0xff9aef3c) //101 |
|---|
| 173 | NSTUB(UnlockAF ,0xff838af0) //102 |
|---|
| 174 | NSTUB(UnlockMainPower ,0xff8a01e8) //103 |
|---|
| [1424] | 175 | NSTUB(UpdateMBROnFlash ,0xff8770cc) //105 |
|---|
| [1328] | 176 | NSTUB(VbattGet ,0xff833178) //103 |
|---|
| 177 | NSTUB(Write ,0xff83716c) //101 |
|---|
| 178 | NSTUB(WriteSDCard ,0xff96db38) //108 |
|---|
| 179 | NSTUB(_log ,0xffb93d04) //111 |
|---|
| 180 | NSTUB(_log10 ,0xffb92c48) //112 |
|---|
| 181 | NSTUB(_pow ,0xffb92db8) //114 |
|---|
| 182 | NSTUB(_sqrt ,0xffb950d0) // 1 |
|---|
| 183 | NSTUB(add_ptp_handler ,0xffa8ec64) // 3 |
|---|
| 184 | NSTUB(apex2us ,0xffa4ea74) // 4 |
|---|
| 185 | NSTUB(close ,0xff81ab8c) // 1 |
|---|
| 186 | NSTUB(closedir ,0xffacdf0c) // 4 |
|---|
| 187 | NSTUB(err_init_task ,0xff815fd4) // 4 |
|---|
| 188 | NSTUB(exmem_alloc ,0xff8944f8) //103 |
|---|
| 189 | NSTUB(free ,0xff814244) //112 |
|---|
| 190 | NSTUB(kbd_p1_f ,0xff834a68) //109 |
|---|
| 191 | NSTUB(kbd_p1_f_cont ,0xff834a74) //109 |
|---|
| 192 | NSTUB(kbd_p2_f ,0xff8342b8) //109 |
|---|
| 193 | NSTUB(kbd_read_keys ,0xff8349f0) //109 |
|---|
| 194 | NSTUB(kbd_read_keys_r2 ,0xff8651a4) //109 |
|---|
| 195 | NSTUB(lseek ,0xff8371f8) //101 |
|---|
| 196 | NSTUB(malloc ,0xff8141e8) //112 |
|---|
| 197 | NSTUB(memcmp ,0xff8206d0) //101 |
|---|
| 198 | NSTUB(memcpy ,0xff840750) //101 |
|---|
| 199 | NSTUB(memset ,0xffa4da70) //101 |
|---|
| 200 | NSTUB(mkdir ,0xff837578) // 4 |
|---|
| 201 | NSTUB(mktime_ext ,0xff8ba264) // 1 |
|---|
| 202 | NSTUB(open ,0xff81aadc) // 1 |
|---|
| 203 | NSTUB(opendir ,0xffacdf5c) // 4 |
|---|
| 204 | NSTUB(openfastdir ,0xffacdf5c) // 4 |
|---|
| 205 | NSTUB(qsort ,0xffb40868) // 4 |
|---|
| 206 | NSTUB(rand ,0xffa4dbb0) // 4 |
|---|
| 207 | NSTUB(read ,0xff81ad74) //101 |
|---|
| 208 | NSTUB(readfastdir ,0xfface0b0) // 4 |
|---|
| 209 | NSTUB(reboot_fw_update ,0xffad34d0) // 4 |
|---|
| 210 | NSTUB(rename ,0xff8369c0) // 4 |
|---|
| 211 | NSTUB(set_control_event ,0xff89fbc0) //111 |
|---|
| 212 | NSTUB(srand ,0xffa4dba4) // 4 |
|---|
| 213 | NSTUB(stat ,0xff837240) // 3 |
|---|
| 214 | NSTUB(strcat ,0xff8b9a20) // 1 |
|---|
| 215 | NSTUB(strchr ,0xff8140b4) // 1 |
|---|
| 216 | NSTUB(strcmp ,0xff82068c) //101 |
|---|
| 217 | NSTUB(strcpy ,0xff820674) //101 |
|---|
| 218 | NSTUB(strftime ,0xff8b9c6c) //113 |
|---|
| 219 | NSTUB(strlen ,0xff814100) //101 |
|---|
| 220 | NSTUB(strncmp ,0xff814068) // 1 |
|---|
| 221 | NSTUB(strncpy ,0xff81402c) // 1 |
|---|
| 222 | NSTUB(strrchr ,0xff8140d8) // 1 |
|---|
| 223 | NSTUB(strtol ,0xff840a30) //101 |
|---|
| 224 | NSTUB(strtolx ,0xff840834) //109 |
|---|
| 225 | DEF(task_CaptSeq ,0xff8868c4) //107 |
|---|
| 226 | DEF(task_ExpDrv ,0xff8d081c) //110 |
|---|
| 227 | DEF(task_InitFileModules ,0xff8a3b50) //107 |
|---|
| 228 | DEF(task_MovieRecord ,0xff88334c) //107 |
|---|
| 229 | DEF(task_PhySw ,0xff8345e8) //107 |
|---|
| 230 | DEF(task_RotaryEncoder ,0xff865d08) //107 |
|---|
| 231 | NSTUB(time ,0xff893b8c) // 2 |
|---|
| 232 | NSTUB(vsprintf ,0xff820638) // 4 |
|---|
| 233 | NSTUB(write ,0xff83716c) //101 |
|---|