| 1 | // !!! THIS FILE IS GENERATED. DO NOT EDIT. !!! |
|---|
| 2 | #include "stubs_asm.h" |
|---|
| 3 | |
|---|
| 4 | // Camera info: |
|---|
| 5 | // DRYOS R31 (DRYOS version 2.3, release #0031) |
|---|
| 6 | // Firmware Ver GM1.00A |
|---|
| 7 | // Canon PowerShot A1000 IS |
|---|
| 8 | |
|---|
| 9 | // Values for makefile.inc |
|---|
| 10 | // PLATFORMOSVER = 31 |
|---|
| 11 | // PLATFORMID = 12686 (0x318e) // Found @ 0xfffe0130 |
|---|
| 12 | // MAXRAMADDR = 0x03ffffff |
|---|
| 13 | // KEYSYS = d4 // Found @ 0xffff1a9c |
|---|
| 14 | // NEED_ENCODED_DISKBOOT = 1 // Found @ 0xffff1aac |
|---|
| 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 | //NHSTUB(PT_PlaySound ,0xffc48c7c) //102 *** != 0xffc48fbc |
|---|
| 19 | //NHSTUB(SetAE_ShutterSpeed ,0xffe42b88) //102 *** != 0xffe3de6c |
|---|
| 20 | //NHSTUB(kbd_pwr_off ,0xffc3163c) // 2 64% *** != 0xffc3164c |
|---|
| 21 | NHSTUB(kbd_pwr_on ,0xffc315fc) // 2 82% |
|---|
| 22 | |
|---|
| 23 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 24 | // Firmware modemap table found @ffc607f4 -> ffc5d1b8 -> ffd2c328 -> ffdfaf9c -> ffec9ef0 |
|---|
| 25 | // Current modemap entry not found in firmware - MODE_SCN_AQUARIUM 16407 |
|---|
| 26 | // Current modemap entry not found in firmware - MODE_STITCH 33290 |
|---|
| 27 | // Current modemap entry not found in firmware - MODE_M 32769 |
|---|
| 28 | // Current modemap entry not found in firmware - MODE_AV 32770 |
|---|
| 29 | // Current modemap entry not found in firmware - MODE_TV 32771 |
|---|
| 30 | |
|---|
| 31 | // Values below can be overridden in 'stubs_min.S': |
|---|
| 32 | DEF(file_system_started ,0x000026e8) // Found @0xffc3e754 |
|---|
| 33 | DEF(physw_status ,0x0000f3f8) // Found @0xffc113ec |
|---|
| 34 | DEF(physw_run ,0x00001be4) // Found @0xffc11064 |
|---|
| 35 | DEF(physw_sleep_delay ,0x00001be2) // Found @0xffc11064 |
|---|
| 36 | DEF(levent_table ,0xffeab5b8) // Found @0xffeab5b8 |
|---|
| 37 | DEF(FlashParamsTable ,0xffeca0bc) // Found @0xffeca0bc |
|---|
| 38 | DEF(movie_status ,0x000050a0) // Found @0xffc47cf8 |
|---|
| 39 | DEF(canon_menu_active ,0x00005480) // Found @0xffc59fb8 |
|---|
| 40 | DEF(canon_shoot_menu_active ,0x00009735) // Found @0xffd3b670 |
|---|
| 41 | DEF(playrec_mode ,0x00005228) // Found @0xffc4ec4c |
|---|
| 42 | DEF(zoom_status ,0x0000c0a4) // Found @0xffdfc7b0 |
|---|
| 43 | DEF(some_flag_for_af_scan ,0x000085a8) // Found @0xffd0a65c |
|---|
| 44 | // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c). |
|---|
| 45 | // each entry contains 3 int value(s), the first is the zoom focus length. |
|---|
| 46 | // there are 8 entries in the table - set NUM_FL to 8 |
|---|
| 47 | DEF(focus_len_table ,0xfffe297c) // Found @0xfffe297c |
|---|
| 48 | DEF(zoom_busy ,0x00007fdc) // Found @0xffd03034 |
|---|
| 49 | DEF(focus_busy ,0x00007ee4) // Found @0xffcfebb4 |
|---|
| 50 | DEF(recreview_hold ,0x000059e4) // Found @0xffc65b4c |
|---|
| 51 | // Camera has 2 RAW buffers @ 0x107d58e0 & 0x11b96b80 |
|---|
| 52 | // Note: active buffer --> raw_buffers[ active_raw_buffer *3] |
|---|
| 53 | // other buffer --> raw_buffers[(active_raw_buffer^1)*3] |
|---|
| 54 | DEF(raw_buffers ,0xffe8e838) // Found @0xffe8e838 |
|---|
| 55 | DEF(active_raw_buffer ,0x000051d8) // Found @0xffc4c5c8 |
|---|
| 56 | |
|---|
| 57 | // Values below go in 'lib.c': |
|---|
| 58 | //void *vid_get_bitmap_fb() { return (void*)0x10361000; } // Found @0xffc2ce78 |
|---|
| 59 | //void *vid_get_viewport_fb() { return (void*)0x10659de0; } // Found @0xffe43978 |
|---|
| 60 | DEF(viewport_fb_d ,0x00004f3c) // Found 0x4ee8 (@0xffc4177c) + 0x54 (@0xffc417a8) |
|---|
| 61 | //void *vid_get_viewport_fb_d() { return (void*)(*(int*)(0x4ee8+0x54)); } // Found @0xffc4177c & 0xffc417a8 |
|---|
| 62 | DEF(jpeg_count_str ,0x0004506c) // Found @0xffd70d44 |
|---|
| 63 | //char *camera_jpeg_count_str() { return (char*)0x0004506c; } // Found @0xffd70d44 |
|---|
| 64 | //long hook_raw_size() { return 0x00ec04f0; } // Found @0xffe45d1c |
|---|
| 65 | //int get_flash_params_count(void) { return 0x77; } // Found @0xffd2d3e4 |
|---|
| 66 | |
|---|
| 67 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 68 | //#define SD_READONLY_FLAG 0x00020000 // Found @0xffe75208, levent 0x90a |
|---|
| 69 | //#define SD_READONLY_IDX 2 |
|---|
| 70 | //#define USB_MASK 0x00040000 // Found @0xffe75214, levent 0x902 |
|---|
| 71 | //#define USB_IDX 2 |
|---|
| 72 | |
|---|
| 73 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 74 | //static KeyMap keymap[] = { |
|---|
| 75 | // { 1, KEY_POWER ,0x00004000 }, // Found @0xffe750c4, levent 0x600 (uses inverted logic in physw_status) |
|---|
| 76 | // { 1, KEY_PLAYBACK ,0x02000000 }, // Found @0xffe750e8, levent 0x601 (uses inverted logic in physw_status) |
|---|
| 77 | // { 1, KEY_SHOOT_FULL ,0xc0000000 }, // Found @0xffe75130, levent 0x01 |
|---|
| 78 | // { 1, KEY_SHOOT_FULL_ONLY ,0x80000000 }, // Found @0xffe75130, levent 0x01 |
|---|
| 79 | // { 1, KEY_SHOOT_HALF ,0x40000000 }, // Found @0xffe75124, levent 0x00 |
|---|
| 80 | // { 2, KEY_ZOOM_IN ,0x00000004 }, // Found @0xffe75154, levent 0x02 |
|---|
| 81 | // { 2, KEY_ZOOM_OUT ,0x00000008 }, // Found @0xffe75160, levent 0x03 |
|---|
| 82 | // { 2, KEY_UP ,0x00000010 }, // Found @0xffe7516c, levent 0x04 |
|---|
| 83 | // { 2, KEY_DOWN ,0x00000020 }, // Found @0xffe75178, levent 0x05 |
|---|
| 84 | // { 2, KEY_RIGHT ,0x00000040 }, // Found @0xffe75184, levent 0x07 |
|---|
| 85 | // { 2, KEY_LEFT ,0x00000080 }, // Found @0xffe75190, levent 0x06 |
|---|
| 86 | // { 2, KEY_SET ,0x00000100 }, // Found @0xffe7519c, levent 0x08 |
|---|
| 87 | // { 2, KEY_MENU ,0x00000200 }, // Found @0xffe751a8, levent 0x09 |
|---|
| 88 | // { 2, KEY_DISPLAY ,0x00000400 }, // Found @0xffe751b4, levent 0x0a |
|---|
| 89 | // { 0, 0, 0 } |
|---|
| 90 | //}; |
|---|
| 91 | |
|---|
| 92 | // Values below go in 'platform_camera.h': |
|---|
| 93 | //#define CAM_DRYOS 1 |
|---|
| 94 | //#define CAM_RAW_ROWPIX 3720 // Found @0xffe3cbe0 |
|---|
| 95 | //#define CAM_RAW_ROWS 2772 // Found @0xffe3cbe8 |
|---|
| 96 | //#undef CAM_UNCACHED_BIT |
|---|
| 97 | //#define CAM_UNCACHED_BIT 0x10000000 // Found @0xffc171b8 |
|---|
| 98 | |
|---|
| 99 | // Misc stuff |
|---|
| 100 | DEF(ctypes, 0xffe74cee) |
|---|
| 101 | |
|---|
| 102 | // For capt_seq.c |
|---|
| 103 | DEF(_nrflag,0x8594) // Found @ ffd0c2d0 (0x8598) & ffd0c2ec (-0x04) |
|---|
| 104 | //static long *nrflag = (long*)(0x8598-0x04); // Found @ ffd0c2d0 & ffd0c2e8 |
|---|
| 105 | |
|---|
| 106 | // Stubs below matched 100%. |
|---|
| 107 | // Name Address Comp to stubs_entry_2.S |
|---|
| 108 | //NHSTUB(CreateJumptable ,0xffe46450) // 1 |
|---|
| 109 | //NHSTUB(_uartr_req ,0xffc0ce54) //111 |
|---|
| 110 | //NHSTUB(StartRecModeMenu ,0xffc59fb4) //102 |
|---|
| 111 | //NHSTUB(AllocateMemory ,0xffdefe20) //101 |
|---|
| 112 | NHSTUB(AllocateUncacheableMemory ,0xffc17174) //112 |
|---|
| 113 | NHSTUB(Close ,0xffc13344) //101 |
|---|
| 114 | NHSTUB(CreateTask ,0xffc0b8c0) //101 |
|---|
| 115 | NHSTUB(DebugAssert ,0xffc0bd98) //111 |
|---|
| 116 | NHSTUB(DeleteDirectory_Fut ,0xffc12cd4) //116 |
|---|
| 117 | NHSTUB(DeleteFile_Fut ,0xffc12bf0) //112 |
|---|
| 118 | NHSTUB(DoAFLock ,0xffc14d9c) //102 |
|---|
| 119 | NHSTUB(EnterToCompensationEVF ,0xffc14fec) //104 |
|---|
| 120 | NHSTUB(ExecuteEventProcedure ,0xffc55764) //104 |
|---|
| 121 | NHSTUB(ExitFromCompensationEVF ,0xffc15030) //104 |
|---|
| 122 | NHSTUB(ExitTask ,0xffc0bb50) //101 |
|---|
| 123 | NHSTUB(ExpCtrlTool_StartContiAE ,0xffc1fa68) //104 |
|---|
| 124 | NHSTUB(ExpCtrlTool_StopContiAE ,0xffc1fbac) //104 |
|---|
| 125 | NHSTUB(Fclose_Fut ,0xffc12d6c) //101 |
|---|
| 126 | NHSTUB(Feof_Fut ,0xffc12f58) // 1 |
|---|
| 127 | NHSTUB(Fflush_Fut ,0xffc12f94) // 1 |
|---|
| 128 | NHSTUB(Fgets_Fut ,0xffc12ec0) // 1 |
|---|
| 129 | NHSTUB(Fopen_Fut ,0xffc12d2c) //101 |
|---|
| 130 | NHSTUB(Fread_Fut ,0xffc12e18) //101 |
|---|
| 131 | //NHSTUB(FreeMemory ,0xffdefe18) //101 |
|---|
| 132 | NHSTUB(FreeUncacheableMemory ,0xffc171b4) //112 |
|---|
| 133 | NHSTUB(Fseek_Fut ,0xffc12f0c) //101 |
|---|
| 134 | NHSTUB(Fwrite_Fut ,0xffc12e6c) //101 |
|---|
| 135 | NHSTUB(GetBatteryTemperature ,0xffc33738) //102 |
|---|
| 136 | NHSTUB(GetCCDTemperature ,0xffc336c8) //102 |
|---|
| 137 | NHSTUB(GetCurrentAvValue ,0xffd005ec) //102 |
|---|
| 138 | NHSTUB(GetDrive_ClusterSize ,0xffc3ffe0) // 1 |
|---|
| 139 | NHSTUB(GetDrive_FreeClusters ,0xffc40048) // 1 |
|---|
| 140 | NHSTUB(GetDrive_TotalClusters ,0xffc40014) // 1 |
|---|
| 141 | NHSTUB(GetFocusLensSubjectDistance ,0xffcff6e4) //102 |
|---|
| 142 | NHSTUB(GetFocusLensSubjectDistanceFromLens ,0xffcff9f0) // 3 |
|---|
| 143 | NHSTUB(GetKbdState ,0xffc315c8) //109 |
|---|
| 144 | NHSTUB(GetMemInfo ,0xffc03c28) //115 |
|---|
| 145 | NHSTUB(GetOpticalTemperature ,0xffc337a8) //102 |
|---|
| 146 | NHSTUB(GetParameterData ,0xffd2d3a4) //101 |
|---|
| 147 | NHSTUB(GetPropertyCase ,0xffc594cc) //102 |
|---|
| 148 | NHSTUB(GetSystemTime ,0xffdefe78) //101 |
|---|
| 149 | NHSTUB(GetVRAMHPixelsSize ,0xffca2420) //102 |
|---|
| 150 | NHSTUB(GetVRAMVPixelsSize ,0xffca242c) //102 |
|---|
| 151 | NHSTUB(GetZoomLensCurrentPoint ,0xffd033a4) //102 |
|---|
| 152 | NHSTUB(GetZoomLensCurrentPosition ,0xffde9db0) //102 |
|---|
| 153 | NHSTUB(GiveSemaphore ,0xffc0b81c) //112 |
|---|
| 154 | NHSTUB(IsStrobeChargeCompleted ,0xffc8b28c) //102 |
|---|
| 155 | NHSTUB(LEDDrive ,0xffc30c9c) //103 |
|---|
| 156 | NHSTUB(LocalTime ,0xffc53768) //115 |
|---|
| 157 | NHSTUB(LockMainPower ,0xffc5cdd0) //103 |
|---|
| 158 | //NHSTUB(Lseek ,0xffc13484) //101 |
|---|
| 159 | NHSTUB(MakeDirectory_Fut ,0xffc12c64) //116 |
|---|
| 160 | NHSTUB(MoveFocusLensToDistance ,0xffe403bc) //102 |
|---|
| 161 | NHSTUB(MoveIrisWithAv ,0xffdec64c) //102 |
|---|
| 162 | NHSTUB(MoveZoomLensWithPoint ,0xffdecbd8) //102 |
|---|
| 163 | //NHSTUB(NewTaskShell ,0xffc58f74) //103 |
|---|
| 164 | NHSTUB(Open ,0xffc1331c) //101 |
|---|
| 165 | NHSTUB(PB2Rec ,0xffc5e804) //104 |
|---|
| 166 | NHSTUB(PT_MoveDigitalZoomToWide ,0xffc49094) //102 |
|---|
| 167 | NHSTUB(PT_MoveOpticalZoomAt ,0xffc4906c) //102 |
|---|
| 168 | NHSTUB(PostLogicalEventForNotPowerType ,0xffc5c410) //103 |
|---|
| 169 | NHSTUB(PostLogicalEventToUI ,0xffc5c45c) //103 |
|---|
| 170 | NHSTUB(PutInNdFilter ,0xffdeca3c) //102 |
|---|
| 171 | NHSTUB(PutOutNdFilter ,0xffdeca60) //102 |
|---|
| 172 | NHSTUB(Read ,0xffc0a138) //101 |
|---|
| 173 | NHSTUB(ReadFastDir ,0xffddc2b4) // 1 |
|---|
| 174 | NHSTUB(Rec2PB ,0xffc5e858) //104 |
|---|
| 175 | NHSTUB(RefreshPhysicalScreen ,0xffd7a3c0) //104 |
|---|
| 176 | //NHSTUB(Remove ,0xffc1338c) // 1 |
|---|
| 177 | NHSTUB(RenameFile_Fut ,0xffc12b9c) // 1 |
|---|
| 178 | NHSTUB(Restart ,0xffc189ec) //106 |
|---|
| 179 | NHSTUB(SetAutoShutdownTime ,0xffc5ce44) //103 |
|---|
| 180 | NHSTUB(SetCurrentCaptureModeType ,0xffc634f8) //101 |
|---|
| 181 | NHSTUB(SetFileAttributes ,0xffc13670) // 1 |
|---|
| 182 | NHSTUB(SetFileTimeStamp ,0xffc13620) // 1 |
|---|
| 183 | NHSTUB(SetLogicalEventActive ,0xffc5cb4c) //101 |
|---|
| 184 | NHSTUB(SetParameterData ,0xffd2d314) //101 |
|---|
| 185 | NHSTUB(SetPropertyCase ,0xffc593c4) //102 |
|---|
| 186 | NHSTUB(SetScriptMode ,0xffc5cb9c) //101 |
|---|
| 187 | NHSTUB(SleepTask ,0xffc16ff8) //101 |
|---|
| 188 | NHSTUB(TakeSemaphore ,0xffc0b74c) //101 |
|---|
| 189 | NHSTUB(TurnOffBackLight ,0xffc67e6c) //104 |
|---|
| 190 | NHSTUB(TurnOnBackLight ,0xffc67e54) //104 |
|---|
| 191 | NHSTUB(UIFS_WriteFirmInfoToFile ,0xffd2048c) //103 |
|---|
| 192 | NHSTUB(UnlockAF ,0xffc14dd4) //102 |
|---|
| 193 | NHSTUB(UnlockMainPower ,0xffc5cd24) //103 |
|---|
| 194 | NHSTUB(UnsetZoomForMovie ,0xffd32980) //104 |
|---|
| 195 | NHSTUB(UpdateMBROnFlash ,0xffc3fe20) //105 |
|---|
| 196 | NHSTUB(VbattGet ,0xffc10314) //103 |
|---|
| 197 | NHSTUB(Write ,0xffc133f0) //101 |
|---|
| 198 | NHSTUB(WriteSDCard ,0xffcf4e38) //108 |
|---|
| 199 | NHSTUB(_log ,0xffe72af4) //111 |
|---|
| 200 | NHSTUB(_log10 ,0xffe71a38) //112 |
|---|
| 201 | NHSTUB(_pow ,0xffe71ba8) //114 |
|---|
| 202 | NHSTUB(_sqrt ,0xffe73e5c) // 1 |
|---|
| 203 | NHSTUB(add_ptp_handler ,0xffdab87c) // 1 |
|---|
| 204 | NHSTUB(apex2us ,0xffd7b3dc) // 4 |
|---|
| 205 | NHSTUB(close ,0xffc09f50) // 1 |
|---|
| 206 | NHSTUB(closedir ,0xffddc384) // 1 |
|---|
| 207 | NHSTUB(err_init_task ,0xffc04e84) //111 |
|---|
| 208 | NHSTUB(exmem_alloc ,0xffc53f68) //103 |
|---|
| 209 | NHSTUB(exmem_free ,0xffc53fe0) //103 |
|---|
| 210 | NHSTUB(free ,0xffc03a80) //112 |
|---|
| 211 | NHSTUB(kbd_p1_f ,0xffc114f0) //109 |
|---|
| 212 | NHSTUB(kbd_p1_f_cont ,0xffc114fc) //109 |
|---|
| 213 | NHSTUB(kbd_p2_f ,0xffc10d04) //109 |
|---|
| 214 | NHSTUB(kbd_read_keys ,0xffc113ec) //109 |
|---|
| 215 | NHSTUB(kbd_read_keys_r2 ,0xffc310b4) //109 |
|---|
| 216 | NHSTUB(lseek ,0xffc13484) //101 |
|---|
| 217 | NHSTUB(malloc ,0xffc039ac) //112 |
|---|
| 218 | NHSTUB(memcmp ,0xffc0d8b4) //101 |
|---|
| 219 | NHSTUB(memcpy ,0xffc6ce5c) //101 |
|---|
| 220 | NHSTUB(memset ,0xffd7a714) //101 |
|---|
| 221 | NHSTUB(mkdir ,0xffc136e8) //109 |
|---|
| 222 | NHSTUB(mktime_ext ,0xffc6d6c8) // 1 |
|---|
| 223 | NHSTUB(open ,0xffc09ea0) // 1 |
|---|
| 224 | NHSTUB(OpenFastDir ,0xffddc220) // 1 |
|---|
| 225 | NHSTUB(qsort ,0xffe2bbec) // 1 |
|---|
| 226 | NHSTUB(rand ,0xffc0d9bc) // 1 |
|---|
| 227 | //NHSTUB(read ,0xffc0a138) //101 |
|---|
| 228 | NHSTUB(realloc ,0xffc03b60) //115 |
|---|
| 229 | NHSTUB(reboot_fw_update ,0xffde0b88) //106 |
|---|
| 230 | NHSTUB(set_control_event ,0xffc5c898) // 1 |
|---|
| 231 | NHSTUB(srand ,0xffc0d9b0) // 1 |
|---|
| 232 | NHSTUB(stat ,0xffc13550) // 1 |
|---|
| 233 | NHSTUB(strcat ,0xffc6cc70) // 1 |
|---|
| 234 | NHSTUB(strchr ,0xffc6ccf8) // 1 |
|---|
| 235 | NHSTUB(strcmp ,0xffc0d84c) //101 |
|---|
| 236 | NHSTUB(strcpy ,0xffc0d834) //101 |
|---|
| 237 | NHSTUB(strftime ,0xffc6d0d0) // 1 |
|---|
| 238 | NHSTUB(strlen ,0xffc0d890) //101 |
|---|
| 239 | NHSTUB(strncmp ,0xffc6ccac) // 1 |
|---|
| 240 | NHSTUB(strncpy ,0xffc1cb54) // 1 |
|---|
| 241 | NHSTUB(strrchr ,0xffd7a6ec) // 1 |
|---|
| 242 | NHSTUB(strtol ,0xffc1cd8c) //101 |
|---|
| 243 | NHSTUB(strtolx ,0xffc1cb90) //109 |
|---|
| 244 | DEF(task_CaptSeq ,0xffc4b22c) //110 |
|---|
| 245 | DEF(task_ExpDrv ,0xffc84248) //110 |
|---|
| 246 | DEF(task_InitFileModules ,0xffc60680) //110 |
|---|
| 247 | DEF(task_MovieRecord ,0xffc47f5c) //110 |
|---|
| 248 | DEF(task_PhySw ,0xffc11060) //110 |
|---|
| 249 | NHSTUB(time ,0xffc5361c) //109 |
|---|
| 250 | NHSTUB(vsprintf ,0xffc0d7f8) //115 |
|---|
| 251 | //NHSTUB(write ,0xffc133f0) //101 |
|---|
| 252 | //NHSTUB(EngDrvIn ,0xffc12328) //102 |
|---|
| 253 | //NHSTUB(EngDrvOut ,0xffc12310) //102 |
|---|
| 254 | //NHSTUB(EngDrvRead ,0xffc12330) //102 |
|---|
| 255 | //NHSTUB(EngDrvBits ,0xffc12344) //102 |
|---|
| 256 | //NHSTUB(GetSDProtect ,0xffc113c4) //103 |
|---|
| 257 | //NHSTUB(DispCon_ShowBitmapColorBar ,0xffc2ce44) //102 |
|---|
| 258 | //NHSTUB(ResetZoomLens ,0xffdecb2c) //102 |
|---|
| 259 | //NHSTUB(ResetFocusLens ,0xffdebb34) //102 |
|---|
| 260 | //NHSTUB(NR_GetDarkSubType ,0xffd0d67c) //102 |
|---|
| 261 | //NHSTUB(NR_SetDarkSubType ,0xffd0d5d0) //102 |
|---|
| 262 | //NHSTUB(SavePaletteData ,0xffe44bf4) //102 |
|---|