| 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.00C |
|---|
| 7 | // Canon PowerShot SD780 IS |
|---|
| 8 | |
|---|
| 9 | // Values for makefile.inc |
|---|
| 10 | // PLATFORMOSVER = 31 |
|---|
| 11 | // PLATFORMID = 12738 (0x31c2) // Found @ 0xfffe0130 |
|---|
| 12 | // MAXRAMADDR = 0x03ffffff |
|---|
| 13 | // KEYSYS = d4 // Found @ 0xffff3584 |
|---|
| 14 | // NEED_ENCODED_DISKBOOT = 2 // Found @ 0xffff3594 |
|---|
| 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 ,0xff843204) // 2 64% |
|---|
| 19 | // ERROR: kbd_pwr_on is not found. //--- --- *** != 0x00000000 |
|---|
| 20 | |
|---|
| 21 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 22 | // Firmware modemap table found @ff877f44 -> ff8746ec -> ff9442b0 -> ffa4a604 -> ffb2e4d0 |
|---|
| 23 | // Mode 16390 in firmware but not in current modemap |
|---|
| 24 | // Mode 16904 in firmware but not in current modemap |
|---|
| 25 | // Mode 16906 in firmware but not in current modemap |
|---|
| 26 | // Mode 16923 in firmware but not in current modemap |
|---|
| 27 | // Mode 16924 in firmware but not in current modemap |
|---|
| 28 | // Mode 16413 in firmware but not in current modemap |
|---|
| 29 | // Mode 16408 in firmware but not in current modemap |
|---|
| 30 | // Mode 16406 in firmware but not in current modemap |
|---|
| 31 | // Mode 2600 in firmware but not in current modemap |
|---|
| 32 | // Mode 2601 in firmware but not in current modemap |
|---|
| 33 | // Current modemap entry not found in firmware - MODE_LANDSCAPE 32780 |
|---|
| 34 | // Current modemap entry not found in firmware - MODE_SCN_NIGHT_SCENE 16398 |
|---|
| 35 | // Current modemap entry not found in firmware - MODE_VIDEO_SPEED 2598 |
|---|
| 36 | // Current modemap entry not found in firmware - MODE_VIDEO_STD 2597 |
|---|
| 37 | |
|---|
| 38 | // Values below can be overridden in 'stubs_min.S': |
|---|
| 39 | DEF(physw_status ,0x0000e238) // Found @0xff821dcc |
|---|
| 40 | DEF(physw_run ,0x00001c34) // Found @0xff821a40 |
|---|
| 41 | DEF(levent_table ,0xffb009f0) // Found @0xffb009f0 |
|---|
| 42 | DEF(FlashParamsTable ,0xffb2e6ac) // Found @0xffb2e6ac |
|---|
| 43 | DEF(movie_status ,0x00005b10) // Found @0xff91a3c4 |
|---|
| 44 | DEF(canon_menu_active ,0x00002ca0) // Found @0xff86edcc |
|---|
| 45 | DEF(canon_shoot_menu_active ,0x00006e29) // Found @0xff953cac |
|---|
| 46 | DEF(playrec_mode ,0x00002a08) // Found @0xff862160 |
|---|
| 47 | DEF(zoom_status ,0x0000ac68) // Found @0xffa4be34 |
|---|
| 48 | DEF(some_flag_for_af_scan ,0x00006068) // Found @0xff91d6b8 |
|---|
| 49 | // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c). |
|---|
| 50 | // each entry contains 3 int value(s), the first is the zoom focus length. |
|---|
| 51 | // there are 7 entries in the table - set NUM_FL to 7 |
|---|
| 52 | DEF(focus_len_table ,0xfffe2a8c) // Found @0xfffe2a8c |
|---|
| 53 | DEF(zoom_busy ,0x00005a3c) // Found @0xff9166f4 |
|---|
| 54 | DEF(focus_busy ,0x00005938) // Found @0xff9115c8 |
|---|
| 55 | //DEF(recreview_hold ,0x0000328c) // Found @0xff87dd40, ** != ** stubs_min = 0x00006c0c (0x6C0C) |
|---|
| 56 | |
|---|
| 57 | // Values below go in 'lib.c': |
|---|
| 58 | //void *vid_get_bitmap_fb() { return (void*)0x403f1000; } // Found @0xff83dae4 |
|---|
| 59 | //void *vid_get_viewport_fb() { return (void*)0x415f3570; } // Found @0xffa97de8 |
|---|
| 60 | //void *vid_get_viewport_fb_d() { return (void*)(*(int*)(0x26f4+0x58)); } // Found @0xff853cb4 & 0xff853cec |
|---|
| 61 | //char *camera_jpeg_count_str() { return (char*)0x00033110; } // Found @0xff98fafc |
|---|
| 62 | //long hook_raw_size() { return 0x011ca240; } // Found @0xffa9a374 |
|---|
| 63 | //int get_flash_params_count(void) { return 0x7a; } // Found @0xff94536c |
|---|
| 64 | |
|---|
| 65 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 66 | //#define SD_READONLY_FLAG 0x00020000 // Found @0xffacd584, levent 0x90a |
|---|
| 67 | //#define SD_READONLY_IDX 2 |
|---|
| 68 | //#define USB_MASK 0x00080000 // Found @0xffacd59c, levent 0x902 |
|---|
| 69 | //#define USB_IDX 2 |
|---|
| 70 | |
|---|
| 71 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 72 | //static KeyMap keymap[] = { |
|---|
| 73 | // { 0, KEY_LEFT ,0x00000001 }, // Found @0xffacd47c, levent 0x06 |
|---|
| 74 | // { 0, KEY_RIGHT ,0x00000002 }, // Found @0xffacd488, levent 0x07 |
|---|
| 75 | // { 0, KEY_DOWN ,0x00000004 }, // Found @0xffacd494, levent 0x05 |
|---|
| 76 | // { 0, KEY_UP ,0x00000008 }, // Found @0xffacd4a0, levent 0x04 |
|---|
| 77 | // { 1, KEY_MENU ,0x00000800 }, // Found @0xffacd4ac, levent 0x09 |
|---|
| 78 | // { 1, KEY_SET ,0x00004000 }, // Found @0xffacd4b8, levent 0x08 |
|---|
| 79 | // { 2, KEY_SHOOT_FULL ,0x00001001 }, // Found @0xffacd548, levent 0x01 |
|---|
| 80 | // { 2, KEY_DISPLAY ,0x00000040 }, // Found @0xffacd530, levent 0x0a |
|---|
| 81 | // { 2, KEY_SHOOT_FULL_ONLY ,0x00001000 }, // Found @0xffacd548, levent 0x01 |
|---|
| 82 | // { 2, KEY_ZOOM_OUT ,0x00002000 }, // Found @0xffacd554, levent 0x03 |
|---|
| 83 | // { 2, KEY_ZOOM_IN ,0x00004000 }, // Found @0xffacd560, levent 0x02 |
|---|
| 84 | // { 2, KEY_SHOOT_HALF ,0x00000001 }, // Found @0xffacd4f4, levent 0x00 |
|---|
| 85 | // { 0, 0, 0 } |
|---|
| 86 | //}; |
|---|
| 87 | |
|---|
| 88 | // Values below go in 'platform_camera.h': |
|---|
| 89 | //#define CAM_DRYOS 1 |
|---|
| 90 | //#define CAM_RAW_ROWPIX 4080 // Found @0xff8e6184 |
|---|
| 91 | //#define CAM_RAW_ROWS 3048 // Found @0xff8e6188 |
|---|
| 92 | //#undef CAM_UNCACHED_BIT |
|---|
| 93 | //#define CAM_UNCACHED_BIT 0x40000000 // Found @0xff82748c |
|---|
| 94 | |
|---|
| 95 | // Misc stuff |
|---|
| 96 | DEF(ctypes, 0xffacc2ea) |
|---|
| 97 | |
|---|
| 98 | // For capt_seq.c |
|---|
| 99 | //static long *nrflag = (long*)(0x6050-0x08); // Found @ ff91f644 & ff91f660 |
|---|
| 100 | |
|---|
| 101 | // Stubs below matched 100%. |
|---|
| 102 | // Name Address Comp to stubs_entry_2.S |
|---|
| 103 | NSTUB(AllocateMemory ,0xffa3df5c) //101 |
|---|
| 104 | NSTUB(AllocateUncacheableMemory ,0xff827448) //112 |
|---|
| 105 | NSTUB(Close ,0xff823c98) //101 |
|---|
| 106 | NSTUB(CreateTask ,0xff81afac) //101 |
|---|
| 107 | NSTUB(DebugAssert ,0xff81b284) //111 |
|---|
| 108 | NSTUB(DeleteDirectory_Fut ,0xff823628) // 1 |
|---|
| 109 | NSTUB(DeleteFile_Fut ,0xff823544) //112 |
|---|
| 110 | NSTUB(DoAFLock ,0xff825334) //102 |
|---|
| 111 | NSTUB(EnterToCompensationEVF ,0xff825420) //104 |
|---|
| 112 | NSTUB(ExecuteEventProcedure ,0xff86a518) // 1 |
|---|
| 113 | NSTUB(ExitFromCompensationEVF ,0xff825464) //104 |
|---|
| 114 | NSTUB(ExitTask ,0xff81b23c) //101 |
|---|
| 115 | NSTUB(ExpCtrlTool_StartContiAE ,0xff82ff40) //104 |
|---|
| 116 | NSTUB(ExpCtrlTool_StopContiAE ,0xff830084) //104 |
|---|
| 117 | NSTUB(Fclose_Fut ,0xff8236c0) //101 |
|---|
| 118 | NSTUB(Feof_Fut ,0xff8238ac) // 1 |
|---|
| 119 | NSTUB(Fflush_Fut ,0xff8238e8) // 1 |
|---|
| 120 | NSTUB(Fgets_Fut ,0xff823814) // 1 |
|---|
| 121 | NSTUB(Fopen_Fut ,0xff823680) //101 |
|---|
| 122 | NSTUB(Fread_Fut ,0xff82376c) //101 |
|---|
| 123 | NSTUB(FreeMemory ,0xffa3df54) //101 |
|---|
| 124 | NSTUB(FreeUncacheableMemory ,0xff827488) //112 |
|---|
| 125 | NSTUB(Fseek_Fut ,0xff823860) //101 |
|---|
| 126 | NSTUB(Fwrite_Fut ,0xff8237c0) //101 |
|---|
| 127 | NSTUB(GetBatteryTemperature ,0xff845f30) //102 |
|---|
| 128 | NSTUB(GetCCDTemperature ,0xff845ebc) //102 |
|---|
| 129 | NSTUB(GetCurrentAvValue ,0xff913380) //102 |
|---|
| 130 | NSTUB(GetDrive_ClusterSize ,0xff8523e8) // 5 |
|---|
| 131 | NSTUB(GetDrive_FreeClusters ,0xff852440) // 5 |
|---|
| 132 | NSTUB(GetDrive_TotalClusters ,0xff852414) // 5 |
|---|
| 133 | NSTUB(GetFocusLensSubjectDistance ,0xff912430) //102 |
|---|
| 134 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xff91280c) // 3 |
|---|
| 135 | NSTUB(GetKbdState ,0xff8431ec) //109 |
|---|
| 136 | NSTUB(GetMemInfo ,0xff813be4) // 1 |
|---|
| 137 | NSTUB(GetOpticalTemperature ,0xff845fa4) //102 |
|---|
| 138 | NSTUB(GetParameterData ,0xff94532c) //101 |
|---|
| 139 | NSTUB(GetPropertyCase ,0xff86e284) //102 |
|---|
| 140 | NSTUB(GetSystemTime ,0xffa3dfb4) //101 |
|---|
| 141 | NSTUB(GetVRAMHPixelsSize ,0xff8b1568) //102 |
|---|
| 142 | NSTUB(GetVRAMVPixelsSize ,0xff8b1574) //102 |
|---|
| 143 | NSTUB(GetZoomLensCurrentPoint ,0xff916a6c) //102 |
|---|
| 144 | NSTUB(GetZoomLensCurrentPosition ,0xffa31844) //102 |
|---|
| 145 | NSTUB(GiveSemaphore ,0xff826e64) //112 |
|---|
| 146 | NSTUB(IsStrobeChargeCompleted ,0xff8a35c8) //102 |
|---|
| 147 | NSTUB(LEDDrive ,0xff842698) //103 |
|---|
| 148 | NSTUB(LocalTime ,0xff867f08) // 1 |
|---|
| 149 | NSTUB(LockMainPower ,0xff874304) //103 |
|---|
| 150 | NSTUB(Lseek ,0xff823dd8) //101 |
|---|
| 151 | NSTUB(MakeDirectory_Fut ,0xff8235b8) // 1 |
|---|
| 152 | NSTUB(MoveFocusLensToDistance ,0xffa94780) //102 |
|---|
| 153 | NSTUB(MoveIrisWithAv ,0xffa3c0b4) //102 |
|---|
| 154 | NSTUB(MoveZoomLensWithPoint ,0xffa3c640) //102 |
|---|
| 155 | NSTUB(NewTaskShell ,0xff86dd28) //103 |
|---|
| 156 | NSTUB(Open ,0xff823c70) //101 |
|---|
| 157 | NSTUB(PB2Rec ,0xff8772bc) //104 |
|---|
| 158 | NSTUB(PT_MoveDigitalZoomToWide ,0xff85b138) //102 |
|---|
| 159 | NSTUB(PT_MoveOpticalZoomAt ,0xff85b110) //102 |
|---|
| 160 | NSTUB(PT_PlaySound ,0xff85ad20) //102 |
|---|
| 161 | NSTUB(PostLogicalEventForNotPowerType ,0xff87392c) //103 |
|---|
| 162 | NSTUB(PostLogicalEventToUI ,0xff873978) //103 |
|---|
| 163 | NSTUB(PutInNdFilter ,0xffa3c4a4) //102 |
|---|
| 164 | NSTUB(PutOutNdFilter ,0xffa3c4c8) //102 |
|---|
| 165 | NSTUB(Read ,0xff819ae4) //101 |
|---|
| 166 | NSTUB(ReadFastDir ,0xffa1fd94) // 1 |
|---|
| 167 | NSTUB(Rec2PB ,0xff8772fc) //104 |
|---|
| 168 | NSTUB(RefreshPhysicalScreen ,0xff99cf18) //104 |
|---|
| 169 | NSTUB(Remove ,0xff823ce0) // 1 |
|---|
| 170 | NSTUB(RenameFile_Fut ,0xff8234f0) // 1 |
|---|
| 171 | NSTUB(Restart ,0xff828b98) //106 |
|---|
| 172 | NSTUB(SetAE_ShutterSpeed ,0xffa96f60) //102 |
|---|
| 173 | NSTUB(SetAutoShutdownTime ,0xff874378) //103 |
|---|
| 174 | NSTUB(SetCurrentCaptureModeType ,0xff87b2c0) //101 |
|---|
| 175 | NSTUB(SetFileAttributes ,0xff823fc4) // 1 |
|---|
| 176 | NSTUB(SetFileTimeStamp ,0xff823f74) // 1 |
|---|
| 177 | NSTUB(SetLogicalEventActive ,0xff874080) //101 |
|---|
| 178 | NSTUB(SetParameterData ,0xff94529c) //101 |
|---|
| 179 | NSTUB(SetPropertyCase ,0xff86e17c) //102 |
|---|
| 180 | NSTUB(SetScriptMode ,0xff8740d0) //101 |
|---|
| 181 | NSTUB(SleepTask ,0xff8270cc) //101 |
|---|
| 182 | NSTUB(TakeSemaphore ,0xff826d94) //101 |
|---|
| 183 | NSTUB(TurnOffBackLight ,0xff8810a0) //104 |
|---|
| 184 | NSTUB(TurnOnBackLight ,0xff881088) //104 |
|---|
| 185 | NSTUB(UIFS_WriteFirmInfoToFile ,0xff931e7c) //101 |
|---|
| 186 | NSTUB(UnlockAF ,0xff82536c) //102 |
|---|
| 187 | NSTUB(UnlockMainPower ,0xff874258) //103 |
|---|
| 188 | NSTUB(UnsetZoomForMovie ,0xff94afc4) //104 |
|---|
| 189 | NSTUB(UpdateMBROnFlash ,0xff852240) //105 |
|---|
| 190 | NSTUB(VbattGet ,0xff820644) //103 |
|---|
| 191 | NSTUB(Write ,0xff823d44) //101 |
|---|
| 192 | NSTUB(WriteSDCard ,0xff903b38) //108 |
|---|
| 193 | NSTUB(_log ,0xffac9580) //111 |
|---|
| 194 | NSTUB(_log10 ,0xffac820c) //112 |
|---|
| 195 | NSTUB(_pow ,0xffac837c) //114 |
|---|
| 196 | NSTUB(_sqrt ,0xffacb124) // 1 |
|---|
| 197 | NSTUB(add_ptp_handler ,0xff9eabdc) // 3 |
|---|
| 198 | NSTUB(apex2us ,0xff9a010c) // 4 |
|---|
| 199 | NSTUB(close ,0xff8198fc) // 1 |
|---|
| 200 | NSTUB(closedir ,0xffa1fe64) // 1 |
|---|
| 201 | NSTUB(err_init_task ,0xff814e2c) // 4 |
|---|
| 202 | NSTUB(exmem_alloc ,0xff868dc8) //103 |
|---|
| 203 | NSTUB(free ,0xff813a3c) //112 |
|---|
| 204 | NSTUB(kbd_p1_f ,0xff821e48) //109 |
|---|
| 205 | NSTUB(kbd_p1_f_cont ,0xff821e54) //109 |
|---|
| 206 | NSTUB(kbd_p2_f ,0xff82170c) //109 |
|---|
| 207 | NSTUB(kbd_read_keys ,0xff821dcc) //109 |
|---|
| 208 | NSTUB(kbd_read_keys_r2 ,0xff842b6c) //109 |
|---|
| 209 | NSTUB(lseek ,0xff823dd8) //101 |
|---|
| 210 | NSTUB(malloc ,0xff813968) //112 |
|---|
| 211 | NSTUB(memcmp ,0xff81cc5c) //101 |
|---|
| 212 | NSTUB(memcpy ,0xff887900) //101 |
|---|
| 213 | NSTUB(memset ,0xff99f3f4) //101 |
|---|
| 214 | NSTUB(mkdir ,0xff82403c) // 1 |
|---|
| 215 | // ALT: NSTUB(mkdir, 0xff8240dc) // 1 32/0 |
|---|
| 216 | NSTUB(mktime_ext ,0xff88816c) // 1 |
|---|
| 217 | NSTUB(open ,0xff81984c) // 1 |
|---|
| 218 | NSTUB(opendir ,0xffa1fd00) // 1 |
|---|
| 219 | NSTUB(openfastdir ,0xffa1fd00) // 1 |
|---|
| 220 | NSTUB(qsort ,0xffa79a4c) // 1 |
|---|
| 221 | NSTUB(rand ,0xff81cd64) // 1 |
|---|
| 222 | NSTUB(read ,0xff819ae4) //101 |
|---|
| 223 | NSTUB(reboot_fw_update ,0xffa27444) // 5 |
|---|
| 224 | NSTUB(rename ,0xff8234f0) // 1 |
|---|
| 225 | NSTUB(set_control_event ,0xff873db4) //111 |
|---|
| 226 | NSTUB(srand ,0xff81cd58) // 1 |
|---|
| 227 | NSTUB(stat ,0xff823ea4) // 1 |
|---|
| 228 | NSTUB(strcat ,0xff887714) // 1 |
|---|
| 229 | NSTUB(strchr ,0xff88779c) // 1 |
|---|
| 230 | NSTUB(strcmp ,0xff81cbf4) //101 |
|---|
| 231 | NSTUB(strcpy ,0xff81cbdc) //101 |
|---|
| 232 | NSTUB(strftime ,0xff887b74) // 1 |
|---|
| 233 | NSTUB(strlen ,0xff81cc38) //101 |
|---|
| 234 | NSTUB(strncmp ,0xff887750) // 1 |
|---|
| 235 | NSTUB(strncpy ,0xff82cd3c) // 1 |
|---|
| 236 | NSTUB(strrchr ,0xff99f3cc) // 1 |
|---|
| 237 | NSTUB(strtol ,0xff82cf74) //101 |
|---|
| 238 | NSTUB(strtolx ,0xff82cd78) //109 |
|---|
| 239 | DEF(task_CaptSeq ,0xff85d754) //107 |
|---|
| 240 | DEF(task_ExpDrv ,0xff899cc4) //110 |
|---|
| 241 | DEF(task_InitFileModules ,0xff877dd0) //107 |
|---|
| 242 | DEF(task_MovieRecord ,0xff91a6ac) //107 |
|---|
| 243 | DEF(task_PhySw ,0xff821a3c) //107 |
|---|
| 244 | NSTUB(time ,0xff868480) // 2 |
|---|
| 245 | NSTUB(vsprintf ,0xff81cba0) // 1 |
|---|
| 246 | NSTUB(write ,0xff823d44) //101 |
|---|