| 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 PowerShot A3300 IS |
|---|
| 8 | |
|---|
| 9 | // Values for makefile.inc |
|---|
| 10 | // PLATFORMOSVER = 47 |
|---|
| 11 | // PLATFORMID = 12835 (0x3223) // Found @ 0xfffe0040 |
|---|
| 12 | // MAXRAMADDR = 0x03ffffff |
|---|
| 13 | // KEYSYS = d4c // Found @ 0xffff3504 |
|---|
| 14 | // NEED_ENCODED_DISKBOOT = 6 // Found @ 0xffff3514 |
|---|
| 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 ,0xff86031c) // 2 60% *** != 0x00000000 |
|---|
| 19 | // ERROR: kbd_pwr_on is not found. //--- --- *** != 0x00000000 |
|---|
| 20 | |
|---|
| 21 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 22 | // Firmware modemap table found @ff8959c4 -> ff892270 -> ff9937f8 -> ffac835c -> ffbeea40 |
|---|
| 23 | // Current modemap entry not found in firmware - MODE_SCN_POSTER_EFFECT 8743 |
|---|
| 24 | // Current modemap entry not found in firmware - MODE_SCN_SUPER_VIVID 8742 |
|---|
| 25 | // Current modemap entry not found in firmware - MODE_SCN_MONOCHROME 8754 |
|---|
| 26 | // Current modemap entry not found in firmware - MODE_SCN_TOY_CAMERA 8751 |
|---|
| 27 | // Current modemap entry not found in firmware - MODE_SCN_MINIATURE 8748 |
|---|
| 28 | // Current modemap entry not found in firmware - MODE_SCN_FISHEYE 8747 |
|---|
| 29 | |
|---|
| 30 | // Values below can be overridden in 'stubs_min.S': |
|---|
| 31 | DEF(physw_status ,0x00032d34) // Found @0xff8345a0 |
|---|
| 32 | DEF(physw_run ,0x00001c30) // Found @0xff834160 |
|---|
| 33 | DEF(levent_table ,0xffba1188) // Found @0xffba1188 |
|---|
| 34 | DEF(FlashParamsTable ,0xffbeec78) // Found @0xffbeec78 |
|---|
| 35 | DEF(movie_status ,0x00006734) // Found @0xff96962c |
|---|
| 36 | DEF(full_screen_refresh ,0x0000916c) // Found @0xffa06cf4 |
|---|
| 37 | DEF(canon_menu_active ,0x00002f60) // Found @0xff88da44 |
|---|
| 38 | DEF(canon_shoot_menu_active ,0x00007bf5) // Found @0xff9ada14 |
|---|
| 39 | DEF(playrec_mode ,0x00002c88) // Found @0xff87fd40 |
|---|
| 40 | DEF(zoom_status ,0x0000cf5c) // Found @0xffacba30 |
|---|
| 41 | DEF(some_flag_for_af_scan ,0x00006b0c) // Found @0xff96d344 |
|---|
| 42 | // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c). |
|---|
| 43 | // each entry contains 3 int value(s), the first is the zoom focus length. |
|---|
| 44 | // there are 12 entries in the table - set NUM_FL to 12 |
|---|
| 45 | DEF(focus_len_table ,0xfffe2f88) // Found @0xfffe2f88 |
|---|
| 46 | DEF(zoom_busy ,0x0000665c) // Found @0xff964eb8 |
|---|
| 47 | DEF(focus_busy ,0x000064d8) // Found @0xff960130 |
|---|
| 48 | DEF(recreview_hold ,0x00003534) // Found @0xff89af5c |
|---|
| 49 | DEF(palette_control ,0x0000916c) // Found @0xffa06c70 |
|---|
| 50 | DEF(active_palette_buffer ,0x00009174) // Found @0xffa06c74 |
|---|
| 51 | DEF(palette_buffer ,0x000b477c) // Found @0xffa07028 |
|---|
| 52 | |
|---|
| 53 | // Values below go in 'lib.c': |
|---|
| 54 | //void *vid_get_bitmap_fb() { return (void*)0x403f1000; } // Found @0xff85b880 |
|---|
| 55 | //void *vid_get_viewport_fb() { return (void*)0x40546b80; } // Found @0xffb1e2ac |
|---|
| 56 | //void *vid_get_viewport_fb_d() { return (void*)(*(int*)(0x29a0+0x58)); } // Found @0xff8713ec & 0xff871424 |
|---|
| 57 | //char *camera_jpeg_count_str() { return (char*)0x000b40d4; } // Found @0xff9fd850 |
|---|
| 58 | //long hook_raw_size() { return 0x01794300; } // Found @0xffb21768 |
|---|
| 59 | //int get_flash_params_count(void) { return 0xa0; } // Found @0xff994830 |
|---|
| 60 | |
|---|
| 61 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 62 | //#define SD_READONLY_FLAG 0x00020000 // Found @0xffb5dcbc, levent 0x90a |
|---|
| 63 | //#define SD_READONLY_IDX 2 |
|---|
| 64 | //#define USB_MASK 0x04000000 // Found @0xffb5dcdc, levent 0x902 |
|---|
| 65 | //#define USB_IDX 2 |
|---|
| 66 | |
|---|
| 67 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 68 | //static KeyMap keymap[] = { |
|---|
| 69 | // { 2, KEY_SHOOT_FULL ,0x00003000 }, // Found @0xffb5dc9c, levent 0x01 |
|---|
| 70 | // { 2, KEY_SHOOT_FULL_ONLY ,0x00002000 }, // Found @0xffb5dc9c, levent 0x01 |
|---|
| 71 | // { 2, KEY_UP ,0x00000001 }, // Found @0xffb5dc3c, levent 0x04 |
|---|
| 72 | // { 2, KEY_DOWN ,0x00000002 }, // Found @0xffb5dc44, levent 0x05 |
|---|
| 73 | // { 2, KEY_SHOOT_HALF ,0x00001000 }, // Found @0xffb5dc94, levent 0x00 |
|---|
| 74 | // { 2, KEY_LEFT ,0x00000004 }, // Found @0xffb5dc4c, levent 0x06 |
|---|
| 75 | // { 2, KEY_RIGHT ,0x00000008 }, // Found @0xffb5dc54, levent 0x07 |
|---|
| 76 | // { 2, KEY_SET ,0x00000010 }, // Found @0xffb5dc5c, levent 0x08 |
|---|
| 77 | // { 2, KEY_DISPLAY ,0x00000020 }, // Found @0xffb5dc64, levent 0x0a |
|---|
| 78 | // { 2, KEY_MENU ,0x00000080 }, // Found @0xffb5dc74, levent 0x09 |
|---|
| 79 | // { 2, KEY_ZOOM_OUT ,0x00004000 }, // Found @0xffb5dca4, levent 0x03 |
|---|
| 80 | // { 2, KEY_ZOOM_IN ,0x00008000 }, // Found @0xffb5dcac, levent 0x02 |
|---|
| 81 | // { 0, 0, 0 } |
|---|
| 82 | //}; |
|---|
| 83 | |
|---|
| 84 | // Values below go in 'platform_camera.h': |
|---|
| 85 | //#define CAM_DRYOS 1 |
|---|
| 86 | //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher |
|---|
| 87 | //#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher |
|---|
| 88 | //#define CAM_RAW_ROWPIX 4704 // Found @0xff93a6e0 |
|---|
| 89 | //#define CAM_RAW_ROWS 3504 // Found @0xff93a6ec |
|---|
| 90 | //#undef CAM_UNCACHED_BIT |
|---|
| 91 | //#define CAM_UNCACHED_BIT 0x40000000 // Found @0xff83a714 |
|---|
| 92 | |
|---|
| 93 | // Misc stuff |
|---|
| 94 | DEF(ctypes, 0xffb5c59a) |
|---|
| 95 | |
|---|
| 96 | // For capt_seq.c |
|---|
| 97 | //static long *nrflag = (long*)(0x6b40+0x08); // Found @ ff971604 & ff971648 |
|---|
| 98 | //#define NR_AUTO (0) // have to explictly reset value back to 0 to enable auto |
|---|
| 99 | |
|---|
| 100 | // Stubs below matched 100%. |
|---|
| 101 | // Name Address Comp to stubs_entry_2.S |
|---|
| 102 | NSTUB(AllocateMemory ,0xffab6d2c) //101 |
|---|
| 103 | NSTUB(AllocateUncacheableMemory ,0xff83a6cc) //112 |
|---|
| 104 | NSTUB(Close ,0xff836cc4) //101 |
|---|
| 105 | NSTUB(CreateTask ,0xff81e9b0) //101 |
|---|
| 106 | NSTUB(DebugAssert ,0xff81ec88) //111 |
|---|
| 107 | NSTUB(DeleteDirectory_Fut ,0xff8366c0) // 1 |
|---|
| 108 | NSTUB(DeleteFile_Fut ,0xff8365dc) //112 |
|---|
| 109 | NSTUB(DoAFLock ,0xff838480) //102 |
|---|
| 110 | NSTUB(EnterToCompensationEVF ,0xff8386dc) //104 |
|---|
| 111 | NSTUB(ExecuteEventProcedure ,0xff889244) // 1 |
|---|
| 112 | NSTUB(ExitFromCompensationEVF ,0xff838720) //104 |
|---|
| 113 | NSTUB(ExitTask ,0xff81ec40) //101 |
|---|
| 114 | NSTUB(ExpCtrlTool_StartContiAE ,0xff846ce0) //104 |
|---|
| 115 | NSTUB(ExpCtrlTool_StopContiAE ,0xff846db8) //104 |
|---|
| 116 | NSTUB(Fclose_Fut ,0xff836758) //101 |
|---|
| 117 | NSTUB(Feof_Fut ,0xff836944) // 1 |
|---|
| 118 | NSTUB(Fflush_Fut ,0xff836980) // 1 |
|---|
| 119 | NSTUB(Fgets_Fut ,0xff8368ac) // 6 |
|---|
| 120 | NSTUB(Fopen_Fut ,0xff836718) //101 |
|---|
| 121 | NSTUB(Fread_Fut ,0xff836804) //101 |
|---|
| 122 | NSTUB(FreeMemory ,0xffab6d24) //101 |
|---|
| 123 | NSTUB(FreeUncacheableMemory ,0xff83a70c) //112 |
|---|
| 124 | NSTUB(Fseek_Fut ,0xff8368f8) //101 |
|---|
| 125 | NSTUB(Fwrite_Fut ,0xff836858) //101 |
|---|
| 126 | NSTUB(GetBatteryTemperature ,0xff86227c) //102 |
|---|
| 127 | NSTUB(GetCCDTemperature ,0xff862208) //102 |
|---|
| 128 | NSTUB(GetCurrentAvValue ,0xff961d00) //102 |
|---|
| 129 | NSTUB(GetDrive_ClusterSize ,0xff86fd50) // 6 |
|---|
| 130 | NSTUB(GetDrive_FreeClusters ,0xff86fda8) // 6 |
|---|
| 131 | NSTUB(GetDrive_TotalClusters ,0xff86fd80) // 6 |
|---|
| 132 | NSTUB(GetFocusLensSubjectDistance ,0xff960db4) //102 |
|---|
| 133 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xff961214) // 3 |
|---|
| 134 | NSTUB(GetImageFolder ,0xff941570) // 6 |
|---|
| 135 | NSTUB(GetKbdState ,0xff860304) //109 |
|---|
| 136 | NSTUB(GetMemInfo ,0xff81a29c) // 3 |
|---|
| 137 | NSTUB(GetOpticalTemperature ,0xff8622f0) //102 |
|---|
| 138 | NSTUB(GetParameterData ,0xff9947f0) //101 |
|---|
| 139 | NSTUB(GetPropertyCase ,0xff88cfac) //102 |
|---|
| 140 | NSTUB(GetSystemTime ,0xffab6d84) //101 |
|---|
| 141 | NSTUB(GetZoomLensCurrentPoint ,0xff96523c) //102 |
|---|
| 142 | NSTUB(GetZoomLensCurrentPosition ,0xffaa3b04) //102 |
|---|
| 143 | NSTUB(GiveSemaphore ,0xff83a0c4) //112 |
|---|
| 144 | NSTUB(IsStrobeChargeCompleted ,0xff8d8c68) //102 |
|---|
| 145 | NSTUB(LEDDrive ,0xff85f918) //101 |
|---|
| 146 | NSTUB(LocalTime ,0xff886b34) // 6 |
|---|
| 147 | NSTUB(LockMainPower ,0xff891e64) //103 |
|---|
| 148 | NSTUB(Lseek ,0xff836ee0) //101 |
|---|
| 149 | NSTUB(MakeDirectory_Fut ,0xff836650) // 6 |
|---|
| 150 | NSTUB(MakeSDCardBootable ,0xff86ffe0) //105 |
|---|
| 151 | NSTUB(MoveFocusLensToDistance ,0xffb1a608) //102 |
|---|
| 152 | NSTUB(MoveIrisWithAv ,0xffab39ec) //102 |
|---|
| 153 | NSTUB(MoveZoomLensWithPoint ,0xffab40a4) //102 |
|---|
| 154 | NSTUB(NewTaskShell ,0xff88c9f4) //101 |
|---|
| 155 | NSTUB(Open ,0xff836bfc) //101 |
|---|
| 156 | NSTUB(PB2Rec ,0xff89502c) //104 |
|---|
| 157 | NSTUB(PT_MoveDigitalZoomToWide ,0xff878398) //102 |
|---|
| 158 | NSTUB(PT_MoveOpticalZoomAt ,0xff878370) //102 |
|---|
| 159 | NSTUB(PT_PlaySound ,0xff881b78) // 6 |
|---|
| 160 | NSTUB(PostLogicalEventForNotPowerType ,0xff891630) //103 |
|---|
| 161 | NSTUB(PostLogicalEventToUI ,0xff89167c) //103 |
|---|
| 162 | NSTUB(PutInNdFilter ,0xffab3eec) //102 |
|---|
| 163 | NSTUB(PutOutNdFilter ,0xffab3f10) //102 |
|---|
| 164 | NSTUB(Read ,0xff81ad58) //101 |
|---|
| 165 | NSTUB(ReadFastDir ,0xffa91334) // 6 |
|---|
| 166 | NSTUB(Rec2PB ,0xff89506c) //104 |
|---|
| 167 | NSTUB(RefreshPhysicalScreen ,0xff8a59f0) //104 |
|---|
| 168 | NSTUB(Remove ,0xff836e38) // 6 |
|---|
| 169 | NSTUB(RenameFile_Fut ,0xff836548) // 6 |
|---|
| 170 | NSTUB(Restart ,0xff83bedc) //106 |
|---|
| 171 | NSTUB(ScreenLock ,0xff8a6c28) // 4 |
|---|
| 172 | NSTUB(ScreenUnlock ,0xff8a6c8c) // 3 |
|---|
| 173 | NSTUB(SetAE_ShutterSpeed ,0xffb1d484) //102 |
|---|
| 174 | NSTUB(SetAutoShutdownTime ,0xff891ed8) //103 |
|---|
| 175 | NSTUB(SetCurrentCaptureModeType ,0xff898be4) //101 |
|---|
| 176 | NSTUB(SetFileAttributes ,0xff8370c8) // 6 |
|---|
| 177 | NSTUB(SetFileTimeStamp ,0xff837050) // 6 |
|---|
| 178 | NSTUB(SetLogicalEventActive ,0xff891bdc) //101 |
|---|
| 179 | NSTUB(SetParameterData ,0xff994760) //101 |
|---|
| 180 | NSTUB(SetPropertyCase ,0xff88ce90) //102 |
|---|
| 181 | NSTUB(SetScriptMode ,0xff891c2c) //101 |
|---|
| 182 | NSTUB(SleepTask ,0xff83a370) //101 |
|---|
| 183 | NSTUB(TakeSemaphore ,0xff839ff4) //101 |
|---|
| 184 | NSTUB(TurnOffBackLight ,0xff89e35c) //104 |
|---|
| 185 | NSTUB(TurnOnBackLight ,0xff89e344) //104 |
|---|
| 186 | NSTUB(UIFS_WriteFirmInfoToFile ,0xff985c74) //101 |
|---|
| 187 | NSTUB(UnlockAF ,0xff8384b8) //102 |
|---|
| 188 | NSTUB(UnlockMainPower ,0xff891db8) //103 |
|---|
| 189 | NSTUB(UnsetZoomForMovie ,0xff99dd04) //104 |
|---|
| 190 | NSTUB(VbattGet ,0xff832e20) //101 |
|---|
| 191 | NSTUB(Write ,0xff836d18) //101 |
|---|
| 192 | NSTUB(WriteSDCard ,0xff95145c) //108 |
|---|
| 193 | NSTUB(_log ,0xffb590c0) //111 |
|---|
| 194 | NSTUB(_log10 ,0xffb59600) //112 |
|---|
| 195 | NSTUB(_pow ,0xffb59778) //114 |
|---|
| 196 | NSTUB(_sqrt ,0xffb5b39c) // 6 |
|---|
| 197 | NSTUB(add_ptp_handler ,0xffa4733c) // 6 |
|---|
| 198 | NSTUB(apex2us ,0xffa0c05c) // 4 |
|---|
| 199 | NSTUB(close ,0xff81abb4) // 6 |
|---|
| 200 | NSTUB(closedir ,0xffa91190) // 4 |
|---|
| 201 | NSTUB(err_init_task ,0xff815fd4) // 4 |
|---|
| 202 | NSTUB(exmem_alloc ,0xff887afc) //101 |
|---|
| 203 | NSTUB(free ,0xff814244) //112 |
|---|
| 204 | NSTUB(kbd_p1_f ,0xff83461c) //109 |
|---|
| 205 | NSTUB(kbd_p1_f_cont ,0xff834628) //109 |
|---|
| 206 | NSTUB(kbd_p2_f ,0xff833e30) //109 |
|---|
| 207 | NSTUB(kbd_read_keys ,0xff8345a0) //109 |
|---|
| 208 | NSTUB(kbd_read_keys_r2 ,0xff85fd5c) //109 |
|---|
| 209 | NSTUB(lseek ,0xff836ee0) //101 |
|---|
| 210 | NSTUB(malloc ,0xff8141ec) //112 |
|---|
| 211 | NSTUB(memcmp ,0xff8208bc) //101 |
|---|
| 212 | NSTUB(memcpy ,0xff83fd4c) //101 |
|---|
| 213 | NSTUB(memset ,0xffa0b05c) //101 |
|---|
| 214 | NSTUB(mkdir ,0xff837160) // 6 |
|---|
| 215 | NSTUB(mktime_ext ,0xff8a7a6c) // 1 |
|---|
| 216 | NSTUB(open ,0xff81ab04) // 6 |
|---|
| 217 | NSTUB(opendir ,0xffa911e0) // 6 |
|---|
| 218 | NSTUB(openfastdir ,0xffa911e0) // 6 |
|---|
| 219 | NSTUB(qsort ,0xffafd50c) // 6 |
|---|
| 220 | NSTUB(rand ,0xffa0b19c) // 6 |
|---|
| 221 | NSTUB(read ,0xff81ad58) //101 |
|---|
| 222 | NSTUB(reboot_fw_update ,0xffa967d0) // 6 |
|---|
| 223 | NSTUB(rename ,0xff836548) // 6 |
|---|
| 224 | NSTUB(set_control_event ,0xff8918a0) //111 |
|---|
| 225 | NSTUB(srand ,0xffa0b190) // 6 |
|---|
| 226 | NSTUB(stat ,0xff836f28) // 3 |
|---|
| 227 | NSTUB(strcat ,0xff8a7224) // 1 |
|---|
| 228 | NSTUB(strchr ,0xff8140b8) // 1 |
|---|
| 229 | NSTUB(strcmp ,0xff820878) //101 |
|---|
| 230 | NSTUB(strcpy ,0xff820860) //101 |
|---|
| 231 | NSTUB(strftime ,0xff8a746c) //113 |
|---|
| 232 | NSTUB(strlen ,0xff814104) //101 |
|---|
| 233 | NSTUB(strncmp ,0xff81406c) // 1 |
|---|
| 234 | NSTUB(strncpy ,0xff814030) // 1 |
|---|
| 235 | NSTUB(strrchr ,0xff8140dc) // 1 |
|---|
| 236 | NSTUB(strtol ,0xff84004c) //101 |
|---|
| 237 | NSTUB(strtolx ,0xff83fe50) //109 |
|---|
| 238 | DEF(task_CaptSeq ,0xff87ab40) //110 |
|---|
| 239 | DEF(task_ExpDrv ,0xff8be3ec) //110 |
|---|
| 240 | DEF(task_InitFileModules ,0xff895844) //110 |
|---|
| 241 | DEF(task_MovieRecord ,0xff96a0f8) //110 |
|---|
| 242 | DEF(task_PhySw ,0xff83415c) //110 |
|---|
| 243 | NSTUB(time ,0xff887110) // 6 |
|---|
| 244 | NSTUB(vsprintf ,0xff820820) // 6 |
|---|
| 245 | NSTUB(write ,0xff836d18) //101 |
|---|