| 1 | // !!! THIS FILE IS GENERATED. DO NOT EDIT. !!! |
|---|
| 2 | #include "stubs_asm.h" |
|---|
| 3 | |
|---|
| 4 | // Camera info: |
|---|
| 5 | // DRYOS R23 (DRYOS version 2.3, release #0023) |
|---|
| 6 | // Firmware Ver GM1.00C |
|---|
| 7 | // Possible corrupt firmware dump - file size to small for start address 0xff810000 |
|---|
| 8 | // file size = 3.06MB, should be 7.94MB |
|---|
| 9 | // Could not find Camera name - possible corrupt firmware dump |
|---|
| 10 | |
|---|
| 11 | // Values for makefile.inc |
|---|
| 12 | // MAXRAMADDR = 0x01ffffff |
|---|
| 13 | |
|---|
| 14 | // Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S' |
|---|
| 15 | // Name Address Rule % Comp to stubs_entry_2.S |
|---|
| 16 | //NSTUB(PutInNdFilter ,0xffa237cc) //102 *** != 0xffa7aad0 |
|---|
| 17 | //NSTUB(PutOutNdFilter ,0xffa237f0) //102 *** != 0xffa7ab08 |
|---|
| 18 | //NSTUB(rename ,0xff8236ac) // 1 *** != 0xff823f28 |
|---|
| 19 | //NSTUB(write ,0xff823f00) //101 *** != 0xff81a1bc |
|---|
| 20 | |
|---|
| 21 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 22 | // Firmware modemap table found @ff8772b4 -> ff873c7c -> ff95a39c -> ffa37724 -> ffaede90 |
|---|
| 23 | // Mode 2598 in firmware but not in current modemap |
|---|
| 24 | // Mode 2603 in firmware but not in current modemap |
|---|
| 25 | |
|---|
| 26 | // Values below go in 'stubs_min.S': |
|---|
| 27 | //DEF(physw_status ,0x00010370) // Found @0xff821efc, stubs_min = 0x00010370 (0x10370) |
|---|
| 28 | //DEF(physw_run ,0x00001c00) // Found @0xff821b98, stubs_min = 0x00001c00 (0x1c00) |
|---|
| 29 | //DEF(levent_table ,0xffacac6c) // Found @0xffacac6c, stubs_min = 0xffacac6c (0xFFACAC6C) |
|---|
| 30 | //DEF(FlashParamsTable ,0xffaee050) // Found @0xffaee050, stubs_min = 0xffaee050 (0xffaee050) |
|---|
| 31 | //DEF(movie_status ,0x000053a4) // Found @0xff859b9c, ** != ** stubs_min = 0x000053b4 (0x53b4) |
|---|
| 32 | //DEF(canon_menu_active ,0x000094e8) // Found @0xff94cb3c, stubs_min = 0x000094e8 (0x94e8) |
|---|
| 33 | //DEF(canon_shoot_menu_active ,0x00009e2d) // Found @0xff969e40, stubs_min = 0x00009e2d (0x9e2d) |
|---|
| 34 | //DEF(playrec_mode ,0x00005534) // Found @0xff860ee8, stubs_min = 0x00005534 (0x5534) |
|---|
| 35 | //DEF(zoom_status ,0x0000d1cc) // Found @0xffa38f24, stubs_min = 0x0000d1cc (0xd1cc) |
|---|
| 36 | //DEF(some_flag_for_af_scan ,0x0000cf50) // Found @0xffa24144 |
|---|
| 37 | |
|---|
| 38 | // Values below go in 'lib.c': |
|---|
| 39 | //void *vid_get_bitmap_fb() { return (void*)0x10361000; } // Found @0xff83e91c |
|---|
| 40 | //void *vid_get_viewport_fb() { return (void*)0x1065ade0; } // Found @0xffa7fd18 |
|---|
| 41 | //char *camera_jpeg_count_str() { return (char*)0x0004c2c4; } // Found @0xff9a0e30 |
|---|
| 42 | //long hook_raw_size() { return 0x009dcce0; } // Found @0xffa81f88 |
|---|
| 43 | //int get_flash_params_count(void) { return 0x73; } // Found @0xff95b458 |
|---|
| 44 | |
|---|
| 45 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 46 | //#define SD_READONLY_FLAG 0x00020000 // Found @0xffaa8a9c, levent 0x90a |
|---|
| 47 | //#define SD_READONLY_IDX 2 |
|---|
| 48 | //#define USB_MASK 0x00040000 // Found @0xffaa8aa8, levent 0x902 |
|---|
| 49 | //#define USB_IDX 2 |
|---|
| 50 | |
|---|
| 51 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 52 | //static KeyMap keymap[] = { |
|---|
| 53 | // { 2, KEY_ZOOM_IN ,0x00000004 }, // Found @0xffaa8a0c, levent 0x02 |
|---|
| 54 | // { 2, KEY_ZOOM_OUT ,0x00000008 }, // Found @0xffaa8a18, levent 0x03 |
|---|
| 55 | // { 2, KEY_LEFT ,0x00000010 }, // Found @0xffaa8a24, levent 0x06 |
|---|
| 56 | // { 2, KEY_RIGHT ,0x00000020 }, // Found @0xffaa8a30, levent 0x07 |
|---|
| 57 | // { 2, KEY_DOWN ,0x00000040 }, // Found @0xffaa8a3c, levent 0x05 |
|---|
| 58 | // { 2, KEY_UP ,0x00000080 }, // Found @0xffaa8a48, levent 0x04 |
|---|
| 59 | // { 2, KEY_SET ,0x00000100 }, // Found @0xffaa8a54, levent 0x08 |
|---|
| 60 | // { 2, KEY_DISPLAY ,0x00000200 }, // Found @0xffaa8a60, levent 0x0a |
|---|
| 61 | // { 2, KEY_SHOOT_FULL ,0x00000003 }, // Found @0xffaa8a00, levent 0x01 |
|---|
| 62 | // { 2, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffaa8a00, levent 0x01 |
|---|
| 63 | // { 2, KEY_MENU ,0x00000400 }, // Found @0xffaa8a6c, levent 0x09 |
|---|
| 64 | // { 2, KEY_SHOOT_HALF ,0x00000001 }, // Found @0xffaa89f4, levent 0x00 |
|---|
| 65 | // { 0, 0, 0 } |
|---|
| 66 | //}; |
|---|
| 67 | |
|---|
| 68 | // Values below go in 'platform_camera.h': |
|---|
| 69 | //#define CAM_DRYOS 1 |
|---|
| 70 | //#define CAM_RAW_ROWPIX 3336 // Found @0xffa79640 |
|---|
| 71 | //#define CAM_RAW_ROWS 2480 // Found @0xffa79648 |
|---|
| 72 | //#undef CAM_UNCACHED_BIT |
|---|
| 73 | //#define CAM_UNCACHED_BIT 0x10000000 // Found @0xff82866c |
|---|
| 74 | |
|---|
| 75 | // Stubs below matched 100%. |
|---|
| 76 | // Name Address Comp to stubs_entry_2.S |
|---|
| 77 | NSTUB(AllocateMemory ,0xffa26fec) //101 |
|---|
| 78 | NSTUB(AllocateUncacheableMemory ,0xff828630) //112 |
|---|
| 79 | NSTUB(Close ,0xff823e54) //101 |
|---|
| 80 | NSTUB(CreateTask ,0xff81b8e0) //101 |
|---|
| 81 | NSTUB(DebugAssert ,0xff81bdb8) //111 |
|---|
| 82 | NSTUB(DeleteFile_Fut ,0xff823700) //112 |
|---|
| 83 | //NSTUB(DoAFLock ,0xff825c4c) //102 == 0xff825c4c |
|---|
| 84 | NSTUB(EnterToCompensationEVF ,0xff825f48) //104 |
|---|
| 85 | NSTUB(ExecuteEventProcedure ,0xff869180) // 1 |
|---|
| 86 | NSTUB(ExitFromCompensationEVF ,0xff825f98) //104 |
|---|
| 87 | NSTUB(ExitTask ,0xff81bb70) //101 |
|---|
| 88 | //NSTUB(ExpCtrlTool_StartContiAE ,0xff832a98) //104 == 0xff832a98 |
|---|
| 89 | //NSTUB(ExpCtrlTool_StopContiAE ,0xff832bdc) //104 == 0xff832bdc |
|---|
| 90 | NSTUB(Fclose_Fut ,0xff82387c) //101 |
|---|
| 91 | NSTUB(Feof_Fut ,0xff823a68) // 1 |
|---|
| 92 | NSTUB(Fflush_Fut ,0xff823aa4) // 1 |
|---|
| 93 | NSTUB(Fgets_Fut ,0xff8239d0) // 1 |
|---|
| 94 | NSTUB(Fopen_Fut ,0xff82383c) //101 |
|---|
| 95 | NSTUB(Fread_Fut ,0xff823928) //101 |
|---|
| 96 | NSTUB(FreeMemory ,0xffa26fe4) //101 |
|---|
| 97 | NSTUB(FreeUncacheableMemory ,0xff828664) //112 |
|---|
| 98 | NSTUB(Fseek_Fut ,0xff823a1c) //101 |
|---|
| 99 | NSTUB(Fwrite_Fut ,0xff82397c) //101 |
|---|
| 100 | NSTUB(GetBatteryTemperature ,0xff845214) //102 |
|---|
| 101 | NSTUB(GetCCDTemperature ,0xff8451a4) //102 |
|---|
| 102 | NSTUB(GetCurrentAvValue ,0xff92c420) //102 |
|---|
| 103 | NSTUB(GetDrive_ClusterSize ,0xff84f0d4) // 1 |
|---|
| 104 | NSTUB(GetDrive_FreeClusters ,0xff84f13c) // 1 |
|---|
| 105 | NSTUB(GetDrive_TotalClusters ,0xff84f108) // 1 |
|---|
| 106 | NSTUB(GetFocusLensSubjectDistance ,0xff92b518) //102 |
|---|
| 107 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xff92b824) // 1 |
|---|
| 108 | NSTUB(GetKbdState ,0xff842a04) //109 |
|---|
| 109 | NSTUB(GetMemInfo ,0xff813c40) // 1 |
|---|
| 110 | NSTUB(GetOpticalTemperature ,0xff845284) //102 |
|---|
| 111 | NSTUB(GetParameterData ,0xff95b418) //101 |
|---|
| 112 | NSTUB(GetPropertyCase ,0xff86cd80) //102 |
|---|
| 113 | NSTUB(GetSystemTime ,0xffa27044) //101 |
|---|
| 114 | NSTUB(GetZoomLensCurrentPoint ,0xff92f1c4) //102 |
|---|
| 115 | NSTUB(GetZoomLensCurrentPosition ,0xffa1d084) //102 |
|---|
| 116 | NSTUB(GiveSemaphore ,0xff81b844) //112 |
|---|
| 117 | NSTUB(IsStrobeChargeCompleted ,0xff8bae5c) //102 |
|---|
| 118 | NSTUB(LEDDrive ,0xff842228) //103 |
|---|
| 119 | NSTUB(LocalTime ,0xff866844) // 1 |
|---|
| 120 | NSTUB(LockMainPower ,0xff873894) //103 |
|---|
| 121 | NSTUB(Lseek ,0xff823f94) //101 |
|---|
| 122 | NSTUB(MakeDirectory_Fut ,0xff823774) // 1 |
|---|
| 123 | NSTUB(MoveFocusLensToDistance ,0xffa7c844) //102 |
|---|
| 124 | NSTUB(MoveIrisWithAv ,0xffa233e4) //102 |
|---|
| 125 | NSTUB(MoveZoomLensWithPoint ,0xffa23968) //102 |
|---|
| 126 | NSTUB(NewTaskShell ,0xff86c844) //103 |
|---|
| 127 | NSTUB(Open ,0xff823e2c) //101 |
|---|
| 128 | NSTUB(PB2Rec ,0xff876538) //104 |
|---|
| 129 | NSTUB(PT_MoveDigitalZoomToWide ,0xff85ba08) //102 |
|---|
| 130 | NSTUB(PT_MoveOpticalZoomAt ,0xff85b9e0) //102 |
|---|
| 131 | NSTUB(PT_PlaySound ,0xff85b064) //102 |
|---|
| 132 | NSTUB(PostLogicalEventForNotPowerType ,0xff872f04) //103 |
|---|
| 133 | NSTUB(PostLogicalEventToUI ,0xff872f50) //103 |
|---|
| 134 | NSTUB(Read ,0xff81a15c) //101 |
|---|
| 135 | NSTUB(ReadFastDir ,0xffa0c13c) // 1 |
|---|
| 136 | NSTUB(Rec2PB ,0xff876568) //104 |
|---|
| 137 | NSTUB(RefreshPhysicalScreen ,0xff9aabf8) //104 |
|---|
| 138 | NSTUB(Remove ,0xff823e9c) // 1 |
|---|
| 139 | NSTUB(RenameFile_Fut ,0xff8236ac) // 1 |
|---|
| 140 | NSTUB(Restart ,0xff829ea8) //106 |
|---|
| 141 | NSTUB(SetAE_ShutterSpeed ,0xffa7ef28) //102 |
|---|
| 142 | NSTUB(SetAutoShutdownTime ,0xff873908) //103 |
|---|
| 143 | NSTUB(SetCurrentCaptureModeType ,0xff87a4b0) //101 |
|---|
| 144 | NSTUB(SetFileTimeStamp ,0xff824130) // 1 |
|---|
| 145 | NSTUB(SetLogicalEventActive ,0xff873630) // 1 |
|---|
| 146 | NSTUB(SetParameterData ,0xff95b388) //101 |
|---|
| 147 | NSTUB(SetPropertyCase ,0xff86cc80) //102 |
|---|
| 148 | //NSTUB(SetScriptMode ,0xff873680) //101 == 0xff873680 |
|---|
| 149 | NSTUB(SleepTask ,0xff8284b4) //101 |
|---|
| 150 | NSTUB(TakeSemaphore ,0xff81b774) //101 |
|---|
| 151 | NSTUB(TurnOffBackLight ,0xff87fd7c) //104 |
|---|
| 152 | NSTUB(TurnOnBackLight ,0xff87fd64) //104 |
|---|
| 153 | NSTUB(UIFS_WriteFirmInfoToFile ,0xff94daa4) //103 |
|---|
| 154 | //NSTUB(UnlockAF ,0xff825c90) //102 == 0xff825c90 |
|---|
| 155 | NSTUB(UnlockMainPower ,0xff8737e8) //103 |
|---|
| 156 | //NSTUB(UnsetZoomForMovie ,0xff960a4c) //104 == 0xff960a4c |
|---|
| 157 | NSTUB(UpdateMBROnFlash ,0xff84ef14) //105 |
|---|
| 158 | NSTUB(VbattGet ,0xff8207e4) //103 |
|---|
| 159 | NSTUB(Write ,0xff823f00) //101 |
|---|
| 160 | NSTUB(WriteSDCard ,0xff91f0c8) //108 |
|---|
| 161 | NSTUB(_log ,0xffaa6048) //111 |
|---|
| 162 | NSTUB(_log10 ,0xffaa4f8c) //112 |
|---|
| 163 | NSTUB(_pow ,0xffaa50fc) //114 |
|---|
| 164 | NSTUB(_sqrt ,0xffaa7468) // 1 |
|---|
| 165 | NSTUB(add_ptp_handler ,0xff9dab04) // 1 |
|---|
| 166 | //NSTUB(apex2us ,0xff9ac134) // 4 == 0xff9ac134 |
|---|
| 167 | NSTUB(close ,0xff819f74) // 1 |
|---|
| 168 | NSTUB(closedir ,0xffa0c20c) // 1 |
|---|
| 169 | NSTUB(err_init_task ,0xff814e98) // 4 |
|---|
| 170 | NSTUB(exmem_alloc ,0xff867968) //103 |
|---|
| 171 | NSTUB(free ,0xff813a98) //112 |
|---|
| 172 | NSTUB(kbd_p1_f ,0xff822000) //109 |
|---|
| 173 | NSTUB(kbd_p1_f_cont ,0xff82200c) //109 |
|---|
| 174 | NSTUB(kbd_p2_f ,0xff821838) //109 |
|---|
| 175 | NSTUB(kbd_pwr_off ,0xff842a88) // 2 |
|---|
| 176 | NSTUB(kbd_pwr_on ,0xff842a38) // 2 |
|---|
| 177 | NSTUB(kbd_read_keys ,0xff821efc) //109 |
|---|
| 178 | NSTUB(kbd_read_keys_r2 ,0xff8425e8) //109 |
|---|
| 179 | NSTUB(lseek ,0xff823f94) //101 |
|---|
| 180 | NSTUB(malloc ,0xff8139c4) //112 |
|---|
| 181 | NSTUB(memcmp ,0xff81d90c) //101 |
|---|
| 182 | NSTUB(memcpy ,0xff892234) //101 |
|---|
| 183 | NSTUB(memset ,0xff9aafac) //101 |
|---|
| 184 | NSTUB(mkdir ,0xff8241f8) // 1 |
|---|
| 185 | // ALT: NSTUB(mkdir, 0xff824298) // 1 32/0 |
|---|
| 186 | NSTUB(mktime_ext ,0xff892aa0) // 1 |
|---|
| 187 | NSTUB(open ,0xff819ec4) // 1 |
|---|
| 188 | NSTUB(opendir ,0xffa0c0a8) // 1 |
|---|
| 189 | NSTUB(openfastdir ,0xffa0c0a8) // 1 |
|---|
| 190 | NSTUB(qsort ,0xff9ab4b4) // 1 |
|---|
| 191 | NSTUB(rand ,0xff81da14) // 1 |
|---|
| 192 | NSTUB(read ,0xff81a15c) //101 |
|---|
| 193 | NSTUB(readfastdir ,0xffa0c13c) // 1 |
|---|
| 194 | NSTUB(reboot_fw_update ,0xffa13b3c) // 5 |
|---|
| 195 | NSTUB(set_control_event ,0xff873384) // 1 |
|---|
| 196 | NSTUB(srand ,0xff81da08) // 1 |
|---|
| 197 | NSTUB(stat ,0xff824060) // 1 |
|---|
| 198 | NSTUB(strcat ,0xff892020) // 1 |
|---|
| 199 | NSTUB(strchr ,0xff8920a8) // 1 |
|---|
| 200 | NSTUB(strcmp ,0xff81d8a4) //101 |
|---|
| 201 | NSTUB(strcpy ,0xff81d88c) //101 |
|---|
| 202 | NSTUB(strftime ,0xff8924a8) // 1 |
|---|
| 203 | NSTUB(strlen ,0xff81d8e8) //101 |
|---|
| 204 | NSTUB(strncmp ,0xff89205c) // 1 |
|---|
| 205 | NSTUB(strncpy ,0xff82e194) // 1 |
|---|
| 206 | NSTUB(strrchr ,0xff8920cc) // 1 |
|---|
| 207 | NSTUB(strtol ,0xff82e3cc) //101 |
|---|
| 208 | NSTUB(strtolx ,0xff82e1d0) //109 |
|---|
| 209 | DEF(task_CaptSeq ,0xff85de08) //107 |
|---|
| 210 | DEF(task_ExpDrv ,0xff8b3d68) //110 |
|---|
| 211 | DEF(task_InitFileModules ,0xff877140) //107 |
|---|
| 212 | DEF(task_MovieRecord ,0xff859e28) //107 |
|---|
| 213 | DEF(task_PhySw ,0xff821b94) //107 |
|---|
| 214 | NSTUB(time ,0xff866d48) // 2 |
|---|
| 215 | NSTUB(vsprintf ,0xff81d80c) // 1 |
|---|