| 1 | // !!! THIS FILE IS GENERATED. DO NOT EDIT. !!! |
|---|
| 2 | #include "stubs_asm.h" |
|---|
| 3 | |
|---|
| 4 | // Camera info: |
|---|
| 5 | // DRYOS R47 (DRYOS version 2.3, release #0047) |
|---|
| 6 | // Firmware Ver GM1.00A |
|---|
| 7 | // Canon PowerShot SX220 HS |
|---|
| 8 | |
|---|
| 9 | // Values for makefile.inc |
|---|
| 10 | // PLATFORMID = 12844 (0x322c) // Found @ 0xfff40040 |
|---|
| 11 | // MAXRAMADDR = 0x07ffffff |
|---|
| 12 | // KEYSYS = d4c // Found @ 0xffff3610 |
|---|
| 13 | // NEED_ENCODED_DISKBOOT = 6 // Found @ 0xffff3620 |
|---|
| 14 | |
|---|
| 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 | // ERROR: SetFileAttributes is not found. //--- --- *** != 0x00000000 |
|---|
| 18 | //NSTUB(kbd_pwr_off ,0xff0565ac) // 2 60% *** != 0x00000000 |
|---|
| 19 | // ERROR: kbd_pwr_on is not found. //--- --- *** != 0x00000000 |
|---|
| 20 | //NSTUB(write ,0xff0270d8) //101 *** != 0xff00adb8 |
|---|
| 21 | |
|---|
| 22 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 23 | // Firmware modemap table found @ff0953cc -> ff091c94 -> ff1b2368 -> ff318d34 -> ff48a450 |
|---|
| 24 | // Current modemap entry not found in firmware - MODE_SCN_MONOCHROME 8754 |
|---|
| 25 | // Current modemap entry not found in firmware - MODE_SCN_TOY_CAMERA 8751 |
|---|
| 26 | // Current modemap entry not found in firmware - MODE_SCN_SUPER_VIVID 8742 |
|---|
| 27 | // Current modemap entry not found in firmware - MODE_SCN_MINIATURE 8748 |
|---|
| 28 | // Current modemap entry not found in firmware - MODE_SCN_FISHEYE 8747 |
|---|
| 29 | // Current modemap entry not found in firmware - MODE_SCN_POSTER_EFFECT 8743 |
|---|
| 30 | // Current modemap entry not found in firmware - MODE_SCN_COLOR_SWAP 8734 |
|---|
| 31 | // Current modemap entry not found in firmware - MODE_SCN_COLOR_ACCENT 8733 |
|---|
| 32 | |
|---|
| 33 | // Values below can be overridden in 'stubs_min.S': |
|---|
| 34 | DEF(physw_status ,0x000357a8) // Found @0xff024960 |
|---|
| 35 | DEF(physw_run ,0x00001c40) // Found @0xff0244f4 |
|---|
| 36 | DEF(levent_table ,0xff41646c) // Found @0xff41646c |
|---|
| 37 | DEF(FlashParamsTable ,0xff48a69c) // Found @0xff48a69c |
|---|
| 38 | DEF(movie_status ,0x00008594) // Found @0xff187064 |
|---|
| 39 | DEF(full_screen_refresh ,0x0000b35c) // Found @0xff23d628 |
|---|
| 40 | DEF(canon_menu_active ,0x00004274) // Found @0xff08b3f4 |
|---|
| 41 | DEF(canon_shoot_menu_active ,0x000098e9) // Found @0xff1ce4f8 |
|---|
| 42 | DEF(playrec_mode ,0x00003fa8) // Found @0xff07d778 |
|---|
| 43 | DEF(zoom_status ,0x0000f5c4) // Found @0xff31c3ec |
|---|
| 44 | DEF(some_flag_for_af_scan ,0x00008998) // Found @0xff18b738 |
|---|
| 45 | // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c). |
|---|
| 46 | // each entry contains 3 int value(s), the first is the zoom focus length. |
|---|
| 47 | // there are 126 entries in the table - set NUM_FL to 126 |
|---|
| 48 | DEF(focus_len_table ,0xfff4a3dc) // Found @0xfff4a3dc |
|---|
| 49 | DEF(zoom_busy ,0x000084bc) // Found @0xff1821e8 |
|---|
| 50 | DEF(focus_busy ,0x00008338) // Found @0xff17c768 |
|---|
| 51 | //DEF(recreview_hold ,0x00004d80) // Found @0xff09e130, ** != ** stubs_min = 0x000094c4 (0x93D4+0xF0) |
|---|
| 52 | |
|---|
| 53 | // Values below go in 'lib.c': |
|---|
| 54 | //void *vid_get_bitmap_fb() { return (void*)0x40471000; } // Found @0xff050f20 |
|---|
| 55 | //void *vid_get_viewport_fb() { return (void*)0x405d7980; } // Found @0xff371e8c |
|---|
| 56 | //void *vid_get_viewport_fb_d() { return (void*)(*(int*)(0x3c70+0x58)); } // Found @0xff06d2c8 & 0xff06d300 |
|---|
| 57 | //char *camera_jpeg_count_str() { return (char*)0x000ca790; } // Found @0xff2327fc |
|---|
| 58 | //long hook_raw_size() { return 0x0123eaf0; } // Found @0xff3753a0 |
|---|
| 59 | //int get_flash_params_count(void) { return 0xa0; } // Found @0xff1b33a0 |
|---|
| 60 | |
|---|
| 61 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 62 | //#define SD_READONLY_FLAG 0x00020000 // Found @0xff3b189c, levent 0x90a |
|---|
| 63 | //#define SD_READONLY_IDX 2 |
|---|
| 64 | //#define USB_MASK 0x04000000 // Found @0xff3b18cc, levent 0x902 |
|---|
| 65 | //#define USB_IDX 2 |
|---|
| 66 | |
|---|
| 67 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 68 | //static KeyMap keymap[] = { |
|---|
| 69 | // { 0, KEY_DISPLAY ,0x00000800 }, // Found @0xff3b180c, levent 0x0a |
|---|
| 70 | // { 0, KEY_UP ,0x00001000 }, // Found @0xff3b1814, levent 0x04 |
|---|
| 71 | // { 0, KEY_RIGHT ,0x00004000 }, // Found @0xff3b1824, levent 0x07 |
|---|
| 72 | // { 0, KEY_SET ,0x00010000 }, // Found @0xff3b1834, levent 0x08 |
|---|
| 73 | // { 0, KEY_DOWN ,0x00020000 }, // Found @0xff3b183c, levent 0x05 |
|---|
| 74 | // { 0, KEY_MENU ,0x00040000 }, // Found @0xff3b1844, levent 0x09 |
|---|
| 75 | // { 2, KEY_LEFT ,0x00000100 }, // Found @0xff3b1874, levent 0x06 |
|---|
| 76 | // { 2, KEY_SHOOT_FULL ,0x00002002 }, // Found @0xff3b1864, levent 0x01 |
|---|
| 77 | // { 2, KEY_SHOOT_HALF ,0x00002000 }, // Found @0xff3b1884, levent 0x00 |
|---|
| 78 | // { 2, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xff3b1864, levent 0x01 |
|---|
| 79 | // { 0, 0, 0 } |
|---|
| 80 | //}; |
|---|
| 81 | |
|---|
| 82 | // Values below go in 'platform_camera.h': |
|---|
| 83 | //#define CAM_DRYOS 1 |
|---|
| 84 | //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher |
|---|
| 85 | //#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher |
|---|
| 86 | //#define CAM_RAW_ROWPIX 4168 // Found @0xff15290c |
|---|
| 87 | //#define CAM_RAW_ROWS 3060 // Found @0xff152918 |
|---|
| 88 | //#undef CAM_UNCACHED_BIT |
|---|
| 89 | //#define CAM_UNCACHED_BIT 0x40000000 // Found @0xff02b88c |
|---|
| 90 | |
|---|
| 91 | // Misc stuff |
|---|
| 92 | DEF(ctypes, 0xff3aff12) |
|---|
| 93 | |
|---|
| 94 | // For capt_seq.c |
|---|
| 95 | //static long *nrflag = (long*)(0x89d4+0x08); // Found @ ff1903bc & ff190428 |
|---|
| 96 | //#define NR_AUTO (0) // have to explictly reset value back to 0 to enable auto |
|---|
| 97 | |
|---|
| 98 | // Stubs below matched 100%. |
|---|
| 99 | // Name Address Comp to stubs_entry_2.S |
|---|
| 100 | NSTUB(AllocateMemory ,0xff3075d0) //101 |
|---|
| 101 | NSTUB(AllocateUncacheableMemory ,0xff02b844) //112 |
|---|
| 102 | NSTUB(Close ,0xff027084) //101 |
|---|
| 103 | NSTUB(CreateTask ,0xff00e9b0) //101 |
|---|
| 104 | NSTUB(DebugAssert ,0xff00ec88) //111 |
|---|
| 105 | NSTUB(DeleteDirectory_Fut ,0xff026a80) // 1 |
|---|
| 106 | NSTUB(DeleteFile_Fut ,0xff02699c) //112 |
|---|
| 107 | NSTUB(DoAFLock ,0xff028bd8) //102 |
|---|
| 108 | NSTUB(EnterToCompensationEVF ,0xff028e74) //104 |
|---|
| 109 | NSTUB(ExecuteEventProcedure ,0xff086bdc) // 1 |
|---|
| 110 | NSTUB(ExitFromCompensationEVF ,0xff028eb8) //104 |
|---|
| 111 | NSTUB(ExitTask ,0xff00ec40) //101 |
|---|
| 112 | NSTUB(ExpCtrlTool_StartContiAE ,0xff037fe4) //104 |
|---|
| 113 | NSTUB(ExpCtrlTool_StopContiAE ,0xff0380bc) //104 |
|---|
| 114 | NSTUB(Fclose_Fut ,0xff026b18) //101 |
|---|
| 115 | NSTUB(Feof_Fut ,0xff026d04) // 1 |
|---|
| 116 | NSTUB(Fflush_Fut ,0xff026d40) // 1 |
|---|
| 117 | NSTUB(Fgets_Fut ,0xff026c6c) // 6 |
|---|
| 118 | NSTUB(Fopen_Fut ,0xff026ad8) //101 |
|---|
| 119 | NSTUB(Fread_Fut ,0xff026bc4) //101 |
|---|
| 120 | NSTUB(FreeMemory ,0xff3075c8) //101 |
|---|
| 121 | NSTUB(FreeUncacheableMemory ,0xff02b884) //112 |
|---|
| 122 | NSTUB(Fseek_Fut ,0xff026cb8) //101 |
|---|
| 123 | NSTUB(Fwrite_Fut ,0xff026c18) //101 |
|---|
| 124 | NSTUB(GetBatteryTemperature ,0xff05d010) //102 |
|---|
| 125 | NSTUB(GetCCDTemperature ,0xff05cf9c) //102 |
|---|
| 126 | NSTUB(GetCurrentAvValue ,0xff17f15c) //102 |
|---|
| 127 | NSTUB(GetDrive_ClusterSize ,0xff06adbc) // 6 |
|---|
| 128 | NSTUB(GetDrive_FreeClusters ,0xff06ae14) // 6 |
|---|
| 129 | NSTUB(GetDrive_TotalClusters ,0xff06adec) // 6 |
|---|
| 130 | NSTUB(GetFocusLensSubjectDistance ,0xff17d3ec) //102 |
|---|
| 131 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xff17d84c) // 3 |
|---|
| 132 | NSTUB(GetImageFolder ,0xff1598b8) // 6 |
|---|
| 133 | NSTUB(GetKbdState ,0xff056474) //109 |
|---|
| 134 | NSTUB(GetMemInfo ,0xff00a29c) // 3 |
|---|
| 135 | NSTUB(GetOpticalTemperature ,0xff05d084) //102 |
|---|
| 136 | NSTUB(GetParameterData ,0xff1b3360) //101 |
|---|
| 137 | NSTUB(GetPropertyCase ,0xff08a944) //102 |
|---|
| 138 | NSTUB(GetSystemTime ,0xff307628) //101 |
|---|
| 139 | NSTUB(GetZoomLensCurrentPoint ,0xff182660) //102 |
|---|
| 140 | NSTUB(GetZoomLensCurrentPosition ,0xff2f14cc) //102 |
|---|
| 141 | NSTUB(GiveSemaphore ,0xff02b23c) //112 |
|---|
| 142 | NSTUB(IsStrobeChargeCompleted ,0xff0e0cd0) //102 |
|---|
| 143 | NSTUB(LEDDrive ,0xff0557c0) //101 |
|---|
| 144 | NSTUB(LocalTime ,0xff08446c) // 6 |
|---|
| 145 | NSTUB(LockMainPower ,0xff091884) //103 |
|---|
| 146 | NSTUB(Lseek ,0xff0272a0) //101 |
|---|
| 147 | NSTUB(MakeDirectory_Fut ,0xff026a10) // 6 |
|---|
| 148 | NSTUB(MakeSDCardBootable ,0xff06b04c) //105 |
|---|
| 149 | NSTUB(MoveFocusLensToDistance ,0xff36e188) //102 |
|---|
| 150 | NSTUB(MoveIrisWithAv ,0xff303638) //102 |
|---|
| 151 | NSTUB(MoveZoomLensWithPoint ,0xff303dfc) //102 |
|---|
| 152 | NSTUB(NewTaskShell ,0xff08a38c) //101 |
|---|
| 153 | NSTUB(Open ,0xff026fbc) //101 |
|---|
| 154 | NSTUB(PB2Rec ,0xff094a5c) //104 |
|---|
| 155 | NSTUB(PT_MoveDigitalZoomToWide ,0xff0746e8) //102 |
|---|
| 156 | NSTUB(PT_MoveOpticalZoomAt ,0xff0746c0) //102 |
|---|
| 157 | NSTUB(PT_PlaySound ,0xff07f848) // 6 |
|---|
| 158 | NSTUB(PostLogicalEventForNotPowerType ,0xff08f3a8) //103 |
|---|
| 159 | NSTUB(PostLogicalEventToUI ,0xff08f3f4) //103 |
|---|
| 160 | NSTUB(PutInNdFilter ,0xff36bdd4) //102 |
|---|
| 161 | NSTUB(PutOutNdFilter ,0xff36be0c) //102 |
|---|
| 162 | NSTUB(Read ,0xff00ad58) //101 |
|---|
| 163 | NSTUB(ReadFastDir ,0xff2dd404) // 6 |
|---|
| 164 | NSTUB(Rec2PB ,0xff0931fc) //104 |
|---|
| 165 | NSTUB(RefreshPhysicalScreen ,0xff0aa058) //104 |
|---|
| 166 | NSTUB(Remove ,0xff0271f8) // 6 |
|---|
| 167 | NSTUB(RenameFile_Fut ,0xff026908) // 6 |
|---|
| 168 | NSTUB(Restart ,0xff02d058) //106 |
|---|
| 169 | NSTUB(ScreenLock ,0xff0ab250) // 4 |
|---|
| 170 | NSTUB(ScreenUnlock ,0xff0ab2b4) // 3 |
|---|
| 171 | NSTUB(SetAE_ShutterSpeed ,0xff371004) //102 |
|---|
| 172 | NSTUB(SetAutoShutdownTime ,0xff0918f8) //103 |
|---|
| 173 | NSTUB(SetCurrentCaptureModeType ,0xff09ae08) //101 |
|---|
| 174 | NSTUB(SetFileTimeStamp ,0xff027410) // 6 |
|---|
| 175 | NSTUB(SetLogicalEventActive ,0xff0915c0) //101 |
|---|
| 176 | NSTUB(SetParameterData ,0xff1b32d0) //101 |
|---|
| 177 | NSTUB(SetPropertyCase ,0xff08a828) //102 |
|---|
| 178 | NSTUB(SetScriptMode ,0xff091610) //101 |
|---|
| 179 | NSTUB(SleepTask ,0xff02b4e8) //101 |
|---|
| 180 | NSTUB(TakeSemaphore ,0xff02b16c) //101 |
|---|
| 181 | NSTUB(TurnOffBackLight ,0xff0a21b8) //104 |
|---|
| 182 | NSTUB(TurnOnBackLight ,0xff0a21a0) //104 |
|---|
| 183 | NSTUB(UIFS_WriteFirmInfoToFile ,0xff1a4414) //101 |
|---|
| 184 | NSTUB(UnlockAF ,0xff028c10) //102 |
|---|
| 185 | NSTUB(UnlockMainPower ,0xff0917d8) //103 |
|---|
| 186 | NSTUB(VbattGet ,0xff023040) //101 |
|---|
| 187 | NSTUB(Write ,0xff0270d8) //101 |
|---|
| 188 | NSTUB(WriteSDCard ,0xff16c828) //108 |
|---|
| 189 | NSTUB(_log ,0xff3ac778) //111 |
|---|
| 190 | NSTUB(_log10 ,0xff3accb8) //112 |
|---|
| 191 | NSTUB(_pow ,0xff3ace30) //114 |
|---|
| 192 | NSTUB(_sqrt ,0xff3aed14) // 6 |
|---|
| 193 | NSTUB(add_ptp_handler ,0xff28aa1c) // 6 |
|---|
| 194 | NSTUB(apex2us ,0xff246bec) // 4 |
|---|
| 195 | NSTUB(close ,0xff00abb4) // 6 |
|---|
| 196 | NSTUB(closedir ,0xff2dd260) // 4 |
|---|
| 197 | NSTUB(err_init_task ,0xff005fd4) // 4 |
|---|
| 198 | NSTUB(exmem_alloc ,0xff085434) //101 |
|---|
| 199 | NSTUB(free ,0xff004244) //112 |
|---|
| 200 | NSTUB(kbd_p1_f ,0xff0249dc) //109 |
|---|
| 201 | NSTUB(kbd_p1_f_cont ,0xff0249e8) //109 |
|---|
| 202 | NSTUB(kbd_p2_f ,0xff0241c4) //109 |
|---|
| 203 | NSTUB(kbd_read_keys ,0xff024960) //109 |
|---|
| 204 | NSTUB(kbd_read_keys_r2 ,0xff055c78) //109 |
|---|
| 205 | NSTUB(lseek ,0xff0272a0) //101 |
|---|
| 206 | NSTUB(malloc ,0xff0041ec) //112 |
|---|
| 207 | NSTUB(memcmp ,0xff0108f4) //101 |
|---|
| 208 | NSTUB(memcpy ,0xff030fec) //101 |
|---|
| 209 | NSTUB(memset ,0xff245bec) //101 |
|---|
| 210 | NSTUB(mkdir ,0xff027520) // 6 |
|---|
| 211 | NSTUB(mktime_ext ,0xff0ac0c8) // 1 |
|---|
| 212 | NSTUB(open ,0xff00ab04) // 6 |
|---|
| 213 | NSTUB(opendir ,0xff2dd2b0) // 6 |
|---|
| 214 | NSTUB(openfastdir ,0xff2dd2b0) // 6 |
|---|
| 215 | NSTUB(qsort ,0xff359478) // 6 |
|---|
| 216 | NSTUB(rand ,0xff245d2c) // 6 |
|---|
| 217 | NSTUB(read ,0xff00ad58) //101 |
|---|
| 218 | NSTUB(reboot_fw_update ,0xff2e28a0) // 6 |
|---|
| 219 | NSTUB(rename ,0xff026908) // 6 |
|---|
| 220 | NSTUB(set_control_event ,0xff0911b8) //111 |
|---|
| 221 | NSTUB(srand ,0xff245d20) // 6 |
|---|
| 222 | NSTUB(stat ,0xff0272e8) // 3 |
|---|
| 223 | NSTUB(strcat ,0xff0ab880) // 1 |
|---|
| 224 | NSTUB(strchr ,0xff0040b8) // 1 |
|---|
| 225 | NSTUB(strcmp ,0xff0108b0) //101 |
|---|
| 226 | NSTUB(strcpy ,0xff010898) //101 |
|---|
| 227 | NSTUB(strftime ,0xff0abac8) //113 |
|---|
| 228 | NSTUB(strlen ,0xff004104) //101 |
|---|
| 229 | NSTUB(strncmp ,0xff00406c) // 1 |
|---|
| 230 | NSTUB(strncpy ,0xff004030) // 1 |
|---|
| 231 | NSTUB(strrchr ,0xff0040dc) // 1 |
|---|
| 232 | NSTUB(strtol ,0xff0312ec) //101 |
|---|
| 233 | NSTUB(strtolx ,0xff0310f0) //109 |
|---|
| 234 | DEF(task_CaptSeq ,0xff077628) //110 |
|---|
| 235 | DEF(task_ExpDrv ,0xff0c3e54) //110 |
|---|
| 236 | DEF(task_InitFileModules ,0xff095240) //110 |
|---|
| 237 | DEF(task_MovieRecord ,0xff1882f0) //110 |
|---|
| 238 | DEF(task_PhySw ,0xff0244f0) //110 |
|---|
| 239 | DEF(task_RotaryEncoder ,0xff05671c) //110 |
|---|
| 240 | NSTUB(time ,0xff084a48) // 6 |
|---|
| 241 | NSTUB(vsprintf ,0xff010858) // 6 |
|---|