| 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.00H |
|---|
| 7 | // Canon PowerShot SX30 IS |
|---|
| 8 | |
|---|
| 9 | // Values for makefile.inc |
|---|
| 10 | // PLATFORMID = 12816 (0x3210) // Found @ 0xfffe0130 |
|---|
| 11 | // MAXRAMADDR = 0x07ffffff |
|---|
| 12 | // KEYSYS = d4b // Found @ 0xffff3680 |
|---|
| 13 | // NEED_ENCODED_DISKBOOT = 5 // Found @ 0xffff3690 |
|---|
| 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 ,0xff865b9c) // 2 60% *** != 0xff810b1c |
|---|
| 18 | // ERROR: kbd_pwr_on is not found. //--- --- *** != 0xff810b1c |
|---|
| 19 | |
|---|
| 20 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 21 | // Firmware modemap table found @ff8a3cc0 -> ff8a068c -> ff9c1110 -> ffb00d0c -> ffc67954 |
|---|
| 22 | // No problems found with modemap table. |
|---|
| 23 | |
|---|
| 24 | // Values below can be overridden in 'stubs_min.S': |
|---|
| 25 | DEF(physw_status ,0x00034594) // Found @0xff8349f0 |
|---|
| 26 | DEF(physw_run ,0x00001c3c) // Found @0xff8345ec |
|---|
| 27 | DEF(levent_table ,0xffc0e88c) // Found @0xffc0e88c |
|---|
| 28 | DEF(FlashParamsTable ,0xffc67b58) // Found @0xffc67b58 |
|---|
| 29 | DEF(movie_status ,0x00003524) // Found @0xff882fc8 |
|---|
| 30 | DEF(full_screen_refresh ,0x0000b198) // Found @0xffa46958 |
|---|
| 31 | DEF(canon_menu_active ,0x00003a2c) // Found @0xff89a56c |
|---|
| 32 | DEF(canon_shoot_menu_active ,0x00009901) // Found @0xff9de9ac |
|---|
| 33 | DEF(playrec_mode ,0x00003758) // Found @0xff88c718 |
|---|
| 34 | DEF(zoom_status ,0x0000e7c4) // Found @0xffb04790 |
|---|
| 35 | DEF(some_flag_for_af_scan ,0x000085cc) // Found @0xff991078 |
|---|
| 36 | // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c). |
|---|
| 37 | // each entry contains 1 int value, which is the the zoom focus length. |
|---|
| 38 | // there are 201 entries in the table - set NUM_FL to 201 |
|---|
| 39 | DEF(focus_len_table ,0xfffea5cc) // Found @0xfffea5cc |
|---|
| 40 | DEF(zoom_busy ,0x00003448) // Found @0xff87e640 |
|---|
| 41 | DEF(focus_busy ,0x00007a74) // Found @0xff97df38 |
|---|
| 42 | DEF(recreview_hold ,0x0000468c) // Found @0xff8ac610 |
|---|
| 43 | |
|---|
| 44 | // Values below go in 'lib.c': |
|---|
| 45 | //void *vid_get_bitmap_fb() { return (void*)0x40471000; } // Found @0xff85ed30 |
|---|
| 46 | //void *vid_get_viewport_fb() { return (void*)0x40587700; } // Found @0xffb56ae0 |
|---|
| 47 | //char *camera_jpeg_count_str() { return (char*)0x000cf2fc; } // Found @0xffa3bb3c |
|---|
| 48 | //long hook_raw_size() { return 0x014eb7e0; } // Found @0xffb59fa0 |
|---|
| 49 | //int get_flash_params_count(void) { return 0x9a; } // Found @0xff9c26a8 |
|---|
| 50 | |
|---|
| 51 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 52 | //#define SD_READONLY_FLAG 0x00020000 // Found @0xffb97a1c, levent 0x90a |
|---|
| 53 | //#define SD_READONLY_IDX 2 |
|---|
| 54 | //#define USB_MASK 0x04000000 // Found @0xffb97a4c, levent 0x902 |
|---|
| 55 | //#define USB_IDX 2 |
|---|
| 56 | |
|---|
| 57 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 58 | //static KeyMap keymap[] = { |
|---|
| 59 | // { 0, KEY_UP ,0x00000400 }, // Found @0xffb97954, levent 0x04 |
|---|
| 60 | // { 0, KEY_DOWN ,0x00000800 }, // Found @0xffb9795c, levent 0x05 |
|---|
| 61 | // { 0, KEY_LEFT ,0x00001000 }, // Found @0xffb97964, levent 0x06 |
|---|
| 62 | // { 0, KEY_RIGHT ,0x00002000 }, // Found @0xffb9796c, levent 0x07 |
|---|
| 63 | // { 0, KEY_SET ,0x00004000 }, // Found @0xffb97974, levent 0x08 |
|---|
| 64 | // { 0, KEY_DISPLAY ,0x00020000 }, // Found @0xffb9798c, levent 0x0a |
|---|
| 65 | // { 0, KEY_MENU ,0x00040000 }, // Found @0xffb97994, levent 0x09 |
|---|
| 66 | // { 2, KEY_SHOOT_FULL ,0x00000300 }, // Found @0xffb979f4, levent 0x01 |
|---|
| 67 | // { 2, KEY_SHOOT_FULL_ONLY ,0x00000200 }, // Found @0xffb979f4, levent 0x01 |
|---|
| 68 | // { 2, KEY_SHOOT_HALF ,0x00000100 }, // Found @0xffb979ec, levent 0x00 |
|---|
| 69 | // { 0, 0, 0 } |
|---|
| 70 | //}; |
|---|
| 71 | |
|---|
| 72 | // Values below go in 'platform_camera.h': |
|---|
| 73 | //#define CAM_DRYOS 1 |
|---|
| 74 | //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher |
|---|
| 75 | //#define CAM_RAW_ROWPIX 4464 // Found @0xff957868 |
|---|
| 76 | //#define CAM_RAW_ROWS 3276 // Found @0xff957874 |
|---|
| 77 | //#undef CAM_UNCACHED_BIT |
|---|
| 78 | //#define CAM_UNCACHED_BIT 0x40000000 // Found @0xff83afdc |
|---|
| 79 | |
|---|
| 80 | // Misc stuff |
|---|
| 81 | DEF(ctypes, 0xffb961be) |
|---|
| 82 | |
|---|
| 83 | // Stubs below matched 100%. |
|---|
| 84 | // Name Address Comp to stubs_entry_2.S |
|---|
| 85 | NSTUB(AllocateMemory ,0xffaee008) //101 |
|---|
| 86 | NSTUB(AllocateUncacheableMemory ,0xff83af98) //112 |
|---|
| 87 | NSTUB(Close ,0xff8370dc) //101 |
|---|
| 88 | NSTUB(CreateTask ,0xff81e8a0) //101 |
|---|
| 89 | NSTUB(DebugAssert ,0xff81eb78) //111 |
|---|
| 90 | NSTUB(DeleteFile_Fut ,0xff836a54) //112 |
|---|
| 91 | NSTUB(DoAFLock ,0xff838ab8) //102 |
|---|
| 92 | NSTUB(EnterToCompensationEVF ,0xff838d44) //104 |
|---|
| 93 | NSTUB(ExecuteEventProcedure ,0xff895cc0) // 1 |
|---|
| 94 | NSTUB(ExitFromCompensationEVF ,0xff838d88) //104 |
|---|
| 95 | NSTUB(ExitTask ,0xff81eb30) //101 |
|---|
| 96 | NSTUB(ExpCtrlTool_StartContiAE ,0xff8474fc) //104 |
|---|
| 97 | NSTUB(ExpCtrlTool_StopContiAE ,0xff847688) //104 |
|---|
| 98 | NSTUB(Fclose_Fut ,0xff836bd0) //101 |
|---|
| 99 | NSTUB(Feof_Fut ,0xff836dbc) // 1 |
|---|
| 100 | NSTUB(Fflush_Fut ,0xff836df8) // 1 |
|---|
| 101 | NSTUB(Fgets_Fut ,0xff836d24) // 1 |
|---|
| 102 | NSTUB(Fopen_Fut ,0xff836b90) //101 |
|---|
| 103 | NSTUB(Fread_Fut ,0xff836c7c) //101 |
|---|
| 104 | NSTUB(FreeMemory ,0xffaee000) //101 |
|---|
| 105 | NSTUB(FreeUncacheableMemory ,0xff83afd8) //112 |
|---|
| 106 | NSTUB(Fseek_Fut ,0xff836d70) //101 |
|---|
| 107 | NSTUB(Fwrite_Fut ,0xff836cd0) //101 |
|---|
| 108 | NSTUB(GetBatteryTemperature ,0xff8697ac) //102 |
|---|
| 109 | NSTUB(GetCCDTemperature ,0xff869738) //102 |
|---|
| 110 | NSTUB(GetCurrentAvValue ,0xff98067c) //102 |
|---|
| 111 | NSTUB(GetDrive_ClusterSize ,0xff87724c) // 4 |
|---|
| 112 | NSTUB(GetDrive_FreeClusters ,0xff8772ac) // 4 |
|---|
| 113 | NSTUB(GetDrive_TotalClusters ,0xff877280) // 3 |
|---|
| 114 | NSTUB(GetFocusLensSubjectDistance ,0xff97ea7c) //102 |
|---|
| 115 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xff97eef4) // 3 |
|---|
| 116 | NSTUB(GetImageFolder ,0xff95f0ec) //106 |
|---|
| 117 | NSTUB(GetKbdState ,0xff865a28) //109 |
|---|
| 118 | NSTUB(GetMemInfo ,0xff81a264) // 3 |
|---|
| 119 | NSTUB(GetOpticalTemperature ,0xff869820) //102 |
|---|
| 120 | NSTUB(GetParameterData ,0xff9c266c) //101 |
|---|
| 121 | NSTUB(GetPropertyCase ,0xff8999c8) //102 |
|---|
| 122 | NSTUB(GetSystemTime ,0xffaee060) //101 |
|---|
| 123 | NSTUB(GetZoomLensCurrentPoint ,0xff87e9c4) //102 |
|---|
| 124 | NSTUB(GetZoomLensCurrentPosition ,0xff9864a8) //102 |
|---|
| 125 | NSTUB(GiveSemaphore ,0xff83a9b4) //112 |
|---|
| 126 | NSTUB(IsStrobeChargeCompleted ,0xff8ec168) //102 |
|---|
| 127 | NSTUB(LEDDrive ,0xff864bd4) //103 |
|---|
| 128 | NSTUB(LocalTime ,0xff8935a8) // 1 |
|---|
| 129 | NSTUB(LockMainPower ,0xff8a0290) //103 |
|---|
| 130 | NSTUB(Lseek ,0xff8371f8) //101 |
|---|
| 131 | NSTUB(MakeDirectory_Fut ,0xff836ac8) // 1 |
|---|
| 132 | NSTUB(MoveFocusLensToDistance ,0xffb52e10) //102 |
|---|
| 133 | NSTUB(MoveIrisWithAv ,0xffae8e14) //102 |
|---|
| 134 | NSTUB(MoveZoomLensWithPoint ,0xffae950c) //102 |
|---|
| 135 | NSTUB(NewTaskShell ,0xff8993e4) //103 |
|---|
| 136 | NSTUB(Open ,0xff837070) //101 |
|---|
| 137 | NSTUB(PB2Rec ,0xff8a30f8) //104 |
|---|
| 138 | NSTUB(PT_MoveDigitalZoomToWide ,0xff883c2c) //102 |
|---|
| 139 | NSTUB(PT_MoveOpticalZoomAt ,0xff883c04) //102 |
|---|
| 140 | NSTUB(PT_PlaySound ,0xff88e65c) // 4 |
|---|
| 141 | NSTUB(PostLogicalEventForNotPowerType ,0xff89e028) //103 |
|---|
| 142 | NSTUB(PostLogicalEventToUI ,0xff89e074) //103 |
|---|
| 143 | NSTUB(PutInNdFilter ,0xffb50a84) //102 |
|---|
| 144 | NSTUB(PutOutNdFilter ,0xffb50abc) //102 |
|---|
| 145 | NSTUB(Read ,0xff81ad74) //101 |
|---|
| 146 | NSTUB(ReadFastDir ,0xffacde84) // 4 |
|---|
| 147 | NSTUB(Rec2PB ,0xff8a1b3c) //104 |
|---|
| 148 | NSTUB(RefreshPhysicalScreen ,0xff8b8110) //104 |
|---|
| 149 | NSTUB(Remove ,0xff837110) // 4 |
|---|
| 150 | NSTUB(RenameFile_Fut ,0xff8369c0) // 4 |
|---|
| 151 | NSTUB(Restart ,0xff83c788) //106 |
|---|
| 152 | NSTUB(ScreenLock ,0xff8b9340) // 4 |
|---|
| 153 | NSTUB(ScreenUnlock ,0xff8b93a4) // 3 |
|---|
| 154 | NSTUB(SetAE_ShutterSpeed ,0xffb55c58) //102 |
|---|
| 155 | NSTUB(SetAutoShutdownTime ,0xff8a0304) //103 |
|---|
| 156 | NSTUB(SetCurrentCaptureModeType ,0xff8a9228) //101 |
|---|
| 157 | NSTUB(SetFileTimeStamp ,0xff837378) // 4 |
|---|
| 158 | NSTUB(SetLogicalEventActive ,0xff89ffcc) //101 |
|---|
| 159 | NSTUB(SetParameterData ,0xff9c2544) //101 |
|---|
| 160 | NSTUB(SetPropertyCase ,0xff8998a0) //102 |
|---|
| 161 | NSTUB(SetScriptMode ,0xff8a001c) //101 |
|---|
| 162 | NSTUB(SleepTask ,0xff83ac1c) //101 |
|---|
| 163 | NSTUB(TakeSemaphore ,0xff83a8e4) //101 |
|---|
| 164 | NSTUB(TurnOffBackLight ,0xff8b0598) //104 |
|---|
| 165 | NSTUB(TurnOnBackLight ,0xff8b0580) //104 |
|---|
| 166 | NSTUB(UIFS_WriteFirmInfoToFile ,0xff9aed10) //101 |
|---|
| 167 | NSTUB(UnlockAF ,0xff838af0) //102 |
|---|
| 168 | NSTUB(UnlockMainPower ,0xff8a01e4) //103 |
|---|
| 169 | NSTUB(UpdateMBROnFlash ,0xff8770cc) //105 |
|---|
| 170 | NSTUB(VbattGet ,0xff833178) //103 |
|---|
| 171 | NSTUB(Write ,0xff83716c) //101 |
|---|
| 172 | NSTUB(WriteSDCard ,0xff96dab0) //108 |
|---|
| 173 | NSTUB(_log ,0xffb93b08) //111 |
|---|
| 174 | NSTUB(_log10 ,0xffb92a4c) //112 |
|---|
| 175 | NSTUB(_pow ,0xffb92bbc) //114 |
|---|
| 176 | NSTUB(_sqrt ,0xffb94ed4) // 1 |
|---|
| 177 | NSTUB(add_ptp_handler ,0xffa8ea38) // 3 |
|---|
| 178 | NSTUB(apex2us ,0xffa4e848) // 4 |
|---|
| 179 | NSTUB(close ,0xff81ab8c) // 1 |
|---|
| 180 | NSTUB(closedir ,0xffacdce0) // 4 |
|---|
| 181 | NSTUB(err_init_task ,0xff815fd4) // 4 |
|---|
| 182 | NSTUB(exmem_alloc ,0xff8944f4) //103 |
|---|
| 183 | NSTUB(free ,0xff814244) //112 |
|---|
| 184 | NSTUB(kbd_p1_f ,0xff834a68) //109 |
|---|
| 185 | NSTUB(kbd_p1_f_cont ,0xff834a74) //109 |
|---|
| 186 | NSTUB(kbd_p2_f ,0xff8342b8) //109 |
|---|
| 187 | NSTUB(kbd_read_keys ,0xff8349f0) //109 |
|---|
| 188 | NSTUB(kbd_read_keys_r2 ,0xff8651a4) //109 |
|---|
| 189 | NSTUB(lseek ,0xff8371f8) //101 |
|---|
| 190 | NSTUB(malloc ,0xff8141e8) //112 |
|---|
| 191 | NSTUB(memcmp ,0xff8206d0) //101 |
|---|
| 192 | NSTUB(memcpy ,0xff840750) //101 |
|---|
| 193 | NSTUB(memset ,0xffa4d844) //101 |
|---|
| 194 | NSTUB(mkdir ,0xff837578) // 4 |
|---|
| 195 | NSTUB(mktime_ext ,0xff8ba260) // 1 |
|---|
| 196 | NSTUB(open ,0xff81aadc) // 1 |
|---|
| 197 | NSTUB(opendir ,0xffacdd30) // 4 |
|---|
| 198 | NSTUB(openfastdir ,0xffacdd30) // 4 |
|---|
| 199 | NSTUB(qsort ,0xffb4065c) // 4 |
|---|
| 200 | NSTUB(rand ,0xffa4d984) // 4 |
|---|
| 201 | NSTUB(read ,0xff81ad74) //101 |
|---|
| 202 | NSTUB(readfastdir ,0xffacde84) // 4 |
|---|
| 203 | NSTUB(reboot_fw_update ,0xffad32a4) // 4 |
|---|
| 204 | NSTUB(rename ,0xff8369c0) // 4 |
|---|
| 205 | NSTUB(set_control_event ,0xff89fbbc) //111 |
|---|
| 206 | NSTUB(srand ,0xffa4d978) // 4 |
|---|
| 207 | NSTUB(stat ,0xff837240) // 3 |
|---|
| 208 | NSTUB(strcat ,0xff8b9a1c) // 1 |
|---|
| 209 | NSTUB(strchr ,0xff8140b4) // 1 |
|---|
| 210 | NSTUB(strcmp ,0xff82068c) //101 |
|---|
| 211 | NSTUB(strcpy ,0xff820674) //101 |
|---|
| 212 | NSTUB(strftime ,0xff8b9c68) //113 |
|---|
| 213 | NSTUB(strlen ,0xff814100) //101 |
|---|
| 214 | NSTUB(strncmp ,0xff814068) // 1 |
|---|
| 215 | NSTUB(strncpy ,0xff81402c) // 1 |
|---|
| 216 | NSTUB(strrchr ,0xff8140d8) // 1 |
|---|
| 217 | NSTUB(strtol ,0xff840a30) //101 |
|---|
| 218 | NSTUB(strtolx ,0xff840834) //109 |
|---|
| 219 | DEF(task_CaptSeq ,0xff8868c0) //107 |
|---|
| 220 | DEF(task_ExpDrv ,0xff8d0818) //110 |
|---|
| 221 | DEF(task_InitFileModules ,0xff8a3b4c) //107 |
|---|
| 222 | DEF(task_MovieRecord ,0xff883348) //107 |
|---|
| 223 | DEF(task_PhySw ,0xff8345e8) //107 |
|---|
| 224 | DEF(task_RotaryEncoder ,0xff865d08) //107 |
|---|
| 225 | NSTUB(time ,0xff893b88) // 2 |
|---|
| 226 | NSTUB(vsprintf ,0xff820638) // 4 |
|---|
| 227 | NSTUB(write ,0xff83716c) //101 |
|---|