| 1 | // !!! THIS FILE IS GENERATED. DO NOT EDIT. !!! |
|---|
| 2 | #include "stubs_asm.h" |
|---|
| 3 | |
|---|
| 4 | // Camera info: |
|---|
| 5 | // DRYOS R39 (DRYOS version 2.3, release #0039) |
|---|
| 6 | // Firmware Ver GM1.01C |
|---|
| 7 | // Canon DIGITAL IXUS 200 IS |
|---|
| 8 | |
|---|
| 9 | // Values for makefile.inc |
|---|
| 10 | // PLATFORMOSVER = 39 |
|---|
| 11 | // PLATFORMID = 12773 (0x31e5) // Found @ 0xfffe0130 |
|---|
| 12 | // MAXRAMADDR = 0x03ffffff |
|---|
| 13 | // KEYSYS = d4 // Found @ 0xffff3564 |
|---|
| 14 | // NEED_ENCODED_DISKBOOT = 3 // Found @ 0xffff3574 |
|---|
| 15 | |
|---|
| 16 | // Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S' |
|---|
| 17 | // Name Address Rule % Comp to stubs_entry_2.S |
|---|
| 18 | NSTUB(kbd_pwr_off ,0xff85ae98) // 2 64% |
|---|
| 19 | // ERROR: kbd_pwr_on is not found. //--- --- *** != 0x00000000 |
|---|
| 20 | |
|---|
| 21 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 22 | // Firmware modemap table found @ff894674 -> ff890d94 -> ff978aa0 -> ffaab250 -> ffbda9ac |
|---|
| 23 | // Mode 32774 in firmware but not in current modemap |
|---|
| 24 | // Mode 33288 in firmware but not in current modemap |
|---|
| 25 | // Mode 33307 in firmware but not in current modemap |
|---|
| 26 | // Mode 33308 in firmware but not in current modemap |
|---|
| 27 | // Mode 32797 in firmware but not in current modemap |
|---|
| 28 | // Mode 32786 in firmware but not in current modemap |
|---|
| 29 | // Mode 32788 in firmware but not in current modemap |
|---|
| 30 | // Mode 32789 in firmware but not in current modemap |
|---|
| 31 | // Mode 32785 in firmware but not in current modemap |
|---|
| 32 | // Mode 33295 in firmware but not in current modemap |
|---|
| 33 | // Mode 32784 in firmware but not in current modemap |
|---|
| 34 | // Mode 2601 in firmware but not in current modemap |
|---|
| 35 | // Mode 2602 in firmware but not in current modemap |
|---|
| 36 | // Current modemap entry not found in firmware - MODE_SCN_COLOR_SWAP 16924 |
|---|
| 37 | // Current modemap entry not found in firmware - MODE_SCN_COLOR_ACCENT 16923 |
|---|
| 38 | // Current modemap entry not found in firmware - MODE_SCN_ISO_3200 16413 |
|---|
| 39 | // Current modemap entry not found in firmware - MODE_SCN_BEACH 16405 |
|---|
| 40 | // Current modemap entry not found in firmware - MODE_SCN_SNOW 16404 |
|---|
| 41 | // Current modemap entry not found in firmware - MODE_SCN_SUNSET 16402 |
|---|
| 42 | // Current modemap entry not found in firmware - MODE_SCN_INDOOR 16401 |
|---|
| 43 | // Current modemap entry not found in firmware - MODE_SCN_NIGHT_SCENE 16398 |
|---|
| 44 | // Current modemap entry not found in firmware - MODE_SPORTS 33287 |
|---|
| 45 | // Current modemap entry not found in firmware - MODE_VIDEO_STD 3622 |
|---|
| 46 | // Current modemap entry not found in firmware - MODE_LANDSCAPE 32780 |
|---|
| 47 | // Current modemap entry not found in firmware - MODE_M 32769 |
|---|
| 48 | // Current modemap entry not found in firmware - MODE_AV 32770 |
|---|
| 49 | // Current modemap entry not found in firmware - MODE_TV 32771 |
|---|
| 50 | |
|---|
| 51 | // Values below can be overridden in 'stubs_min.S': |
|---|
| 52 | DEF(physw_status ,0x00044558) // Found @0xff8335a8 |
|---|
| 53 | DEF(physw_run ,0x00001c44) // Found @0xff833200 |
|---|
| 54 | DEF(levent_table ,0xffb7a2a0) // Found @0xffb7a2a0 |
|---|
| 55 | DEF(FlashParamsTable ,0xffbdab94) // Found @0xffbdab94 |
|---|
| 56 | DEF(movie_status ,0x000067e0) // Found @0xff94ac20 |
|---|
| 57 | DEF(full_screen_refresh ,0x0001b2dc) // Found @0xff9f751c |
|---|
| 58 | DEF(canon_menu_active ,0x00002ec8) // Found @0xff889704 |
|---|
| 59 | DEF(canon_shoot_menu_active ,0x00007b09) // Found @0xff98d9ac |
|---|
| 60 | DEF(playrec_mode ,0x00002bfc) // Found @0xff87bbdc |
|---|
| 61 | DEF(zoom_status ,0x0001e3d4) // Found @0xffaadcdc |
|---|
| 62 | DEF(some_flag_for_af_scan ,0x00006cd4) // Found @0xff94dc3c |
|---|
| 63 | // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c). |
|---|
| 64 | // each entry contains 3 int value(s), the first is the zoom focus length. |
|---|
| 65 | // there are 12 entries in the table - set NUM_FL to 12 |
|---|
| 66 | DEF(focus_len_table ,0xfffe2ac8) // Found @0xfffe2ac8 |
|---|
| 67 | DEF(zoom_busy ,0x0000670c) // Found @0xff946e00 |
|---|
| 68 | DEF(focus_busy ,0x00006608) // Found @0xff941f28 |
|---|
| 69 | DEF(recreview_hold ,0x00003818) // Found @0xff89a778 |
|---|
| 70 | |
|---|
| 71 | // Values below go in 'lib.c': |
|---|
| 72 | //void *vid_get_bitmap_fb() { return (void*)0x40431000; } // Found @0xff853588 |
|---|
| 73 | //void *vid_get_viewport_fb() { return (void*)0x408cb700; } // Found @0xffb0b880 |
|---|
| 74 | //void *vid_get_viewport_fb_d() { return (void*)(*(int*)(0x28f0+0x58)); } // Found @0xff86d354 & 0xff86d38c |
|---|
| 75 | //char *camera_jpeg_count_str() { return (char*)0x00084ca4; } // Found @0xff9e8aa8 |
|---|
| 76 | //long hook_raw_size() { return 0x011ca240; } // Found @0xffb0e710 |
|---|
| 77 | //int get_flash_params_count(void) { return 0x84; } // Found @0xff979b5c |
|---|
| 78 | |
|---|
| 79 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 80 | //#define SD_READONLY_FLAG 0x00020000 // Found @0xffb404e8, levent 0x90a |
|---|
| 81 | //#define SD_READONLY_IDX 2 |
|---|
| 82 | //#define USB_MASK 0x00100000 // Found @0xffb40500, levent 0x902 |
|---|
| 83 | //#define USB_IDX 2 |
|---|
| 84 | |
|---|
| 85 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 86 | //static KeyMap keymap[] = { |
|---|
| 87 | // { 2, KEY_SHOOT_FULL ,0x00000300 }, // Found @0xffb404ac, levent 0x01 |
|---|
| 88 | // { 2, KEY_SHOOT_FULL_ONLY ,0x00000200 }, // Found @0xffb404ac, levent 0x01 |
|---|
| 89 | // { 2, KEY_SHOOT_HALF ,0x00000100 }, // Found @0xffb404a0, levent 0x00 |
|---|
| 90 | // { 2, KEY_MENU ,0x00000001 }, // Found @0xffb40440, levent 0x09 |
|---|
| 91 | // { 2, KEY_SET ,0x00000002 }, // Found @0xffb4044c, levent 0x08 |
|---|
| 92 | // { 2, KEY_ZOOM_IN ,0x00000004 }, // Found @0xffb40458, levent 0x02 |
|---|
| 93 | // { 2, KEY_ZOOM_OUT ,0x00000008 }, // Found @0xffb40464, levent 0x03 |
|---|
| 94 | // { 2, KEY_LEFT ,0x00000010 }, // Found @0xffb40470, levent 0x06 |
|---|
| 95 | // { 2, KEY_RIGHT ,0x00000020 }, // Found @0xffb4047c, levent 0x07 |
|---|
| 96 | // { 2, KEY_DOWN ,0x00000040 }, // Found @0xffb40488, levent 0x05 |
|---|
| 97 | // { 2, KEY_UP ,0x00000080 }, // Found @0xffb40494, levent 0x04 |
|---|
| 98 | // { 0, 0, 0 } |
|---|
| 99 | //}; |
|---|
| 100 | |
|---|
| 101 | // Values below go in 'platform_camera.h': |
|---|
| 102 | //#define CAM_DRYOS 1 |
|---|
| 103 | //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher |
|---|
| 104 | //#define CAM_RAW_ROWPIX 4080 // Found @0xff91bfbc |
|---|
| 105 | //#define CAM_RAW_ROWS 3048 // Found @0xff91bfc4 |
|---|
| 106 | //#undef CAM_UNCACHED_BIT |
|---|
| 107 | //#define CAM_UNCACHED_BIT 0x40000000 // Found @0xff838a1c |
|---|
| 108 | |
|---|
| 109 | // Misc stuff |
|---|
| 110 | DEF(ctypes, 0xffb3eb3e) |
|---|
| 111 | |
|---|
| 112 | // For capt_seq.c |
|---|
| 113 | //static long *nrflag = (long*)(0x6cb8-0x08); // Found @ ff94ff04 & ff94ff20 |
|---|
| 114 | |
|---|
| 115 | // Stubs below matched 100%. |
|---|
| 116 | // Name Address Comp to stubs_entry_2.S |
|---|
| 117 | NSTUB(AllocateMemory ,0xffa9edb0) //101 |
|---|
| 118 | NSTUB(AllocateUncacheableMemory ,0xff8389d8) //112 |
|---|
| 119 | NSTUB(Close ,0xff835408) //101 |
|---|
| 120 | NSTUB(CreateTask ,0xff81e5b4) //101 |
|---|
| 121 | NSTUB(DebugAssert ,0xff81e88c) //111 |
|---|
| 122 | NSTUB(DeleteDirectory_Fut ,0xff834e78) // 1 |
|---|
| 123 | NSTUB(DeleteFile_Fut ,0xff834d94) //112 |
|---|
| 124 | NSTUB(DoAFLock ,0xff8368f0) //102 |
|---|
| 125 | NSTUB(EnterToCompensationEVF ,0xff836ae0) //104 |
|---|
| 126 | NSTUB(ExecuteEventProcedure ,0xff884de0) // 1 |
|---|
| 127 | NSTUB(ExitFromCompensationEVF ,0xff836b24) //104 |
|---|
| 128 | NSTUB(ExitTask ,0xff81e844) //101 |
|---|
| 129 | NSTUB(ExpCtrlTool_StartContiAE ,0xff844254) //104 |
|---|
| 130 | NSTUB(ExpCtrlTool_StopContiAE ,0xff84432c) //104 |
|---|
| 131 | NSTUB(Fclose_Fut ,0xff834f10) //101 |
|---|
| 132 | NSTUB(Feof_Fut ,0xff8350fc) // 1 |
|---|
| 133 | NSTUB(Fflush_Fut ,0xff835138) // 1 |
|---|
| 134 | NSTUB(Fgets_Fut ,0xff835064) // 1 |
|---|
| 135 | NSTUB(Fopen_Fut ,0xff834ed0) //101 |
|---|
| 136 | NSTUB(Fread_Fut ,0xff834fbc) //101 |
|---|
| 137 | NSTUB(FreeMemory ,0xffa9eda8) //101 |
|---|
| 138 | NSTUB(FreeUncacheableMemory ,0xff838a18) //112 |
|---|
| 139 | NSTUB(Fseek_Fut ,0xff8350b0) //101 |
|---|
| 140 | NSTUB(Fwrite_Fut ,0xff835010) //101 |
|---|
| 141 | NSTUB(GetBatteryTemperature ,0xff85e2ac) //102 |
|---|
| 142 | NSTUB(GetCCDTemperature ,0xff85e238) //102 |
|---|
| 143 | NSTUB(GetCurrentAvValue ,0xff9446cc) //102 |
|---|
| 144 | NSTUB(GetDrive_ClusterSize ,0xff86bb04) // 3 |
|---|
| 145 | NSTUB(GetDrive_FreeClusters ,0xff86bb64) // 3 |
|---|
| 146 | NSTUB(GetDrive_TotalClusters ,0xff86bb38) // 3 |
|---|
| 147 | NSTUB(GetFocusLensSubjectDistance ,0xff942ca0) //102 |
|---|
| 148 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xff9430e8) // 3 |
|---|
| 149 | NSTUB(GetImageFolder ,0xff923de8) //106 |
|---|
| 150 | NSTUB(GetKbdState ,0xff85ae80) //109 |
|---|
| 151 | NSTUB(GetMemInfo ,0xff81a070) // 3 |
|---|
| 152 | NSTUB(GetOpticalTemperature ,0xff85e320) //102 |
|---|
| 153 | NSTUB(GetParameterData ,0xff979b1c) //101 |
|---|
| 154 | NSTUB(GetPropertyCase ,0xff888b48) //102 |
|---|
| 155 | NSTUB(GetSystemTime ,0xffa9ee08) //101 |
|---|
| 156 | NSTUB(GetVRAMHPixelsSize ,0xff8e1e14) //102 |
|---|
| 157 | NSTUB(GetVRAMVPixelsSize ,0xff8e1e20) //102 |
|---|
| 158 | NSTUB(GetZoomLensCurrentPoint ,0xff947174) //102 |
|---|
| 159 | NSTUB(GetZoomLensCurrentPosition ,0xffa904f8) //102 |
|---|
| 160 | NSTUB(GiveSemaphore ,0xff8383f4) //112 |
|---|
| 161 | NSTUB(IsStrobeChargeCompleted ,0xff8c3a24) //102 |
|---|
| 162 | NSTUB(LEDDrive ,0xff85a31c) //103 |
|---|
| 163 | NSTUB(LocalTime ,0xff882754) // 1 |
|---|
| 164 | NSTUB(LockMainPower ,0xff8909b0) //103 |
|---|
| 165 | NSTUB(Lseek ,0xff835524) //101 |
|---|
| 166 | NSTUB(MakeDirectory_Fut ,0xff834e08) // 1 |
|---|
| 167 | NSTUB(MoveFocusLensToDistance ,0xffb08268) //102 |
|---|
| 168 | NSTUB(MoveIrisWithAv ,0xffa9c344) //102 |
|---|
| 169 | NSTUB(MoveZoomLensWithPoint ,0xffa9c990) //102 |
|---|
| 170 | NSTUB(NewTaskShell ,0xff8885f4) //103 |
|---|
| 171 | NSTUB(Open ,0xff8353b0) //101 |
|---|
| 172 | NSTUB(PB2Rec ,0xff8939dc) //104 |
|---|
| 173 | NSTUB(PT_MoveDigitalZoomToWide ,0xff8747cc) //102 |
|---|
| 174 | NSTUB(PT_MoveOpticalZoomAt ,0xff8747a4) //102 |
|---|
| 175 | NSTUB(PT_PlaySound ,0xff87d8a8) //102 |
|---|
| 176 | NSTUB(PostLogicalEventForNotPowerType ,0xff88e7b8) //103 |
|---|
| 177 | NSTUB(PostLogicalEventToUI ,0xff88e804) //103 |
|---|
| 178 | NSTUB(PutInNdFilter ,0xffb05ec8) //102 |
|---|
| 179 | NSTUB(PutOutNdFilter ,0xffb05f00) //102 |
|---|
| 180 | NSTUB(Read ,0xff81ab78) //101 |
|---|
| 181 | NSTUB(ReadFastDir ,0xffa7e1f4) // 3 |
|---|
| 182 | NSTUB(Rec2PB ,0xff893a1c) //104 |
|---|
| 183 | NSTUB(RefreshPhysicalScreen ,0xff9f8694) //104 |
|---|
| 184 | NSTUB(Remove ,0xff83543c) // 4 |
|---|
| 185 | NSTUB(RenameFile_Fut ,0xff834d00) // 4 |
|---|
| 186 | NSTUB(Restart ,0xff83a130) //106 |
|---|
| 187 | NSTUB(ScreenLock ,0xff9f98b4) // 3 |
|---|
| 188 | NSTUB(ScreenUnlock ,0xff9f98dc) // 3 |
|---|
| 189 | NSTUB(SetAE_ShutterSpeed ,0xffb0a9f8) //102 |
|---|
| 190 | NSTUB(SetAutoShutdownTime ,0xff890a24) //103 |
|---|
| 191 | NSTUB(SetCurrentCaptureModeType ,0xff897d04) //101 |
|---|
| 192 | NSTUB(SetFileAttributes ,0xff8356d8) // 3 |
|---|
| 193 | NSTUB(SetFileTimeStamp ,0xff835694) // 3 |
|---|
| 194 | NSTUB(SetLogicalEventActive ,0xff8906fc) //101 |
|---|
| 195 | NSTUB(SetParameterData ,0xff979a8c) //101 |
|---|
| 196 | NSTUB(SetPropertyCase ,0xff888a44) //102 |
|---|
| 197 | NSTUB(SetScriptMode ,0xff89074c) //101 |
|---|
| 198 | NSTUB(SleepTask ,0xff83865c) //101 |
|---|
| 199 | NSTUB(TakeSemaphore ,0xff838324) //101 |
|---|
| 200 | NSTUB(TurnOffBackLight ,0xff89e2b8) //104 |
|---|
| 201 | NSTUB(TurnOnBackLight ,0xff89e2a0) //104 |
|---|
| 202 | NSTUB(UIFS_WriteFirmInfoToFile ,0xff9642c8) //105 |
|---|
| 203 | NSTUB(UnlockAF ,0xff836928) //102 |
|---|
| 204 | NSTUB(UnlockMainPower ,0xff890904) //103 |
|---|
| 205 | NSTUB(UnsetZoomForMovie ,0xff97fdd8) //104 |
|---|
| 206 | NSTUB(UpdateMBROnFlash ,0xff86b984) //105 |
|---|
| 207 | NSTUB(VbattGet ,0xff831e04) //103 |
|---|
| 208 | NSTUB(Write ,0xff835498) //101 |
|---|
| 209 | NSTUB(WriteSDCard ,0xff933968) //108 |
|---|
| 210 | NSTUB(_log ,0xffb3bc6c) //111 |
|---|
| 211 | NSTUB(_log10 ,0xffb3a8f8) //112 |
|---|
| 212 | NSTUB(_pow ,0xffb3aa68) //114 |
|---|
| 213 | NSTUB(_sqrt ,0xffb3d8f0) // 1 |
|---|
| 214 | NSTUB(add_ptp_handler ,0xffa3f98c) // 3 |
|---|
| 215 | NSTUB(apex2us ,0xff9fd42c) // 4 |
|---|
| 216 | NSTUB(close ,0xff81a990) // 1 |
|---|
| 217 | NSTUB(closedir ,0xffa7e07c) // 3 |
|---|
| 218 | NSTUB(err_init_task ,0xff815f28) // 4 |
|---|
| 219 | NSTUB(exmem_alloc ,0xff883614) //103 |
|---|
| 220 | NSTUB(free ,0xff814138) //112 |
|---|
| 221 | NSTUB(kbd_p1_f ,0xff833624) //109 |
|---|
| 222 | NSTUB(kbd_p1_f_cont ,0xff833630) //109 |
|---|
| 223 | NSTUB(kbd_p2_f ,0xff832ecc) //109 |
|---|
| 224 | NSTUB(kbd_read_keys ,0xff8335a8) //109 |
|---|
| 225 | NSTUB(kbd_read_keys_r2 ,0xff85a83c) //109 |
|---|
| 226 | NSTUB(lseek ,0xff835524) //101 |
|---|
| 227 | NSTUB(malloc ,0xff8140dc) //112 |
|---|
| 228 | NSTUB(memcmp ,0xff8203e8) //101 |
|---|
| 229 | NSTUB(memcpy ,0xff83df94) //101 |
|---|
| 230 | NSTUB(memset ,0xff9fbfa0) //101 |
|---|
| 231 | NSTUB(mkdir ,0xff83587c) // 3 |
|---|
| 232 | NSTUB(mktime_ext ,0xff8a5d68) // 1 |
|---|
| 233 | NSTUB(open ,0xff81a8e0) // 1 |
|---|
| 234 | NSTUB(opendir ,0xffa7e0c0) // 3 |
|---|
| 235 | NSTUB(openfastdir ,0xffa7e0c0) // 3 |
|---|
| 236 | NSTUB(qsort ,0xff9fc560) // 1 |
|---|
| 237 | NSTUB(rand ,0xff8204f0) // 1 |
|---|
| 238 | NSTUB(read ,0xff81ab78) //101 |
|---|
| 239 | NSTUB(reboot_fw_update ,0xffa83704) // 1 |
|---|
| 240 | NSTUB(rename ,0xff834d00) // 4 |
|---|
| 241 | NSTUB(set_control_event ,0xff89032c) //111 |
|---|
| 242 | NSTUB(srand ,0xff8204e4) // 1 |
|---|
| 243 | NSTUB(stat ,0xff835560) // 3 |
|---|
| 244 | // ALT: NSTUB(stat, 0xff868f48) // 3 31/0 |
|---|
| 245 | NSTUB(strcat ,0xff8a5524) // 1 |
|---|
| 246 | NSTUB(strchr ,0xff813fc0) // 1 |
|---|
| 247 | NSTUB(strcmp ,0xff8203a4) //101 |
|---|
| 248 | NSTUB(strcpy ,0xff82038c) //101 |
|---|
| 249 | NSTUB(strftime ,0xff8a5770) // 1 |
|---|
| 250 | NSTUB(strlen ,0xff81400c) //101 |
|---|
| 251 | NSTUB(strncmp ,0xff813f74) // 1 |
|---|
| 252 | NSTUB(strncpy ,0xff813f38) // 1 |
|---|
| 253 | NSTUB(strrchr ,0xff813fe4) // 1 |
|---|
| 254 | NSTUB(strtol ,0xff83e274) //101 |
|---|
| 255 | NSTUB(strtolx ,0xff83e078) //109 |
|---|
| 256 | DEF(task_CaptSeq ,0xff876e70) //107 |
|---|
| 257 | DEF(task_ExpDrv ,0xff8ba2d4) //110 |
|---|
| 258 | DEF(task_InitFileModules ,0xff894500) //107 |
|---|
| 259 | DEF(task_MovieRecord ,0xff94af08) //107 |
|---|
| 260 | DEF(task_PhySw ,0xff8331fc) //107 |
|---|
| 261 | DEF(task_RotaryEncoder ,0xff85afb0) //107 |
|---|
| 262 | NSTUB(time ,0xff882ccc) // 2 |
|---|
| 263 | NSTUB(vsprintf ,0xff820350) // 1 |
|---|
| 264 | NSTUB(write ,0xff835498) //101 |
|---|