| 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 IXUS 310 HS |
|---|
| 8 | |
|---|
| 9 | // Values for makefile.inc |
|---|
| 10 | // PLATFORMOSVER = 47 |
|---|
| 11 | // PLATFORMID = 12837 (0x3225) // Found @ 0xfff40040 |
|---|
| 12 | // MAXRAMADDR = 0x07ffffff |
|---|
| 13 | // KEYSYS = d4c // Found @ 0xffff3610 |
|---|
| 14 | // NEED_ENCODED_DISKBOOT = 6 // Found @ 0xffff3620 |
|---|
| 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 ,0xff0560cc) // 2 60% |
|---|
| 19 | // ERROR: kbd_pwr_on is not found. //--- --- *** != 0x00000000 |
|---|
| 20 | //NSTUB(reboot_fw_update ,0xff2e99d0) // 6 83% *** != 0xff2e99cc |
|---|
| 21 | |
|---|
| 22 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 23 | // Firmware modemap table found @ff090c3c -> ff08d864 -> ff1af368 -> ff320abc -> ff4ce6f0 |
|---|
| 24 | // No problems found with modemap table. |
|---|
| 25 | |
|---|
| 26 | // Values below can be overridden in 'stubs_min.S': |
|---|
| 27 | DEF(physw_status ,0x00034d4c) // Found @0xff024e2c |
|---|
| 28 | DEF(physw_run ,0x00001c3c) // Found @0xff0249cc |
|---|
| 29 | DEF(levent_table ,0xff4214d0) // Found @0xff4214d0 |
|---|
| 30 | DEF(FlashParamsTable ,0xff4ce930) // Found @0xff4ce930 |
|---|
| 31 | DEF(movie_status ,0x000070dc) // Found @0xff17e974 |
|---|
| 32 | DEF(full_screen_refresh ,0x0000a424) // Found @0xff244a14 |
|---|
| 33 | DEF(canon_menu_active ,0x000032f8) // Found @0xff0887f4 |
|---|
| 34 | DEF(canon_shoot_menu_active ,0x000087c9) // Found @0xff1c867c |
|---|
| 35 | DEF(playrec_mode ,0x00003030) // Found @0xff07abf4 |
|---|
| 36 | DEF(zoom_status ,0x0000e7c0) // Found @0xff324474 |
|---|
| 37 | DEF(some_flag_for_af_scan ,0x000074e0) // Found @0xff183040 |
|---|
| 38 | // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c). |
|---|
| 39 | // each entry contains 3 int value(s), the first is the zoom focus length. |
|---|
| 40 | // there are 64 entries in the table - set NUM_FL to 64 |
|---|
| 41 | DEF(focus_len_table ,0xfff4a30c) // Found @0xfff4a30c |
|---|
| 42 | DEF(zoom_busy ,0x00007000) // Found @0xff179af8 |
|---|
| 43 | DEF(focus_busy ,0x00006e70) // Found @0xff173e9c |
|---|
| 44 | DEF(recreview_hold ,0x0000391c) // Found @0xff098530 |
|---|
| 45 | DEF(palette_control ,0x0000a424) // Found @0xff244990 |
|---|
| 46 | DEF(active_palette_buffer ,0x0000a42c) // Found @0xff244994 |
|---|
| 47 | DEF(palette_buffer ,0x000c7dec) // Found @0xff244e6c |
|---|
| 48 | DEF(bitmap_buffer ,0x0000a464) // Found @0xff249aec |
|---|
| 49 | DEF(active_bitmap_buffer ,0x0000a45c) // Found @0xff249af0 |
|---|
| 50 | |
|---|
| 51 | // Values below go in 'lib.c': |
|---|
| 52 | //void *vid_get_bitmap_fb() { return (void*)0x40471000; } // Found @0xff04f54c |
|---|
| 53 | //void *vid_get_viewport_fb() { return (void*)0x405d7980; } // Found @0xff38b5c8 |
|---|
| 54 | //void *vid_get_viewport_fb_d() { return (void*)(*(int*)(0x2ce8+0x58)); } // Found @0xff06a728 & 0xff06a760 |
|---|
| 55 | //char *camera_jpeg_count_str() { return (char*)0x000c75f4; } // Found @0xff236e4c |
|---|
| 56 | //long hook_raw_size() { return 0x0123eaf0; } // Found @0xff38eadc |
|---|
| 57 | //int get_flash_params_count(void) { return 0xa0; } // Found @0xff1b03a0 |
|---|
| 58 | |
|---|
| 59 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 60 | //#define SD_READONLY_FLAG 0x00020000 // Found @0xff3d1494, levent 0x90a |
|---|
| 61 | //#define SD_READONLY_IDX 2 |
|---|
| 62 | //#define USB_MASK 0x04000000 // Found @0xff3d14b4, levent 0x902 |
|---|
| 63 | //#define USB_IDX 2 |
|---|
| 64 | |
|---|
| 65 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 66 | //static KeyMap keymap[] = { |
|---|
| 67 | // { 1, KEY_ZOOM_IN ,0x00001000 }, // Found @0xff3d144c, levent 0x02 |
|---|
| 68 | // { 1, KEY_ZOOM_OUT ,0x00008000 }, // Found @0xff3d1454, levent 0x03 |
|---|
| 69 | // { 2, KEY_SHOOT_FULL ,0x00000a00 }, // Found @0xff3d146c, levent 0x01 |
|---|
| 70 | // { 2, KEY_SHOOT_FULL_ONLY ,0x00000800 }, // Found @0xff3d146c, levent 0x01 |
|---|
| 71 | // { 2, KEY_SHOOT_HALF ,0x00000200 }, // Found @0xff3d1464, levent 0x00 |
|---|
| 72 | // { 0, 0, 0 } |
|---|
| 73 | //}; |
|---|
| 74 | |
|---|
| 75 | // Values below go in 'platform_camera.h': |
|---|
| 76 | //#define CAM_DRYOS 1 |
|---|
| 77 | //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher |
|---|
| 78 | //#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher |
|---|
| 79 | //#define CAM_RAW_ROWPIX 4168 // Found @0xff14a154 |
|---|
| 80 | //#define CAM_RAW_ROWS 3060 // Found @0xff14a160 |
|---|
| 81 | //#undef CAM_UNCACHED_BIT |
|---|
| 82 | //#define CAM_UNCACHED_BIT 0x40000000 // Found @0xff02b914 |
|---|
| 83 | |
|---|
| 84 | // Misc stuff |
|---|
| 85 | DEF(ctypes, 0xff3cea26) |
|---|
| 86 | |
|---|
| 87 | // For capt_seq.c |
|---|
| 88 | //static long *nrflag = (long*)(0x7514+0x08); // Found @ ff18775c & ff1877c8 |
|---|
| 89 | //#define NR_AUTO (0) // have to explictly reset value back to 0 to enable auto |
|---|
| 90 | |
|---|
| 91 | // Stubs below matched 100%. |
|---|
| 92 | // Name Address Comp to stubs_entry_2.S |
|---|
| 93 | NSTUB(AllocateMemory ,0xff30fad4) //101 |
|---|
| 94 | NSTUB(AllocateUncacheableMemory ,0xff02b8cc) //112 |
|---|
| 95 | NSTUB(Close ,0xff027690) //101 |
|---|
| 96 | NSTUB(CreateTask ,0xff00e9b0) //101 |
|---|
| 97 | NSTUB(DebugAssert ,0xff00ec88) //111 |
|---|
| 98 | NSTUB(DeleteDirectory_Fut ,0xff02708c) // 1 |
|---|
| 99 | NSTUB(DeleteFile_Fut ,0xff026fa8) //112 |
|---|
| 100 | NSTUB(DoAFLock ,0xff028edc) //102 |
|---|
| 101 | NSTUB(EnterToCompensationEVF ,0xff029138) //104 |
|---|
| 102 | NSTUB(ExecuteEventProcedure ,0xff083fe0) // 1 |
|---|
| 103 | NSTUB(ExitFromCompensationEVF ,0xff02917c) //104 |
|---|
| 104 | NSTUB(ExitTask ,0xff00ec40) //101 |
|---|
| 105 | NSTUB(ExpCtrlTool_StartContiAE ,0xff037f50) //104 |
|---|
| 106 | NSTUB(ExpCtrlTool_StopContiAE ,0xff038028) //104 |
|---|
| 107 | NSTUB(Fclose_Fut ,0xff027124) //101 |
|---|
| 108 | NSTUB(Feof_Fut ,0xff027310) // 1 |
|---|
| 109 | NSTUB(Fflush_Fut ,0xff02734c) // 1 |
|---|
| 110 | NSTUB(Fgets_Fut ,0xff027278) // 6 |
|---|
| 111 | NSTUB(Fopen_Fut ,0xff0270e4) //101 |
|---|
| 112 | NSTUB(Fread_Fut ,0xff0271d0) //101 |
|---|
| 113 | NSTUB(FreeMemory ,0xff30facc) //101 |
|---|
| 114 | NSTUB(FreeUncacheableMemory ,0xff02b90c) //112 |
|---|
| 115 | NSTUB(Fseek_Fut ,0xff0272c4) //101 |
|---|
| 116 | NSTUB(Fwrite_Fut ,0xff027224) //101 |
|---|
| 117 | NSTUB(GetBatteryTemperature ,0xff0597d4) //102 |
|---|
| 118 | NSTUB(GetCCDTemperature ,0xff059760) //102 |
|---|
| 119 | NSTUB(GetCurrentAvValue ,0xff17678c) //102 |
|---|
| 120 | NSTUB(GetDrive_ClusterSize ,0xff0680d8) // 6 |
|---|
| 121 | NSTUB(GetDrive_FreeClusters ,0xff068130) // 6 |
|---|
| 122 | NSTUB(GetDrive_TotalClusters ,0xff068108) // 6 |
|---|
| 123 | NSTUB(GetFocusLensSubjectDistance ,0xff174b20) //102 |
|---|
| 124 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xff174f80) // 3 |
|---|
| 125 | NSTUB(GetImageFolder ,0xff1510ec) // 6 |
|---|
| 126 | NSTUB(GetKbdState ,0xff0560b4) //109 |
|---|
| 127 | NSTUB(GetMemInfo ,0xff00a29c) // 3 |
|---|
| 128 | NSTUB(GetOpticalTemperature ,0xff059848) //102 |
|---|
| 129 | NSTUB(GetParameterData ,0xff1b0360) //101 |
|---|
| 130 | NSTUB(GetPropertyCase ,0xff087d48) //102 |
|---|
| 131 | NSTUB(GetSystemTime ,0xff30fb2c) //101 |
|---|
| 132 | NSTUB(GetZoomLensCurrentPoint ,0xff179f70) //102 |
|---|
| 133 | NSTUB(GetZoomLensCurrentPosition ,0xff2f9ac8) //102 |
|---|
| 134 | NSTUB(GiveSemaphore ,0xff02b2c4) //112 |
|---|
| 135 | NSTUB(IsStrobeChargeCompleted ,0xff0dabe0) //102 |
|---|
| 136 | NSTUB(LEDDrive ,0xff0555f8) //101 |
|---|
| 137 | NSTUB(LocalTime ,0xff081870) // 6 |
|---|
| 138 | NSTUB(LockMainPower ,0xff08d454) //103 |
|---|
| 139 | NSTUB(Lseek ,0xff0278ac) //101 |
|---|
| 140 | NSTUB(MakeDirectory_Fut ,0xff02701c) // 6 |
|---|
| 141 | NSTUB(MakeSDCardBootable ,0xff068368) //105 |
|---|
| 142 | NSTUB(MoveFocusLensToDistance ,0xff3878c4) //102 |
|---|
| 143 | NSTUB(MoveIrisWithAv ,0xff30bc20) //102 |
|---|
| 144 | NSTUB(MoveZoomLensWithPoint ,0xff30c4ec) //102 |
|---|
| 145 | NSTUB(NewTaskShell ,0xff087790) //101 |
|---|
| 146 | NSTUB(Open ,0xff0275c8) //101 |
|---|
| 147 | NSTUB(PB2Rec ,0xff090114) //104 |
|---|
| 148 | NSTUB(PT_MoveDigitalZoomToWide ,0xff072364) //102 |
|---|
| 149 | NSTUB(PT_MoveOpticalZoomAt ,0xff07233c) //102 |
|---|
| 150 | NSTUB(PT_PlaySound ,0xff07cc4c) // 6 |
|---|
| 151 | NSTUB(PostLogicalEventForNotPowerType ,0xff08cbfc) //103 |
|---|
| 152 | NSTUB(PostLogicalEventToUI ,0xff08cc48) //103 |
|---|
| 153 | NSTUB(PutInNdFilter ,0xff30c334) //102 |
|---|
| 154 | NSTUB(PutOutNdFilter ,0xff30c358) //102 |
|---|
| 155 | NSTUB(Read ,0xff00ad58) //101 |
|---|
| 156 | NSTUB(ReadFastDir ,0xff2e4530) // 6 |
|---|
| 157 | NSTUB(Rec2PB ,0xff090154) //104 |
|---|
| 158 | NSTUB(RefreshPhysicalScreen ,0xff0a3f10) //104 |
|---|
| 159 | NSTUB(Remove ,0xff027804) // 6 |
|---|
| 160 | NSTUB(RenameFile_Fut ,0xff026f14) // 6 |
|---|
| 161 | NSTUB(Restart ,0xff02d0e0) //106 |
|---|
| 162 | NSTUB(ScreenLock ,0xff0a5108) // 4 |
|---|
| 163 | NSTUB(ScreenUnlock ,0xff0a516c) // 3 |
|---|
| 164 | NSTUB(SetAE_ShutterSpeed ,0xff38a740) //102 |
|---|
| 165 | NSTUB(SetAutoShutdownTime ,0xff08d4c8) //103 |
|---|
| 166 | NSTUB(SetCurrentCaptureModeType ,0xff095608) //101 |
|---|
| 167 | NSTUB(SetFileAttributes ,0xff027a94) // 6 |
|---|
| 168 | NSTUB(SetFileTimeStamp ,0xff027a1c) // 6 |
|---|
| 169 | NSTUB(SetLogicalEventActive ,0xff08d1bc) //101 |
|---|
| 170 | NSTUB(SetParameterData ,0xff1b02d0) //101 |
|---|
| 171 | NSTUB(SetPropertyCase ,0xff087c2c) //102 |
|---|
| 172 | NSTUB(SetScriptMode ,0xff08d20c) //101 |
|---|
| 173 | NSTUB(SleepTask ,0xff02b570) //101 |
|---|
| 174 | NSTUB(TakeSemaphore ,0xff02b1f4) //101 |
|---|
| 175 | NSTUB(TurnOffBackLight ,0xff09b938) //104 |
|---|
| 176 | NSTUB(TurnOnBackLight ,0xff09b920) //104 |
|---|
| 177 | NSTUB(UIFS_WriteFirmInfoToFile ,0xff19e09c) //101 |
|---|
| 178 | NSTUB(UnlockAF ,0xff028f14) //102 |
|---|
| 179 | NSTUB(UnlockMainPower ,0xff08d3a8) //103 |
|---|
| 180 | NSTUB(VbattGet ,0xff023004) //101 |
|---|
| 181 | NSTUB(Write ,0xff0276e4) //101 |
|---|
| 182 | NSTUB(WriteSDCard ,0xff163f5c) //108 |
|---|
| 183 | NSTUB(_log ,0xff3cb210) //111 |
|---|
| 184 | NSTUB(_log10 ,0xff3cb750) //112 |
|---|
| 185 | NSTUB(_pow ,0xff3cb8c8) //114 |
|---|
| 186 | NSTUB(_sqrt ,0xff3cd828) // 6 |
|---|
| 187 | NSTUB(add_ptp_handler ,0xff28ee4c) // 6 |
|---|
| 188 | NSTUB(apex2us ,0xff24e4e4) // 4 |
|---|
| 189 | NSTUB(close ,0xff00abb4) // 6 |
|---|
| 190 | NSTUB(closedir ,0xff2e438c) // 4 |
|---|
| 191 | NSTUB(err_init_task ,0xff005fd4) // 4 |
|---|
| 192 | NSTUB(exmem_alloc ,0xff082838) //101 |
|---|
| 193 | NSTUB(free ,0xff004244) //112 |
|---|
| 194 | NSTUB(kbd_p1_f ,0xff024ea8) //109 |
|---|
| 195 | NSTUB(kbd_p1_f_cont ,0xff024eb4) //109 |
|---|
| 196 | NSTUB(kbd_p2_f ,0xff02469c) //109 |
|---|
| 197 | NSTUB(kbd_read_keys ,0xff024e2c) //109 |
|---|
| 198 | NSTUB(kbd_read_keys_r2 ,0xff055ad0) //109 |
|---|
| 199 | NSTUB(lseek ,0xff0278ac) //101 |
|---|
| 200 | NSTUB(malloc ,0xff0041ec) //112 |
|---|
| 201 | NSTUB(memcmp ,0xff0108e8) //101 |
|---|
| 202 | NSTUB(memcpy ,0xff030fbc) //101 |
|---|
| 203 | NSTUB(memset ,0xff24cfd8) //101 |
|---|
| 204 | NSTUB(mkdir ,0xff027b2c) // 6 |
|---|
| 205 | NSTUB(mktime_ext ,0xff0a5f80) // 1 |
|---|
| 206 | NSTUB(open ,0xff00ab04) // 6 |
|---|
| 207 | NSTUB(opendir ,0xff2e43dc) // 6 |
|---|
| 208 | NSTUB(openfastdir ,0xff2e43dc) // 6 |
|---|
| 209 | NSTUB(qsort ,0xff24d5e0) // 6 |
|---|
| 210 | NSTUB(rand ,0xff24d118) // 6 |
|---|
| 211 | NSTUB(read ,0xff00ad58) //101 |
|---|
| 212 | NSTUB(rename ,0xff026f14) // 6 |
|---|
| 213 | NSTUB(set_control_event ,0xff08ce6c) //111 |
|---|
| 214 | NSTUB(srand ,0xff24d10c) // 6 |
|---|
| 215 | NSTUB(stat ,0xff0278f4) // 3 |
|---|
| 216 | NSTUB(strcat ,0xff0a5738) // 1 |
|---|
| 217 | NSTUB(strchr ,0xff0040b8) // 1 |
|---|
| 218 | NSTUB(strcmp ,0xff0108a4) //101 |
|---|
| 219 | NSTUB(strcpy ,0xff01088c) //101 |
|---|
| 220 | NSTUB(strftime ,0xff0a5980) //113 |
|---|
| 221 | NSTUB(strlen ,0xff004104) //101 |
|---|
| 222 | NSTUB(strncmp ,0xff00406c) // 1 |
|---|
| 223 | NSTUB(strncpy ,0xff004030) // 1 |
|---|
| 224 | NSTUB(strrchr ,0xff0040dc) // 1 |
|---|
| 225 | NSTUB(strtol ,0xff0312bc) //101 |
|---|
| 226 | NSTUB(strtolx ,0xff0310c0) //109 |
|---|
| 227 | DEF(task_CaptSeq ,0xff074f1c) //110 |
|---|
| 228 | DEF(task_ExpDrv ,0xff0bdd18) //110 |
|---|
| 229 | DEF(task_InitFileModules ,0xff090ab0) //110 |
|---|
| 230 | DEF(task_MovieRecord ,0xff17fc00) //110 |
|---|
| 231 | DEF(task_PhySw ,0xff0249c8) //110 |
|---|
| 232 | NSTUB(time ,0xff081e4c) // 6 |
|---|
| 233 | NSTUB(vsprintf ,0xff01084c) // 6 |
|---|
| 234 | NSTUB(write ,0xff0276e4) //101 |
|---|