| 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.00C |
|---|
| 7 | // Could not find Camera name - possible corrupt firmware dump |
|---|
| 8 | // PLATFORMID = 0 (0x0000) |
|---|
| 9 | // MAXRAMADDR = 0x03ffffff |
|---|
| 10 | |
|---|
| 11 | // Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S' |
|---|
| 12 | // Name Address Rule % Comp to stubs_entry_2.S |
|---|
| 13 | NSTUB(GetBatteryTemperature ,0xff8615f0) // 2 68% |
|---|
| 14 | NSTUB(GetCCDTemperature ,0xff86157c) // 2 62% |
|---|
| 15 | NSTUB(GetCurrentAvValue ,0xff95a354) // 1 96% |
|---|
| 16 | NSTUB(GetFocusLensSubjectDistance ,0xff958928) // 1 93% |
|---|
| 17 | //NSTUB(GetPropertyCase ,0xff88c960) // 5 *** != 0xff88ca64 |
|---|
| 18 | NSTUB(IsStrobeChargeCompleted ,0xff8d8710) // 1 96% |
|---|
| 19 | NSTUB(MoveFocusLensToDistance ,0xffafbcf0) // 1 68% |
|---|
| 20 | NSTUB(MoveZoomLensWithPoint ,0xffa9b1a8) // 1 71% |
|---|
| 21 | NSTUB(PutInNdFilter ,0xffa9af98) // 4 75% |
|---|
| 22 | NSTUB(PutOutNdFilter ,0xff8776f4) // 4 57% |
|---|
| 23 | NSTUB(SetPropertyCase ,0xff88c960) // 1 96% |
|---|
| 24 | //NSTUB(SetScriptMode ,0xff89441c) //101 *** != 0xff810f4c |
|---|
| 25 | //NSTUB(kbd_pwr_off ,0xff85e3a4) // 2 60% *** != 0xff810b04 |
|---|
| 26 | // ERROR: kbd_pwr_on is not found. //--- --- *** != 0xff810b04 |
|---|
| 27 | //NSTUB(rename ,0xff834d0c) // 4 *** != 0xff8354f0 |
|---|
| 28 | //NSTUB(write ,0xff8354a4) //101 *** != 0xff81abd8 |
|---|
| 29 | |
|---|
| 30 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 31 | // Firmware modemap table found @ff89845c -> ff894a60 -> ff9934bc -> ffaae880 -> ffbef980 |
|---|
| 32 | // No problems found with modemap table. |
|---|
| 33 | |
|---|
| 34 | // Values below go in 'stubs_min.S': |
|---|
| 35 | //DEF(physw_status ,0x000330d8) // Found @0xff8335b4, stubs_min = 0x000330d8 (0x330d8) |
|---|
| 36 | //DEF(physw_run ,0x00001c44) // Found @0xff83320c, stubs_min = 0x00001c44 (0x1C38+0x0C) |
|---|
| 37 | //DEF(levent_table ,0xffb8b470) // Found @0xffb8b470, stubs_min = 0xffb8b470 (0xFFB8B470) |
|---|
| 38 | //DEF(FlashParamsTable ,0xffbefb70) // Found @0xffbefb70, stubs_min = 0xffbefb70 (0xFFBEFB70) |
|---|
| 39 | //DEF(movie_status ,0x00007ae8) // Found @0xff961448, stubs_min = 0x00007ae8 (0x7ab0+0x38) |
|---|
| 40 | //DEF(full_screen_refresh ,0x0000a36c) // Found @0xffa07d74 |
|---|
| 41 | //DEF(playrec_mode ,0x00002d64) // Found @0xff87f9e8, stubs_min = 0x00002d64 (0x2d60+0x4) |
|---|
| 42 | //DEF(zoom_status ,0x00008aa4) // Found @0xff99bb20, stubs_min = 0x00008aa4 (0x8AA4) |
|---|
| 43 | //DEF(some_flag_for_af_scan ,0x00007ff4) // Found @0xff9644d8, stubs_min = 0x00007ff4 (0x7FF4) |
|---|
| 44 | |
|---|
| 45 | // Values below go in 'lib.c': |
|---|
| 46 | //void *vid_get_viewport_fb() { return (void*)0x407e8a00; } // Found @0xffaff2dc |
|---|
| 47 | //long hook_raw_size() { return 0x00ee9200; } // Found @0xffb025a8 |
|---|
| 48 | //int get_flash_params_count(void) { return 0x85; } // Found @0xff994abc |
|---|
| 49 | |
|---|
| 50 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 51 | //#define SD_READONLY_FLAG 0x00020000 // Found @0xffb3aa50, levent 0x90a |
|---|
| 52 | //#define SD_READONLY_IDX 2 |
|---|
| 53 | //#define USB_FLAG 0x00200000 // Found @0xffb3aa68, levent 0x902 |
|---|
| 54 | //#define USB_IDX 2 |
|---|
| 55 | |
|---|
| 56 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 57 | //static KeyMap keymap[] = { |
|---|
| 58 | // { 0, KEY_SHOOT_HALF ,0x00000100 }, // Found @0xffb3a930, levent 0x00 |
|---|
| 59 | // { 0, KEY_SHOOT_FULL ,0x00000300 }, // Found @0xffb3a93c, levent 0x01 |
|---|
| 60 | // { 1, KEY_ZOOM_IN ,0x00000010 }, // Found @0xffb3a9b4, levent 0x02 |
|---|
| 61 | // { 1, KEY_ZOOM_OUT ,0x00000020 }, // Found @0xffb3a9c0, levent 0x03 |
|---|
| 62 | // { 1, KEY_LEFT ,0x00000100 }, // Found @0xffb3a9e4, levent 0x06 |
|---|
| 63 | // { 1, KEY_RIGHT ,0x00000200 }, // Found @0xffb3a9f0, levent 0x07 |
|---|
| 64 | // { 1, KEY_DOWN ,0x00000400 }, // Found @0xffb3a9fc, levent 0x05 |
|---|
| 65 | // { 1, KEY_DISPLAY ,0x00001000 }, // Found @0xffb3aa14, levent 0x0a |
|---|
| 66 | // { 1, KEY_MENU ,0x00002000 }, // Found @0xffb3aa20, levent 0x09 |
|---|
| 67 | // { 1, KEY_UP ,0x00004000 }, // Found @0xffb3aa2c, levent 0x04 |
|---|
| 68 | // { 1, KEY_SET ,0x00008000 }, // Found @0xffb3aa38, levent 0x08 |
|---|
| 69 | // { 0, 0, 0 } |
|---|
| 70 | //}; |
|---|
| 71 | |
|---|
| 72 | // Values below go in 'platform_camera.h': |
|---|
| 73 | //#define CAM_DRYOS 1 |
|---|
| 74 | //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher |
|---|
| 75 | //#define CAM_RAW_ROWPIX 3744 // Found @0xff9345cc |
|---|
| 76 | //#define CAM_RAW_ROWS 2784 // Found @0xff9345d4 |
|---|
| 77 | //#undef CAM_UNCACHED_BIT |
|---|
| 78 | //#define CAM_UNCACHED_BIT 0x40000000 // Found @0xff838e10 |
|---|
| 79 | |
|---|
| 80 | // Stubs below matched 100%. |
|---|
| 81 | // Name Address Comp to stubs_entry_2.S |
|---|
| 82 | NSTUB(AllocateMemory ,0xffa9d168) //101 |
|---|
| 83 | NSTUB(AllocateUncacheableMemory ,0xff838dcc) //112 |
|---|
| 84 | NSTUB(Close ,0xff835414) //101 |
|---|
| 85 | NSTUB(CreateTask ,0xff81e5b4) //101 |
|---|
| 86 | NSTUB(DebugAssert ,0xff81e88c) //111 |
|---|
| 87 | NSTUB(DeleteFile_Fut ,0xff834da0) //112 |
|---|
| 88 | //NSTUB(DoAFLock ,0xff836b98) // 4 == 0xff836b98 |
|---|
| 89 | //NSTUB(EnterToCompensationEVF ,0xff836d3c) //104 == 0xff836d3c |
|---|
| 90 | NSTUB(ExecuteEventProcedure ,0xff888cfc) // 1 |
|---|
| 91 | //NSTUB(ExitFromCompensationEVF ,0xff836d80) //104 == 0xff836d80 |
|---|
| 92 | NSTUB(ExitTask ,0xff81e844) //101 |
|---|
| 93 | //NSTUB(ExpCtrlTool_StartContiAE ,0xff844700) //104 == 0xff844700 |
|---|
| 94 | //NSTUB(ExpCtrlTool_StopContiAE ,0xff8447d8) //104 == 0xff8447d8 |
|---|
| 95 | NSTUB(Fclose_Fut ,0xff834f1c) //101 |
|---|
| 96 | NSTUB(Feof_Fut ,0xff835108) // 1 |
|---|
| 97 | NSTUB(Fflush_Fut ,0xff835144) // 1 |
|---|
| 98 | NSTUB(Fgets_Fut ,0xff835070) // 1 |
|---|
| 99 | NSTUB(Fopen_Fut ,0xff834edc) //101 |
|---|
| 100 | NSTUB(Fread_Fut ,0xff834fc8) //101 |
|---|
| 101 | NSTUB(FreeMemory ,0xffa9d160) //101 |
|---|
| 102 | NSTUB(FreeUncacheableMemory ,0xff838e0c) //112 |
|---|
| 103 | NSTUB(Fseek_Fut ,0xff8350bc) //101 |
|---|
| 104 | NSTUB(Fwrite_Fut ,0xff83501c) //101 |
|---|
| 105 | NSTUB(GetDrive_ClusterSize ,0xff86e380) // 3 |
|---|
| 106 | NSTUB(GetDrive_FreeClusters ,0xff86e3e0) // 3 |
|---|
| 107 | NSTUB(GetDrive_TotalClusters ,0xff86e3b4) // 3 |
|---|
| 108 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xff958d70) // 3 |
|---|
| 109 | NSTUB(GetImageFolder ,0xff93c458) //106 |
|---|
| 110 | //NSTUB(GetKbdState ,0xff85e258) //109 == 0xff85e258 |
|---|
| 111 | NSTUB(GetMemInfo ,0xff81a070) // 3 |
|---|
| 112 | NSTUB(GetOpticalTemperature ,0xff861664) // 3 |
|---|
| 113 | NSTUB(GetParameterData ,0xff994a7c) //101 |
|---|
| 114 | NSTUB(GetSystemTime ,0xffa9d1c0) //101 |
|---|
| 115 | NSTUB(GetZoomLensCurrentPoint ,0xff95d9ec) // 1 |
|---|
| 116 | NSTUB(GetZoomLensCurrentPosition ,0xffa90e0c) // 2 |
|---|
| 117 | //NSTUB(GiveSemaphore ,0xff8387e8) //112 == 0xff8387e8 |
|---|
| 118 | //NSTUB(LEDDrive ,0xff85d648) //103 == 0xff85d648 |
|---|
| 119 | NSTUB(LocalTime ,0xff886670) // 1 |
|---|
| 120 | NSTUB(LockMainPower ,0xff89467c) //103 |
|---|
| 121 | //NSTUB(Lseek ,0xff835530) //101 == 0xff835530 |
|---|
| 122 | NSTUB(MakeDirectory_Fut ,0xff834e14) // 1 |
|---|
| 123 | NSTUB(MoveIrisWithAv ,0xffa9ab34) // 4 |
|---|
| 124 | NSTUB(NewTaskShell ,0xff88c510) //103 |
|---|
| 125 | NSTUB(Open ,0xff8353bc) //101 |
|---|
| 126 | NSTUB(PB2Rec ,0xff8977c4) //104 |
|---|
| 127 | NSTUB(PT_MoveDigitalZoomToWide ,0xff8776dc) // 4 |
|---|
| 128 | NSTUB(PT_MoveOpticalZoomAt ,0xff8776b4) // 4 |
|---|
| 129 | //NSTUB(PT_PlaySound ,0xff88180c) // 7 == 0xff88180c |
|---|
| 130 | NSTUB(PostLogicalEventForNotPowerType ,0xff8924a8) //103 |
|---|
| 131 | NSTUB(PostLogicalEventToUI ,0xff8924f4) //103 |
|---|
| 132 | NSTUB(Read ,0xff81ab78) //101 |
|---|
| 133 | NSTUB(ReadFastDir ,0xffa7d748) // 3 |
|---|
| 134 | NSTUB(Rec2PB ,0xff897804) //104 |
|---|
| 135 | //NSTUB(RefreshPhysicalScreen ,0xffa08eec) //104 == 0xffa08eec |
|---|
| 136 | //NSTUB(Remove ,0xff835448) // 4 == 0xff835448 |
|---|
| 137 | //NSTUB(RenameFile_Fut ,0xff834d0c) // 4 == 0xff834d0c |
|---|
| 138 | NSTUB(Restart ,0xff83a520) //106 |
|---|
| 139 | //NSTUB(ScreenLock ,0xffa0a10c) // 3 == 0xffa0a10c |
|---|
| 140 | //NSTUB(ScreenUnlock ,0xffa0a134) // 3 == 0xffa0a134 |
|---|
| 141 | NSTUB(SetAE_ShutterSpeed ,0xffafe49c) // 1 |
|---|
| 142 | NSTUB(SetAutoShutdownTime ,0xff8946f0) //103 |
|---|
| 143 | NSTUB(SetCurrentCaptureModeType ,0xff89b7b4) //101 |
|---|
| 144 | //NSTUB(SetFileTimeStamp ,0xff8356a0) // 3 == 0xff8356a0 |
|---|
| 145 | NSTUB(SetLogicalEventActive ,0xff8943cc) //101 |
|---|
| 146 | NSTUB(SetParameterData ,0xff994958) //101 |
|---|
| 147 | NSTUB(SleepTask ,0xff838a50) //101 |
|---|
| 148 | NSTUB(TakeSemaphore ,0xff838718) //101 |
|---|
| 149 | //NSTUB(TurnOffBackLight ,0xff8a494c) //104 == 0xff8a494c |
|---|
| 150 | //NSTUB(TurnOnBackLight ,0xff8a4934) //104 == 0xff8a4934 |
|---|
| 151 | //NSTUB(UIFS_WriteFirmInfoToFile ,0xff97ea00) //105 == 0xff97ea00 |
|---|
| 152 | //NSTUB(UnlockAF ,0xff836bd0) // 4 == 0xff836bd0 |
|---|
| 153 | NSTUB(UnlockMainPower ,0xff8945d0) //103 |
|---|
| 154 | //NSTUB(UnsetZoomForMovie ,0xff8a0eb4) //104 == 0xff8a0eb4 |
|---|
| 155 | NSTUB(UpdateMBROnFlash ,0xff86e200) // 3 |
|---|
| 156 | NSTUB(VbattGet ,0xff831e04) //103 |
|---|
| 157 | NSTUB(Write ,0xff8354a4) //101 |
|---|
| 158 | //NSTUB(WriteSDCard ,0xff94a55c) //108 == 0xff94a55c |
|---|
| 159 | NSTUB(_log ,0xffb365f8) //111 |
|---|
| 160 | NSTUB(_log10 ,0xffb35284) //112 |
|---|
| 161 | NSTUB(_pow ,0xffb353f4) //114 |
|---|
| 162 | NSTUB(_sqrt ,0xffb3819c) // 1 |
|---|
| 163 | NSTUB(add_ptp_handler ,0xffa46fc0) // 3 |
|---|
| 164 | //NSTUB(apex2us ,0xffa0d7a8) // 4 == 0xffa0d7a8 |
|---|
| 165 | NSTUB(close ,0xff81a990) // 1 |
|---|
| 166 | NSTUB(closedir ,0xffa7d5d0) // 3 |
|---|
| 167 | NSTUB(err_init_task ,0xff815f28) // 4 |
|---|
| 168 | NSTUB(exmem_alloc ,0xff887530) //103 |
|---|
| 169 | NSTUB(free ,0xff814138) //112 |
|---|
| 170 | NSTUB(kbd_p1_f ,0xff833630) //109 |
|---|
| 171 | NSTUB(kbd_p1_f_cont ,0xff83363c) //109 |
|---|
| 172 | NSTUB(kbd_p2_f ,0xff832ed8) //109 |
|---|
| 173 | NSTUB(kbd_read_keys ,0xff8335b4) //109 |
|---|
| 174 | NSTUB(kbd_read_keys_r2 ,0xff85db5c) //109 |
|---|
| 175 | NSTUB(lseek ,0xff835530) //101 |
|---|
| 176 | NSTUB(malloc ,0xff8140dc) //112 |
|---|
| 177 | NSTUB(memcmp ,0xff8203e8) //101 |
|---|
| 178 | NSTUB(memcpy ,0xff83e43c) //101 |
|---|
| 179 | NSTUB(memset ,0xffa0c7f8) //101 |
|---|
| 180 | NSTUB(mkdir ,0xff835888) // 3 |
|---|
| 181 | NSTUB(mktime_ext ,0xff8ac304) // 1 |
|---|
| 182 | NSTUB(open ,0xff81a8e0) // 1 |
|---|
| 183 | NSTUB(opendir ,0xffa7d614) // 3 |
|---|
| 184 | //NSTUB(openfastdir ,0xffa7d614) // 3 == 0xffa7d614 |
|---|
| 185 | NSTUB(qsort ,0xffaec3d8) // 1 |
|---|
| 186 | NSTUB(rand ,0xff8204f0) // 1 |
|---|
| 187 | NSTUB(read ,0xff81ab78) //101 |
|---|
| 188 | //NSTUB(readfastdir ,0xffa7d748) // 3 == 0xffa7d748 |
|---|
| 189 | NSTUB(reboot_fw_update ,0xffa82c58) // 1 |
|---|
| 190 | NSTUB(set_control_event ,0xff894020) //111 |
|---|
| 191 | NSTUB(srand ,0xff8204e4) // 1 |
|---|
| 192 | NSTUB(stat ,0xff83556c) // 3 |
|---|
| 193 | // ALT: NSTUB(stat, 0xff86b7c4) // 3 31/0 |
|---|
| 194 | //NSTUB(strcat ,0xff8abac0) // 1 == 0xff8abac0 |
|---|
| 195 | NSTUB(strchr ,0xff813fc0) // 1 |
|---|
| 196 | NSTUB(strcmp ,0xff8203a4) //101 |
|---|
| 197 | NSTUB(strcpy ,0xff82038c) //101 |
|---|
| 198 | NSTUB(strftime ,0xff8abd0c) // 1 |
|---|
| 199 | NSTUB(strlen ,0xff81400c) //101 |
|---|
| 200 | NSTUB(strncmp ,0xff813f74) // 1 |
|---|
| 201 | //NSTUB(strncpy ,0xff813f38) // 1 == 0xff813f38 |
|---|
| 202 | //NSTUB(strrchr ,0xff813fe4) // 1 == 0xff813fe4 |
|---|
| 203 | NSTUB(strtol ,0xff83e71c) //101 |
|---|
| 204 | NSTUB(strtolx ,0xff83e520) //109 |
|---|
| 205 | DEF(task_CaptSeq ,0xff87a208) //107 |
|---|
| 206 | DEF(task_ExpDrv ,0xff8c0e54) //110 |
|---|
| 207 | DEF(task_InitFileModules ,0xff8982e8) //107 |
|---|
| 208 | DEF(task_MovieRecord ,0xff96172c) //107 |
|---|
| 209 | DEF(task_PhySw ,0xff833208) //107 |
|---|
| 210 | DEF(task_RotaryEncoder ,0xff85e508) //107 |
|---|
| 211 | NSTUB(time ,0xff886be8) // 2 |
|---|
| 212 | NSTUB(vsprintf ,0xff820350) // 1 |
|---|