| 1 | // !!! THIS FILE IS GENERATED. DO NOT EDIT. !!! |
|---|
| 2 | #include "stubs_asm.h" |
|---|
| 3 | |
|---|
| 4 | // Camera info: |
|---|
| 5 | // DRYOS R39 (DRYOS version 2.3, release #0039) |
|---|
| 6 | // Firmware Ver GM1.02D |
|---|
| 7 | // Canon PowerShot SX20 IS |
|---|
| 8 | |
|---|
| 9 | // Values for makefile.inc |
|---|
| 10 | // PLATFORMOSVER = 39 |
|---|
| 11 | // PLATFORMID = 12772 (0x31e4) // Found @ 0xfffe0130 |
|---|
| 12 | // MAXRAMADDR = 0x03ffffff |
|---|
| 13 | // KEYSYS = d4 // Found @ 0xffff35a0 |
|---|
| 14 | // NEED_ENCODED_DISKBOOT = 3 // Found @ 0xffff35b0 |
|---|
| 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 ,0xff836a9c) //102 *** != 0xff879704 |
|---|
| 19 | //NSTUB(TurnOffBackLight ,0xff8a5b30) //104 *** != 0xff89b6f4 |
|---|
| 20 | //NSTUB(UIFS_WriteFirmInfoToFile ,0xff979b78) //105 *** != 0xdeadc0de |
|---|
| 21 | //NSTUB(UnlockAF ,0xff836b38) //102 *** != 0xff879714 |
|---|
| 22 | //NSTUB(VbattGet ,0xff831cec) //103 *** != 0xff95d27c |
|---|
| 23 | //NSTUB(kbd_pwr_off ,0xff85f2c4) // 2 60% *** != 0x00000000 |
|---|
| 24 | // ERROR: kbd_pwr_on is not found. //--- --- *** != 0x00000000 |
|---|
| 25 | //NSTUB(openfastdir ,0xffa7d5a0) // 3 *** != 0xdeadc0de |
|---|
| 26 | //NSTUB(rename ,0xff834b74) // 4 *** != 0xdeadc0de |
|---|
| 27 | |
|---|
| 28 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 29 | // Firmware modemap table found @ff89aa90 -> ff8972e0 -> ff98f1e0 -> ffaac914 -> ffbe87b4 |
|---|
| 30 | // No problems found with modemap table. |
|---|
| 31 | |
|---|
| 32 | // Values below can be overridden in 'stubs_min.S': |
|---|
| 33 | DEF(physw_status ,0x00032464) // Found @0xff83341c |
|---|
| 34 | DEF(physw_run ,0x00001c44) // Found @0xff83308c |
|---|
| 35 | DEF(levent_table ,0xffba33a8) // Found @0xffba33a8 |
|---|
| 36 | DEF(FlashParamsTable ,0xffbe899c) // Found @0xffbe899c |
|---|
| 37 | DEF(movie_status ,0x00002c30) // Found @0xff878e00 |
|---|
| 38 | DEF(full_screen_refresh ,0x00009cf4) // Found @0xffa02778 |
|---|
| 39 | DEF(canon_menu_active ,0x0000312c) // Found @0xff88fee0 |
|---|
| 40 | DEF(canon_shoot_menu_active ,0x00008845) // Found @0xff9aa1e4 |
|---|
| 41 | DEF(playrec_mode ,0x00002e58) // Found @0xff882278 |
|---|
| 42 | DEF(zoom_status ,0x0000c6c0) // Found @0xffaaf648 |
|---|
| 43 | DEF(some_flag_for_af_scan ,0x00007934) // Found @0xff95fd00 |
|---|
| 44 | DEF(zoom_busy ,0x00006ec0) // Found @0xff955efc |
|---|
| 45 | DEF(focus_busy ,0x00006d50) // Found @0xff950090 |
|---|
| 46 | //DEF(recreview_hold ,0x00003d2c) // Found @0xff8a1bb0, ** != ** stubs_min = 0x000083d8 (0x82E0+0xF8) |
|---|
| 47 | |
|---|
| 48 | // Values below go in 'lib.c': |
|---|
| 49 | //void *vid_get_bitmap_fb() { return (void*)0x403f1000; } // Found @0xff859684 |
|---|
| 50 | //void *vid_get_viewport_fb() { return (void*)0x41020120; } // Found @0xffb03448 |
|---|
| 51 | //void *vid_get_viewport_fb_d() { return (void*)(*(int*)(0x2a30+0x58)); } // Found @0xff870890 & 0xff8708c8 |
|---|
| 52 | //char *camera_jpeg_count_str() { return (char*)0x00072dfc; } // Found @0xff9f7368 |
|---|
| 53 | //long hook_raw_size() { return 0x011ca240; } // Found @0xffb05bac |
|---|
| 54 | //int get_flash_params_count(void) { return 0x84; } // Found @0xff9907e0 |
|---|
| 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 @0xffb44d84, levent 0x90a |
|---|
| 58 | //#define SD_READONLY_IDX 2 |
|---|
| 59 | //#define USB_MASK 0x00040000 // Found @0xffb44d90, levent 0x902 |
|---|
| 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 | // { 0, KEY_SHOOT_FULL ,0x00000003 }, // Found @0xffb44c1c, levent 0x01 |
|---|
| 65 | // { 0, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffb44c1c, levent 0x01 |
|---|
| 66 | // { 0, KEY_SHOOT_HALF ,0x00000001 }, // Found @0xffb44c10, levent 0x00 |
|---|
| 67 | // { 1, KEY_SET ,0x00000100 }, // Found @0xffb44cac, levent 0x08 |
|---|
| 68 | // { 1, KEY_DISPLAY ,0x00000200 }, // Found @0xffb44cb8, levent 0x0a |
|---|
| 69 | // { 1, KEY_UP ,0x00000400 }, // Found @0xffb44cc4, levent 0x04 |
|---|
| 70 | // { 1, KEY_DOWN ,0x00000800 }, // Found @0xffb44cd0, levent 0x05 |
|---|
| 71 | // { 1, KEY_RIGHT ,0x00001000 }, // Found @0xffb44cdc, levent 0x07 |
|---|
| 72 | // { 1, KEY_LEFT ,0x00002000 }, // Found @0xffb44ce8, levent 0x06 |
|---|
| 73 | // { 1, KEY_MENU ,0x00004000 }, // Found @0xffb44cf4, levent 0x09 |
|---|
| 74 | // { 0, 0, 0 } |
|---|
| 75 | //}; |
|---|
| 76 | |
|---|
| 77 | // Values below go in 'platform_camera.h': |
|---|
| 78 | //#define CAM_DRYOS 1 |
|---|
| 79 | //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher |
|---|
| 80 | //#define CAM_RAW_ROWPIX 4080 // Found @0xff92b724 |
|---|
| 81 | //#define CAM_RAW_ROWS 3048 // Found @0xff92b72c |
|---|
| 82 | //#undef CAM_UNCACHED_BIT |
|---|
| 83 | //#define CAM_UNCACHED_BIT 0x40000000 // Found @0xff838e2c |
|---|
| 84 | |
|---|
| 85 | // Misc stuff |
|---|
| 86 | DEF(ctypes, 0xffb3a416) |
|---|
| 87 | |
|---|
| 88 | // For capt_seq.c |
|---|
| 89 | //static long *nrflag = (long*)(0x7918-0x08); // Found @ ff9625a8 & ff9625c4 |
|---|
| 90 | |
|---|
| 91 | // Stubs below matched 100%. |
|---|
| 92 | // Name Address Comp to stubs_entry_2.S |
|---|
| 93 | NSTUB(AllocateMemory ,0xffa9b828) //101 |
|---|
| 94 | NSTUB(AllocateUncacheableMemory ,0xff838de8) //112 |
|---|
| 95 | NSTUB(Close ,0xff83527c) //101 |
|---|
| 96 | NSTUB(CreateTask ,0xff81e5b4) //101 |
|---|
| 97 | NSTUB(DebugAssert ,0xff81e88c) //111 |
|---|
| 98 | NSTUB(DeleteDirectory_Fut ,0xff834cec) // 1 |
|---|
| 99 | NSTUB(DeleteFile_Fut ,0xff834c08) //112 |
|---|
| 100 | NSTUB(EnterToCompensationEVF ,0xff836d84) //104 |
|---|
| 101 | NSTUB(ExecuteEventProcedure ,0xff88b598) // 1 |
|---|
| 102 | NSTUB(ExitFromCompensationEVF ,0xff836dc8) //104 |
|---|
| 103 | NSTUB(ExitTask ,0xff81e844) //101 |
|---|
| 104 | NSTUB(ExpCtrlTool_StartContiAE ,0xff84465c) //104 |
|---|
| 105 | NSTUB(ExpCtrlTool_StopContiAE ,0xff844734) //104 |
|---|
| 106 | NSTUB(Fclose_Fut ,0xff834d84) //101 |
|---|
| 107 | NSTUB(Feof_Fut ,0xff834f70) // 1 |
|---|
| 108 | NSTUB(Fflush_Fut ,0xff834fac) // 1 |
|---|
| 109 | NSTUB(Fgets_Fut ,0xff834ed8) // 1 |
|---|
| 110 | NSTUB(Fopen_Fut ,0xff834d44) //101 |
|---|
| 111 | NSTUB(Fread_Fut ,0xff834e30) //101 |
|---|
| 112 | NSTUB(FreeMemory ,0xffa9b820) //101 |
|---|
| 113 | NSTUB(FreeUncacheableMemory ,0xff838e28) //112 |
|---|
| 114 | NSTUB(Fseek_Fut ,0xff834f24) //101 |
|---|
| 115 | NSTUB(Fwrite_Fut ,0xff834e84) //101 |
|---|
| 116 | NSTUB(GetBatteryTemperature ,0xff862744) //102 |
|---|
| 117 | NSTUB(GetCCDTemperature ,0xff8626d0) //102 |
|---|
| 118 | NSTUB(GetCurrentAvValue ,0xff9526d8) //102 |
|---|
| 119 | NSTUB(GetDrive_ClusterSize ,0xff86f1c8) // 3 |
|---|
| 120 | NSTUB(GetDrive_FreeClusters ,0xff86f228) // 3 |
|---|
| 121 | NSTUB(GetDrive_TotalClusters ,0xff86f1fc) // 3 |
|---|
| 122 | NSTUB(GetFocusLensSubjectDistance ,0xff950bcc) //102 |
|---|
| 123 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xff951000) // 3 |
|---|
| 124 | NSTUB(GetImageFolder ,0xff933568) //106 |
|---|
| 125 | NSTUB(GetKbdState ,0xff85f11c) //109 |
|---|
| 126 | NSTUB(GetMemInfo ,0xff81a070) // 3 |
|---|
| 127 | NSTUB(GetOpticalTemperature ,0xff8627b8) //102 |
|---|
| 128 | NSTUB(GetParameterData ,0xff9907a0) //101 |
|---|
| 129 | NSTUB(GetPropertyCase ,0xff88f32c) //102 |
|---|
| 130 | NSTUB(GetSystemTime ,0xffa9b880) //101 |
|---|
| 131 | NSTUB(GetVRAMHPixelsSize ,0xff84f904) //102 |
|---|
| 132 | NSTUB(GetVRAMVPixelsSize ,0xff84f910) //102 |
|---|
| 133 | NSTUB(GetZoomLensCurrentPoint ,0xff956864) //102 |
|---|
| 134 | NSTUB(GetZoomLensCurrentPosition ,0xffa8ed0c) //102 |
|---|
| 135 | NSTUB(GiveSemaphore ,0xff838804) //112 |
|---|
| 136 | NSTUB(IsStrobeChargeCompleted ,0xff8ce3f4) //102 |
|---|
| 137 | NSTUB(LEDDrive ,0xff85e338) //103 |
|---|
| 138 | NSTUB(LocalTime ,0xff888f0c) // 1 |
|---|
| 139 | NSTUB(LockMainPower ,0xff896efc) //103 |
|---|
| 140 | NSTUB(Lseek ,0xff835398) //101 |
|---|
| 141 | NSTUB(MakeDirectory_Fut ,0xff834c7c) // 1 |
|---|
| 142 | NSTUB(MoveFocusLensToDistance ,0xffaff710) //102 |
|---|
| 143 | NSTUB(MoveIrisWithAv ,0xffa971a8) //102 |
|---|
| 144 | NSTUB(MoveZoomLensWithPoint ,0xffa978d0) //102 |
|---|
| 145 | NSTUB(NewTaskShell ,0xff88edf0) //103 |
|---|
| 146 | NSTUB(Open ,0xff835224) //101 |
|---|
| 147 | NSTUB(PB2Rec ,0xff899e38) //104 |
|---|
| 148 | NSTUB(PT_MoveDigitalZoomToWide ,0xff8796b4) //102 |
|---|
| 149 | NSTUB(PT_MoveOpticalZoomAt ,0xff87968c) //102 |
|---|
| 150 | NSTUB(PT_PlaySound ,0xff8840a8) //102 |
|---|
| 151 | NSTUB(PostLogicalEventForNotPowerType ,0xff894df8) //103 |
|---|
| 152 | NSTUB(PostLogicalEventToUI ,0xff894e44) //103 |
|---|
| 153 | NSTUB(PutInNdFilter ,0xffa97754) //102 |
|---|
| 154 | NSTUB(PutOutNdFilter ,0xffa97778) //102 |
|---|
| 155 | NSTUB(Read ,0xff81ab78) //101 |
|---|
| 156 | NSTUB(ReadFastDir ,0xffa7d6d4) // 3 |
|---|
| 157 | NSTUB(Rec2PB ,0xff8988a4) //104 |
|---|
| 158 | NSTUB(RefreshPhysicalScreen ,0xffa04ad8) //104 |
|---|
| 159 | NSTUB(Remove ,0xff8352b0) // 4 |
|---|
| 160 | NSTUB(RenameFile_Fut ,0xff834b74) // 4 |
|---|
| 161 | NSTUB(Restart ,0xff83a53c) //106 |
|---|
| 162 | NSTUB(ScreenLock ,0xffa04aa4) // 8 |
|---|
| 163 | NSTUB(ScreenUnlock ,0xffa04b48) // 8 |
|---|
| 164 | NSTUB(SetAE_ShutterSpeed ,0xffb025c0) //102 |
|---|
| 165 | NSTUB(SetAutoShutdownTime ,0xff896f70) //103 |
|---|
| 166 | NSTUB(SetCurrentCaptureModeType ,0xff89eb78) //101 |
|---|
| 167 | NSTUB(SetFileAttributes ,0xff83554c) // 3 |
|---|
| 168 | NSTUB(SetFileTimeStamp ,0xff835508) // 3 |
|---|
| 169 | NSTUB(SetLogicalEventActive ,0xff896c4c) //101 |
|---|
| 170 | NSTUB(SetParameterData ,0xff99067c) //101 |
|---|
| 171 | NSTUB(SetPropertyCase ,0xff88f230) //102 |
|---|
| 172 | NSTUB(SetScriptMode ,0xff896c9c) //101 |
|---|
| 173 | NSTUB(SleepTask ,0xff838a6c) //101 |
|---|
| 174 | NSTUB(TakeSemaphore ,0xff838734) //101 |
|---|
| 175 | NSTUB(TurnOnBackLight ,0xff8a5b18) //104 |
|---|
| 176 | NSTUB(UnlockMainPower ,0xff896e50) //103 |
|---|
| 177 | NSTUB(UpdateMBROnFlash ,0xff86f048) //105 |
|---|
| 178 | NSTUB(Write ,0xff83530c) //101 |
|---|
| 179 | NSTUB(WriteSDCard ,0xff940c34) //108 |
|---|
| 180 | NSTUB(_log ,0xffb37ed8) //111 |
|---|
| 181 | NSTUB(_log10 ,0xffb36e1c) //112 |
|---|
| 182 | NSTUB(_pow ,0xffb36f8c) //114 |
|---|
| 183 | NSTUB(_sqrt ,0xffb39240) // 1 |
|---|
| 184 | NSTUB(add_ptp_handler ,0xffa49320) // 3 |
|---|
| 185 | NSTUB(apex2us ,0xffa08264) // 4 |
|---|
| 186 | NSTUB(close ,0xff81a990) // 1 |
|---|
| 187 | NSTUB(closedir ,0xffa7d55c) // 3 |
|---|
| 188 | NSTUB(err_init_task ,0xff815f28) // 4 |
|---|
| 189 | NSTUB(exmem_alloc ,0xff889dcc) //103 |
|---|
| 190 | NSTUB(free ,0xff814138) //112 |
|---|
| 191 | NSTUB(kbd_p1_f ,0xff833498) //109 |
|---|
| 192 | NSTUB(kbd_p1_f_cont ,0xff8334a4) //109 |
|---|
| 193 | NSTUB(kbd_p2_f ,0xff832d58) //109 |
|---|
| 194 | NSTUB(kbd_read_keys ,0xff83341c) //109 |
|---|
| 195 | NSTUB(kbd_read_keys_r2 ,0xff85e850) //109 |
|---|
| 196 | NSTUB(lseek ,0xff835398) //101 |
|---|
| 197 | NSTUB(malloc ,0xff8140dc) //112 |
|---|
| 198 | NSTUB(memcmp ,0xff8203d8) //101 |
|---|
| 199 | NSTUB(memcpy ,0xff83e458) //101 |
|---|
| 200 | NSTUB(memset ,0xffa072b4) //101 |
|---|
| 201 | NSTUB(mkdir ,0xff8356f0) // 3 |
|---|
| 202 | NSTUB(mktime_ext ,0xff8ad110) // 1 |
|---|
| 203 | NSTUB(open ,0xff81a8e0) // 1 |
|---|
| 204 | NSTUB(opendir ,0xffa7d5a0) // 3 |
|---|
| 205 | NSTUB(qsort ,0xffaeb65c) // 1 |
|---|
| 206 | NSTUB(rand ,0xff8204e0) // 1 |
|---|
| 207 | NSTUB(read ,0xff81ab78) //101 |
|---|
| 208 | NSTUB(reboot_fw_update ,0xffa82be4) // 1 |
|---|
| 209 | NSTUB(set_control_event ,0xff8968a0) //111 |
|---|
| 210 | NSTUB(srand ,0xff8204d4) // 1 |
|---|
| 211 | NSTUB(stat ,0xff8353d4) // 3 |
|---|
| 212 | // ALT: NSTUB(stat, 0xff86c60c) // 3 31/0 |
|---|
| 213 | NSTUB(strcat ,0xff8ac8cc) // 1 |
|---|
| 214 | NSTUB(strchr ,0xff813fc0) // 1 |
|---|
| 215 | NSTUB(strcmp ,0xff820394) //101 |
|---|
| 216 | NSTUB(strcpy ,0xff82037c) //101 |
|---|
| 217 | NSTUB(strftime ,0xff8acb18) // 1 |
|---|
| 218 | NSTUB(strlen ,0xff81400c) //101 |
|---|
| 219 | NSTUB(strncmp ,0xff813f74) // 1 |
|---|
| 220 | NSTUB(strncpy ,0xff813f38) // 1 |
|---|
| 221 | NSTUB(strrchr ,0xff813fe4) // 1 |
|---|
| 222 | NSTUB(strtol ,0xff83e738) //101 |
|---|
| 223 | NSTUB(strtolx ,0xff83e53c) //109 |
|---|
| 224 | DEF(task_CaptSeq ,0xff87cd90) //107 |
|---|
| 225 | DEF(task_ExpDrv ,0xff8c1480) //110 |
|---|
| 226 | DEF(task_InitFileModules ,0xff89a91c) //107 |
|---|
| 227 | DEF(task_MovieRecord ,0xff879084) //107 |
|---|
| 228 | DEF(task_PhySw ,0xff833088) //107 |
|---|
| 229 | DEF(task_RotaryEncoder ,0xff85f3cc) //107 |
|---|
| 230 | NSTUB(time ,0xff889484) // 2 |
|---|
| 231 | NSTUB(vsprintf ,0xff820340) // 1 |
|---|
| 232 | NSTUB(write ,0xff83530c) //101 |
|---|