| 1 | // !!! THIS FILE IS GENERATED. DO NOT EDIT. !!! |
|---|
| 2 | #include "stubs_asm.h" |
|---|
| 3 | |
|---|
| 4 | // Camera info: |
|---|
| 5 | // DRYOS R45 (DRYOS version 2.3, release #0045) |
|---|
| 6 | // Firmware Ver GM1.01C |
|---|
| 7 | // Canon PowerShot SX130 IS |
|---|
| 8 | |
|---|
| 9 | // Values for makefile.inc |
|---|
| 10 | // PLATFORMOSVER = 45 |
|---|
| 11 | // PLATFORMID = 12817 (0x3211) // Found @ 0xfffe0130 |
|---|
| 12 | // MAXRAMADDR = 0x03ffffff |
|---|
| 13 | // KEYSYS = d4b // Found @ 0xffff3618 |
|---|
| 14 | // NEED_ENCODED_DISKBOOT = 5 // Found @ 0xffff3628 |
|---|
| 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(DoAFLock ,0xff8384d8) //102 *** != 0xff878eec |
|---|
| 19 | //NSTUB(GetBatteryTemperature ,0xff863050) //102 *** != 0x00000000 |
|---|
| 20 | //NSTUB(UnlockAF ,0xff838510) //102 *** != 0xff878efc |
|---|
| 21 | //NSTUB(kbd_pwr_off ,0xff85fc24) // 2 60% *** != 0x00000000 |
|---|
| 22 | // ERROR: kbd_pwr_on is not found. //--- --- *** != 0x00000000 |
|---|
| 23 | //NSTUB(rename ,0xff8365e0) // 4 *** != 0xff836dd8 |
|---|
| 24 | |
|---|
| 25 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 26 | // Firmware modemap table found @ff897aac -> ff8943e4 -> ff992a10 -> ffac1640 -> ffbe80ac |
|---|
| 27 | // No problems found with modemap table. |
|---|
| 28 | |
|---|
| 29 | // Values below can be overridden in 'stubs_min.S': |
|---|
| 30 | DEF(physw_status ,0x00032b34) // Found @0xff834658 |
|---|
| 31 | DEF(physw_run ,0x00001c3c) // Found @0xff83424c |
|---|
| 32 | DEF(levent_table ,0xffb97a20) // Found @0xffb97a20 |
|---|
| 33 | DEF(FlashParamsTable ,0xffbe82ac) // Found @0xffbe82ac |
|---|
| 34 | DEF(movie_status ,0x00006bac) // Found @0xff9698bc |
|---|
| 35 | DEF(full_screen_refresh ,0x00009458) // Found @0xffa09454 |
|---|
| 36 | DEF(canon_menu_active ,0x00003038) // Found @0xff88e340 |
|---|
| 37 | DEF(canon_shoot_menu_active ,0x00007d89) // Found @0xff9a95b8 |
|---|
| 38 | DEF(playrec_mode ,0x00002d64) // Found @0xff880644 |
|---|
| 39 | DEF(zoom_status ,0x0000ce70) // Found @0xffac4bf0 |
|---|
| 40 | DEF(some_flag_for_af_scan ,0x00006f68) // Found @0xff96cc44 |
|---|
| 41 | // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c). |
|---|
| 42 | // each entry contains 3 int value(s), the first is the zoom focus length. |
|---|
| 43 | // there are 128 entries in the table - set NUM_FL to 128 |
|---|
| 44 | DEF(focus_len_table ,0xfffe94ec) // Found @0xfffe94ec |
|---|
| 45 | DEF(zoom_busy ,0x00006a94) // Found @0xff963b60 |
|---|
| 46 | DEF(focus_busy ,0x00006978) // Found @0xff95fd2c |
|---|
| 47 | //DEF(recreview_hold ,0x00003a50) // Found @0xff89d940, ** != ** stubs_min = 0x000079d0 (0x78E4+0xEC) |
|---|
| 48 | DEF(palette_control ,0x00009458) // Found @0xffa093d0 |
|---|
| 49 | DEF(active_palette_buffer ,0x00009460) // Found @0xffa093d4 |
|---|
| 50 | DEF(palette_buffer ,0x000b3a58) // Found @0xffa0978c |
|---|
| 51 | |
|---|
| 52 | // Values below go in 'lib.c': |
|---|
| 53 | //void *vid_get_bitmap_fb() { return (void*)0x403f1000; } // Found @0xff85b5cc |
|---|
| 54 | //void *vid_get_viewport_fb() { return (void*)0x40507700; } // Found @0xffb0cec8 |
|---|
| 55 | //void *vid_get_viewport_fb_d() { return (void*)(*(int*)(0x2a70+0x58)); } // Found @0xff872098 & 0xff8720d8 |
|---|
| 56 | //char *camera_jpeg_count_str() { return (char*)0x000b33a4; } // Found @0xff9ff42c |
|---|
| 57 | //long hook_raw_size() { return 0x011ca240; } // Found @0xffb10350 |
|---|
| 58 | //int get_flash_params_count(void) { return 0x9a; } // Found @0xff993a48 |
|---|
| 59 | |
|---|
| 60 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 61 | //#define SD_READONLY_FLAG 0x00020000 // Found @0xffb4f4e8, levent 0x90a |
|---|
| 62 | //#define SD_READONLY_IDX 2 |
|---|
| 63 | //#define USB_MASK 0x04000000 // Found @0xffb4f508, levent 0x902 |
|---|
| 64 | //#define USB_IDX 2 |
|---|
| 65 | |
|---|
| 66 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 67 | //static KeyMap keymap[] = { |
|---|
| 68 | // { 2, KEY_ZOOM_IN ,0x00000010 }, // Found @0xffb4f480, levent 0x02 |
|---|
| 69 | // { 2, KEY_ZOOM_OUT ,0x00000020 }, // Found @0xffb4f488, levent 0x03 |
|---|
| 70 | // { 2, KEY_UP ,0x00000100 }, // Found @0xffb4f4a0, levent 0x04 |
|---|
| 71 | // { 2, KEY_DOWN ,0x00000200 }, // Found @0xffb4f4a8, levent 0x05 |
|---|
| 72 | // { 2, KEY_RIGHT ,0x00000400 }, // Found @0xffb4f4b0, levent 0x07 |
|---|
| 73 | // { 2, KEY_LEFT ,0x00000800 }, // Found @0xffb4f4b8, levent 0x06 |
|---|
| 74 | // { 2, KEY_SET ,0x00001000 }, // Found @0xffb4f4c0, levent 0x08 |
|---|
| 75 | // { 2, KEY_MENU ,0x00002000 }, // Found @0xffb4f4c8, levent 0x09 |
|---|
| 76 | // { 2, KEY_DISPLAY ,0x00004000 }, // Found @0xffb4f4d0, levent 0x0a |
|---|
| 77 | // { 2, KEY_SHOOT_FULL ,0x0000000c }, // Found @0xffb4f478, levent 0x01 |
|---|
| 78 | // { 2, KEY_SHOOT_FULL_ONLY ,0x00000008 }, // Found @0xffb4f478, levent 0x01 |
|---|
| 79 | // { 2, KEY_SHOOT_HALF ,0x00000004 }, // Found @0xffb4f470, levent 0x00 |
|---|
| 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_RAW_ROWPIX 4080 // Found @0xff93a260 |
|---|
| 87 | //#define CAM_RAW_ROWS 3048 // Found @0xff93a268 |
|---|
| 88 | //#undef CAM_UNCACHED_BIT |
|---|
| 89 | //#define CAM_UNCACHED_BIT 0x40000000 // Found @0xff83a6a0 |
|---|
| 90 | |
|---|
| 91 | // Misc stuff |
|---|
| 92 | DEF(ctypes, 0xffb4dd8a) |
|---|
| 93 | |
|---|
| 94 | // For capt_seq.c |
|---|
| 95 | //static long *nrflag = (long*)(0x6fa4+0x08); // Found @ ff97084c & ff970864 |
|---|
| 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 ,0xffab19dc) //101 |
|---|
| 101 | NSTUB(AllocateUncacheableMemory ,0xff83a65c) //112 |
|---|
| 102 | NSTUB(Close ,0xff836cfc) //101 |
|---|
| 103 | NSTUB(CreateTask ,0xff81e8a0) //101 |
|---|
| 104 | NSTUB(DebugAssert ,0xff81eb78) //111 |
|---|
| 105 | NSTUB(DeleteDirectory_Fut ,0xff836758) // 1 |
|---|
| 106 | NSTUB(DeleteFile_Fut ,0xff836674) //112 |
|---|
| 107 | NSTUB(EnterToCompensationEVF ,0xff838628) //104 |
|---|
| 108 | NSTUB(ExecuteEventProcedure ,0xff889a98) // 1 |
|---|
| 109 | NSTUB(ExitFromCompensationEVF ,0xff83866c) //104 |
|---|
| 110 | NSTUB(ExitTask ,0xff81eb30) //101 |
|---|
| 111 | NSTUB(ExpCtrlTool_StartContiAE ,0xff846a84) //104 |
|---|
| 112 | NSTUB(ExpCtrlTool_StopContiAE ,0xff846c14) //104 |
|---|
| 113 | NSTUB(Fclose_Fut ,0xff8367f0) //101 |
|---|
| 114 | NSTUB(Feof_Fut ,0xff8369dc) // 1 |
|---|
| 115 | NSTUB(Fflush_Fut ,0xff836a18) // 1 |
|---|
| 116 | NSTUB(Fgets_Fut ,0xff836944) // 1 |
|---|
| 117 | NSTUB(Fopen_Fut ,0xff8367b0) //101 |
|---|
| 118 | NSTUB(Fread_Fut ,0xff83689c) //101 |
|---|
| 119 | NSTUB(FreeMemory ,0xffab19d4) //101 |
|---|
| 120 | NSTUB(FreeUncacheableMemory ,0xff83a69c) //112 |
|---|
| 121 | NSTUB(Fseek_Fut ,0xff836990) //101 |
|---|
| 122 | NSTUB(Fwrite_Fut ,0xff8368f0) //101 |
|---|
| 123 | NSTUB(GetCCDTemperature ,0xff862fdc) //102 |
|---|
| 124 | NSTUB(GetCurrentAvValue ,0xff9625c0) //102 |
|---|
| 125 | NSTUB(GetDrive_ClusterSize ,0xff8709b8) // 4 |
|---|
| 126 | NSTUB(GetDrive_FreeClusters ,0xff870a18) // 4 |
|---|
| 127 | NSTUB(GetDrive_TotalClusters ,0xff8709ec) // 3 |
|---|
| 128 | NSTUB(GetFocusLensSubjectDistance ,0xff9609ac) //102 |
|---|
| 129 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xff960df8) // 3 |
|---|
| 130 | NSTUB(GetImageFolder ,0xff9419ac) //106 |
|---|
| 131 | NSTUB(GetKbdState ,0xff85fc0c) //109 |
|---|
| 132 | NSTUB(GetMemInfo ,0xff81a264) // 3 |
|---|
| 133 | NSTUB(GetOpticalTemperature ,0xff8630c8) //102 |
|---|
| 134 | NSTUB(GetParameterData ,0xff993a0c) //101 |
|---|
| 135 | NSTUB(GetPropertyCase ,0xff88d7a0) //102 |
|---|
| 136 | NSTUB(GetSystemTime ,0xffab1a34) //101 |
|---|
| 137 | NSTUB(GetVRAMHPixelsSize ,0xff8525f4) //102 |
|---|
| 138 | NSTUB(GetVRAMVPixelsSize ,0xff852600) //102 |
|---|
| 139 | NSTUB(GetZoomLensCurrentPoint ,0xff963fc8) //102 |
|---|
| 140 | NSTUB(GetZoomLensCurrentPosition ,0xffa9fe7c) //102 |
|---|
| 141 | NSTUB(GiveSemaphore ,0xff83a078) //112 |
|---|
| 142 | NSTUB(IsStrobeChargeCompleted ,0xff8d7004) //102 |
|---|
| 143 | NSTUB(LEDDrive ,0xff85f0f4) //103 |
|---|
| 144 | NSTUB(LocalTime ,0xff8873e8) // 1 |
|---|
| 145 | NSTUB(LockMainPower ,0xff893fec) //103 |
|---|
| 146 | NSTUB(Lseek ,0xff836e18) //101 |
|---|
| 147 | NSTUB(MakeDirectory_Fut ,0xff8366e8) // 1 |
|---|
| 148 | NSTUB(MoveFocusLensToDistance ,0xffb0994c) //102 |
|---|
| 149 | NSTUB(MoveIrisWithAv ,0xffaae374) //102 |
|---|
| 150 | NSTUB(MoveZoomLensWithPoint ,0xffaaea3c) //102 |
|---|
| 151 | NSTUB(NewTaskShell ,0xff88d1bc) //103 |
|---|
| 152 | NSTUB(Open ,0xff836c90) //101 |
|---|
| 153 | NSTUB(PB2Rec ,0xff896f88) //104 |
|---|
| 154 | NSTUB(PT_MoveDigitalZoomToWide ,0xff878e9c) //102 |
|---|
| 155 | NSTUB(PT_MoveOpticalZoomAt ,0xff878e74) //102 |
|---|
| 156 | NSTUB(PT_PlaySound ,0xff8824e4) // 4 |
|---|
| 157 | NSTUB(PostLogicalEventForNotPowerType ,0xff891d90) //103 |
|---|
| 158 | NSTUB(PostLogicalEventToUI ,0xff891ddc) //103 |
|---|
| 159 | NSTUB(PutInNdFilter ,0xffb07608) //102 |
|---|
| 160 | NSTUB(PutOutNdFilter ,0xffb07640) //102 |
|---|
| 161 | NSTUB(Read ,0xff81ad74) //101 |
|---|
| 162 | NSTUB(ReadFastDir ,0xffa8c488) // 4 |
|---|
| 163 | NSTUB(Rec2PB ,0xff896fc8) //104 |
|---|
| 164 | NSTUB(RefreshPhysicalScreen ,0xff8a788c) //104 |
|---|
| 165 | NSTUB(Remove ,0xff836d30) // 4 |
|---|
| 166 | NSTUB(RenameFile_Fut ,0xff8365e0) // 4 |
|---|
| 167 | NSTUB(Restart ,0xff83be44) //106 |
|---|
| 168 | NSTUB(ScreenLock ,0xff8a8a1c) // 4 |
|---|
| 169 | NSTUB(ScreenUnlock ,0xff8a8a80) // 9 |
|---|
| 170 | NSTUB(SetAE_ShutterSpeed ,0xffb0c094) //102 |
|---|
| 171 | NSTUB(SetAutoShutdownTime ,0xff894060) //103 |
|---|
| 172 | NSTUB(SetCurrentCaptureModeType ,0xff89abfc) //101 |
|---|
| 173 | NSTUB(SetFileAttributes ,0xff836ff4) // 3 |
|---|
| 174 | NSTUB(SetFileTimeStamp ,0xff836f98) // 4 |
|---|
| 175 | NSTUB(SetLogicalEventActive ,0xff893d38) //101 |
|---|
| 176 | NSTUB(SetParameterData ,0xff993978) //101 |
|---|
| 177 | NSTUB(SetPropertyCase ,0xff88d678) //102 |
|---|
| 178 | NSTUB(SetScriptMode ,0xff893d88) //101 |
|---|
| 179 | NSTUB(SleepTask ,0xff83a2e0) //101 |
|---|
| 180 | NSTUB(TakeSemaphore ,0xff839fa8) //101 |
|---|
| 181 | NSTUB(TurnOffBackLight ,0xff8a0584) //104 |
|---|
| 182 | NSTUB(TurnOnBackLight ,0xff8a056c) //104 |
|---|
| 183 | NSTUB(UIFS_WriteFirmInfoToFile ,0xff98420c) //101 |
|---|
| 184 | NSTUB(UnlockMainPower ,0xff893f40) //103 |
|---|
| 185 | NSTUB(UpdateMBROnFlash ,0xff870838) //105 |
|---|
| 186 | NSTUB(VbattGet ,0xff832fb4) //103 |
|---|
| 187 | NSTUB(Write ,0xff836d8c) //101 |
|---|
| 188 | NSTUB(WriteSDCard ,0xff950268) //108 |
|---|
| 189 | NSTUB(_log ,0xffb4b6d4) //111 |
|---|
| 190 | NSTUB(_log10 ,0xffb4a618) //112 |
|---|
| 191 | NSTUB(_pow ,0xffb4a788) //114 |
|---|
| 192 | NSTUB(_sqrt ,0xffb4caa0) // 1 |
|---|
| 193 | NSTUB(add_ptp_handler ,0xffa4c81c) // 3 |
|---|
| 194 | NSTUB(apex2us ,0xffa0e804) // 4 |
|---|
| 195 | NSTUB(close ,0xff81ab8c) // 1 |
|---|
| 196 | NSTUB(closedir ,0xffa8c2e4) // 4 |
|---|
| 197 | NSTUB(err_init_task ,0xff815fd4) // 4 |
|---|
| 198 | NSTUB(exmem_alloc ,0xff888334) //103 |
|---|
| 199 | NSTUB(free ,0xff814244) //112 |
|---|
| 200 | NSTUB(kbd_p1_f ,0xff8346d0) //109 |
|---|
| 201 | NSTUB(kbd_p1_f_cont ,0xff8346dc) //109 |
|---|
| 202 | NSTUB(kbd_p2_f ,0xff833f18) //109 |
|---|
| 203 | NSTUB(kbd_read_keys ,0xff834658) //109 |
|---|
| 204 | NSTUB(kbd_read_keys_r2 ,0xff85f5c4) //109 |
|---|
| 205 | NSTUB(lseek ,0xff836e18) //101 |
|---|
| 206 | NSTUB(malloc ,0xff8141e8) //112 |
|---|
| 207 | NSTUB(memcmp ,0xff8206d0) //101 |
|---|
| 208 | NSTUB(memcpy ,0xff83fd04) //101 |
|---|
| 209 | NSTUB(memset ,0xffa0d800) //101 |
|---|
| 210 | NSTUB(mkdir ,0xff837198) // 4 |
|---|
| 211 | NSTUB(mktime_ext ,0xff8a9824) // 1 |
|---|
| 212 | NSTUB(open ,0xff81aadc) // 1 |
|---|
| 213 | NSTUB(opendir ,0xffa8c334) // 4 |
|---|
| 214 | NSTUB(openfastdir ,0xffa8c334) // 4 |
|---|
| 215 | NSTUB(qsort ,0xffaf8800) // 4 |
|---|
| 216 | NSTUB(rand ,0xffa0d940) // 4 |
|---|
| 217 | NSTUB(read ,0xff81ad74) //101 |
|---|
| 218 | NSTUB(reboot_fw_update ,0xffa918a8) // 4 |
|---|
| 219 | NSTUB(set_control_event ,0xff893928) //111 |
|---|
| 220 | NSTUB(srand ,0xffa0d934) // 4 |
|---|
| 221 | NSTUB(stat ,0xff836e60) // 3 |
|---|
| 222 | NSTUB(strcat ,0xff8a8fe0) // 1 |
|---|
| 223 | NSTUB(strchr ,0xff8140b4) // 1 |
|---|
| 224 | NSTUB(strcmp ,0xff82068c) //101 |
|---|
| 225 | NSTUB(strcpy ,0xff820674) //101 |
|---|
| 226 | NSTUB(strftime ,0xff8a922c) //113 |
|---|
| 227 | NSTUB(strlen ,0xff814100) //101 |
|---|
| 228 | NSTUB(strncmp ,0xff814068) // 1 |
|---|
| 229 | NSTUB(strncpy ,0xff81402c) // 1 |
|---|
| 230 | NSTUB(strrchr ,0xff8140d8) // 1 |
|---|
| 231 | NSTUB(strtol ,0xff83ffe4) //101 |
|---|
| 232 | NSTUB(strtolx ,0xff83fde8) //109 |
|---|
| 233 | DEF(task_CaptSeq ,0xff87b564) //107 |
|---|
| 234 | DEF(task_ExpDrv ,0xff8bfa94) //110 |
|---|
| 235 | DEF(task_InitFileModules ,0xff897938) //107 |
|---|
| 236 | DEF(task_MovieRecord ,0xff969bc8) //107 |
|---|
| 237 | DEF(task_PhySw ,0xff834248) //107 |
|---|
| 238 | DEF(task_RotaryEncoder ,0xff85fd80) //107 |
|---|
| 239 | NSTUB(time ,0xff8879c8) // 2 |
|---|
| 240 | NSTUB(vsprintf ,0xff820638) // 4 |
|---|
| 241 | NSTUB(write ,0xff836d8c) //101 |
|---|