| 1 | // !!! THIS FILE IS GENERATED. DO NOT EDIT. !!! |
|---|
| 2 | #include "stubs_asm.h" |
|---|
| 3 | |
|---|
| 4 | // Camera info: |
|---|
| 5 | // DRYOS R49 (DRYOS version 2.3, release #0049) |
|---|
| 6 | // Firmware Ver GM1.00E |
|---|
| 7 | // Canon IXUS 230 HS |
|---|
| 8 | |
|---|
| 9 | // Values for makefile.inc |
|---|
| 10 | // PLATFORMID = 12855 (0x3237) // Found @ 0xfff40040 |
|---|
| 11 | // MAXRAMADDR = 0x07ffffff |
|---|
| 12 | // KEYSYS = d4c // Found @ 0xffff360c |
|---|
| 13 | // NEED_ENCODED_DISKBOOT = 7 // Found @ 0xffff361c |
|---|
| 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(kbd_pwr_off ,0xff057fc8) // 2 60% |
|---|
| 18 | // ERROR: kbd_pwr_on is not found. //--- --- *** != 0x00000000 |
|---|
| 19 | |
|---|
| 20 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 21 | // Firmware modemap table found @ff0931a8 -> ff08fab8 -> ff1b3bd0 -> ff301264 -> ff457cb8 |
|---|
| 22 | // No problems found with modemap table. |
|---|
| 23 | |
|---|
| 24 | // Values below can be overridden in 'stubs_min.S': |
|---|
| 25 | DEF(physw_status ,0x00034108) // Found @0xff025814 |
|---|
| 26 | DEF(physw_run ,0x00001c4c) // Found @0xff0253ac |
|---|
| 27 | DEF(levent_table ,0xff3f7e40) // Found @0xff3f7e40 |
|---|
| 28 | DEF(FlashParamsTable ,0xff457f10) // Found @0xff457f10 |
|---|
| 29 | DEF(movie_status ,0x00006d04) // Found @0xff1854e0 |
|---|
| 30 | DEF(full_screen_refresh ,0x00009a2c) // Found @0xff22fce0 |
|---|
| 31 | DEF(canon_menu_active ,0x00003284) // Found @0xff08ae14 |
|---|
| 32 | DEF(canon_shoot_menu_active ,0x000083bd) // Found @0xff1d0b64 |
|---|
| 33 | DEF(playrec_mode ,0x00002fb0) // Found @0xff07cb48 |
|---|
| 34 | DEF(zoom_status ,0x0000dacc) // Found @0xff304b78 |
|---|
| 35 | // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c). |
|---|
| 36 | // each entry contains 2 int value(s), the first is the zoom focus length. |
|---|
| 37 | // there are 127 entries in the table - set NUM_FL to 127 |
|---|
| 38 | DEF(focus_len_table ,0xfff4abc8) // Found @0xfff4abc8 |
|---|
| 39 | DEF(zoom_busy ,0x00006ba0) // Found @0xff17f438 |
|---|
| 40 | DEF(focus_busy ,0x00006a40) // Found @0xff17aa94 |
|---|
| 41 | DEF(recreview_hold ,0x000038ec) // Found @0xff09a5d4 |
|---|
| 42 | DEF(palette_control ,0x00009a2c) // Found @0xff22fc5c |
|---|
| 43 | DEF(active_palette_buffer ,0x00009a34) // Found @0xff22fc60 |
|---|
| 44 | DEF(palette_buffer ,0x000b9c80) // Found @0xff230128 |
|---|
| 45 | DEF(bitmap_buffer ,0x00009a70) // Found @0xff23396c |
|---|
| 46 | DEF(active_bitmap_buffer ,0x00009a68) // Found @0xff233970 |
|---|
| 47 | |
|---|
| 48 | // Values below go in 'lib.c': |
|---|
| 49 | //void *vid_get_bitmap_fb() { return (void*)0x40471000; } // Found @0xff053204 |
|---|
| 50 | //void *vid_get_viewport_fb() { return (void*)0x405c6b80; } // Found @0xff365694 |
|---|
| 51 | //void *vid_get_viewport_fb_d() { return (void*)(*(int*)(0x2c58+0x58)); } // Found @0xff06c234 & 0xff06c26c |
|---|
| 52 | //char *camera_jpeg_count_str() { return (char*)0x000b9574; } // Found @0xff2263bc |
|---|
| 53 | //long hook_raw_size() { return 0x0123eaf0; } // Found @0xff3684dc |
|---|
| 54 | //int get_flash_params_count(void) { return 0x9f; } // Found @0xff1b4c80 |
|---|
| 55 | |
|---|
| 56 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 57 | //#define SD_READONLY_FLAG 0x00020000 // Found @0xff3a8090, levent 0x20a |
|---|
| 58 | //#define SD_READONLY_IDX 2 |
|---|
| 59 | //#define USB_MASK 0x04000000 // Found @0xff3a80b0, levent 0x202 |
|---|
| 60 | //#define USB_IDX 2 |
|---|
| 61 | |
|---|
| 62 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 63 | //static KeyMap keymap[] = { |
|---|
| 64 | // { 2, KEY_SHOOT_FULL ,0x00000300 }, // Found @0xff3a8058, levent 0x01 |
|---|
| 65 | // { 2, KEY_SHOOT_FULL_ONLY ,0x00000200 }, // Found @0xff3a8058, levent 0x01 |
|---|
| 66 | // { 2, KEY_SHOOT_HALF ,0x00000100 }, // Found @0xff3a8050, levent 0x00 |
|---|
| 67 | // { 2, KEY_MENU ,0x00000001 }, // Found @0xff3a8010, levent 0x09 |
|---|
| 68 | // { 2, KEY_SET ,0x00000002 }, // Found @0xff3a8018, levent 0x08 |
|---|
| 69 | // { 2, KEY_ZOOM_IN ,0x00000004 }, // Found @0xff3a8020, levent 0x02 |
|---|
| 70 | // { 2, KEY_ZOOM_OUT ,0x00000008 }, // Found @0xff3a8028, levent 0x03 |
|---|
| 71 | // { 2, KEY_LEFT ,0x00000010 }, // Found @0xff3a8030, levent 0x06 |
|---|
| 72 | // { 2, KEY_RIGHT ,0x00000020 }, // Found @0xff3a8038, levent 0x07 |
|---|
| 73 | // { 2, KEY_DOWN ,0x00000040 }, // Found @0xff3a8040, levent 0x05 |
|---|
| 74 | // { 2, KEY_UP ,0x00000080 }, // Found @0xff3a8048, levent 0x04 |
|---|
| 75 | // { 0, 0, 0 } |
|---|
| 76 | //}; |
|---|
| 77 | |
|---|
| 78 | // Values below go in 'platform_camera.h': |
|---|
| 79 | //#define CAM_DRYOS 1 |
|---|
| 80 | //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher |
|---|
| 81 | //#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher |
|---|
| 82 | //#define CAM_RAW_ROWPIX 4168 // Found @0xff14d678 |
|---|
| 83 | //#define CAM_RAW_ROWS 3060 // Found @0xff14d684 |
|---|
| 84 | //#undef CAM_UNCACHED_BIT |
|---|
| 85 | //#define CAM_UNCACHED_BIT 0x40000000 // Found @0xff02be50 |
|---|
| 86 | |
|---|
| 87 | // Misc stuff |
|---|
| 88 | DEF(ctypes, 0xff3a6852) |
|---|
| 89 | |
|---|
| 90 | // For capt_seq.c |
|---|
| 91 | //static long *nrflag = (long*)(0x9b44+0x00); // Found @ ff23c26c & ff23c2f4 |
|---|
| 92 | //#define NR_AUTO (0) // have to explictly reset value back to 0 to enable auto |
|---|
| 93 | |
|---|
| 94 | // Stubs below matched 100%. |
|---|
| 95 | // Name Address Comp to stubs_entry_2.S |
|---|
| 96 | NSTUB(AllocateMemory ,0xff2efd74) //101 |
|---|
| 97 | NSTUB(AllocateUncacheableMemory ,0xff02be08) //112 |
|---|
| 98 | NSTUB(Close ,0xff028024) //101 |
|---|
| 99 | NSTUB(CreateTask ,0xff00eae4) //101 |
|---|
| 100 | NSTUB(DebugAssert ,0xff00edbc) //111 |
|---|
| 101 | NSTUB(DeleteDirectory_Fut ,0xff027a20) // 1 |
|---|
| 102 | NSTUB(DeleteFile_Fut ,0xff02793c) //112 |
|---|
| 103 | NSTUB(DoAFLock ,0xff0298cc) //102 |
|---|
| 104 | NSTUB(EnterToCompensationEVF ,0xff029b2c) //104 |
|---|
| 105 | NSTUB(ExecuteEventProcedure ,0xff0862bc) // 1 |
|---|
| 106 | NSTUB(ExitFromCompensationEVF ,0xff029b70) //104 |
|---|
| 107 | NSTUB(ExitTask ,0xff00ed74) //101 |
|---|
| 108 | NSTUB(ExpCtrlTool_StartContiAE ,0xff037a8c) //104 |
|---|
| 109 | NSTUB(ExpCtrlTool_StopContiAE ,0xff037b6c) //104 |
|---|
| 110 | NSTUB(Fclose_Fut ,0xff027ab8) //101 |
|---|
| 111 | NSTUB(Feof_Fut ,0xff027ca4) // 1 |
|---|
| 112 | NSTUB(Fflush_Fut ,0xff027ce0) // 1 |
|---|
| 113 | NSTUB(Fgets_Fut ,0xff027c0c) // 6 |
|---|
| 114 | NSTUB(Fopen_Fut ,0xff027a78) //101 |
|---|
| 115 | NSTUB(Fread_Fut ,0xff027b64) //101 |
|---|
| 116 | NSTUB(FreeMemory ,0xff2efd6c) //101 |
|---|
| 117 | NSTUB(FreeUncacheableMemory ,0xff02be48) //112 |
|---|
| 118 | NSTUB(Fseek_Fut ,0xff027c58) //101 |
|---|
| 119 | NSTUB(Fwrite_Fut ,0xff027bb8) //101 |
|---|
| 120 | NSTUB(GetBatteryTemperature ,0xff05b944) //102 |
|---|
| 121 | NSTUB(GetCCDTemperature ,0xff05b8d0) //102 |
|---|
| 122 | NSTUB(GetCurrentAvValue ,0xff17c8dc) //102 |
|---|
| 123 | NSTUB(GetDrive_ClusterSize ,0xff069cb0) // 6 |
|---|
| 124 | NSTUB(GetDrive_FreeClusters ,0xff069d08) // 6 |
|---|
| 125 | NSTUB(GetDrive_TotalClusters ,0xff069ce0) // 6 |
|---|
| 126 | NSTUB(GetFocusLensSubjectDistance ,0xff17b810) //102 |
|---|
| 127 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xff17bc60) // 3 |
|---|
| 128 | NSTUB(GetImageFolder ,0xff156c74) // 6 |
|---|
| 129 | NSTUB(GetKbdState ,0xff057fb0) //109 |
|---|
| 130 | NSTUB(GetMemInfo ,0xff00a2ac) // 3 |
|---|
| 131 | NSTUB(GetOpticalTemperature ,0xff05b9b8) //102 |
|---|
| 132 | NSTUB(GetParameterData ,0xff1b4c40) //101 |
|---|
| 133 | NSTUB(GetPropertyCase ,0xff08a35c) //102 |
|---|
| 134 | NSTUB(GetSystemTime ,0xff2efdcc) //101 |
|---|
| 135 | NSTUB(GetZoomLensCurrentPoint ,0xff17f8b0) //102 |
|---|
| 136 | NSTUB(GetZoomLensCurrentPosition ,0xff2dbd18) //102 |
|---|
| 137 | NSTUB(GiveSemaphore ,0xff02b800) //112 |
|---|
| 138 | NSTUB(IsStrobeChargeCompleted ,0xff0de288) //102 |
|---|
| 139 | NSTUB(LEDDrive ,0xff057508) //101 |
|---|
| 140 | NSTUB(LocalTime ,0xff083b54) // 6 |
|---|
| 141 | NSTUB(LockMainPower ,0xff08f6b0) //103 |
|---|
| 142 | NSTUB(Lseek ,0xff028240) //101 |
|---|
| 143 | NSTUB(MakeDirectory_Fut ,0xff0279b0) // 6 |
|---|
| 144 | NSTUB(MakeSDCardBootable ,0xff069f40) //105 |
|---|
| 145 | NSTUB(MoveFocusLensToDistance ,0xff3618d4) //102 |
|---|
| 146 | NSTUB(MoveIrisWithAv ,0xff2ec0d8) //102 |
|---|
| 147 | NSTUB(MoveZoomLensWithPoint ,0xff2ec80c) //102 |
|---|
| 148 | NSTUB(NewTaskShell ,0xff089cdc) //101 |
|---|
| 149 | NSTUB(Open ,0xff027f5c) //101 |
|---|
| 150 | NSTUB(PB2Rec ,0xff0927cc) //104 |
|---|
| 151 | NSTUB(PT_MoveDigitalZoomToWide ,0xff073c5c) //102 |
|---|
| 152 | NSTUB(PT_MoveOpticalZoomAt ,0xff073c34) //102 |
|---|
| 153 | NSTUB(PT_PlaySound ,0xff07e868) // 6 |
|---|
| 154 | NSTUB(PostLogicalEventForNotPowerType ,0xff08eda4) //103 |
|---|
| 155 | NSTUB(PostLogicalEventToUI ,0xff08edf0) //103 |
|---|
| 156 | NSTUB(PutInNdFilter ,0xff2ec5e4) //102 |
|---|
| 157 | NSTUB(PutOutNdFilter ,0xff2ec608) //102 |
|---|
| 158 | NSTUB(Read ,0xff00ad68) //101 |
|---|
| 159 | NSTUB(ReadFastDir ,0xff2c99f8) // 6 |
|---|
| 160 | NSTUB(Rec2PB ,0xff09280c) //104 |
|---|
| 161 | NSTUB(RefreshPhysicalScreen ,0xff0a6da4) //104 |
|---|
| 162 | NSTUB(Remove ,0xff028198) // 6 |
|---|
| 163 | NSTUB(RenameFile_Fut ,0xff0278a8) // 6 |
|---|
| 164 | NSTUB(Restart ,0xff02d620) //106 |
|---|
| 165 | NSTUB(ScreenLock ,0xff0a7f9c) // 4 |
|---|
| 166 | NSTUB(ScreenUnlock ,0xff0a8000) // 3 |
|---|
| 167 | NSTUB(SetAE_ShutterSpeed ,0xff36480c) //102 |
|---|
| 168 | NSTUB(SetAutoShutdownTime ,0xff08f724) //103 |
|---|
| 169 | NSTUB(SetCurrentCaptureModeType ,0xff097c44) //101 |
|---|
| 170 | NSTUB(SetFileAttributes ,0xff028428) // 6 |
|---|
| 171 | NSTUB(SetFileTimeStamp ,0xff0283b0) // 6 |
|---|
| 172 | NSTUB(SetLogicalEventActive ,0xff08f42c) //101 |
|---|
| 173 | NSTUB(SetParameterData ,0xff1b4bb0) //101 |
|---|
| 174 | NSTUB(SetPropertyCase ,0xff08a1d4) //102 |
|---|
| 175 | NSTUB(SetScriptMode ,0xff08f47c) //101 |
|---|
| 176 | NSTUB(SleepTask ,0xff02baac) //101 |
|---|
| 177 | NSTUB(TakeSemaphore ,0xff02b730) //101 |
|---|
| 178 | NSTUB(TurnOffBackLight ,0xff09f01c) //104 |
|---|
| 179 | NSTUB(TurnOnBackLight ,0xff09f004) //104 |
|---|
| 180 | NSTUB(UIFS_WriteFirmInfoToFile ,0xff1a1c40) //101 |
|---|
| 181 | NSTUB(UnlockAF ,0xff029904) //102 |
|---|
| 182 | NSTUB(UnlockMainPower ,0xff08f604) //103 |
|---|
| 183 | NSTUB(VbattGet ,0xff023148) //101 |
|---|
| 184 | NSTUB(Write ,0xff028078) //101 |
|---|
| 185 | NSTUB(WriteSDCard ,0xff16a9b4) //108 |
|---|
| 186 | NSTUB(_log ,0xff3a3378) //111 |
|---|
| 187 | NSTUB(_log10 ,0xff3a38b8) //112 |
|---|
| 188 | NSTUB(_pow ,0xff3a3a30) //114 |
|---|
| 189 | NSTUB(_sqrt ,0xff3a5654) // 6 |
|---|
| 190 | NSTUB(add_ptp_handler ,0xff278404) // 6 |
|---|
| 191 | NSTUB(apex2us ,0xff236124) // 4 |
|---|
| 192 | NSTUB(close ,0xff00abc4) // 6 |
|---|
| 193 | NSTUB(closedir ,0xff2c9854) // 4 |
|---|
| 194 | NSTUB(err_init_task ,0xff006020) // 4 |
|---|
| 195 | NSTUB(exmem_alloc ,0xff084b14) //101 |
|---|
| 196 | NSTUB(free ,0xff004258) //112 |
|---|
| 197 | NSTUB(kbd_p1_f ,0xff025864) //109 |
|---|
| 198 | NSTUB(kbd_p1_f_cont ,0xff025870) //109 |
|---|
| 199 | NSTUB(kbd_p2_f ,0xff025044) //109 |
|---|
| 200 | NSTUB(kbd_read_keys ,0xff025814) //109 |
|---|
| 201 | NSTUB(kbd_read_keys_r2 ,0xff0579c8) //109 |
|---|
| 202 | NSTUB(lseek ,0xff028240) //101 |
|---|
| 203 | NSTUB(malloc ,0xff004200) //112 |
|---|
| 204 | NSTUB(memcmp ,0xff010a14) //101 |
|---|
| 205 | NSTUB(memcpy ,0xff03152c) //101 |
|---|
| 206 | NSTUB(memset ,0xff23415c) //101 |
|---|
| 207 | NSTUB(mkdir ,0xff0284c0) // 6 |
|---|
| 208 | NSTUB(mktime_ext ,0xff0a8df0) // 1 |
|---|
| 209 | NSTUB(open ,0xff00ab14) // 6 |
|---|
| 210 | NSTUB(opendir ,0xff2c98a4) // 6 |
|---|
| 211 | NSTUB(openfastdir ,0xff2c98a4) // 6 |
|---|
| 212 | NSTUB(qsort ,0xff342dfc) // 6 |
|---|
| 213 | NSTUB(rand ,0xff234298) // 6 |
|---|
| 214 | NSTUB(read ,0xff00ad68) //101 |
|---|
| 215 | NSTUB(reboot_fw_update ,0xff2cef38) // 6 |
|---|
| 216 | NSTUB(rename ,0xff0278a8) // 6 |
|---|
| 217 | NSTUB(set_control_event ,0xff08f0ec) //111 |
|---|
| 218 | NSTUB(srand ,0xff23428c) // 6 |
|---|
| 219 | NSTUB(stat ,0xff028288) // 3 |
|---|
| 220 | NSTUB(strcat ,0xff0a85a8) // 1 |
|---|
| 221 | NSTUB(strchr ,0xff0040cc) // 1 |
|---|
| 222 | NSTUB(strcmp ,0xff0109d0) //101 |
|---|
| 223 | NSTUB(strcpy ,0xff0109b8) //101 |
|---|
| 224 | NSTUB(strftime ,0xff0a87f0) //113 |
|---|
| 225 | NSTUB(strlen ,0xff004118) //101 |
|---|
| 226 | NSTUB(strncmp ,0xff004080) // 1 |
|---|
| 227 | NSTUB(strncpy ,0xff004044) // 1 |
|---|
| 228 | NSTUB(strrchr ,0xff0040f0) // 1 |
|---|
| 229 | NSTUB(strtol ,0xff03182c) //101 |
|---|
| 230 | NSTUB(strtolx ,0xff031630) //109 |
|---|
| 231 | DEF(task_CaptSeq ,0xff0769f8) //110 |
|---|
| 232 | DEF(task_ExpDrv ,0xff0c0e24) //110 |
|---|
| 233 | DEF(task_InitFileModules ,0xff09301c) //110 |
|---|
| 234 | DEF(task_MovieRecord ,0xff18676c) //110 |
|---|
| 235 | DEF(task_PhySw ,0xff0253a8) //110 |
|---|
| 236 | NSTUB(time ,0xff084130) // 6 |
|---|
| 237 | NSTUB(vsprintf ,0xff010978) // 6 |
|---|
| 238 | NSTUB(write ,0xff028078) //101 |
|---|