| [1332] | 1 | // !!! THIS FILE IS GENERATED. DO NOT EDIT. !!! |
|---|
| 2 | #include "stubs_asm.h" |
|---|
| 3 | |
|---|
| 4 | // Camera info: |
|---|
| [1391] | 5 | // DRYOS R45 (DRYOS version 2.3, release #0045) |
|---|
| 6 | // Firmware Ver GM1.00G |
|---|
| 7 | // Canon PowerShot G12 |
|---|
| [1332] | 8 | |
|---|
| [1391] | 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 | |
|---|
| [1332] | 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% *** != 0xff810b1c |
|---|
| 18 | // ERROR: kbd_pwr_on is not found. //--- --- *** != 0xff810b1c |
|---|
| 19 | |
|---|
| 20 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 21 | // Firmware modemap table found @ff89fdf0 -> ff89c600 -> ff9bd794 -> ffb1ee44 -> ffc896dc |
|---|
| 22 | // No problems found with modemap table. |
|---|
| 23 | |
|---|
| 24 | // Values below go in 'stubs_min.S': |
|---|
| 25 | //DEF(physw_status ,0x00034474) // Found @0xff8349f4, stubs_min = 0x00034474 (0x34474) |
|---|
| 26 | //DEF(physw_run ,0x00001c3c) // Found @0xff8345f0, stubs_min = 0x00001c3c (0x1C30+0xC) |
|---|
| 27 | //DEF(levent_table ,0xffc0c01c) // Found @0xffc0c01c, stubs_min = 0xffc0c01c (0xffc0c01c) |
|---|
| 28 | //DEF(FlashParamsTable ,0xffc898ec) // Found @0xffc898ec, stubs_min = 0xffc898ec (0xffc898ec) |
|---|
| 29 | //DEF(movie_status ,0x000072d4) // Found @0xff986d88, stubs_min = 0x000072d4 (0x7290+0x44) |
|---|
| 30 | //DEF(full_screen_refresh ,0x0000a5dc) // Found @0xffa53cb4, stubs_min = 0x0000a5dc (0xA5DC) |
|---|
| 31 | //DEF(canon_menu_active ,0x00003214) // Found @0xff896098, stubs_min = 0x00003214 (0x3210+4) |
|---|
| 32 | //DEF(canon_shoot_menu_active ,0x00008afd) // Found @0xff9dc738, stubs_min = 0x00008afd (0x8AFC+1) |
|---|
| 33 | //DEF(playrec_mode ,0x00002f38) // Found @0xff8880f0, stubs_min = 0x00002f38 (0x2F34+0x4) |
|---|
| 34 | //DEF(zoom_status ,0x0000e590) // Found @0xffb2290c, stubs_min = 0x0000e590 (0xE590) |
|---|
| 35 | //DEF(some_flag_for_af_scan ,0x000076b4) // Found @0xff98a814, stubs_min = 0x000076b4 (0x76B4) |
|---|
| 36 | |
|---|
| 37 | // Values below go in 'lib.c': |
|---|
| 38 | //void *vid_get_bitmap_fb() { return (void*)0x40471000; } // Found @0xff85ea60 |
|---|
| 39 | //void *vid_get_viewport_fb() { return (void*)0x40587700; } // Found @0xffb75704 |
|---|
| 40 | //char *camera_jpeg_count_str() { return (char*)0x000bb618; } // Found @0xffa43614 |
|---|
| 41 | //long hook_raw_size() { return 0x00ee9200; } // Found @0xffb78bc4 |
|---|
| 42 | //int get_flash_params_count(void) { return 0x9a; } // Found @0xff9bed2c |
|---|
| 43 | |
|---|
| 44 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 45 | //#define SD_READONLY_FLAG 0x00020000 // Found @0xffbb95d4, levent 0x90a |
|---|
| 46 | //#define SD_READONLY_IDX 2 |
|---|
| 47 | //#define USB_FLAG 0x04000000 // Found @0xffbb9604, levent 0x902 |
|---|
| 48 | //#define USB_IDX 2 |
|---|
| 49 | |
|---|
| 50 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 51 | //static KeyMap keymap[] = { |
|---|
| 52 | // { 0, KEY_ZOOM_IN ,0x00000020 }, // Found @0xffbb94dc, levent 0x02 |
|---|
| 53 | // { 0, KEY_ZOOM_OUT ,0x00000800 }, // Found @0xffbb950c, levent 0x03 |
|---|
| 54 | // { 0, KEY_LEFT ,0x00001000 }, // Found @0xffbb9514, levent 0x06 |
|---|
| 55 | // { 0, KEY_SET ,0x00002000 }, // Found @0xffbb951c, levent 0x08 |
|---|
| 56 | // { 0, KEY_RIGHT ,0x00004000 }, // Found @0xffbb9524, levent 0x07 |
|---|
| 57 | // { 0, KEY_DOWN ,0x00008000 }, // Found @0xffbb952c, levent 0x05 |
|---|
| 58 | // { 0, KEY_UP ,0x00010000 }, // Found @0xffbb9534, levent 0x04 |
|---|
| 59 | // { 0, KEY_DISPLAY ,0x00100000 }, // Found @0xffbb954c, levent 0x0a |
|---|
| 60 | // { 0, KEY_MENU ,0x00200000 }, // Found @0xffbb9554, levent 0x09 |
|---|
| 61 | // { 2, KEY_SHOOT_HALF ,0x00000001 }, // Found @0xffbb95a4, levent 0x00 |
|---|
| 62 | // { 2, KEY_SHOOT_FULL ,0x00000003 }, // Found @0xffbb95ac, levent 0x01 |
|---|
| 63 | // { 0, 0, 0 } |
|---|
| 64 | //}; |
|---|
| 65 | |
|---|
| 66 | // Values below go in 'platform_camera.h': |
|---|
| 67 | //#define CAM_DRYOS 1 |
|---|
| 68 | //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher |
|---|
| 69 | //#define CAM_RAW_ROWPIX 3744 // Found @0xff9579d0 |
|---|
| 70 | //#define CAM_RAW_ROWS 2784 // Found @0xff9579d8 |
|---|
| 71 | //#undef CAM_UNCACHED_BIT |
|---|
| 72 | //#define CAM_UNCACHED_BIT 0x40000000 // Found @0xff83af74 |
|---|
| 73 | |
|---|
| 74 | // Stubs below matched 100%. |
|---|
| 75 | // Name Address Comp to stubs_entry_2.S |
|---|
| 76 | NSTUB(AllocateMemory ,0xffb08e9c) //101 |
|---|
| 77 | NSTUB(AllocateUncacheableMemory ,0xff83af30) //112 |
|---|
| 78 | NSTUB(Close ,0xff8370e0) //101 |
|---|
| 79 | NSTUB(CreateTask ,0xff81e8a0) //101 |
|---|
| 80 | NSTUB(DebugAssert ,0xff81eb78) //111 |
|---|
| 81 | NSTUB(DeleteFile_Fut ,0xff836a58) //112 |
|---|
| 82 | NSTUB(DoAFLock ,0xff838940) //102 |
|---|
| 83 | NSTUB(EnterToCompensationEVF ,0xff838d24) //104 |
|---|
| 84 | NSTUB(ExecuteEventProcedure ,0xff8917a4) // 1 |
|---|
| 85 | NSTUB(ExitFromCompensationEVF ,0xff838d68) //104 |
|---|
| 86 | NSTUB(ExitTask ,0xff81eb30) //101 |
|---|
| 87 | NSTUB(ExpCtrlTool_StartContiAE ,0xff847454) //104 |
|---|
| 88 | NSTUB(ExpCtrlTool_StopContiAE ,0xff8475ec) //104 |
|---|
| 89 | NSTUB(Fclose_Fut ,0xff836bd4) //101 |
|---|
| 90 | NSTUB(Feof_Fut ,0xff836dc0) // 1 |
|---|
| 91 | NSTUB(Fflush_Fut ,0xff836dfc) // 1 |
|---|
| 92 | NSTUB(Fgets_Fut ,0xff836d28) // 1 |
|---|
| 93 | NSTUB(Fopen_Fut ,0xff836b94) //101 |
|---|
| 94 | NSTUB(Fread_Fut ,0xff836c80) //101 |
|---|
| 95 | NSTUB(FreeMemory ,0xffb08e94) //101 |
|---|
| 96 | NSTUB(FreeUncacheableMemory ,0xff83af70) //112 |
|---|
| 97 | NSTUB(Fseek_Fut ,0xff836d74) //101 |
|---|
| 98 | NSTUB(Fwrite_Fut ,0xff836cd4) //101 |
|---|
| 99 | NSTUB(GetBatteryTemperature ,0xff868f80) //102 |
|---|
| 100 | NSTUB(GetCCDTemperature ,0xff868f0c) //102 |
|---|
| 101 | NSTUB(GetCurrentAvValue ,0xff97fcb8) //102 |
|---|
| 102 | NSTUB(GetDrive_ClusterSize ,0xff876948) // 4 |
|---|
| 103 | NSTUB(GetDrive_FreeClusters ,0xff8769a8) // 4 |
|---|
| 104 | NSTUB(GetDrive_TotalClusters ,0xff87697c) // 3 |
|---|
| 105 | NSTUB(GetFocusLensSubjectDistance ,0xff97e348) //102 |
|---|
| 106 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xff97e794) // 3 |
|---|
| 107 | NSTUB(GetImageFolder ,0xff95f2fc) //106 |
|---|
| 108 | NSTUB(GetKbdState ,0xff865678) //109 |
|---|
| 109 | NSTUB(GetMemInfo ,0xff81a264) // 3 |
|---|
| 110 | NSTUB(GetOpticalTemperature ,0xff868ff4) //102 |
|---|
| 111 | NSTUB(GetParameterData ,0xff9becf0) //101 |
|---|
| 112 | NSTUB(GetPropertyCase ,0xff8954f0) //102 |
|---|
| 113 | NSTUB(GetSystemTime ,0xffb08ef4) //101 |
|---|
| 114 | NSTUB(GetZoomLensCurrentPoint ,0xff9819e0) //102 |
|---|
| 115 | NSTUB(GetZoomLensCurrentPosition ,0xffaf6880) //102 |
|---|
| 116 | NSTUB(GiveSemaphore ,0xff83a94c) //112 |
|---|
| 117 | NSTUB(IsStrobeChargeCompleted ,0xff8ea5f0) //102 |
|---|
| 118 | NSTUB(LEDDrive ,0xff8647ec) //103 |
|---|
| 119 | NSTUB(LocalTime ,0xff88f08c) // 1 |
|---|
| 120 | NSTUB(LockMainPower ,0xff89c204) //103 |
|---|
| 121 | NSTUB(Lseek ,0xff8371fc) //101 |
|---|
| 122 | NSTUB(MakeDirectory_Fut ,0xff836acc) // 1 |
|---|
| 123 | NSTUB(MoveFocusLensToDistance ,0xffb72134) //102 |
|---|
| 124 | NSTUB(MoveIrisWithAv ,0xffb04a34) //102 |
|---|
| 125 | NSTUB(MoveZoomLensWithPoint ,0xffb051c4) //102 |
|---|
| 126 | NSTUB(NewTaskShell ,0xff894f0c) //103 |
|---|
| 127 | NSTUB(Open ,0xff837074) //101 |
|---|
| 128 | NSTUB(PB2Rec ,0xff89f18c) //104 |
|---|
| 129 | NSTUB(PT_MoveDigitalZoomToWide ,0xff87f5c0) //102 |
|---|
| 130 | NSTUB(PT_MoveOpticalZoomAt ,0xff87f598) //102 |
|---|
| 131 | NSTUB(PT_PlaySound ,0xff88a140) // 4 |
|---|
| 132 | NSTUB(PostLogicalEventForNotPowerType ,0xff899b70) //103 |
|---|
| 133 | NSTUB(PostLogicalEventToUI ,0xff899bbc) //103 |
|---|
| 134 | NSTUB(PutInNdFilter ,0xffb05028) //102 |
|---|
| 135 | NSTUB(PutOutNdFilter ,0xffb0504c) //102 |
|---|
| 136 | NSTUB(Read ,0xff81ad74) //101 |
|---|
| 137 | NSTUB(ReadFastDir ,0xffae2c20) // 4 |
|---|
| 138 | NSTUB(Rec2PB ,0xff89f1cc) //104 |
|---|
| 139 | NSTUB(RefreshPhysicalScreen ,0xff8b3a68) //104 |
|---|
| 140 | NSTUB(Remove ,0xff837114) // 4 |
|---|
| 141 | NSTUB(RenameFile_Fut ,0xff8369c4) // 4 |
|---|
| 142 | NSTUB(Restart ,0xff83c71c) //106 |
|---|
| 143 | NSTUB(ScreenLock ,0xff8b4c98) // 4 |
|---|
| 144 | NSTUB(ScreenUnlock ,0xff8b4cfc) // 3 |
|---|
| 145 | NSTUB(SetAE_ShutterSpeed ,0xffb7487c) //102 |
|---|
| 146 | NSTUB(SetAutoShutdownTime ,0xff89c278) //103 |
|---|
| 147 | NSTUB(SetCurrentCaptureModeType ,0xff8a4d44) //101 |
|---|
| 148 | NSTUB(SetFileTimeStamp ,0xff83737c) // 4 |
|---|
| 149 | NSTUB(SetLogicalEventActive ,0xff89bf40) //101 |
|---|
| 150 | NSTUB(SetParameterData ,0xff9bebc8) //101 |
|---|
| 151 | NSTUB(SetPropertyCase ,0xff8953c8) //102 |
|---|
| 152 | NSTUB(SetScriptMode ,0xff89bf90) //101 |
|---|
| 153 | NSTUB(SleepTask ,0xff83abb4) //101 |
|---|
| 154 | NSTUB(TakeSemaphore ,0xff83a87c) //101 |
|---|
| 155 | NSTUB(TurnOffBackLight ,0xff8abd94) //104 |
|---|
| 156 | NSTUB(TurnOnBackLight ,0xff8abd7c) //104 |
|---|
| 157 | NSTUB(UIFS_WriteFirmInfoToFile ,0xff9a9e9c) //101 |
|---|
| 158 | NSTUB(UnlockAF ,0xff838978) //102 |
|---|
| 159 | NSTUB(UnlockMainPower ,0xff89c158) //103 |
|---|
| 160 | NSTUB(UnsetZoomForMovie ,0xff9c57dc) //104 |
|---|
| 161 | NSTUB(UpdateMBROnFlash ,0xff8767c8) // 3 |
|---|
| 162 | NSTUB(VbattGet ,0xff833180) //103 |
|---|
| 163 | NSTUB(Write ,0xff837170) //101 |
|---|
| 164 | NSTUB(WriteSDCard ,0xff96e820) //108 |
|---|
| 165 | NSTUB(_log ,0xffbb4ddc) //111 |
|---|
| 166 | NSTUB(_log10 ,0xffbb3a68) //112 |
|---|
| 167 | NSTUB(_pow ,0xffbb3bd8) //114 |
|---|
| 168 | NSTUB(_sqrt ,0xffbb69e4) // 1 |
|---|
| 169 | NSTUB(add_ptp_handler ,0xffa9d218) // 3 |
|---|
| 170 | NSTUB(apex2us ,0xffa5c248) // 4 |
|---|
| 171 | NSTUB(close ,0xff81ab8c) // 1 |
|---|
| 172 | NSTUB(closedir ,0xffae2a7c) // 4 |
|---|
| 173 | NSTUB(err_init_task ,0xff815fd4) // 4 |
|---|
| 174 | NSTUB(exmem_alloc ,0xff88ffd8) //103 |
|---|
| 175 | NSTUB(free ,0xff814244) //112 |
|---|
| 176 | NSTUB(kbd_p1_f ,0xff834a6c) //109 |
|---|
| 177 | NSTUB(kbd_p1_f_cont ,0xff834a78) //109 |
|---|
| 178 | NSTUB(kbd_p2_f ,0xff8342bc) //109 |
|---|
| 179 | NSTUB(kbd_read_keys ,0xff8349f4) //109 |
|---|
| 180 | NSTUB(kbd_read_keys_r2 ,0xff864d8c) //109 |
|---|
| 181 | NSTUB(lseek ,0xff8371fc) //101 |
|---|
| 182 | NSTUB(malloc ,0xff8141e8) //112 |
|---|
| 183 | NSTUB(memcmp ,0xff8206d8) //101 |
|---|
| 184 | NSTUB(memcpy ,0xff840674) //101 |
|---|
| 185 | NSTUB(memset ,0xffa5b230) //101 |
|---|
| 186 | NSTUB(mkdir ,0xff83757c) // 4 |
|---|
| 187 | NSTUB(mktime_ext ,0xff8b5b6c) // 1 |
|---|
| 188 | NSTUB(open ,0xff81aadc) // 1 |
|---|
| 189 | NSTUB(opendir ,0xffae2acc) // 4 |
|---|
| 190 | NSTUB(openfastdir ,0xffae2acc) // 4 |
|---|
| 191 | NSTUB(qsort ,0xffb5fbc8) // 4 |
|---|
| 192 | NSTUB(rand ,0xffa5b370) // 4 |
|---|
| 193 | NSTUB(read ,0xff81ad74) //101 |
|---|
| 194 | NSTUB(readfastdir ,0xffae2c20) // 4 |
|---|
| 195 | NSTUB(reboot_fw_update ,0xffae8040) // 4 |
|---|
| 196 | NSTUB(rename ,0xff8369c4) // 4 |
|---|
| 197 | NSTUB(set_control_event ,0xff89bb30) //111 |
|---|
| 198 | NSTUB(srand ,0xffa5b364) // 4 |
|---|
| 199 | NSTUB(stat ,0xff837244) // 3 |
|---|
| 200 | NSTUB(strcat ,0xff8b5328) // 1 |
|---|
| 201 | NSTUB(strchr ,0xff8140b4) // 1 |
|---|
| 202 | NSTUB(strcmp ,0xff820694) //101 |
|---|
| 203 | NSTUB(strcpy ,0xff82067c) //101 |
|---|
| 204 | NSTUB(strftime ,0xff8b5574) //113 |
|---|
| 205 | NSTUB(strlen ,0xff814100) //101 |
|---|
| 206 | NSTUB(strncmp ,0xff814068) // 1 |
|---|
| 207 | NSTUB(strncpy ,0xff81402c) // 1 |
|---|
| 208 | NSTUB(strrchr ,0xff8140d8) // 1 |
|---|
| 209 | NSTUB(strtol ,0xff840954) //101 |
|---|
| 210 | NSTUB(strtolx ,0xff840758) //109 |
|---|
| 211 | DEF(task_CaptSeq ,0xff88261c) //107 |
|---|
| 212 | DEF(task_ExpDrv ,0xff8cc0d0) //110 |
|---|
| 213 | DEF(task_InitFileModules ,0xff89fc7c) //107 |
|---|
| 214 | DEF(task_MovieRecord ,0xff987094) //107 |
|---|
| 215 | DEF(task_PhySw ,0xff8345ec) //107 |
|---|
| 216 | DEF(task_RotaryEncoder ,0xff8657ec) //107 |
|---|
| 217 | NSTUB(time ,0xff88f66c) // 2 |
|---|
| 218 | NSTUB(vsprintf ,0xff820640) // 4 |
|---|
| 219 | NSTUB(write ,0xff837170) //101 |
|---|