| 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.00C |
|---|
| 7 | // Canon PowerShot SX230 HS |
|---|
| 8 | |
|---|
| 9 | // Values for makefile.inc |
|---|
| 10 | // PLATFORMID = 12840 (0x3228) // 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 | //NSTUB(Restart ,0xff02d4cc) //106 *** != 0xff02d3d0 |
|---|
| 18 | //NSTUB(kbd_pwr_off ,0xff0577e4) // 2 60% *** != 0x00000000 |
|---|
| 19 | // ERROR: kbd_pwr_on is not found. //--- --- *** != 0x00000000 |
|---|
| 20 | |
|---|
| 21 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 22 | // Firmware modemap table found @ff097164 -> ff093588 -> ff1b82c8 -> ff32314c -> ff4954a0 |
|---|
| 23 | // Mode 16936 in firmware but not in current modemap |
|---|
| 24 | // Mode 16938 in firmware but not in current modemap |
|---|
| 25 | // Current modemap entry not found in firmware - MODE_SCN_MONOCHROME 8754 |
|---|
| 26 | // Current modemap entry not found in firmware - MODE_SCN_TOY_CAMERA 8751 |
|---|
| 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_SUPER_VIVID 8742 |
|---|
| 31 | // Current modemap entry not found in firmware - MODE_SCN_COLOR_SWAP 8734 |
|---|
| 32 | // Current modemap entry not found in firmware - MODE_SCN_COLOR_ACCENT 8733 |
|---|
| 33 | |
|---|
| 34 | // Values below can be overridden in 'stubs_min.S': |
|---|
| 35 | //DEF(physw_status ,0x000358e8) // Found @0xff024d10, stubs_min = 0x000358e8 (0x000358e8) |
|---|
| 36 | //DEF(physw_run ,0x00001c44) // Found @0xff0248a4, stubs_min = 0x00001c44 (0x00001c44) |
|---|
| 37 | //DEF(levent_table ,0xff42121c) // Found @0xff42121c, stubs_min = 0xff42121c (0xff42121c) |
|---|
| 38 | //DEF(FlashParamsTable ,0xff4956ec) // Found @0xff4956ec, stubs_min = 0xff4956ec (0xff4956ec) |
|---|
| 39 | //DEF(movie_status ,0x00008624) // Found @0xff18c580, stubs_min = 0x00008624 (0x00008624) |
|---|
| 40 | //DEF(full_screen_refresh ,0x0000b440) // Found @0xff244890, stubs_min = 0x0000b440 (0x0000b440) |
|---|
| 41 | //DEF(canon_menu_active ,0x000042d4) // Found @0xff08ca84, stubs_min = 0x000042d4 (0x000042d4) |
|---|
| 42 | //DEF(canon_shoot_menu_active ,0x00009995) // Found @0xff1d45b4, stubs_min = 0x00009995 (0x00009995) |
|---|
| 43 | //DEF(playrec_mode ,0x00004008) // Found @0xff07ed14, stubs_min = 0x00004008 (0x00004008) |
|---|
| 44 | //DEF(zoom_status ,0x0000f6bc) // Found @0xff326800, ** != ** stubs_min = 0x0000f69c (0x0000f69c) |
|---|
| 45 | //DEF(some_flag_for_af_scan ,0x00008a28) // Found @0xff190c5c, stubs_min = 0x00008a28 (0x00008a28) |
|---|
| 46 | // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c). |
|---|
| 47 | // each entry contains 3 int value(s), the first is the zoom focus length. |
|---|
| 48 | // there are 126 entries in the table - set NUM_FL to 126 |
|---|
| 49 | //DEF(focus_len_table ,0xfff4a3dc) // Found @0xfff4a3dc, stubs_min = 0xfff4a3dc (0xFFF4A3DC) |
|---|
| 50 | //DEF(zoom_busy ,0x00008548) // Found @0xff187708, stubs_min = 0x00008548 (0x852C+0x1C) |
|---|
| 51 | //DEF(focus_busy ,0x000083c4) // Found @0xff181c8c, stubs_min = 0x000083c4 (0x83BC+8) |
|---|
| 52 | //DEF(recreview_hold ,0x00004e04) // Found @0xff0a00d8, ** != ** stubs_min = 0x0000956c (0x947C+0xF0) |
|---|
| 53 | |
|---|
| 54 | // Values below go in 'lib.c': |
|---|
| 55 | //void *vid_get_bitmap_fb() { return (void*)0x40471000; } // Found @0xff0514b4 |
|---|
| 56 | //void *vid_get_viewport_fb() { return (void*)0x405d7980; } // Found @0xff37c474 |
|---|
| 57 | //void *vid_get_viewport_fb_d() { return (void*)(*(int*)(0x3cd0+0x58)); } // Found @0xff06e82c & 0xff06e864 |
|---|
| 58 | //char *camera_jpeg_count_str() { return (char*)0x000ce488; } // Found @0xff239850 |
|---|
| 59 | //long hook_raw_size() { return 0x0123eaf0; } // Found @0xff37f988 |
|---|
| 60 | //int get_flash_params_count(void) { return 0xa0; } // Found @0xff1b9300 |
|---|
| 61 | |
|---|
| 62 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 63 | //#define SD_READONLY_FLAG 0x00020000 // Found @0xff3bcf0c, levent 0x90a |
|---|
| 64 | //#define SD_READONLY_IDX 2 |
|---|
| 65 | //#define USB_MASK 0x04000000 // Found @0xff3bcf44, levent 0x902 |
|---|
| 66 | //#define USB_IDX 2 |
|---|
| 67 | |
|---|
| 68 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 69 | //static KeyMap keymap[] = { |
|---|
| 70 | // { 0, KEY_DISPLAY ,0x00000800 }, // Found @0xff3bce7c, levent 0x0a |
|---|
| 71 | // { 0, KEY_UP ,0x00001000 }, // Found @0xff3bce84, levent 0x04 |
|---|
| 72 | // { 0, KEY_RIGHT ,0x00004000 }, // Found @0xff3bce94, levent 0x07 |
|---|
| 73 | // { 0, KEY_SET ,0x00010000 }, // Found @0xff3bcea4, levent 0x08 |
|---|
| 74 | // { 0, KEY_DOWN ,0x00020000 }, // Found @0xff3bceac, levent 0x05 |
|---|
| 75 | // { 0, KEY_MENU ,0x00040000 }, // Found @0xff3bceb4, levent 0x09 |
|---|
| 76 | // { 2, KEY_LEFT ,0x00000100 }, // Found @0xff3bcee4, levent 0x06 |
|---|
| 77 | // { 2, KEY_SHOOT_FULL ,0x00002002 }, // Found @0xff3bced4, levent 0x01 |
|---|
| 78 | // { 2, KEY_SHOOT_HALF ,0x00002000 }, // Found @0xff3bcef4, levent 0x00 |
|---|
| 79 | // { 2, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xff3bced4, levent 0x01 |
|---|
| 80 | // { 0, 0, 0 } |
|---|
| 81 | //}; |
|---|
| 82 | |
|---|
| 83 | // Values below go in 'platform_camera.h': |
|---|
| 84 | //#define CAM_DRYOS 1 |
|---|
| 85 | //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher |
|---|
| 86 | //#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher |
|---|
| 87 | //#define CAM_RAW_ROWPIX 4168 // Found @0xff156314 |
|---|
| 88 | //#define CAM_RAW_ROWS 3060 // Found @0xff156320 |
|---|
| 89 | //#undef CAM_UNCACHED_BIT |
|---|
| 90 | //#define CAM_UNCACHED_BIT 0x40000000 // Found @0xff02bcb8 |
|---|
| 91 | |
|---|
| 92 | // Misc stuff |
|---|
| 93 | DEF(ctypes, 0xff3ba346) |
|---|
| 94 | |
|---|
| 95 | // For capt_seq.c |
|---|
| 96 | //static long *nrflag = (long*)(0x8a64+0x08); // Found @ ff1958e8 & ff195954 |
|---|
| 97 | //#define NR_AUTO (0) // have to explictly reset value back to 0 to enable auto |
|---|
| 98 | |
|---|
| 99 | // Stubs below matched 100%. |
|---|
| 100 | // Name Address Comp to stubs_entry_2.S |
|---|
| 101 | NSTUB(AllocateMemory ,0xff311904) //101 |
|---|
| 102 | NSTUB(AllocateUncacheableMemory ,0xff02bc70) //112 |
|---|
| 103 | NSTUB(Close ,0xff027ae4) //101 |
|---|
| 104 | NSTUB(CreateTask ,0xff00e9a8) //101 |
|---|
| 105 | NSTUB(DebugAssert ,0xff00ec80) //111 |
|---|
| 106 | NSTUB(DeleteDirectory_Fut ,0xff026e50) // 1 |
|---|
| 107 | NSTUB(DeleteFile_Fut ,0xff026d6c) //112 |
|---|
| 108 | NSTUB(DoAFLock ,0xff029004) //102 |
|---|
| 109 | NSTUB(EnterToCompensationEVF ,0xff0292a0) //104 |
|---|
| 110 | NSTUB(ExecuteEventProcedure ,0xff088174) // 1 |
|---|
| 111 | NSTUB(ExitFromCompensationEVF ,0xff0292e4) //104 |
|---|
| 112 | NSTUB(ExitTask ,0xff00ec38) //101 |
|---|
| 113 | NSTUB(ExpCtrlTool_StartContiAE ,0xff03857c) //104 |
|---|
| 114 | NSTUB(ExpCtrlTool_StopContiAE ,0xff038654) //104 |
|---|
| 115 | NSTUB(Fclose_Fut ,0xff026ee8) //101 |
|---|
| 116 | NSTUB(Feof_Fut ,0xff0270d4) // 1 |
|---|
| 117 | NSTUB(Fflush_Fut ,0xff027110) // 1 |
|---|
| 118 | NSTUB(Fgets_Fut ,0xff02703c) // 6 |
|---|
| 119 | NSTUB(Fopen_Fut ,0xff026ea8) //101 |
|---|
| 120 | NSTUB(Fread_Fut ,0xff026f94) //101 |
|---|
| 121 | NSTUB(FreeMemory ,0xff3118fc) //101 |
|---|
| 122 | NSTUB(FreeUncacheableMemory ,0xff02bcb0) //112 |
|---|
| 123 | NSTUB(Fseek_Fut ,0xff027088) //101 |
|---|
| 124 | NSTUB(Fwrite_Fut ,0xff026fe8) //101 |
|---|
| 125 | NSTUB(GetBatteryTemperature ,0xff05e554) //102 |
|---|
| 126 | NSTUB(GetCCDTemperature ,0xff05e4e0) //102 |
|---|
| 127 | NSTUB(GetCurrentAvValue ,0xff184680) //102 |
|---|
| 128 | NSTUB(GetDrive_ClusterSize ,0xff06c2dc) // 6 |
|---|
| 129 | NSTUB(GetDrive_FreeClusters ,0xff06c334) // 6 |
|---|
| 130 | NSTUB(GetDrive_TotalClusters ,0xff06c30c) // 6 |
|---|
| 131 | NSTUB(GetFocusLensSubjectDistance ,0xff182910) //102 |
|---|
| 132 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xff182d70) // 3 |
|---|
| 133 | NSTUB(GetImageFolder ,0xff15d268) // 6 |
|---|
| 134 | NSTUB(GetKbdState ,0xff0576ac) //109 |
|---|
| 135 | NSTUB(GetMemInfo ,0xff00a29c) // 3 |
|---|
| 136 | NSTUB(GetOpticalTemperature ,0xff05e5c8) //102 |
|---|
| 137 | NSTUB(GetParameterData ,0xff1b92c0) //101 |
|---|
| 138 | NSTUB(GetPropertyCase ,0xff08bf58) //102 |
|---|
| 139 | NSTUB(GetSystemTime ,0xff31195c) //101 |
|---|
| 140 | NSTUB(GetZoomLensCurrentPoint ,0xff187b80) //102 |
|---|
| 141 | NSTUB(GetZoomLensCurrentPosition ,0xff2fb048) //102 |
|---|
| 142 | NSTUB(GiveSemaphore ,0xff02b668) //112 |
|---|
| 143 | NSTUB(IsStrobeChargeCompleted ,0xff0e2d10) //102 |
|---|
| 144 | NSTUB(LEDDrive ,0xff056a24) //101 |
|---|
| 145 | NSTUB(LocalTime ,0xff085a08) // 6 |
|---|
| 146 | NSTUB(LockMainPower ,0xff093178) //103 |
|---|
| 147 | NSTUB(Lseek ,0xff02766c) //101 |
|---|
| 148 | NSTUB(MakeDirectory_Fut ,0xff026de0) // 6 |
|---|
| 149 | NSTUB(MakeSDCardBootable ,0xff06c5e8) //105 |
|---|
| 150 | NSTUB(MoveFocusLensToDistance ,0xff378764) //102 |
|---|
| 151 | NSTUB(MoveIrisWithAv ,0xff30d974) //102 |
|---|
| 152 | NSTUB(MoveZoomLensWithPoint ,0xff30e138) //102 |
|---|
| 153 | NSTUB(NewTaskShell ,0xff08b908) //101 |
|---|
| 154 | NSTUB(Open ,0xff0273e8) //101 |
|---|
| 155 | NSTUB(PB2Rec ,0xff096484) //104 |
|---|
| 156 | NSTUB(PT_MoveDigitalZoomToWide ,0xff075c88) //102 |
|---|
| 157 | NSTUB(PT_MoveOpticalZoomAt ,0xff075c60) //102 |
|---|
| 158 | NSTUB(PT_PlaySound ,0xff080de4) // 6 |
|---|
| 159 | NSTUB(PostLogicalEventForNotPowerType ,0xff090c90) //103 |
|---|
| 160 | NSTUB(PostLogicalEventToUI ,0xff090cdc) //103 |
|---|
| 161 | NSTUB(PutInNdFilter ,0xff3763a8) //102 |
|---|
| 162 | NSTUB(PutOutNdFilter ,0xff3763e0) //102 |
|---|
| 163 | NSTUB(Read ,0xff00ad58) //101 |
|---|
| 164 | NSTUB(ReadFastDir ,0xff2e6f5c) // 6 |
|---|
| 165 | NSTUB(Rec2PB ,0xff0964c4) //104 |
|---|
| 166 | NSTUB(RefreshPhysicalScreen ,0xff0abfec) //104 |
|---|
| 167 | NSTUB(Remove ,0xff0275d0) // 6 |
|---|
| 168 | NSTUB(RenameFile_Fut ,0xff026cd8) // 6 |
|---|
| 169 | NSTUB(ScreenLock ,0xff0ad1b4) // 4 |
|---|
| 170 | NSTUB(ScreenUnlock ,0xff0ad218) // 3 |
|---|
| 171 | NSTUB(SetAE_ShutterSpeed ,0xff37b5ec) //102 |
|---|
| 172 | NSTUB(SetAutoShutdownTime ,0xff0931ec) //103 |
|---|
| 173 | NSTUB(SetCurrentCaptureModeType ,0xff09cd4c) //101 |
|---|
| 174 | NSTUB(SetFileTimeStamp ,0xff0277dc) // 6 |
|---|
| 175 | NSTUB(SetLogicalEventActive ,0xff092eb4) //101 |
|---|
| 176 | NSTUB(SetParameterData ,0xff1b9230) //101 |
|---|
| 177 | NSTUB(SetPropertyCase ,0xff08be2c) //102 |
|---|
| 178 | NSTUB(SetScriptMode ,0xff092f04) //101 |
|---|
| 179 | NSTUB(SleepTask ,0xff02b914) //101 |
|---|
| 180 | NSTUB(TakeSemaphore ,0xff02b598) //101 |
|---|
| 181 | NSTUB(TurnOffBackLight ,0xff0a4200) //104 |
|---|
| 182 | NSTUB(TurnOnBackLight ,0xff0a41e8) //104 |
|---|
| 183 | NSTUB(UIFS_WriteFirmInfoToFile ,0xff1a994c) //101 |
|---|
| 184 | NSTUB(UnlockAF ,0xff02903c) //102 |
|---|
| 185 | NSTUB(UnlockMainPower ,0xff0930cc) //103 |
|---|
| 186 | NSTUB(VbattGet ,0xff023074) //101 |
|---|
| 187 | NSTUB(Write ,0xff0274b0) //101 |
|---|
| 188 | NSTUB(WriteSDCard ,0xff171d24) //108 |
|---|
| 189 | NSTUB(_log ,0xff3b6dc8) //111 |
|---|
| 190 | NSTUB(_log10 ,0xff3b7290) //112 |
|---|
| 191 | NSTUB(_pow ,0xff3b73f4) //114 |
|---|
| 192 | NSTUB(_sqrt ,0xff3b915c) // 6 |
|---|
| 193 | NSTUB(add_ptp_handler ,0xff291c68) // 6 |
|---|
| 194 | NSTUB(apex2us ,0xff24de4c) // 4 |
|---|
| 195 | NSTUB(close ,0xff00abb4) // 6 |
|---|
| 196 | NSTUB(closedir ,0xff2e6db8) // 4 |
|---|
| 197 | NSTUB(err_init_task ,0xff005fd4) // 4 |
|---|
| 198 | NSTUB(exmem_alloc ,0xff0869d0) //101 |
|---|
| 199 | NSTUB(free ,0xff004244) //112 |
|---|
| 200 | NSTUB(kbd_p1_f ,0xff024d8c) //109 |
|---|
| 201 | NSTUB(kbd_p1_f_cont ,0xff024d98) //109 |
|---|
| 202 | NSTUB(kbd_p2_f ,0xff024574) //109 |
|---|
| 203 | NSTUB(kbd_read_keys ,0xff024d10) //109 |
|---|
| 204 | NSTUB(kbd_read_keys_r2 ,0xff056ef0) //109 |
|---|
| 205 | NSTUB(lseek ,0xff02766c) //101 |
|---|
| 206 | NSTUB(malloc ,0xff0041ec) //112 |
|---|
| 207 | NSTUB(memcmp ,0xff010928) //101 |
|---|
| 208 | NSTUB(memcpy ,0xff031584) //101 |
|---|
| 209 | NSTUB(memset ,0xff24ce4c) //101 |
|---|
| 210 | NSTUB(mkdir ,0xff0278ec) // 6 |
|---|
| 211 | NSTUB(mktime_ext ,0xff0ae114) // 1 |
|---|
| 212 | NSTUB(open ,0xff00ab04) // 6 |
|---|
| 213 | NSTUB(opendir ,0xff2e6e08) // 6 |
|---|
| 214 | NSTUB(openfastdir ,0xff2e6e08) // 6 |
|---|
| 215 | NSTUB(qsort ,0xff36386c) // 6 |
|---|
| 216 | NSTUB(rand ,0xff24cf8c) // 6 |
|---|
| 217 | NSTUB(read ,0xff00ad58) //101 |
|---|
| 218 | NSTUB(readfastdir ,0xff2e6f5c) // 6 |
|---|
| 219 | NSTUB(reboot_fw_update ,0xff2ec3f4) // 6 |
|---|
| 220 | NSTUB(rename ,0xff026cd8) // 6 |
|---|
| 221 | NSTUB(set_control_event ,0xff092aac) //111 |
|---|
| 222 | NSTUB(srand ,0xff24cf80) // 6 |
|---|
| 223 | NSTUB(stat ,0xff0276b4) // 3 |
|---|
| 224 | NSTUB(strcat ,0xff0ad8cc) // 1 |
|---|
| 225 | NSTUB(strchr ,0xff0040b8) // 1 |
|---|
| 226 | NSTUB(strcmp ,0xff0108e4) //101 |
|---|
| 227 | NSTUB(strcpy ,0xff0108cc) //101 |
|---|
| 228 | NSTUB(strftime ,0xff0adb14) //113 |
|---|
| 229 | NSTUB(strlen ,0xff004104) //101 |
|---|
| 230 | NSTUB(strncmp ,0xff00406c) // 1 |
|---|
| 231 | NSTUB(strncpy ,0xff004030) // 1 |
|---|
| 232 | NSTUB(strrchr ,0xff0040dc) // 1 |
|---|
| 233 | NSTUB(strtol ,0xff031884) //101 |
|---|
| 234 | NSTUB(strtolx ,0xff031688) //109 |
|---|
| 235 | DEF(task_CaptSeq ,0xff078bc8) //110 |
|---|
| 236 | DEF(task_ExpDrv ,0xff0c5e4c) //110 |
|---|
| 237 | DEF(task_InitFileModules ,0xff096fd8) //110 |
|---|
| 238 | DEF(task_MovieRecord ,0xff18d7c0) //110 |
|---|
| 239 | DEF(task_PhySw ,0xff0248a0) //110 |
|---|
| 240 | DEF(task_RotaryEncoder ,0xff057998) //110 |
|---|
| 241 | NSTUB(time ,0xff085fa4) // 6 |
|---|
| 242 | NSTUB(vsprintf ,0xff01088c) // 6 |
|---|
| 243 | NSTUB(write ,0xff0274b0) //101 |
|---|