| 1 | // !!! THIS FILE IS GENERATED. DO NOT EDIT. !!! |
|---|
| 2 | #include "stubs_asm.h" |
|---|
| 3 | |
|---|
| 4 | // Camera info: |
|---|
| 5 | // DRYOS R45 (DRYOS version 2.3, release #0045) |
|---|
| 6 | // Firmware Ver GM1.00F |
|---|
| 7 | // Canon PowerShot G12 |
|---|
| 8 | |
|---|
| 9 | // Values for makefile.inc |
|---|
| 10 | // PLATFORMID = 12815 (0x320f) // Found @ 0xfffe0130 |
|---|
| 11 | // MAXRAMADDR = 0x07ffffff |
|---|
| 12 | // KEYSYS = d4b // Found @ 0xffff36ac |
|---|
| 13 | // NEED_ENCODED_DISKBOOT = 5 // Found @ 0xffff36bc |
|---|
| 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(kbd_pwr_off ,0xff865690) // 2 60% *** != 0x00000000 |
|---|
| 18 | // ERROR: kbd_pwr_on is not found. //--- --- *** != 0x00000000 |
|---|
| 19 | |
|---|
| 20 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 21 | // Firmware modemap table found @ff89fdf0 -> ff89c600 -> ff9bd794 -> ffb1ee38 -> ffc896f0 |
|---|
| 22 | // No problems found with modemap table. |
|---|
| 23 | |
|---|
| 24 | // Values below can be overridden in 'stubs_min.S': |
|---|
| 25 | DEF(physw_status ,0x00034474) // Found @0xff8349f4 |
|---|
| 26 | DEF(physw_run ,0x00001c3c) // Found @0xff8345f0 |
|---|
| 27 | DEF(levent_table ,0xffc0c030) // Found @0xffc0c030 |
|---|
| 28 | DEF(FlashParamsTable ,0xffc89900) // Found @0xffc89900 |
|---|
| 29 | DEF(movie_status ,0x000072d4) // Found @0xff986d88 |
|---|
| 30 | DEF(full_screen_refresh ,0x0000a5dc) // Found @0xffa53cb4 |
|---|
| 31 | DEF(canon_menu_active ,0x00003214) // Found @0xff896098 |
|---|
| 32 | DEF(canon_shoot_menu_active ,0x00008afd) // Found @0xff9dc738 |
|---|
| 33 | DEF(playrec_mode ,0x00002f38) // Found @0xff8880fc |
|---|
| 34 | DEF(zoom_status ,0x0000e590) // Found @0xffb22900 |
|---|
| 35 | DEF(some_flag_for_af_scan ,0x000076b4) // Found @0xff98a814 |
|---|
| 36 | // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c). |
|---|
| 37 | // each entry contains 3 int value(s), the first is the zoom focus length. |
|---|
| 38 | // there are 14 entries in the table - set NUM_FL to 14 |
|---|
| 39 | DEF(focus_len_table ,0xfffe2a80) // Found @0xfffe2a80 |
|---|
| 40 | DEF(zoom_busy ,0x000071e8) // Found @0xff98166c |
|---|
| 41 | DEF(focus_busy ,0x000070c0) // Found @0xff97d6c8 |
|---|
| 42 | DEF(recreview_hold ,0x00003f50) // Found @0xff8a8134 |
|---|
| 43 | |
|---|
| 44 | // Values below go in 'lib.c': |
|---|
| 45 | //void *vid_get_bitmap_fb() { return (void*)0x40471000; } // Found @0xff85ea60 |
|---|
| 46 | //void *vid_get_viewport_fb() { return (void*)0x40587700; } // Found @0xffb75718 |
|---|
| 47 | //void *vid_get_viewport_fb_d() { return (void*)(*(int*)(0x2c10+0x58)); } // Found @0xff8781ac & 0xff8781e4 |
|---|
| 48 | //char *camera_jpeg_count_str() { return (char*)0x000bb618; } // Found @0xffa43614 |
|---|
| 49 | //long hook_raw_size() { return 0x00ee9200; } // Found @0xffb78bd8 |
|---|
| 50 | //int get_flash_params_count(void) { return 0x9a; } // Found @0xff9bed2c |
|---|
| 51 | |
|---|
| 52 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 53 | //#define SD_READONLY_FLAG 0x00020000 // Found @0xffbb95e8, levent 0x90a |
|---|
| 54 | //#define SD_READONLY_IDX 2 |
|---|
| 55 | //#define USB_MASK 0x04000000 // Found @0xffbb9618, levent 0x902 |
|---|
| 56 | //#define USB_IDX 2 |
|---|
| 57 | |
|---|
| 58 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 59 | //static KeyMap keymap[] = { |
|---|
| 60 | // { 0, KEY_ZOOM_IN ,0x00000020 }, // Found @0xffbb94f0, levent 0x02 |
|---|
| 61 | // { 0, KEY_ZOOM_OUT ,0x00000800 }, // Found @0xffbb9520, levent 0x03 |
|---|
| 62 | // { 0, KEY_LEFT ,0x00001000 }, // Found @0xffbb9528, levent 0x06 |
|---|
| 63 | // { 0, KEY_SET ,0x00002000 }, // Found @0xffbb9530, levent 0x08 |
|---|
| 64 | // { 0, KEY_RIGHT ,0x00004000 }, // Found @0xffbb9538, levent 0x07 |
|---|
| 65 | // { 0, KEY_DOWN ,0x00008000 }, // Found @0xffbb9540, levent 0x05 |
|---|
| 66 | // { 0, KEY_UP ,0x00010000 }, // Found @0xffbb9548, levent 0x04 |
|---|
| 67 | // { 0, KEY_DISPLAY ,0x00100000 }, // Found @0xffbb9560, levent 0x0a |
|---|
| 68 | // { 0, KEY_MENU ,0x00200000 }, // Found @0xffbb9568, levent 0x09 |
|---|
| 69 | // { 2, KEY_SHOOT_FULL ,0x00000003 }, // Found @0xffbb95c0, levent 0x01 |
|---|
| 70 | // { 2, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffbb95c0, levent 0x01 |
|---|
| 71 | // { 2, KEY_SHOOT_HALF ,0x00000001 }, // Found @0xffbb95b8, levent 0x00 |
|---|
| 72 | // { 0, 0, 0 } |
|---|
| 73 | //}; |
|---|
| 74 | |
|---|
| 75 | // Values below go in 'platform_camera.h': |
|---|
| 76 | //#define CAM_DRYOS 1 |
|---|
| 77 | //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher |
|---|
| 78 | //#define CAM_RAW_ROWPIX 3744 // Found @0xff9579d0 |
|---|
| 79 | //#define CAM_RAW_ROWS 2784 // Found @0xff9579d8 |
|---|
| 80 | //#undef CAM_UNCACHED_BIT |
|---|
| 81 | //#define CAM_UNCACHED_BIT 0x40000000 // Found @0xff83af74 |
|---|
| 82 | |
|---|
| 83 | // Misc stuff |
|---|
| 84 | DEF(ctypes, 0xffbb7ce2) |
|---|
| 85 | |
|---|
| 86 | // For capt_seq.c |
|---|
| 87 | //static long *nrflag = (long*)(0x76fc+0x08); // Found @ ff98f9e4 & ff98f9fc |
|---|
| 88 | //#define NR_AUTO (0) // have to explictly reset value back to 0 to enable auto |
|---|
| 89 | |
|---|
| 90 | // Stubs below matched 100%. |
|---|
| 91 | // Name Address Comp to stubs_entry_2.S |
|---|
| 92 | NSTUB(AllocateMemory ,0xffb08e90) //101 |
|---|
| 93 | NSTUB(AllocateUncacheableMemory ,0xff83af30) //112 |
|---|
| 94 | NSTUB(Close ,0xff8370e0) //101 |
|---|
| 95 | NSTUB(CreateTask ,0xff81e8a0) //101 |
|---|
| 96 | NSTUB(DebugAssert ,0xff81eb78) //111 |
|---|
| 97 | NSTUB(DeleteDirectory_Fut ,0xff836b3c) // 1 |
|---|
| 98 | NSTUB(DeleteFile_Fut ,0xff836a58) //112 |
|---|
| 99 | NSTUB(DoAFLock ,0xff838940) //102 |
|---|
| 100 | NSTUB(EnterToCompensationEVF ,0xff838d24) //104 |
|---|
| 101 | NSTUB(ExecuteEventProcedure ,0xff8917a4) // 1 |
|---|
| 102 | NSTUB(ExitFromCompensationEVF ,0xff838d68) //104 |
|---|
| 103 | NSTUB(ExitTask ,0xff81eb30) //101 |
|---|
| 104 | NSTUB(ExpCtrlTool_StartContiAE ,0xff847454) //104 |
|---|
| 105 | NSTUB(ExpCtrlTool_StopContiAE ,0xff8475ec) //104 |
|---|
| 106 | NSTUB(Fclose_Fut ,0xff836bd4) //101 |
|---|
| 107 | NSTUB(Feof_Fut ,0xff836dc0) // 1 |
|---|
| 108 | NSTUB(Fflush_Fut ,0xff836dfc) // 1 |
|---|
| 109 | NSTUB(Fgets_Fut ,0xff836d28) // 1 |
|---|
| 110 | NSTUB(Fopen_Fut ,0xff836b94) //101 |
|---|
| 111 | NSTUB(Fread_Fut ,0xff836c80) //101 |
|---|
| 112 | NSTUB(FreeMemory ,0xffb08e88) //101 |
|---|
| 113 | NSTUB(FreeUncacheableMemory ,0xff83af70) //112 |
|---|
| 114 | NSTUB(Fseek_Fut ,0xff836d74) //101 |
|---|
| 115 | NSTUB(Fwrite_Fut ,0xff836cd4) //101 |
|---|
| 116 | NSTUB(GetBatteryTemperature ,0xff868f80) //102 |
|---|
| 117 | NSTUB(GetCCDTemperature ,0xff868f0c) //102 |
|---|
| 118 | NSTUB(GetCurrentAvValue ,0xff97fcb8) //102 |
|---|
| 119 | NSTUB(GetDrive_ClusterSize ,0xff876948) // 4 |
|---|
| 120 | NSTUB(GetDrive_FreeClusters ,0xff8769a8) // 4 |
|---|
| 121 | NSTUB(GetDrive_TotalClusters ,0xff87697c) // 3 |
|---|
| 122 | NSTUB(GetFocusLensSubjectDistance ,0xff97e348) //102 |
|---|
| 123 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xff97e794) // 3 |
|---|
| 124 | NSTUB(GetImageFolder ,0xff95f2fc) //106 |
|---|
| 125 | NSTUB(GetKbdState ,0xff865678) //109 |
|---|
| 126 | NSTUB(GetMemInfo ,0xff81a264) // 3 |
|---|
| 127 | NSTUB(GetOpticalTemperature ,0xff868ff4) //102 |
|---|
| 128 | NSTUB(GetParameterData ,0xff9becf0) //101 |
|---|
| 129 | NSTUB(GetPropertyCase ,0xff8954f0) //102 |
|---|
| 130 | NSTUB(GetSystemTime ,0xffb08ee8) //101 |
|---|
| 131 | NSTUB(GetZoomLensCurrentPoint ,0xff9819e0) //102 |
|---|
| 132 | NSTUB(GetZoomLensCurrentPosition ,0xffaf6880) //102 |
|---|
| 133 | NSTUB(GiveSemaphore ,0xff83a94c) //112 |
|---|
| 134 | NSTUB(IsStrobeChargeCompleted ,0xff8ea5f0) //102 |
|---|
| 135 | NSTUB(LEDDrive ,0xff8647ec) //103 |
|---|
| 136 | NSTUB(LocalTime ,0xff88f08c) // 1 |
|---|
| 137 | NSTUB(LockMainPower ,0xff89c204) //103 |
|---|
| 138 | NSTUB(Lseek ,0xff8371fc) //101 |
|---|
| 139 | NSTUB(MakeDirectory_Fut ,0xff836acc) // 1 |
|---|
| 140 | NSTUB(MoveFocusLensToDistance ,0xffb72148) //102 |
|---|
| 141 | NSTUB(MoveIrisWithAv ,0xffb04a28) //102 |
|---|
| 142 | NSTUB(MoveZoomLensWithPoint ,0xffb051b8) //102 |
|---|
| 143 | NSTUB(NewTaskShell ,0xff894f0c) //103 |
|---|
| 144 | NSTUB(Open ,0xff837074) //101 |
|---|
| 145 | NSTUB(PB2Rec ,0xff89f18c) //104 |
|---|
| 146 | NSTUB(PT_MoveDigitalZoomToWide ,0xff87f5c0) //102 |
|---|
| 147 | NSTUB(PT_MoveOpticalZoomAt ,0xff87f598) //102 |
|---|
| 148 | NSTUB(PT_PlaySound ,0xff88a140) // 4 |
|---|
| 149 | NSTUB(PostLogicalEventForNotPowerType ,0xff899b70) //103 |
|---|
| 150 | NSTUB(PostLogicalEventToUI ,0xff899bbc) //103 |
|---|
| 151 | NSTUB(PutInNdFilter ,0xffb0501c) //102 |
|---|
| 152 | NSTUB(PutOutNdFilter ,0xffb05040) //102 |
|---|
| 153 | NSTUB(Read ,0xff81ad74) //101 |
|---|
| 154 | NSTUB(ReadFastDir ,0xffae2c20) // 4 |
|---|
| 155 | NSTUB(Rec2PB ,0xff89f1cc) //104 |
|---|
| 156 | NSTUB(RefreshPhysicalScreen ,0xff8b3a68) //104 |
|---|
| 157 | NSTUB(Remove ,0xff837114) // 4 |
|---|
| 158 | NSTUB(RenameFile_Fut ,0xff8369c4) // 4 |
|---|
| 159 | NSTUB(Restart ,0xff83c71c) //106 |
|---|
| 160 | NSTUB(ScreenLock ,0xff8b4c98) // 4 |
|---|
| 161 | NSTUB(ScreenUnlock ,0xff8b4cfc) // 3 |
|---|
| 162 | NSTUB(SetAE_ShutterSpeed ,0xffb74890) //102 |
|---|
| 163 | NSTUB(SetAutoShutdownTime ,0xff89c278) //103 |
|---|
| 164 | NSTUB(SetCurrentCaptureModeType ,0xff8a4d44) //101 |
|---|
| 165 | NSTUB(SetFileAttributes ,0xff8373d8) // 3 |
|---|
| 166 | NSTUB(SetFileTimeStamp ,0xff83737c) // 4 |
|---|
| 167 | NSTUB(SetLogicalEventActive ,0xff89bf40) //101 |
|---|
| 168 | NSTUB(SetParameterData ,0xff9bebc8) //101 |
|---|
| 169 | NSTUB(SetPropertyCase ,0xff8953c8) //102 |
|---|
| 170 | NSTUB(SetScriptMode ,0xff89bf90) //101 |
|---|
| 171 | NSTUB(SleepTask ,0xff83abb4) //101 |
|---|
| 172 | NSTUB(TakeSemaphore ,0xff83a87c) //101 |
|---|
| 173 | NSTUB(TurnOffBackLight ,0xff8abd94) //104 |
|---|
| 174 | NSTUB(TurnOnBackLight ,0xff8abd7c) //104 |
|---|
| 175 | NSTUB(UIFS_WriteFirmInfoToFile ,0xff9a9e9c) //101 |
|---|
| 176 | NSTUB(UnlockAF ,0xff838978) //102 |
|---|
| 177 | NSTUB(UnlockMainPower ,0xff89c158) //103 |
|---|
| 178 | NSTUB(UnsetZoomForMovie ,0xff9c57dc) //104 |
|---|
| 179 | NSTUB(UpdateMBROnFlash ,0xff8767c8) //105 |
|---|
| 180 | NSTUB(VbattGet ,0xff833180) //103 |
|---|
| 181 | NSTUB(Write ,0xff837170) //101 |
|---|
| 182 | NSTUB(WriteSDCard ,0xff96e820) //108 |
|---|
| 183 | NSTUB(_log ,0xffbb4df0) //111 |
|---|
| 184 | NSTUB(_log10 ,0xffbb3a7c) //112 |
|---|
| 185 | NSTUB(_pow ,0xffbb3bec) //114 |
|---|
| 186 | NSTUB(_sqrt ,0xffbb69f8) // 1 |
|---|
| 187 | NSTUB(add_ptp_handler ,0xffa9d218) // 3 |
|---|
| 188 | NSTUB(apex2us ,0xffa5c248) // 4 |
|---|
| 189 | NSTUB(close ,0xff81ab8c) // 1 |
|---|
| 190 | NSTUB(closedir ,0xffae2a7c) // 4 |
|---|
| 191 | NSTUB(err_init_task ,0xff815fd4) // 4 |
|---|
| 192 | NSTUB(exmem_alloc ,0xff88ffd8) //103 |
|---|
| 193 | NSTUB(free ,0xff814244) //112 |
|---|
| 194 | NSTUB(kbd_p1_f ,0xff834a6c) //109 |
|---|
| 195 | NSTUB(kbd_p1_f_cont ,0xff834a78) //109 |
|---|
| 196 | NSTUB(kbd_p2_f ,0xff8342bc) //109 |
|---|
| 197 | NSTUB(kbd_read_keys ,0xff8349f4) //109 |
|---|
| 198 | NSTUB(kbd_read_keys_r2 ,0xff864d8c) //109 |
|---|
| 199 | NSTUB(lseek ,0xff8371fc) //101 |
|---|
| 200 | NSTUB(malloc ,0xff8141e8) //112 |
|---|
| 201 | NSTUB(memcmp ,0xff8206d8) //101 |
|---|
| 202 | NSTUB(memcpy ,0xff840674) //101 |
|---|
| 203 | NSTUB(memset ,0xffa5b230) //101 |
|---|
| 204 | NSTUB(mkdir ,0xff83757c) // 4 |
|---|
| 205 | NSTUB(mktime_ext ,0xff8b5b6c) // 1 |
|---|
| 206 | NSTUB(open ,0xff81aadc) // 1 |
|---|
| 207 | NSTUB(opendir ,0xffae2acc) // 4 |
|---|
| 208 | NSTUB(openfastdir ,0xffae2acc) // 4 |
|---|
| 209 | NSTUB(qsort ,0xffb5fbdc) // 4 |
|---|
| 210 | NSTUB(rand ,0xffa5b370) // 4 |
|---|
| 211 | NSTUB(read ,0xff81ad74) //101 |
|---|
| 212 | NSTUB(reboot_fw_update ,0xffae8040) // 4 |
|---|
| 213 | NSTUB(rename ,0xff8369c4) // 4 |
|---|
| 214 | NSTUB(set_control_event ,0xff89bb30) //111 |
|---|
| 215 | NSTUB(srand ,0xffa5b364) // 4 |
|---|
| 216 | NSTUB(stat ,0xff837244) // 3 |
|---|
| 217 | NSTUB(strcat ,0xff8b5328) // 1 |
|---|
| 218 | NSTUB(strchr ,0xff8140b4) // 1 |
|---|
| 219 | NSTUB(strcmp ,0xff820694) //101 |
|---|
| 220 | NSTUB(strcpy ,0xff82067c) //101 |
|---|
| 221 | NSTUB(strftime ,0xff8b5574) //113 |
|---|
| 222 | NSTUB(strlen ,0xff814100) //101 |
|---|
| 223 | NSTUB(strncmp ,0xff814068) // 1 |
|---|
| 224 | NSTUB(strncpy ,0xff81402c) // 1 |
|---|
| 225 | NSTUB(strrchr ,0xff8140d8) // 1 |
|---|
| 226 | NSTUB(strtol ,0xff840954) //101 |
|---|
| 227 | NSTUB(strtolx ,0xff840758) //109 |
|---|
| 228 | DEF(task_CaptSeq ,0xff88261c) //107 |
|---|
| 229 | DEF(task_ExpDrv ,0xff8cc0d0) //110 |
|---|
| 230 | DEF(task_InitFileModules ,0xff89fc7c) //107 |
|---|
| 231 | DEF(task_MovieRecord ,0xff987094) //107 |
|---|
| 232 | DEF(task_PhySw ,0xff8345ec) //107 |
|---|
| 233 | DEF(task_RotaryEncoder ,0xff8657ec) //107 |
|---|
| 234 | NSTUB(time ,0xff88f66c) // 2 |
|---|
| 235 | NSTUB(vsprintf ,0xff820640) // 4 |
|---|
| 236 | NSTUB(write ,0xff837170) //101 |
|---|