| 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 SX10 IS |
|---|
| 8 | |
|---|
| 9 | // Values for makefile.inc |
|---|
| 10 | // PLATFORMOSVER = 31 |
|---|
| 11 | // PLATFORMID = 12685 (0x318d) // Found @ 0xfffe0130 |
|---|
| 12 | // MAXRAMADDR = 0x03ffffff |
|---|
| 13 | // KEYSYS = d4 // Found @ 0xffff3570 |
|---|
| 14 | // NEED_ENCODED_DISKBOOT = 1 // Found @ 0xffff3580 |
|---|
| 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 ,0xff84b810) // 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 @ff884bc0 -> ff881350 -> ff973e64 -> ffa79978 -> ffb74378 |
|---|
| 23 | // Current modemap entry not found in firmware - MODE_VIDEO_STD 3622 |
|---|
| 24 | |
|---|
| 25 | // Values below can be overridden in 'stubs_min.S': |
|---|
| 26 | DEF(physw_status ,0x00011ec4) // Found @0xff821b14 |
|---|
| 27 | DEF(physw_run ,0x00001c30) // Found @0xff821788 |
|---|
| 28 | DEF(levent_table ,0xffb4acb8) // Found @0xffb4acb8 |
|---|
| 29 | DEF(FlashParamsTable ,0xffb7454c) // Found @0xffb7454c |
|---|
| 30 | DEF(movie_status ,0x00005430) // Found @0xff8642fc |
|---|
| 31 | DEF(canon_menu_active ,0x000058d8) // Found @0xff87a1e4 |
|---|
| 32 | DEF(canon_shoot_menu_active ,0x0000ac29) // Found @0xff98cb14 |
|---|
| 33 | DEF(playrec_mode ,0x00005640) // Found @0xff86d210 |
|---|
| 34 | DEF(zoom_status ,0x0000e3e0) // Found @0xffa7b644 |
|---|
| 35 | DEF(some_flag_for_af_scan ,0x00009b58) // Found @0xff94a2ac |
|---|
| 36 | DEF(zoom_busy ,0x00009100) // Found @0xff9407e8 |
|---|
| 37 | DEF(focus_busy ,0x00008f8c) // Found @0xff9397fc |
|---|
| 38 | //DEF(recreview_hold ,0x0000645c) // Found @0xff88b558, ** != ** stubs_min = 0x0000a868 (0xA78C+0xDC) |
|---|
| 39 | |
|---|
| 40 | // Values below go in 'lib.c': |
|---|
| 41 | //void *vid_get_bitmap_fb() { return (void*)0x403b1000; } // Found @0xff846c28 |
|---|
| 42 | //void *vid_get_viewport_fb() { return (void*)0x4070d9d0; } // Found @0xffad159c |
|---|
| 43 | //void *vid_get_viewport_fb_d() { return (void*)(*(int*)(0x5260+0x58)); } // Found @0xff85c764 & 0xff85c79c |
|---|
| 44 | //char *camera_jpeg_count_str() { return (char*)0x0004c138; } // Found @0xff9d283c |
|---|
| 45 | //long hook_raw_size() { return 0x00ec04f0; } // Found @0xffad3a20 |
|---|
| 46 | //int get_flash_params_count(void) { return 0x78; } // Found @0xff975464 |
|---|
| 47 | |
|---|
| 48 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 49 | //#define SD_READONLY_FLAG 0x00020000 // Found @0xffb0ad4c, levent 0x90a |
|---|
| 50 | //#define SD_READONLY_IDX 2 |
|---|
| 51 | //#define USB_MASK 0x00040000 // Found @0xffb0ad58, levent 0x902 |
|---|
| 52 | //#define USB_IDX 2 |
|---|
| 53 | |
|---|
| 54 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 55 | //static KeyMap keymap[] = { |
|---|
| 56 | // { 0, KEY_SHOOT_FULL ,0x00000003 }, // Found @0xffb0abd8, levent 0x01 |
|---|
| 57 | // { 0, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffb0abd8, levent 0x01 |
|---|
| 58 | // { 0, KEY_SHOOT_HALF ,0x00000001 }, // Found @0xffb0abcc, levent 0x00 |
|---|
| 59 | // { 1, KEY_SET ,0x00000100 }, // Found @0xffb0ac74, levent 0x08 |
|---|
| 60 | // { 1, KEY_DISPLAY ,0x00000200 }, // Found @0xffb0ac80, levent 0x0a |
|---|
| 61 | // { 1, KEY_UP ,0x00000400 }, // Found @0xffb0ac8c, levent 0x04 |
|---|
| 62 | // { 1, KEY_DOWN ,0x00000800 }, // Found @0xffb0ac98, levent 0x05 |
|---|
| 63 | // { 1, KEY_RIGHT ,0x00001000 }, // Found @0xffb0aca4, levent 0x07 |
|---|
| 64 | // { 1, KEY_LEFT ,0x00002000 }, // Found @0xffb0acb0, levent 0x06 |
|---|
| 65 | // { 1, KEY_MENU ,0x00004000 }, // Found @0xffb0acbc, levent 0x09 |
|---|
| 66 | // { 0, 0, 0 } |
|---|
| 67 | //}; |
|---|
| 68 | |
|---|
| 69 | // Values below go in 'platform_camera.h': |
|---|
| 70 | //#define CAM_DRYOS 1 |
|---|
| 71 | //#define CAM_RAW_ROWPIX 3720 // Found @0xffaca160 |
|---|
| 72 | //#define CAM_RAW_ROWS 2772 // Found @0xffaca168 |
|---|
| 73 | //#undef CAM_UNCACHED_BIT |
|---|
| 74 | //#define CAM_UNCACHED_BIT 0x40000000 // Found @0xff828010 |
|---|
| 75 | |
|---|
| 76 | // Misc stuff |
|---|
| 77 | DEF(ctypes, 0xffb04656) |
|---|
| 78 | |
|---|
| 79 | // For capt_seq.c |
|---|
| 80 | //static long *nrflag = (long*)(0x9b44-0x04); // Found @ ff94c9a0 & ff94c9b8 |
|---|
| 81 | |
|---|
| 82 | // Stubs below matched 100%. |
|---|
| 83 | // Name Address Comp to stubs_entry_2.S |
|---|
| 84 | NSTUB(AllocateMemory ,0xffa67ae4) //101 |
|---|
| 85 | NSTUB(AllocateUncacheableMemory ,0xff827fcc) //112 |
|---|
| 86 | NSTUB(Close ,0xff823a64) //101 |
|---|
| 87 | NSTUB(CreateTask ,0xff81aef4) //101 |
|---|
| 88 | NSTUB(DebugAssert ,0xff81b1cc) //111 |
|---|
| 89 | NSTUB(DeleteDirectory_Fut ,0xff8233f4) // 1 |
|---|
| 90 | NSTUB(DeleteFile_Fut ,0xff823310) //112 |
|---|
| 91 | NSTUB(DoAFLock ,0xff825864) //102 |
|---|
| 92 | NSTUB(EnterToCompensationEVF ,0xff825b10) //104 |
|---|
| 93 | NSTUB(ExecuteEventProcedure ,0xff8759e8) // 1 |
|---|
| 94 | NSTUB(ExitFromCompensationEVF ,0xff825b54) //104 |
|---|
| 95 | NSTUB(ExitTask ,0xff81b184) //101 |
|---|
| 96 | NSTUB(ExpCtrlTool_StartContiAE ,0xff8311d8) //104 |
|---|
| 97 | NSTUB(ExpCtrlTool_StopContiAE ,0xff83131c) //104 |
|---|
| 98 | NSTUB(Fclose_Fut ,0xff82348c) //101 |
|---|
| 99 | NSTUB(Feof_Fut ,0xff823678) // 1 |
|---|
| 100 | NSTUB(Fflush_Fut ,0xff8236b4) // 1 |
|---|
| 101 | NSTUB(Fgets_Fut ,0xff8235e0) // 1 |
|---|
| 102 | NSTUB(Fopen_Fut ,0xff82344c) //101 |
|---|
| 103 | NSTUB(Fread_Fut ,0xff823538) //101 |
|---|
| 104 | NSTUB(FreeMemory ,0xffa67adc) //101 |
|---|
| 105 | NSTUB(FreeUncacheableMemory ,0xff82800c) //112 |
|---|
| 106 | NSTUB(Fseek_Fut ,0xff82362c) //101 |
|---|
| 107 | NSTUB(Fwrite_Fut ,0xff82358c) //101 |
|---|
| 108 | NSTUB(GetBatteryTemperature ,0xff84e658) //102 |
|---|
| 109 | NSTUB(GetCCDTemperature ,0xff84e5e8) //102 |
|---|
| 110 | NSTUB(GetCurrentAvValue ,0xff93be7c) //102 |
|---|
| 111 | NSTUB(GetDrive_ClusterSize ,0xff85ae90) // 1 |
|---|
| 112 | NSTUB(GetDrive_FreeClusters ,0xff85aef8) // 1 |
|---|
| 113 | NSTUB(GetDrive_TotalClusters ,0xff85aec4) // 1 |
|---|
| 114 | NSTUB(GetFocusLensSubjectDistance ,0xff93a304) //102 |
|---|
| 115 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xff93a610) // 3 |
|---|
| 116 | NSTUB(GetKbdState ,0xff84b660) //109 |
|---|
| 117 | NSTUB(GetMemInfo ,0xff813c24) // 1 |
|---|
| 118 | NSTUB(GetOpticalTemperature ,0xff84e6c8) //102 |
|---|
| 119 | NSTUB(GetParameterData ,0xff975424) //101 |
|---|
| 120 | NSTUB(GetPropertyCase ,0xff8796d0) //102 |
|---|
| 121 | NSTUB(GetSystemTime ,0xffa67b3c) //101 |
|---|
| 122 | NSTUB(GetZoomLensCurrentPoint ,0xff941128) //102 |
|---|
| 123 | NSTUB(GetZoomLensCurrentPosition ,0xffa5b23c) //102 |
|---|
| 124 | NSTUB(GiveSemaphore ,0xff8279e8) //112 |
|---|
| 125 | NSTUB(IsStrobeChargeCompleted ,0xff8b69f8) //102 |
|---|
| 126 | NSTUB(LEDDrive ,0xff84ab48) //103 |
|---|
| 127 | NSTUB(LocalTime ,0xff873184) // 1 |
|---|
| 128 | NSTUB(LockMainPower ,0xff880f68) //103 |
|---|
| 129 | NSTUB(Lseek ,0xff823ba4) //101 |
|---|
| 130 | NSTUB(MakeDirectory_Fut ,0xff823384) // 1 |
|---|
| 131 | NSTUB(MoveFocusLensToDistance ,0xffacd91c) //102 |
|---|
| 132 | NSTUB(MoveIrisWithAv ,0xffa63110) //102 |
|---|
| 133 | NSTUB(MoveZoomLensWithPoint ,0xffa63838) //102 |
|---|
| 134 | NSTUB(NewTaskShell ,0xff879178) //103 |
|---|
| 135 | NSTUB(Open ,0xff823a3c) //101 |
|---|
| 136 | NSTUB(PB2Rec ,0xff883fd0) //104 |
|---|
| 137 | NSTUB(PT_MoveDigitalZoomToWide ,0xff866084) //102 |
|---|
| 138 | NSTUB(PT_MoveOpticalZoomAt ,0xff86605c) //102 |
|---|
| 139 | NSTUB(PT_PlaySound ,0xff8659d4) //102 |
|---|
| 140 | NSTUB(PostLogicalEventForNotPowerType ,0xff87ec94) //103 |
|---|
| 141 | NSTUB(PostLogicalEventToUI ,0xff87ece0) //103 |
|---|
| 142 | NSTUB(PutInNdFilter ,0xffa636bc) //102 |
|---|
| 143 | NSTUB(PutOutNdFilter ,0xffa636e0) //102 |
|---|
| 144 | NSTUB(Read ,0xff819a4c) //101 |
|---|
| 145 | NSTUB(ReadFastDir ,0xffa49114) // 1 |
|---|
| 146 | NSTUB(Rec2PB ,0xff882958) //104 |
|---|
| 147 | NSTUB(RefreshPhysicalScreen ,0xff9df030) //104 |
|---|
| 148 | NSTUB(Remove ,0xff823aac) // 1 |
|---|
| 149 | NSTUB(RenameFile_Fut ,0xff8232bc) // 1 |
|---|
| 150 | NSTUB(Restart ,0xff829848) //106 |
|---|
| 151 | NSTUB(SetAE_ShutterSpeed ,0xffad07ac) //102 |
|---|
| 152 | NSTUB(SetAutoShutdownTime ,0xff880fdc) //103 |
|---|
| 153 | NSTUB(SetCurrentCaptureModeType ,0xff8886ac) //101 |
|---|
| 154 | NSTUB(SetFileAttributes ,0xff823d90) // 1 |
|---|
| 155 | NSTUB(SetFileTimeStamp ,0xff823d40) // 1 |
|---|
| 156 | NSTUB(SetLogicalEventActive ,0xff880c28) //101 |
|---|
| 157 | NSTUB(SetParameterData ,0xff975300) //101 |
|---|
| 158 | NSTUB(SetPropertyCase ,0xff8795c8) //102 |
|---|
| 159 | NSTUB(SetScriptMode ,0xff880c78) //101 |
|---|
| 160 | NSTUB(SleepTask ,0xff827c50) //101 |
|---|
| 161 | NSTUB(TakeSemaphore ,0xff827918) //101 |
|---|
| 162 | NSTUB(TurnOffBackLight ,0xff88f284) //104 |
|---|
| 163 | NSTUB(TurnOnBackLight ,0xff88f26c) //104 |
|---|
| 164 | NSTUB(UIFS_WriteFirmInfoToFile ,0xff963734) //103 |
|---|
| 165 | NSTUB(UnlockAF ,0xff82589c) //102 |
|---|
| 166 | NSTUB(UnlockMainPower ,0xff880ebc) //103 |
|---|
| 167 | NSTUB(UpdateMBROnFlash ,0xff85acd0) //105 |
|---|
| 168 | NSTUB(VbattGet ,0xff82046c) //103 |
|---|
| 169 | NSTUB(Write ,0xff823b10) //101 |
|---|
| 170 | NSTUB(WriteSDCard ,0xff92a99c) //108 |
|---|
| 171 | NSTUB(_log ,0xffb018d4) //111 |
|---|
| 172 | NSTUB(_log10 ,0xffb00560) //112 |
|---|
| 173 | NSTUB(_pow ,0xffb006d0) //114 |
|---|
| 174 | NSTUB(_sqrt ,0xffb03530) // 1 |
|---|
| 175 | NSTUB(add_ptp_handler ,0xffa1726c) // 3 |
|---|
| 176 | NSTUB(apex2us ,0xff9e0118) // 4 |
|---|
| 177 | NSTUB(close ,0xff819864) // 1 |
|---|
| 178 | NSTUB(closedir ,0xffa491e4) // 1 |
|---|
| 179 | NSTUB(err_init_task ,0xff814e80) // 4 |
|---|
| 180 | NSTUB(exmem_alloc ,0xff8740c4) //103 |
|---|
| 181 | NSTUB(free ,0xff813a7c) //112 |
|---|
| 182 | NSTUB(kbd_p1_f ,0xff821c10) //109 |
|---|
| 183 | NSTUB(kbd_p1_f_cont ,0xff821c1c) //109 |
|---|
| 184 | NSTUB(kbd_p2_f ,0xff821428) //109 |
|---|
| 185 | NSTUB(kbd_read_keys ,0xff821b14) //109 |
|---|
| 186 | NSTUB(kbd_read_keys_r2 ,0xff84af6c) //109 |
|---|
| 187 | NSTUB(lseek ,0xff823ba4) //101 |
|---|
| 188 | NSTUB(malloc ,0xff8139a8) //112 |
|---|
| 189 | NSTUB(memcmp ,0xff81cba4) //101 |
|---|
| 190 | NSTUB(memcpy ,0xff89ba80) //101 |
|---|
| 191 | NSTUB(memset ,0xff9df450) //101 |
|---|
| 192 | NSTUB(mkdir ,0xff823e08) // 1 |
|---|
| 193 | // ALT: NSTUB(mkdir, 0xff823ea8) // 1 32/0 |
|---|
| 194 | NSTUB(mktime_ext ,0xff89c2ec) // 1 |
|---|
| 195 | NSTUB(open ,0xff8197b4) // 1 |
|---|
| 196 | NSTUB(opendir ,0xffa49080) // 1 |
|---|
| 197 | NSTUB(openfastdir ,0xffa49080) // 1 |
|---|
| 198 | NSTUB(qsort ,0xffab814c) // 1 |
|---|
| 199 | NSTUB(rand ,0xff81ccac) // 1 |
|---|
| 200 | NSTUB(read ,0xff819a4c) //101 |
|---|
| 201 | NSTUB(reboot_fw_update ,0xffa50b14) // 5 |
|---|
| 202 | NSTUB(rename ,0xff8232bc) // 1 |
|---|
| 203 | NSTUB(set_control_event ,0xff880884) //111 |
|---|
| 204 | NSTUB(srand ,0xff81cca0) // 1 |
|---|
| 205 | NSTUB(stat ,0xff823c70) // 1 |
|---|
| 206 | NSTUB(strcat ,0xff89b894) // 1 |
|---|
| 207 | NSTUB(strchr ,0xff89b91c) // 1 |
|---|
| 208 | NSTUB(strcmp ,0xff81cb3c) //101 |
|---|
| 209 | NSTUB(strcpy ,0xff81cb24) //101 |
|---|
| 210 | NSTUB(strftime ,0xff89bcf4) // 1 |
|---|
| 211 | NSTUB(strlen ,0xff81cb80) //101 |
|---|
| 212 | NSTUB(strncmp ,0xff89b8d0) // 1 |
|---|
| 213 | NSTUB(strncpy ,0xff82db14) // 1 |
|---|
| 214 | NSTUB(strrchr ,0xff9df428) // 1 |
|---|
| 215 | NSTUB(strtol ,0xff82dd4c) //101 |
|---|
| 216 | NSTUB(strtolx ,0xff82db50) //109 |
|---|
| 217 | DEF(task_CaptSeq ,0xff868b90) //107 |
|---|
| 218 | DEF(task_ExpDrv ,0xff8ad7c4) //110 |
|---|
| 219 | DEF(task_InitFileModules ,0xff884a4c) //107 |
|---|
| 220 | DEF(task_MovieRecord ,0xff864584) //107 |
|---|
| 221 | DEF(task_PhySw ,0xff821784) //107 |
|---|
| 222 | NSTUB(time ,0xff873764) // 2 |
|---|
| 223 | NSTUB(vsprintf ,0xff81cae8) // 1 |
|---|
| 224 | NSTUB(write ,0xff823b10) //101 |
|---|