| 1 | // !!! THIS FILE IS GENERATED. DO NOT EDIT. !!! |
|---|
| 2 | #include "stubs_asm.h" |
|---|
| 3 | |
|---|
| 4 | // Camera info: |
|---|
| 5 | // DRYOS R39 (DRYOS version 2.3, release #0039) |
|---|
| 6 | // Firmware Ver GM1.00J |
|---|
| 7 | // Canon PowerShot G11 |
|---|
| 8 | |
|---|
| 9 | // Values for makefile.inc |
|---|
| 10 | // PLATFORMID = 12767 (0x31df) // Found @ 0xfffe0130 |
|---|
| 11 | // MAXRAMADDR = 0x03ffffff |
|---|
| 12 | // KEYSYS = d4 // Found @ 0xffff35a8 |
|---|
| 13 | // NEED_ENCODED_DISKBOOT = 3 // Found @ 0xffff35b8 |
|---|
| 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(SetScriptMode ,0xff8950e4) //101 *** != 0xff810f4c |
|---|
| 18 | NSTUB(kbd_pwr_off ,0xff86043c) // 2 64% |
|---|
| 19 | // ERROR: kbd_pwr_on is not found. //--- --- *** != 0xff810b04 |
|---|
| 20 | //NSTUB(rename ,0xff8352a8) // 4 *** != 0xff835a8c |
|---|
| 21 | //NSTUB(write ,0xff835a40) //101 *** != 0xff81abd8 |
|---|
| 22 | |
|---|
| 23 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 24 | // Firmware modemap table found @ff8990fc -> ff895738 -> ff9952bc -> ffab487c -> ffbe7010 |
|---|
| 25 | // No problems found with modemap table. |
|---|
| 26 | |
|---|
| 27 | // Values below go in 'stubs_min.S': |
|---|
| 28 | //DEF(physw_status ,0x00032578) // Found @0xff833584, stubs_min = 0x00032578 (0x32578) |
|---|
| 29 | //DEF(physw_run ,0x00001c44) // Found @0xff8331f4, stubs_min = 0x00001c44 (0x1c44) |
|---|
| 30 | //DEF(levent_table ,0xffb95e24) // Found @0xffb95e24, stubs_min = 0xffb95e24 (0xFFB95E24) |
|---|
| 31 | //DEF(FlashParamsTable ,0xffbe7204) // Found @0xffbe7204, stubs_min = 0xffbe7204 (0xFFBE7204) |
|---|
| 32 | //DEF(movie_status ,0x00006d90) // Found @0xff9628bc, stubs_min = 0x00006d90 (0x6D58+0x38) |
|---|
| 33 | //DEF(full_screen_refresh ,0x00009840) // Found @0xffa0ecdc |
|---|
| 34 | //DEF(canon_menu_active ,0x0000303c) // Found @0xff88e27c, stubs_min = 0x0000303c (0x3038+0x4) |
|---|
| 35 | //DEF(canon_shoot_menu_active ,0x00008259) // Found @0xff9af938, stubs_min = 0x00008259 (0x8258+0x1) |
|---|
| 36 | //DEF(playrec_mode ,0x00002d64) // Found @0xff880558, stubs_min = 0x00002d64 (0x2D60+0x4) |
|---|
| 37 | //DEF(zoom_status ,0x0000c868) // Found @0xffab7768, stubs_min = 0x0000c868 (0xC868) |
|---|
| 38 | //DEF(some_flag_for_af_scan ,0x000072b4) // Found @0xff965f34, stubs_min = 0x000072b4 (0x72B4) |
|---|
| 39 | |
|---|
| 40 | // Values below go in 'lib.c': |
|---|
| 41 | //void *vid_get_bitmap_fb() { return (void*)0x40471000; } // Found @0xff85a4c0 |
|---|
| 42 | //void *vid_get_viewport_fb() { return (void*)0x40587700; } // Found @0xffb067b0 |
|---|
| 43 | //char *camera_jpeg_count_str() { return (char*)0x00097234; } // Found @0xffa010f0 |
|---|
| 44 | //long hook_raw_size() { return 0x00ee9200; } // Found @0xffb09a68 |
|---|
| 45 | //int get_flash_params_count(void) { return 0x84; } // Found @0xff9968bc |
|---|
| 46 | |
|---|
| 47 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 48 | //#define SD_READONLY_FLAG 0x00020000 // Found @0xffb475f0, levent 0x90a |
|---|
| 49 | //#define SD_READONLY_IDX 2 |
|---|
| 50 | //#define USB_MASK 0x00100000 // Found @0xffb47614, levent 0x902 |
|---|
| 51 | //#define USB_IDX 2 |
|---|
| 52 | |
|---|
| 53 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 54 | //static KeyMap keymap[] = { |
|---|
| 55 | // { 0, KEY_ZOOM_OUT ,0x00000008 }, // Found @0xffb4747c, levent 0x03 |
|---|
| 56 | // { 0, KEY_ZOOM_IN ,0x00000010 }, // Found @0xffb47488, levent 0x02 |
|---|
| 57 | // { 0, KEY_LEFT ,0x00000400 }, // Found @0xffb474d0, levent 0x06 |
|---|
| 58 | // { 0, KEY_SET ,0x00000800 }, // Found @0xffb474dc, levent 0x08 |
|---|
| 59 | // { 0, KEY_RIGHT ,0x00001000 }, // Found @0xffb474e8, levent 0x07 |
|---|
| 60 | // { 0, KEY_DOWN ,0x00002000 }, // Found @0xffb474f4, levent 0x05 |
|---|
| 61 | // { 0, KEY_UP ,0x00004000 }, // Found @0xffb47500, levent 0x04 |
|---|
| 62 | // { 0, KEY_DISPLAY ,0x00020000 }, // Found @0xffb47524, levent 0x0a |
|---|
| 63 | // { 0, KEY_MENU ,0x00040000 }, // Found @0xffb47530, levent 0x09 |
|---|
| 64 | // { 2, KEY_SHOOT_FULL ,0x00000003 }, // Found @0xffb475b4, levent 0x01 |
|---|
| 65 | // { 2, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffb475b4, levent 0x01 |
|---|
| 66 | // { 2, KEY_SHOOT_HALF ,0x00000001 }, // Found @0xffb475a8, levent 0x00 |
|---|
| 67 | // { 0, 0, 0 } |
|---|
| 68 | //}; |
|---|
| 69 | |
|---|
| 70 | // Values below go in 'platform_camera.h': |
|---|
| 71 | //#define CAM_DRYOS 1 |
|---|
| 72 | //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher |
|---|
| 73 | //#define CAM_RAW_ROWPIX 3744 // Found @0xff9357c8 |
|---|
| 74 | //#define CAM_RAW_ROWS 2784 // Found @0xff9357d0 |
|---|
| 75 | //#undef CAM_UNCACHED_BIT |
|---|
| 76 | //#define CAM_UNCACHED_BIT 0x40000000 // Found @0xff839460 |
|---|
| 77 | |
|---|
| 78 | // Stubs below matched 100%. |
|---|
| 79 | // Name Address Comp to stubs_entry_2.S |
|---|
| 80 | NSTUB(AllocateMemory ,0xffaa353c) //101 |
|---|
| 81 | NSTUB(AllocateUncacheableMemory ,0xff83941c) //112 |
|---|
| 82 | NSTUB(Close ,0xff8359b0) //101 |
|---|
| 83 | NSTUB(CreateTask ,0xff81e5b4) //101 |
|---|
| 84 | NSTUB(DebugAssert ,0xff81e88c) //111 |
|---|
| 85 | NSTUB(DeleteFile_Fut ,0xff83533c) //112 |
|---|
| 86 | //NSTUB(DoAFLock ,0xff837158) //102 == 0xff837158 |
|---|
| 87 | //NSTUB(EnterToCompensationEVF ,0xff8373d8) //104 == 0xff8373d8 |
|---|
| 88 | NSTUB(ExecuteEventProcedure ,0xff889904) // 1 |
|---|
| 89 | //NSTUB(ExitFromCompensationEVF ,0xff83741c) //104 == 0xff83741c |
|---|
| 90 | NSTUB(ExitTask ,0xff81e844) //101 |
|---|
| 91 | //NSTUB(ExpCtrlTool_StartContiAE ,0xff844ce0) //104 == 0xff844ce0 |
|---|
| 92 | //NSTUB(ExpCtrlTool_StopContiAE ,0xff844db8) //104 == 0xff844db8 |
|---|
| 93 | NSTUB(Fclose_Fut ,0xff8354b8) //101 |
|---|
| 94 | NSTUB(Feof_Fut ,0xff8356a4) // 1 |
|---|
| 95 | NSTUB(Fflush_Fut ,0xff8356e0) // 1 |
|---|
| 96 | NSTUB(Fgets_Fut ,0xff83560c) // 1 |
|---|
| 97 | NSTUB(Fopen_Fut ,0xff835478) //101 |
|---|
| 98 | NSTUB(Fread_Fut ,0xff835564) //101 |
|---|
| 99 | NSTUB(FreeMemory ,0xffaa3534) //101 |
|---|
| 100 | NSTUB(FreeUncacheableMemory ,0xff83945c) //112 |
|---|
| 101 | NSTUB(Fseek_Fut ,0xff835658) //101 |
|---|
| 102 | NSTUB(Fwrite_Fut ,0xff8355b8) //101 |
|---|
| 103 | NSTUB(GetBatteryTemperature ,0xff8635d8) //102 |
|---|
| 104 | NSTUB(GetCCDTemperature ,0xff863564) //102 |
|---|
| 105 | NSTUB(GetCurrentAvValue ,0xff95c230) //102 |
|---|
| 106 | NSTUB(GetDrive_ClusterSize ,0xff86fc80) // 3 |
|---|
| 107 | NSTUB(GetDrive_FreeClusters ,0xff86fce0) // 3 |
|---|
| 108 | NSTUB(GetDrive_TotalClusters ,0xff86fcb4) // 3 |
|---|
| 109 | NSTUB(GetFocusLensSubjectDistance ,0xff95a804) //102 |
|---|
| 110 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xff95ac4c) // 3 |
|---|
| 111 | NSTUB(GetImageFolder ,0xff93d654) //106 |
|---|
| 112 | //NSTUB(GetKbdState ,0xff860424) //109 == 0xff860424 |
|---|
| 113 | NSTUB(GetMemInfo ,0xff81a070) // 3 |
|---|
| 114 | NSTUB(GetOpticalTemperature ,0xff86364c) //102 |
|---|
| 115 | NSTUB(GetParameterData ,0xff99687c) //101 |
|---|
| 116 | NSTUB(GetPropertyCase ,0xff88d6b0) //102 |
|---|
| 117 | NSTUB(GetSystemTime ,0xffaa3594) //101 |
|---|
| 118 | NSTUB(GetZoomLensCurrentPoint ,0xff95ee0c) //102 |
|---|
| 119 | NSTUB(GetZoomLensCurrentPosition ,0xffa967a0) //102 |
|---|
| 120 | //NSTUB(GiveSemaphore ,0xff838e38) //112 == 0xff838e38 |
|---|
| 121 | NSTUB(IsStrobeChargeCompleted ,0xff8db3f0) //102 |
|---|
| 122 | //NSTUB(LEDDrive ,0xff85f674) //103 == 0xff85f674 |
|---|
| 123 | NSTUB(LocalTime ,0xff887278) // 1 |
|---|
| 124 | NSTUB(LockMainPower ,0xff895344) //103 |
|---|
| 125 | //NSTUB(Lseek ,0xff835acc) //101 == 0xff835acc |
|---|
| 126 | NSTUB(MakeDirectory_Fut ,0xff8353b0) // 1 |
|---|
| 127 | NSTUB(MoveFocusLensToDistance ,0xffb031cc) //102 |
|---|
| 128 | NSTUB(MoveIrisWithAv ,0xffaa0448) //102 |
|---|
| 129 | NSTUB(MoveZoomLensWithPoint ,0xffaa0b60) //102 |
|---|
| 130 | NSTUB(NewTaskShell ,0xff88d15c) //103 |
|---|
| 131 | NSTUB(Open ,0xff835958) //101 |
|---|
| 132 | NSTUB(PB2Rec ,0xff898460) //104 |
|---|
| 133 | NSTUB(PT_MoveDigitalZoomToWide ,0xff878178) //102 |
|---|
| 134 | NSTUB(PT_MoveOpticalZoomAt ,0xff878150) //102 |
|---|
| 135 | //NSTUB(PT_PlaySound ,0xff882414) //102 == 0xff882414 |
|---|
| 136 | NSTUB(PostLogicalEventForNotPowerType ,0xff893170) //103 |
|---|
| 137 | NSTUB(PostLogicalEventToUI ,0xff8931bc) //103 |
|---|
| 138 | //NSTUB(PutInNdFilter ,0xffaa09c4) //102 == 0xffaa09c4 |
|---|
| 139 | //NSTUB(PutOutNdFilter ,0xffaa09e8) //102 == 0xffaa09e8 |
|---|
| 140 | NSTUB(Read ,0xff81ab78) //101 |
|---|
| 141 | NSTUB(ReadFastDir ,0xffa84270) // 3 |
|---|
| 142 | NSTUB(Rec2PB ,0xff8984a0) //104 |
|---|
| 143 | //NSTUB(RefreshPhysicalScreen ,0xffa0fed8) //104 == 0xffa0fed8 |
|---|
| 144 | //NSTUB(Remove ,0xff8359e4) // 4 == 0xff8359e4 |
|---|
| 145 | //NSTUB(RenameFile_Fut ,0xff8352a8) // 4 == 0xff8352a8 |
|---|
| 146 | //NSTUB(Restart ,0xff83ab70) //106 == 0xff83ab70 |
|---|
| 147 | //NSTUB(ScreenLock ,0xffa11108) // 3 == 0xffa11108 |
|---|
| 148 | //NSTUB(ScreenUnlock ,0xffa11130) // 3 == 0xffa11130 |
|---|
| 149 | NSTUB(SetAE_ShutterSpeed ,0xffb05970) //102 |
|---|
| 150 | NSTUB(SetAutoShutdownTime ,0xff8953b8) //103 |
|---|
| 151 | NSTUB(SetCurrentCaptureModeType ,0xff89cb1c) //101 |
|---|
| 152 | //NSTUB(SetFileTimeStamp ,0xff835c3c) // 3 == 0xff835c3c |
|---|
| 153 | NSTUB(SetLogicalEventActive ,0xff895094) //101 |
|---|
| 154 | NSTUB(SetParameterData ,0xff996758) //101 |
|---|
| 155 | NSTUB(SetPropertyCase ,0xff88d5ac) //102 |
|---|
| 156 | NSTUB(SleepTask ,0xff8390a0) //101 |
|---|
| 157 | NSTUB(TakeSemaphore ,0xff838d68) //101 |
|---|
| 158 | //NSTUB(TurnOffBackLight ,0xff8a348c) //104 == 0xff8a348c |
|---|
| 159 | //NSTUB(TurnOnBackLight ,0xff8a3474) //104 == 0xff8a3474 |
|---|
| 160 | //NSTUB(UIFS_WriteFirmInfoToFile ,0xff980560) //105 == 0xff980560 |
|---|
| 161 | //NSTUB(UnlockAF ,0xff837190) //102 == 0xff837190 |
|---|
| 162 | NSTUB(UnlockMainPower ,0xff895298) //103 |
|---|
| 163 | //NSTUB(UnsetZoomForMovie ,0xff99ce28) //104 == 0xff99ce28 |
|---|
| 164 | NSTUB(UpdateMBROnFlash ,0xff86fb00) //105 |
|---|
| 165 | NSTUB(VbattGet ,0xff831e08) //103 |
|---|
| 166 | NSTUB(Write ,0xff835a40) //101 |
|---|
| 167 | //NSTUB(WriteSDCard ,0xff94b750) //108 == 0xff94b750 |
|---|
| 168 | NSTUB(_log ,0xffb3de8c) //111 |
|---|
| 169 | NSTUB(_log10 ,0xffb3cdd0) //112 |
|---|
| 170 | NSTUB(_pow ,0xffb3cf40) //114 |
|---|
| 171 | NSTUB(_sqrt ,0xffb3f1f4) // 1 |
|---|
| 172 | NSTUB(add_ptp_handler ,0xffa4de90) // 3 |
|---|
| 173 | //NSTUB(apex2us ,0xffa148c0) // 4 == 0xffa148c0 |
|---|
| 174 | NSTUB(close ,0xff81a990) // 1 |
|---|
| 175 | NSTUB(closedir ,0xffa840f8) // 3 |
|---|
| 176 | NSTUB(err_init_task ,0xff815f28) // 4 |
|---|
| 177 | NSTUB(exmem_alloc ,0xff888138) //103 |
|---|
| 178 | NSTUB(free ,0xff814138) //112 |
|---|
| 179 | NSTUB(kbd_p1_f ,0xff833600) //109 |
|---|
| 180 | NSTUB(kbd_p1_f_cont ,0xff83360c) //109 |
|---|
| 181 | NSTUB(kbd_p2_f ,0xff832ec0) //109 |
|---|
| 182 | NSTUB(kbd_read_keys ,0xff833584) //109 |
|---|
| 183 | //NSTUB(kbd_read_keys_r2 ,0xff85fb94) //109 == 0xff85fb94 |
|---|
| 184 | NSTUB(lseek ,0xff835acc) //101 |
|---|
| 185 | NSTUB(malloc ,0xff8140dc) //112 |
|---|
| 186 | NSTUB(memcmp ,0xff8203ec) //101 |
|---|
| 187 | NSTUB(memcpy ,0xff83ea1c) //101 |
|---|
| 188 | NSTUB(memset ,0xffa13910) //101 |
|---|
| 189 | NSTUB(mkdir ,0xff835e24) // 3 |
|---|
| 190 | NSTUB(mktime_ext ,0xff8ab050) // 1 |
|---|
| 191 | NSTUB(open ,0xff81a8e0) // 1 |
|---|
| 192 | NSTUB(opendir ,0xffa8413c) // 3 |
|---|
| 193 | //NSTUB(openfastdir ,0xffa8413c) // 3 == 0xffa8413c |
|---|
| 194 | NSTUB(qsort ,0xffaf38dc) // 1 |
|---|
| 195 | NSTUB(rand ,0xff8204f4) // 1 |
|---|
| 196 | NSTUB(read ,0xff81ab78) //101 |
|---|
| 197 | //NSTUB(readfastdir ,0xffa84270) // 3 == 0xffa84270 |
|---|
| 198 | NSTUB(reboot_fw_update ,0xffa89780) // 1 |
|---|
| 199 | NSTUB(set_control_event ,0xff894ce8) //111 |
|---|
| 200 | NSTUB(srand ,0xff8204e8) // 1 |
|---|
| 201 | NSTUB(stat ,0xff835b08) // 3 |
|---|
| 202 | // ALT: NSTUB(stat, 0xff86d0c4) // 3 31/0 |
|---|
| 203 | //NSTUB(strcat ,0xff8aa80c) // 1 == 0xff8aa80c |
|---|
| 204 | NSTUB(strchr ,0xff813fc0) // 1 |
|---|
| 205 | NSTUB(strcmp ,0xff8203a8) //101 |
|---|
| 206 | NSTUB(strcpy ,0xff820390) //101 |
|---|
| 207 | NSTUB(strftime ,0xff8aaa58) // 1 |
|---|
| 208 | NSTUB(strlen ,0xff81400c) //101 |
|---|
| 209 | NSTUB(strncmp ,0xff813f74) // 1 |
|---|
| 210 | //NSTUB(strncpy ,0xff813f38) // 1 == 0xff813f38 |
|---|
| 211 | //NSTUB(strrchr ,0xff813fe4) // 1 == 0xff813fe4 |
|---|
| 212 | NSTUB(strtol ,0xff83ecfc) //101 |
|---|
| 213 | NSTUB(strtolx ,0xff83eb00) //109 |
|---|
| 214 | DEF(task_CaptSeq ,0xff87b13c) //107 |
|---|
| 215 | DEF(task_ExpDrv ,0xff8bfba8) //107 |
|---|
| 216 | DEF(task_InitFileModules ,0xff898f88) //107 |
|---|
| 217 | DEF(task_MovieRecord ,0xff962af4) //107 |
|---|
| 218 | DEF(task_PhySw ,0xff8331f0) //107 |
|---|
| 219 | DEF(task_RotaryEncoder ,0xff860554) //107 |
|---|
| 220 | NSTUB(time ,0xff8877f0) // 2 |
|---|
| 221 | NSTUB(vsprintf ,0xff820354) // 1 |
|---|