| 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.00B |
|---|
| 7 | // Canon PowerShot SX100 IS |
|---|
| 8 | // PLATFORMID = 12638 (0x315e) |
|---|
| 9 | // MAXRAMADDR = 0x01ffffff |
|---|
| 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(GetZoomLensCurrentPosition ,0xffdeac68) //102 *** != 0xffd0e36c |
|---|
| 14 | //NSTUB(MoveFocusLensToDistance ,0xffdc0d2c) //102 *** != 0xffdc0c60 |
|---|
| 15 | //NSTUB(kbd_pwr_off ,0xffc37f10) // 2 67% *** != 0xffc00958 |
|---|
| 16 | // ERROR: kbd_pwr_on is not found. //--- --- *** != 0xffc00958 |
|---|
| 17 | //NSTUB(rename ,0xffc14860) // 1 *** != 0xffc15120 |
|---|
| 18 | //NSTUB(write ,0xffc150f8) //101 *** != 0xffc0a4a0 |
|---|
| 19 | |
|---|
| 20 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 21 | // Firmware modemap table found @ffc636cc -> ffc5fae8 -> ffd257ec -> ffdf5da4 -> ffe9e7ec |
|---|
| 22 | // Mode 2598 in firmware but not in current modemap |
|---|
| 23 | // Current modemap entry not found in firmware - MODE_INDOOR 32785 |
|---|
| 24 | |
|---|
| 25 | // Values below go in 'stubs_min.S': |
|---|
| 26 | //DEF(physw_status ,0x00010c1c) // Found @0xffc130f4, stubs_min = 0x00010c1c (0x10C1C) |
|---|
| 27 | //DEF(physw_run ,0x00001ca4) // Found @0xffc12da0, stubs_min = 0x00001ca4 (0x1CA4) |
|---|
| 28 | //DEF(levent_table ,0xffe7cb2c) // Found @0xffe7cb2c, stubs_min = 0xffe7cb2c (0xFFE7CB2C) |
|---|
| 29 | //DEF(FlashParamsTable ,0xffe9e9a4) // Found @0xffe9e9a4, stubs_min = 0xffe9e9a4 (0xFFE9E9A4) |
|---|
| 30 | //DEF(movie_status ,0x00005588) // Found @0xffc4abb0, stubs_min = 0x00005588 (0x5588) |
|---|
| 31 | //DEF(canon_menu_active ,0x0000bafc) // Found @0xffd60bac, stubs_min = 0x0000bafc (0xBAFC) |
|---|
| 32 | //DEF(canon_shoot_menu_active ,0x0000b1fd) // Found @0xffd38074, stubs_min = 0x0000b1fd (0xB1FD) |
|---|
| 33 | //DEF(playrec_mode ,0x00005724) // Found @0xffc51650, stubs_min = 0x00005724 (0x5724) |
|---|
| 34 | //DEF(zoom_status ,0x0000de14) // Found @0xffdf759c, stubs_min = 0x0000de14 (0xDE14) |
|---|
| 35 | //DEF(some_flag_for_af_scan ,0x0000dd08) // Found @0xffdef954, stubs_min = 0x0000dd08 (0xDD08) |
|---|
| 36 | |
|---|
| 37 | // Values below go in 'lib.c': |
|---|
| 38 | //void *vid_get_bitmap_fb() { return (void*)0x10361000; } // Found @0xffc33cb8 |
|---|
| 39 | //void *vid_get_viewport_fb() { return (void*)0x1065a4d0; } // Found @0xffdc3e8c |
|---|
| 40 | //char *camera_jpeg_count_str() { return (char*)0x00059a1c; } // Found @0xffd6d324 |
|---|
| 41 | //long hook_raw_size() { return 0x009dcce0; } // Found @0xffdc5d88 |
|---|
| 42 | //int get_flash_params_count(void) { return 0x72; } // Found @0xffd268a8 |
|---|
| 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 @0xffe5f9c8, levent 0x90a |
|---|
| 46 | //#define SD_READONLY_IDX 2 |
|---|
| 47 | //#define USB_FLAG 0x00040000 // Found @0xffe5f9d0, 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_SHOOT_HALF ,0x00000004 }, // Found @0xffe5f900, levent 0x00 |
|---|
| 53 | // { 0, KEY_SHOOT_FULL ,0x0000000c }, // Found @0xffe5f908, levent 0x01 |
|---|
| 54 | // { 1, KEY_ZOOM_IN ,0x00000100 }, // Found @0xffe5f958, levent 0x02 |
|---|
| 55 | // { 1, KEY_ZOOM_OUT ,0x00000200 }, // Found @0xffe5f960, levent 0x03 |
|---|
| 56 | // { 1, KEY_SET ,0x00010000 }, // Found @0xffe5f968, levent 0x08 |
|---|
| 57 | // { 1, KEY_UP ,0x00020000 }, // Found @0xffe5f970, levent 0x04 |
|---|
| 58 | // { 1, KEY_LEFT ,0x00040000 }, // Found @0xffe5f978, levent 0x06 |
|---|
| 59 | // { 1, KEY_DOWN ,0x00080000 }, // Found @0xffe5f980, levent 0x05 |
|---|
| 60 | // { 1, KEY_RIGHT ,0x00100000 }, // Found @0xffe5f988, levent 0x07 |
|---|
| 61 | // { 1, KEY_MENU ,0x02000000 }, // Found @0xffe5f998, levent 0x09 |
|---|
| 62 | // { 1, KEY_DISPLAY ,0x04000000 }, // Found @0xffe5f9a0, levent 0x0a |
|---|
| 63 | // { 0, 0, 0 } |
|---|
| 64 | //}; |
|---|
| 65 | |
|---|
| 66 | // Values below go in 'platform_camera.h': |
|---|
| 67 | //#define CAM_DRYOS 1 |
|---|
| 68 | //#define CAM_RAW_ROWPIX 3336 // Found @0xffdbdd8c |
|---|
| 69 | //#define CAM_RAW_ROWS 2480 // Found @0xffdbdd94 |
|---|
| 70 | //#undef CAM_UNCACHED_BIT |
|---|
| 71 | //#define CAM_UNCACHED_BIT 0x10000000 // Found @0xffc19e6c |
|---|
| 72 | |
|---|
| 73 | // Stubs below matched 100%. |
|---|
| 74 | // Name Address Comp to stubs_entry_2.S |
|---|
| 75 | NSTUB(AllocateMemory ,0xffdf2ec0) //103 |
|---|
| 76 | //NSTUB(AllocateUncacheableMemory ,0xffc19e30) //112 == 0xffc19e30 |
|---|
| 77 | NSTUB(Close ,0xffc1504c) //101 |
|---|
| 78 | NSTUB(CreateTask ,0xffc0bbb8) //101 |
|---|
| 79 | NSTUB(DebugAssert ,0xffc0c090) //111 |
|---|
| 80 | NSTUB(DeleteFile_Fut ,0xffc148b4) //112 |
|---|
| 81 | //NSTUB(DoAFLock ,0xffc16f5c) //103 == 0xffc16f5c |
|---|
| 82 | NSTUB(EnterToCompensationEVF ,0xffc172d4) //104 |
|---|
| 83 | NSTUB(ExecuteEventProcedure ,0xffc0c270) // 1 |
|---|
| 84 | NSTUB(ExitFromCompensationEVF ,0xffc17324) //104 |
|---|
| 85 | NSTUB(ExitTask ,0xffc0be48) //101 |
|---|
| 86 | //NSTUB(ExpCtrlTool_StartContiAE ,0xffc249b8) //104 == 0xffc249b8 |
|---|
| 87 | //NSTUB(ExpCtrlTool_StopContiAE ,0xffc24b78) //104 == 0xffc24b78 |
|---|
| 88 | NSTUB(Fclose_Fut ,0xffc14a30) //101 |
|---|
| 89 | NSTUB(Feof_Fut ,0xffc14c1c) // 1 |
|---|
| 90 | NSTUB(Fflush_Fut ,0xffc14c58) // 1 |
|---|
| 91 | NSTUB(Fgets_Fut ,0xffc14b84) // 1 |
|---|
| 92 | NSTUB(Fopen_Fut ,0xffc149f0) //101 |
|---|
| 93 | NSTUB(Fread_Fut ,0xffc14adc) //101 |
|---|
| 94 | NSTUB(FreeMemory ,0xffdf2eac) //103 |
|---|
| 95 | NSTUB(FreeUncacheableMemory ,0xffc19e64) //112 |
|---|
| 96 | NSTUB(Fseek_Fut ,0xffc14bd0) //101 |
|---|
| 97 | NSTUB(Fwrite_Fut ,0xffc14b30) //101 |
|---|
| 98 | //NSTUB(GetBatteryTemperature ,0xffc3a31c) //102 == 0xffc3a31c |
|---|
| 99 | //NSTUB(GetCCDTemperature ,0xffc3a2ac) //102 == 0xffc3a2ac |
|---|
| 100 | NSTUB(GetCurrentAvValue ,0xffd0afd4) //102 |
|---|
| 101 | NSTUB(GetDrive_ClusterSize ,0xffc4066c) // 1 |
|---|
| 102 | NSTUB(GetDrive_FreeClusters ,0xffc4070c) // 1 |
|---|
| 103 | NSTUB(GetDrive_TotalClusters ,0xffc406a0) // 1 |
|---|
| 104 | NSTUB(GetFocusLensSubjectDistance ,0xffd08e68) //102 |
|---|
| 105 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xffd09174) // 1 |
|---|
| 106 | NSTUB(GetKbdState ,0xffc37dc0) //109 |
|---|
| 107 | NSTUB(GetMemInfo ,0xffc03c58) // 1 |
|---|
| 108 | //NSTUB(GetOpticalTemperature ,0xffc3a38c) //102 == 0xffc3a38c |
|---|
| 109 | NSTUB(GetParameterData ,0xffd26868) //101 |
|---|
| 110 | NSTUB(GetPropertyCase ,0xffc5bc8c) //101 |
|---|
| 111 | NSTUB(GetSystemTime ,0xffdf2fc8) // 1 |
|---|
| 112 | NSTUB(GetZoomLensCurrentPoint ,0xffd0e394) //102 |
|---|
| 113 | //NSTUB(GiveSemaphore ,0xffc0bb24) //112 == 0xffc0bb24 |
|---|
| 114 | NSTUB(IsStrobeChargeCompleted ,0xffc9ef68) //102 |
|---|
| 115 | NSTUB(LEDDrive ,0xffc373b4) //103 |
|---|
| 116 | NSTUB(LocalTime ,0xffc580b8) // 1 |
|---|
| 117 | NSTUB(LockMainPower ,0xffc5f714) //103 |
|---|
| 118 | NSTUB(Lseek ,0xffc1518c) //101 |
|---|
| 119 | NSTUB(MakeDirectory_Fut ,0xffc14928) // 1 |
|---|
| 120 | NSTUB(MoveIrisWithAv ,0xffd0b3b4) //102 |
|---|
| 121 | NSTUB(MoveZoomLensWithPoint ,0xffd0ee40) //102 |
|---|
| 122 | NSTUB(NewTaskShell ,0xffc5b710) //103 |
|---|
| 123 | NSTUB(Open ,0xffc15024) //101 |
|---|
| 124 | //NSTUB(PB2Rec ,0xffc62938) //104 == 0xffc62938 |
|---|
| 125 | NSTUB(PT_MoveDigitalZoomToWide ,0xffc5342c) //103 |
|---|
| 126 | NSTUB(PT_MoveOpticalZoomAt ,0xffc533f4) //103 |
|---|
| 127 | //NSTUB(PT_PlaySound ,0xffc52fa0) //103 == 0xffc52fa0 |
|---|
| 128 | NSTUB(PostLogicalEventForNotPowerType ,0xffc5d6b0) //103 |
|---|
| 129 | NSTUB(PostLogicalEventToUI ,0xffc5d6fc) //103 |
|---|
| 130 | NSTUB(PutInNdFilter ,0xffdbf138) //102 |
|---|
| 131 | NSTUB(PutOutNdFilter ,0xffdbf170) //102 |
|---|
| 132 | NSTUB(Read ,0xffc0a440) //101 |
|---|
| 133 | NSTUB(ReadFastDir ,0xffddc67c) // 1 |
|---|
| 134 | //NSTUB(Rec2PB ,0xffc61564) //104 == 0xffc61564 |
|---|
| 135 | NSTUB(RefreshPhysicalScreen ,0xffd79fa0) //104 |
|---|
| 136 | NSTUB(Remove ,0xffc15094) // 1 |
|---|
| 137 | NSTUB(RenameFile_Fut ,0xffc14860) // 1 |
|---|
| 138 | NSTUB(Restart ,0xffc1be8c) //106 |
|---|
| 139 | NSTUB(SetAE_ShutterSpeed ,0xffdc3088) //102 |
|---|
| 140 | NSTUB(SetAutoShutdownTime ,0xffc5f788) //103 |
|---|
| 141 | NSTUB(SetCurrentCaptureModeType ,0xffc66210) //101 |
|---|
| 142 | NSTUB(SetFileTimeStamp ,0xffc15328) // 1 |
|---|
| 143 | NSTUB(SetLogicalEventActive ,0xffc5f44c) // 1 |
|---|
| 144 | NSTUB(SetParameterData ,0xffd267d8) //101 |
|---|
| 145 | NSTUB(SetPropertyCase ,0xffc5bb84) //103 |
|---|
| 146 | //NSTUB(SetScriptMode ,0xffc5f49c) //101 == 0xffc5f49c |
|---|
| 147 | NSTUB(SleepTask ,0xffc19cb8) //101 |
|---|
| 148 | NSTUB(TakeSemaphore ,0xffc0ba54) //101 |
|---|
| 149 | NSTUB(TurnOffBackLight ,0xffc6bd54) //104 |
|---|
| 150 | NSTUB(TurnOnBackLight ,0xffc6bd3c) //104 |
|---|
| 151 | NSTUB(UIFS_WriteFirmInfoToFile ,0xffd61640) //103 |
|---|
| 152 | //NSTUB(UnlockAF ,0xffc16fc8) //103 == 0xffc16fc8 |
|---|
| 153 | NSTUB(UnlockMainPower ,0xffc5f668) //103 |
|---|
| 154 | //NSTUB(UnsetZoomForMovie ,0xffd2cf98) //104 == 0xffd2cf98 |
|---|
| 155 | NSTUB(UpdateMBROnFlash ,0xffc40434) // 1 |
|---|
| 156 | NSTUB(VbattGet ,0xffc119cc) //101 |
|---|
| 157 | NSTUB(Write ,0xffc150f8) //101 |
|---|
| 158 | //NSTUB(WriteSDCard ,0xffcff4e8) //108 == 0xffcff4e8 |
|---|
| 159 | NSTUB(_log ,0xffe57ff0) //111 |
|---|
| 160 | NSTUB(_log10 ,0xffe56f34) //112 |
|---|
| 161 | NSTUB(_pow ,0xffe570a4) //114 |
|---|
| 162 | NSTUB(_sqrt ,0xffe59358) // 1 |
|---|
| 163 | NSTUB(add_ptp_handler ,0xffcb53a4) // 1 |
|---|
| 164 | NSTUB(apex2us ,0xffd7b458) // 4 |
|---|
| 165 | NSTUB(close ,0xffc0a258) // 1 |
|---|
| 166 | NSTUB(closedir ,0xffddc74c) // 1 |
|---|
| 167 | NSTUB(err_init_task ,0xffc04eb0) // 4 |
|---|
| 168 | NSTUB(exmem_alloc ,0xffc58ba4) // 1 |
|---|
| 169 | NSTUB(free ,0xffc03ab0) //112 |
|---|
| 170 | NSTUB(kbd_p1_f ,0xffc131f0) //109 |
|---|
| 171 | NSTUB(kbd_p1_f_cont ,0xffc131fc) //109 |
|---|
| 172 | NSTUB(kbd_p2_f ,0xffc12a40) //109 |
|---|
| 173 | NSTUB(kbd_read_keys ,0xffc130f4) //109 |
|---|
| 174 | //NSTUB(kbd_read_keys_r2 ,0xffc378cc) //109 == 0xffc378cc |
|---|
| 175 | NSTUB(lseek ,0xffc1518c) //101 |
|---|
| 176 | NSTUB(malloc ,0xffc039dc) //112 |
|---|
| 177 | NSTUB(memcmp ,0xffc0e8f0) //101 |
|---|
| 178 | NSTUB(memcpy ,0xffc76644) //101 |
|---|
| 179 | NSTUB(memset ,0xffe2aa8c) //101 |
|---|
| 180 | NSTUB(mkdir ,0xffc153f0) // 1 |
|---|
| 181 | // ALT: NSTUB(mkdir, 0xffc15490) // 1 32/0 |
|---|
| 182 | NSTUB(mktime_ext ,0xffc76eb0) // 1 |
|---|
| 183 | NSTUB(open ,0xffc0a1a8) // 1 |
|---|
| 184 | NSTUB(opendir ,0xffddc5e8) // 1 |
|---|
| 185 | NSTUB(openfastdir ,0xffddc5e8) // 1 |
|---|
| 186 | NSTUB(qsort ,0xffd7a830) // 1 |
|---|
| 187 | NSTUB(rand ,0xffc0e9f8) // 1 |
|---|
| 188 | NSTUB(read ,0xffc0a440) //101 |
|---|
| 189 | NSTUB(readfastdir ,0xffddc67c) // 1 |
|---|
| 190 | NSTUB(reboot_fw_update ,0xffde101c) // 1 |
|---|
| 191 | NSTUB(set_control_event ,0xffc5f150) // 1 |
|---|
| 192 | NSTUB(srand ,0xffc0e9ec) // 1 |
|---|
| 193 | NSTUB(stat ,0xffc15258) // 1 |
|---|
| 194 | NSTUB(strcat ,0xffc76570) // 1 |
|---|
| 195 | NSTUB(strchr ,0xffc765f8) // 1 |
|---|
| 196 | NSTUB(strcmp ,0xffc0e888) //101 |
|---|
| 197 | NSTUB(strcpy ,0xffc0e834) //101 |
|---|
| 198 | NSTUB(strftime ,0xffc768b8) // 1 |
|---|
| 199 | NSTUB(strlen ,0xffc0e8cc) //101 |
|---|
| 200 | NSTUB(strncmp ,0xffc765ac) // 1 |
|---|
| 201 | NSTUB(strncpy ,0xffc0e84c) // 1 |
|---|
| 202 | NSTUB(strrchr ,0xffc7661c) // 1 |
|---|
| 203 | NSTUB(strtol ,0xffc20338) //101 |
|---|
| 204 | NSTUB(strtolx ,0xffc2013c) //109 |
|---|
| 205 | DEF(task_CaptSeq ,0xffc4e2ac) //107 |
|---|
| 206 | DEF(task_ExpDrv ,0xffc98ee4) //110 |
|---|
| 207 | DEF(task_InitFileModules ,0xffc63558) //107 |
|---|
| 208 | DEF(task_MovieRecord ,0xffc4ae14) //107 |
|---|
| 209 | DEF(task_PhySw ,0xffc12d9c) //107 |
|---|
| 210 | NSTUB(time ,0xffc57f6c) // 1 |
|---|
| 211 | NSTUB(vsprintf ,0xffc0e7b4) // 1 |
|---|