| 1 | // !!! THIS FILE IS GENERATED. DO NOT EDIT. !!! |
|---|
| 2 | #include "stubs_asm.h" |
|---|
| 3 | |
|---|
| 4 | // Camera info: |
|---|
| 5 | // DRYOS R20 (DRYOS version 2.3, release #0020) |
|---|
| 6 | // Firmware Ver GM1.01A |
|---|
| 7 | // Canon PowerShot S5 IS |
|---|
| 8 | |
|---|
| 9 | // Values for makefile.inc |
|---|
| 10 | // PLATFORMOSVER = 20 |
|---|
| 11 | // PLATFORMID = 12616 (0x3148) // Found @ 0xfffe0130 |
|---|
| 12 | // MAXRAMADDR = 0x03ffffff |
|---|
| 13 | // KEYSYS = d3 // Found @ 0xffff31c8 |
|---|
| 14 | // NEED_ENCODED_DISKBOOT = 1 // Found @ 0xffff31a8 |
|---|
| 15 | |
|---|
| 16 | // Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S' |
|---|
| 17 | // Name Address Rule % Comp to stubs_entry_2.S |
|---|
| 18 | //NSTUB(GetZoomLensCurrentPoint ,0xff95783c) //102 *** != 0xff957d84 |
|---|
| 19 | //NSTUB(GetZoomLensCurrentPosition ,0xff9576b8) //102 *** != 0xff957d88 |
|---|
| 20 | //NSTUB(Lseek ,0xff825ecc) //101 *** != 0xff825f94 |
|---|
| 21 | //NSTUB(Read ,0xff81a2c8) //101 *** != 0xff825e34 |
|---|
| 22 | //NSTUB(SetParameterData ,0xff972f14) // 1 59% *** != 0xff972f9c |
|---|
| 23 | // ERROR: UIFS_WriteFirmInfoToFile is not found. //--- --- *** != 0x00000000 |
|---|
| 24 | //NSTUB(kbd_pwr_off ,0xff84dc38) // 2 67% *** != 0x00000000 |
|---|
| 25 | // ERROR: kbd_pwr_on is not found. //--- --- *** != 0x00000000 |
|---|
| 26 | //NSTUB(rename ,0xff8255a0) // 1 *** != 0xff825e60 |
|---|
| 27 | //NSTUB(srand ,0xff81e828) // 1 *** != 0xff81bdb4 |
|---|
| 28 | //NSTUB(write ,0xff825e38) //101 *** != 0xff81a328 |
|---|
| 29 | |
|---|
| 30 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 31 | // Firmware modemap table found @ff87c16c -> ff878420 -> ff971b64 -> ffa450e8 -> ffaefee8 |
|---|
| 32 | // No problems found with modemap table. |
|---|
| 33 | |
|---|
| 34 | // Values below can be overridden in 'stubs_min.S': |
|---|
| 35 | DEF(physw_status ,0x00011abc) // Found @0xff823990 |
|---|
| 36 | DEF(physw_run ,0x00001cd8) // Found @0xff82366c |
|---|
| 37 | DEF(levent_table ,0xffac65dc) // Found @0xffac65dc |
|---|
| 38 | DEF(FlashParamsTable ,0xffaf0088) // Found @0xffaf0088 |
|---|
| 39 | DEF(movie_status ,0x000058a0) // Found @0xff862c60 |
|---|
| 40 | DEF(canon_menu_active ,0x00006e3c) // Found @0xff8970dc |
|---|
| 41 | DEF(canon_shoot_menu_active ,0x0000c05d) // Found @0xff982648 |
|---|
| 42 | DEF(playrec_mode ,0x00005aa0) // Found @0xff869d1c |
|---|
| 43 | DEF(zoom_status ,0x000068f8) // Found @0xff886424 |
|---|
| 44 | DEF(some_flag_for_af_scan ,0x0000ecbc) // Found @0xffa3e2bc |
|---|
| 45 | DEF(focus_busy ,0x0000b27c) // Found @0xff9507e0 |
|---|
| 46 | //DEF(recreview_hold ,0x000067c4) // Found @0xff882ac8, ** != ** stubs_min = 0x0000be2c (0xBE2C) |
|---|
| 47 | |
|---|
| 48 | // Values below go in 'lib.c': |
|---|
| 49 | //void *vid_get_bitmap_fb() { return (void*)0x10361000; } // Found @0xff84a0b4 |
|---|
| 50 | //void *vid_get_viewport_fb() { return (void*)0x10d29360; } // Found @0xffa104a0 |
|---|
| 51 | //char *camera_jpeg_count_str() { return (char*)0x00058304; } // Found @0xff9be610 |
|---|
| 52 | //long hook_raw_size() { return 0x009dcce0; } // Found @0xffa11fa8 |
|---|
| 53 | //int get_flash_params_count(void) { return 0x6f; } // Found @0xff973064 |
|---|
| 54 | |
|---|
| 55 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 56 | //#define SD_READONLY_FLAG 0x00020000 // Found @0xffa9ceb8, levent 0x90a |
|---|
| 57 | //#define SD_READONLY_IDX 2 |
|---|
| 58 | //#define USB_MASK 0x00200000 // Found @0xffa9ced8, levent 0x902 |
|---|
| 59 | //#define USB_IDX 2 |
|---|
| 60 | |
|---|
| 61 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 62 | //static KeyMap keymap[] = { |
|---|
| 63 | // { 0, KEY_SHOOT_FULL ,0x00000003 }, // Found @0xffa9cdb0, levent 0x01 |
|---|
| 64 | // { 0, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffa9cdb0, levent 0x01 |
|---|
| 65 | // { 0, KEY_SHOOT_HALF ,0x00000001 }, // Found @0xffa9cda8, levent 0x00 |
|---|
| 66 | // { 1, KEY_LEFT ,0x00001000 }, // Found @0xffa9ce28, levent 0x06 |
|---|
| 67 | // { 1, KEY_SET ,0x00010000 }, // Found @0xffa9ce40, levent 0x08 |
|---|
| 68 | // { 1, KEY_DISPLAY ,0x00020000 }, // Found @0xffa9ce48, levent 0x0a |
|---|
| 69 | // { 1, KEY_MENU ,0x00040000 }, // Found @0xffa9ce50, levent 0x09 |
|---|
| 70 | // { 1, KEY_DOWN ,0x00080000 }, // Found @0xffa9ce58, levent 0x05 |
|---|
| 71 | // { 1, KEY_UP ,0x00100000 }, // Found @0xffa9ce60, levent 0x04 |
|---|
| 72 | // { 1, KEY_RIGHT ,0x00200000 }, // Found @0xffa9ce68, levent 0x07 |
|---|
| 73 | // { 0, 0, 0 } |
|---|
| 74 | //}; |
|---|
| 75 | |
|---|
| 76 | // Values below go in 'platform_camera.h': |
|---|
| 77 | //#define CAM_DRYOS 1 |
|---|
| 78 | //#define CAM_RAW_ROWPIX *** Not Found *** |
|---|
| 79 | //#define CAM_RAW_ROWS *** Not Found *** |
|---|
| 80 | //#undef CAM_UNCACHED_BIT |
|---|
| 81 | //#define CAM_UNCACHED_BIT 0x10000000 // Found @0xff82add8 |
|---|
| 82 | |
|---|
| 83 | // Misc stuff |
|---|
| 84 | DEF(ctypes, 0xffa9644e) |
|---|
| 85 | |
|---|
| 86 | // For capt_seq.c |
|---|
| 87 | //static long *nrflag = (long*)(0xb704); // Found @ ff9610bc |
|---|
| 88 | |
|---|
| 89 | // Stubs below matched 100%. |
|---|
| 90 | // Name Address Comp to stubs_entry_2.S |
|---|
| 91 | NSTUB(AllocateMemory ,0xffa41170) //103 |
|---|
| 92 | NSTUB(AllocateUncacheableMemory ,0xff82ad9c) //112 |
|---|
| 93 | NSTUB(Close ,0xff825d8c) //101 |
|---|
| 94 | NSTUB(CreateTask ,0xff81b9c4) //101 |
|---|
| 95 | NSTUB(DebugAssert ,0xff81bd94) //111 |
|---|
| 96 | NSTUB(DeleteDirectory_Fut ,0xff8256d8) // 1 |
|---|
| 97 | NSTUB(DeleteFile_Fut ,0xff8255f4) //112 |
|---|
| 98 | NSTUB(DoAFLock ,0xff827c90) //103 |
|---|
| 99 | NSTUB(EnterToCompensationEVF ,0xff828070) //104 |
|---|
| 100 | NSTUB(ExecuteEventProcedure ,0xff81bf64) // 1 |
|---|
| 101 | NSTUB(ExitFromCompensationEVF ,0xff828164) //104 |
|---|
| 102 | NSTUB(ExitTask ,0xff81bc54) //101 |
|---|
| 103 | NSTUB(ExpCtrlTool_StartContiAE ,0xff838ea0) //104 |
|---|
| 104 | NSTUB(ExpCtrlTool_StopContiAE ,0xff838f48) //104 |
|---|
| 105 | NSTUB(Fclose_Fut ,0xff825770) //101 |
|---|
| 106 | NSTUB(Feof_Fut ,0xff82595c) // 1 |
|---|
| 107 | NSTUB(Fflush_Fut ,0xff825998) // 1 |
|---|
| 108 | NSTUB(Fgets_Fut ,0xff8258c4) // 1 |
|---|
| 109 | NSTUB(Fopen_Fut ,0xff825730) //101 |
|---|
| 110 | NSTUB(Fread_Fut ,0xff82581c) //101 |
|---|
| 111 | NSTUB(FreeMemory ,0xffa4115c) //103 |
|---|
| 112 | NSTUB(FreeUncacheableMemory ,0xff82add0) //112 |
|---|
| 113 | NSTUB(Fseek_Fut ,0xff825910) //101 |
|---|
| 114 | NSTUB(Fwrite_Fut ,0xff825870) //101 |
|---|
| 115 | NSTUB(GetBatteryTemperature ,0xff85062c) //102 |
|---|
| 116 | NSTUB(GetCCDTemperature ,0xff8505bc) //102 |
|---|
| 117 | NSTUB(GetCurrentAvValue ,0xff952e5c) //102 |
|---|
| 118 | NSTUB(GetDrive_ClusterSize ,0xff856dd0) // 1 |
|---|
| 119 | NSTUB(GetDrive_FreeClusters ,0xff856e70) // 1 |
|---|
| 120 | NSTUB(GetDrive_TotalClusters ,0xff856e04) // 1 |
|---|
| 121 | NSTUB(GetFocusLensSubjectDistance ,0xff95126c) //102 |
|---|
| 122 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xff951568) // 1 |
|---|
| 123 | NSTUB(GetKbdState ,0xff84daec) //109 |
|---|
| 124 | NSTUB(GetMemInfo ,0xff813ca8) // 1 |
|---|
| 125 | NSTUB(GetOpticalTemperature ,0xff85069c) //102 |
|---|
| 126 | NSTUB(GetParameterData ,0xff973028) //101 |
|---|
| 127 | NSTUB(GetPropertyCase ,0xff874864) //101 |
|---|
| 128 | NSTUB(GetSystemTime ,0xffa4126c) // 1 |
|---|
| 129 | NSTUB(GiveSemaphore ,0xff81b930) //112 |
|---|
| 130 | NSTUB(IsStrobeChargeCompleted ,0xff8db5fc) //102 |
|---|
| 131 | NSTUB(LocalTime ,0xff8706cc) // 1 |
|---|
| 132 | NSTUB(LockMainPower ,0xff877df8) //103 |
|---|
| 133 | NSTUB(MakeDirectory_Fut ,0xff825668) // 1 |
|---|
| 134 | NSTUB(MoveFocusLensToDistance ,0xffa0d4e4) //102 |
|---|
| 135 | NSTUB(MoveIrisWithAv ,0xff9537b8) //102 |
|---|
| 136 | NSTUB(MoveZoomLensWithPoint ,0xff957bfc) //102 |
|---|
| 137 | NSTUB(NewTaskShell ,0xff874330) //103 |
|---|
| 138 | NSTUB(Open ,0xff825d64) //101 |
|---|
| 139 | NSTUB(PB2Rec ,0xff87b3e0) //104 |
|---|
| 140 | NSTUB(PT_MoveDigitalZoomToWide ,0xff86ba2c) //103 |
|---|
| 141 | NSTUB(PT_MoveOpticalZoomAt ,0xff86b9f8) //103 |
|---|
| 142 | NSTUB(PT_PlaySound ,0xff86b5a4) //103 |
|---|
| 143 | NSTUB(PostLogicalEventForNotPowerType ,0xff87617c) //103 |
|---|
| 144 | NSTUB(PostLogicalEventToUI ,0xff8761c8) //103 |
|---|
| 145 | NSTUB(PutInNdFilter ,0xffa0bdc8) //102 |
|---|
| 146 | NSTUB(PutOutNdFilter ,0xffa0be00) //102 |
|---|
| 147 | NSTUB(ReadFastDir ,0xffa279c8) // 1 |
|---|
| 148 | NSTUB(Rec2PB ,0xff87b420) //104 |
|---|
| 149 | NSTUB(RefreshPhysicalScreen ,0xff8b2e58) //101 |
|---|
| 150 | NSTUB(Remove ,0xff825dd4) // 1 |
|---|
| 151 | NSTUB(RenameFile_Fut ,0xff8255a0) // 1 |
|---|
| 152 | NSTUB(Restart ,0xff82cde4) //106 |
|---|
| 153 | NSTUB(SetAE_ShutterSpeed ,0xffa0f680) //102 |
|---|
| 154 | NSTUB(SetAutoShutdownTime ,0xff877f58) //103 |
|---|
| 155 | NSTUB(SetCurrentCaptureModeType ,0xff87f94c) //101 |
|---|
| 156 | NSTUB(SetFileAttributes ,0xff8260b8) // 1 |
|---|
| 157 | NSTUB(SetFileTimeStamp ,0xff826068) // 1 |
|---|
| 158 | NSTUB(SetLogicalEventActive ,0xff877bb4) // 1 |
|---|
| 159 | NSTUB(SetPropertyCase ,0xff874774) //101 |
|---|
| 160 | NSTUB(SetScriptMode ,0xff877c04) //101 |
|---|
| 161 | NSTUB(SleepTask ,0xff82ac20) //101 |
|---|
| 162 | NSTUB(TakeSemaphore ,0xff81b860) //101 |
|---|
| 163 | NSTUB(TurnOffBackLight ,0xff888468) //104 |
|---|
| 164 | NSTUB(TurnOnBackLight ,0xff888450) //104 |
|---|
| 165 | NSTUB(UnlockAF ,0xff827cfc) //103 |
|---|
| 166 | NSTUB(UnlockMainPower ,0xff877d54) //103 |
|---|
| 167 | NSTUB(UpdateMBROnFlash ,0xff856b98) //105 |
|---|
| 168 | NSTUB(VbattGet ,0xff8222cc) //101 |
|---|
| 169 | NSTUB(Write ,0xff825e38) //101 |
|---|
| 170 | NSTUB(WriteSDCard ,0xff9441ec) //108 |
|---|
| 171 | NSTUB(_log ,0xffa93fc0) //111 |
|---|
| 172 | NSTUB(_log10 ,0xffa92f04) //112 |
|---|
| 173 | NSTUB(_pow ,0xffa93074) //114 |
|---|
| 174 | NSTUB(_sqrt ,0xffa95328) // 1 |
|---|
| 175 | NSTUB(add_ptp_handler ,0xff8f048c) // 1 |
|---|
| 176 | NSTUB(apex2us ,0xff9caf14) // 4 |
|---|
| 177 | NSTUB(close ,0xff81a0e0) // 1 |
|---|
| 178 | NSTUB(closedir ,0xffa27a98) // 1 |
|---|
| 179 | NSTUB(err_init_task ,0xff814f00) // 4 |
|---|
| 180 | NSTUB(exmem_alloc ,0xff8714ec) //101 |
|---|
| 181 | NSTUB(free ,0xff813b00) //112 |
|---|
| 182 | NSTUB(kbd_p1_f ,0xff823a6c) //109 |
|---|
| 183 | NSTUB(kbd_p1_f_cont ,0xff823a78) //109 |
|---|
| 184 | NSTUB(kbd_p2_f ,0xff82330c) //109 |
|---|
| 185 | NSTUB(kbd_read_keys ,0xff823990) //109 |
|---|
| 186 | NSTUB(kbd_read_keys_r2 ,0xff84d4ac) //109 |
|---|
| 187 | NSTUB(lseek ,0xff825ecc) //101 |
|---|
| 188 | NSTUB(malloc ,0xff813a2c) //112 |
|---|
| 189 | NSTUB(memcmp ,0xff81e72c) //101 |
|---|
| 190 | NSTUB(memcpy ,0xff8b32c8) //101 |
|---|
| 191 | NSTUB(memset ,0xffa64c5c) //101 |
|---|
| 192 | NSTUB(mkdir ,0xff826130) // 1 |
|---|
| 193 | // ALT: NSTUB(mkdir, 0xff8261d0) // 1 32/0 |
|---|
| 194 | NSTUB(mktime_ext ,0xff8b3b34) // 1 |
|---|
| 195 | NSTUB(open ,0xff81a030) // 1 |
|---|
| 196 | NSTUB(opendir ,0xffa27934) // 1 |
|---|
| 197 | NSTUB(openfastdir ,0xffa27934) // 1 |
|---|
| 198 | NSTUB(qsort ,0xff9ca2ec) // 1 |
|---|
| 199 | NSTUB(rand ,0xff81e834) // 1 |
|---|
| 200 | NSTUB(read ,0xff81a2c8) //101 |
|---|
| 201 | NSTUB(reboot_fw_update ,0xffa2f824) // 1 |
|---|
| 202 | NSTUB(set_control_event ,0xff877988) // 1 |
|---|
| 203 | NSTUB(stat ,0xff825f98) // 1 |
|---|
| 204 | NSTUB(strcat ,0xff8b31f4) // 1 |
|---|
| 205 | NSTUB(strchr ,0xff8b327c) // 1 |
|---|
| 206 | NSTUB(strcmp ,0xff81e6c4) //101 |
|---|
| 207 | NSTUB(strcpy ,0xff81e670) //101 |
|---|
| 208 | NSTUB(strftime ,0xff8b353c) // 1 |
|---|
| 209 | NSTUB(strlen ,0xff81e708) //101 |
|---|
| 210 | NSTUB(strncmp ,0xff8b3230) // 1 |
|---|
| 211 | NSTUB(strncpy ,0xff81e688) // 1 |
|---|
| 212 | NSTUB(strrchr ,0xff8b32a0) // 1 |
|---|
| 213 | NSTUB(strtol ,0xff831dac) //101 |
|---|
| 214 | NSTUB(strtolx ,0xff831bb0) //109 |
|---|
| 215 | DEF(task_CaptSeq ,0xff866d48) //107 |
|---|
| 216 | DEF(task_ExpDrv ,0xff8d3888) //110 |
|---|
| 217 | DEF(task_InitFileModules ,0xff87bff0) //107 |
|---|
| 218 | DEF(task_MovieRecord ,0xff862f10) //107 |
|---|
| 219 | DEF(task_PhySw ,0xff823668) //107 |
|---|
| 220 | NSTUB(time ,0xff870bd0) // 2 |
|---|
| 221 | NSTUB(vsprintf ,0xff81e5f0) // 1 |
|---|