| 1 | // !!! THIS FILE IS GENERATED. DO NOT EDIT. !!! |
|---|
| 2 | #include "stubs_asm.h" |
|---|
| 3 | |
|---|
| 4 | // Camera info: |
|---|
| 5 | // DRYOS R49 (DRYOS version 2.3, release #0049) |
|---|
| 6 | // Firmware Ver GM1.00G |
|---|
| 7 | // Canon PowerShot SX40 HS |
|---|
| 8 | |
|---|
| 9 | // Values for makefile.inc |
|---|
| 10 | // PLATFORMID = 12856 (0x3238) // Found @ 0xfff40040 |
|---|
| 11 | // MAXRAMADDR = 0x0fffffff |
|---|
| 12 | // KEYSYS = d4c // Found @ 0xffff3b48 |
|---|
| 13 | // NEED_ENCODED_DISKBOOT = 7 // Found @ 0xffff3b58 |
|---|
| 14 | |
|---|
| 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 | // ERROR: kbd_pwr_off is not found. //--- --- *** != 0xff057e44 |
|---|
| 18 | // ERROR: kbd_pwr_on is not found. //--- --- *** != 0xff057e44 |
|---|
| 19 | NSTUB(reboot_fw_update ,0xff33ee20) // 6 96% |
|---|
| 20 | |
|---|
| 21 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 22 | // Firmware modemap table found @ff09bd3c -> ff0985bc -> ff2047c0 -> ff36a8e8 -> ff607d14 |
|---|
| 23 | // No problems found with modemap table. |
|---|
| 24 | |
|---|
| 25 | // Values below go in 'stubs_min.S': |
|---|
| 26 | //DEF(physw_status ,0x00037548) // Found @0xff024dd8, stubs_min = 0x00037548 (0x00037548) |
|---|
| 27 | //DEF(physw_run ,0x00001c10) // Found @0xff024968, stubs_min = 0x00001c10 (0x00001c10) |
|---|
| 28 | //DEF(levent_table ,0xff593a0c) // Found @0xff593a0c, stubs_min = 0xff593a0c (0xff593a0c) |
|---|
| 29 | //DEF(FlashParamsTable ,0xff607f74) // Found @0xff607f74, stubs_min = 0xff607f74 (0xff607f74) |
|---|
| 30 | //DEF(movie_status ,0x00002f1c) // Found @0xff0772a8, stubs_min = 0x00002f1c (0x00002f1c) |
|---|
| 31 | //DEF(full_screen_refresh ,0x0000c2d8) // Found @0xff2917e0, stubs_min = 0x0000c2d8 (0x0000c2d8) |
|---|
| 32 | //DEF(canon_menu_active ,0x000034f0) // Found @0xff091b6c, stubs_min = 0x000034f0 (0x000034f0) |
|---|
| 33 | //DEF(canon_shoot_menu_active ,0x0000ab6d) // Found @0xff22a704, stubs_min = 0x0000ab6d (0x0000ab6d) |
|---|
| 34 | //DEF(playrec_mode ,0x00003214) // Found @0xff083504, stubs_min = 0x00003214 (0x00003214) |
|---|
| 35 | //DEF(zoom_status ,0x000111f8) // Found @0xff36e6d8, stubs_min = 0x000111f8 (0x000111f8) |
|---|
| 36 | |
|---|
| 37 | // Values below go in 'lib.c': |
|---|
| 38 | //void *vid_get_bitmap_fb() { return (void*)0x40685000; } // Found @0xff0515dc |
|---|
| 39 | //void *vid_get_viewport_fb() { return (void*)0x407dab80; } // Found @0xff3e0b38 |
|---|
| 40 | //char *camera_jpeg_count_str() { return (char*)0x000df0e8; } // Found @0xff285438 |
|---|
| 41 | //long hook_raw_size() { return 0x01247a60; } // Found @0xff3e393c |
|---|
| 42 | //int get_flash_params_count(void) { return 0x9f; } // Found @0xff205db4 |
|---|
| 43 | |
|---|
| 44 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 45 | //#define SD_READONLY_FLAG 0x00000002 // Found @0xff434b6c, levent 0x20a |
|---|
| 46 | //#define SD_READONLY_IDX 1 |
|---|
| 47 | //#define USB_MASK 0x40000000 // Found @0xff434be4, levent 0x202 |
|---|
| 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_UP ,0x00000400 }, // Found @0xff434aec, levent 0x04 |
|---|
| 53 | // { 0, KEY_DOWN ,0x00000800 }, // Found @0xff434af4, levent 0x05 |
|---|
| 54 | // { 0, KEY_LEFT ,0x00001000 }, // Found @0xff434afc, levent 0x06 |
|---|
| 55 | // { 0, KEY_RIGHT ,0x00002000 }, // Found @0xff434b04, levent 0x07 |
|---|
| 56 | // { 0, KEY_SET ,0x00004000 }, // Found @0xff434b0c, levent 0x08 |
|---|
| 57 | // { 0, KEY_DISPLAY ,0x00020000 }, // Found @0xff434b24, levent 0x0a |
|---|
| 58 | // { 0, KEY_MENU ,0x00040000 }, // Found @0xff434b2c, levent 0x09 |
|---|
| 59 | // { 2, KEY_SHOOT_FULL ,0x0000c000 }, // Found @0xff434bac, levent 0x01 |
|---|
| 60 | // { 2, KEY_SHOOT_FULL_ONLY ,0x00008000 }, // Found @0xff434bac, levent 0x01 |
|---|
| 61 | // { 2, KEY_SHOOT_HALF ,0x00004000 }, // Found @0xff434ba4, levent 0x00 |
|---|
| 62 | // { 0, 0, 0 } |
|---|
| 63 | //}; |
|---|
| 64 | |
|---|
| 65 | // Values below go in 'platform_camera.h': |
|---|
| 66 | //#define CAM_DRYOS 1 |
|---|
| 67 | //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher |
|---|
| 68 | //#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher |
|---|
| 69 | //#define CAM_RAW_ROWPIX 4176 // Found @0xff18e04c |
|---|
| 70 | //#define CAM_RAW_ROWS 3060 // Found @0xff18e058 |
|---|
| 71 | //#undef CAM_UNCACHED_BIT |
|---|
| 72 | //#define CAM_UNCACHED_BIT 0x40000000 // Found @0xff02bea8 |
|---|
| 73 | |
|---|
| 74 | // Stubs below matched 100%. |
|---|
| 75 | // Name Address Comp to stubs_entry_2.S |
|---|
| 76 | NSTUB(AllocateMemory ,0xff359764) //101 |
|---|
| 77 | NSTUB(AllocateUncacheableMemory ,0xff02be60) //112 |
|---|
| 78 | NSTUB(Close ,0xff0275e4) //101 |
|---|
| 79 | NSTUB(CreateTask ,0xff00eaf0) //101 |
|---|
| 80 | NSTUB(DebugAssert ,0xff00edc8) //111 |
|---|
| 81 | NSTUB(DeleteFile_Fut ,0xff026efc) //112 |
|---|
| 82 | NSTUB(DoAFLock ,0xff029330) //102 |
|---|
| 83 | NSTUB(EnterToCompensationEVF ,0xff029704) //104 |
|---|
| 84 | NSTUB(ExecuteEventProcedure ,0xff08d004) // 1 |
|---|
| 85 | NSTUB(ExitFromCompensationEVF ,0xff029748) //104 |
|---|
| 86 | NSTUB(ExitTask ,0xff00ed80) //101 |
|---|
| 87 | NSTUB(ExpCtrlTool_StartContiAE ,0xff037bf0) //104 |
|---|
| 88 | NSTUB(ExpCtrlTool_StopContiAE ,0xff037cd0) //104 |
|---|
| 89 | NSTUB(Fclose_Fut ,0xff027078) //101 |
|---|
| 90 | NSTUB(Feof_Fut ,0xff027264) // 1 |
|---|
| 91 | NSTUB(Fflush_Fut ,0xff0272a0) // 1 |
|---|
| 92 | NSTUB(Fgets_Fut ,0xff0271cc) // 6 |
|---|
| 93 | NSTUB(Fopen_Fut ,0xff027038) //101 |
|---|
| 94 | NSTUB(Fread_Fut ,0xff027124) //101 |
|---|
| 95 | NSTUB(FreeMemory ,0xff35975c) //101 |
|---|
| 96 | NSTUB(FreeUncacheableMemory ,0xff02bea0) //112 |
|---|
| 97 | NSTUB(Fseek_Fut ,0xff027218) //101 |
|---|
| 98 | NSTUB(Fwrite_Fut ,0xff027178) //101 |
|---|
| 99 | NSTUB(GetBatteryTemperature ,0xff05bbe8) //102 |
|---|
| 100 | NSTUB(GetCCDTemperature ,0xff05bb74) //102 |
|---|
| 101 | NSTUB(GetCurrentAvValue ,0xff1bebbc) //102 |
|---|
| 102 | NSTUB(GetDrive_ClusterSize ,0xff06a60c) // 6 |
|---|
| 103 | NSTUB(GetDrive_FreeClusters ,0xff06a664) // 6 |
|---|
| 104 | NSTUB(GetDrive_TotalClusters ,0xff06a63c) // 6 |
|---|
| 105 | NSTUB(GetFocusLensSubjectDistance ,0xff1bca78) //102 |
|---|
| 106 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xff1bcde4) // 3 |
|---|
| 107 | NSTUB(GetImageFolder ,0xff19765c) // 6 |
|---|
| 108 | NSTUB(GetKbdState ,0xff057c04) //109 |
|---|
| 109 | NSTUB(GetMemInfo ,0xff00a2b8) // 3 |
|---|
| 110 | NSTUB(GetOpticalTemperature ,0xff05bc5c) //102 |
|---|
| 111 | NSTUB(GetParameterData ,0xff205d74) //101 |
|---|
| 112 | NSTUB(GetPropertyCase ,0xff0910a4) //102 |
|---|
| 113 | NSTUB(GetSystemTime ,0xff3597bc) //101 |
|---|
| 114 | NSTUB(GetZoomLensCurrentPoint ,0xff071ffc) //102 |
|---|
| 115 | NSTUB(GetZoomLensCurrentPosition ,0xff1c4fb4) //102 |
|---|
| 116 | NSTUB(GiveSemaphore ,0xff02b5e0) //112 |
|---|
| 117 | NSTUB(IsStrobeChargeCompleted ,0xff0efe04) //102 |
|---|
| 118 | NSTUB(LEDDrive ,0xff056e58) //101 |
|---|
| 119 | NSTUB(LocalTime ,0xff08a9c8) // 6 |
|---|
| 120 | NSTUB(LockMainPower ,0xff0981b4) //103 |
|---|
| 121 | NSTUB(Lseek ,0xff027800) //101 |
|---|
| 122 | NSTUB(MakeDirectory_Fut ,0xff026f70) // 6 |
|---|
| 123 | NSTUB(MakeSDCardBootable ,0xff06a89c) //105 |
|---|
| 124 | NSTUB(MoveFocusLensToDistance ,0xff3dc66c) //102 |
|---|
| 125 | NSTUB(MoveIrisWithAv ,0xff355074) //102 |
|---|
| 126 | NSTUB(MoveZoomLensWithPoint ,0xff3558d0) //102 |
|---|
| 127 | NSTUB(NewTaskShell ,0xff090a24) //101 |
|---|
| 128 | NSTUB(Open ,0xff02751c) //101 |
|---|
| 129 | NSTUB(PB2Rec ,0xff09b3ac) //104 |
|---|
| 130 | NSTUB(PT_MoveDigitalZoomToWide ,0xff0790a8) //102 |
|---|
| 131 | NSTUB(PT_MoveOpticalZoomAt ,0xff079080) //102 |
|---|
| 132 | NSTUB(PT_PlaySound ,0xff085438) // 6 |
|---|
| 133 | NSTUB(PostLogicalEventForNotPowerType ,0xff095b98) //103 |
|---|
| 134 | NSTUB(PostLogicalEventToUI ,0xff095be4) //103 |
|---|
| 135 | NSTUB(PutInNdFilter ,0xff3da150) //102 |
|---|
| 136 | NSTUB(PutOutNdFilter ,0xff3da188) //102 |
|---|
| 137 | NSTUB(Read ,0xff00ad74) //101 |
|---|
| 138 | NSTUB(ReadFastDir ,0xff3396cc) // 6 |
|---|
| 139 | NSTUB(Rec2PB ,0xff099b1c) //104 |
|---|
| 140 | NSTUB(RefreshPhysicalScreen ,0xff0b1a24) //104 |
|---|
| 141 | NSTUB(Remove ,0xff027758) // 6 |
|---|
| 142 | NSTUB(RenameFile_Fut ,0xff026e68) // 6 |
|---|
| 143 | NSTUB(Restart ,0xff02d6a0) //106 |
|---|
| 144 | NSTUB(ScreenLock ,0xff0b2c50) // 4 |
|---|
| 145 | NSTUB(ScreenUnlock ,0xff0b2cb4) // 3 |
|---|
| 146 | NSTUB(SetAE_ShutterSpeed ,0xff3dfcb0) //102 |
|---|
| 147 | NSTUB(SetAutoShutdownTime ,0xff098228) //103 |
|---|
| 148 | NSTUB(SetCurrentCaptureModeType ,0xff0a1650) //101 |
|---|
| 149 | NSTUB(SetFileTimeStamp ,0xff027970) // 6 |
|---|
| 150 | NSTUB(SetLogicalEventActive ,0xff097ef0) //101 |
|---|
| 151 | NSTUB(SetParameterData ,0xff205c50) //101 |
|---|
| 152 | NSTUB(SetPropertyCase ,0xff090f1c) //102 |
|---|
| 153 | NSTUB(SetScriptMode ,0xff097f8c) //101 |
|---|
| 154 | NSTUB(SleepTask ,0xff02b88c) //101 |
|---|
| 155 | NSTUB(TakeSemaphore ,0xff02b510) //101 |
|---|
| 156 | NSTUB(TurnOffBackLight ,0xff0a96b0) //104 |
|---|
| 157 | NSTUB(TurnOnBackLight ,0xff0a9698) //104 |
|---|
| 158 | NSTUB(UIFS_WriteFirmInfoToFile ,0xff1f15b4) //101 |
|---|
| 159 | NSTUB(UnlockAF ,0xff029368) //102 |
|---|
| 160 | NSTUB(UnlockMainPower ,0xff098108) //103 |
|---|
| 161 | NSTUB(VbattGet ,0xff022364) //101 |
|---|
| 162 | NSTUB(Write ,0xff027638) //101 |
|---|
| 163 | NSTUB(WriteSDCard ,0xff1ab46c) //108 |
|---|
| 164 | NSTUB(_log ,0xff430340) //111 |
|---|
| 165 | NSTUB(_log10 ,0xff430880) //112 |
|---|
| 166 | NSTUB(_pow ,0xff4309f8) //114 |
|---|
| 167 | NSTUB(_sqrt ,0xff43261c) // 6 |
|---|
| 168 | NSTUB(add_ptp_handler ,0xff2dfff0) // 6 |
|---|
| 169 | NSTUB(apex2us ,0xff297c24) // 4 |
|---|
| 170 | NSTUB(close ,0xff00abd0) // 6 |
|---|
| 171 | NSTUB(closedir ,0xff339528) // 4 |
|---|
| 172 | NSTUB(err_init_task ,0xff00602c) // 4 |
|---|
| 173 | NSTUB(exmem_alloc ,0xff08b988) //101 |
|---|
| 174 | NSTUB(free ,0xff004264) //112 |
|---|
| 175 | NSTUB(kbd_p1_f ,0xff024e28) //109 |
|---|
| 176 | NSTUB(kbd_p1_f_cont ,0xff024e34) //109 |
|---|
| 177 | NSTUB(kbd_p2_f ,0xff024600) //109 |
|---|
| 178 | NSTUB(kbd_read_keys ,0xff024dd8) //109 |
|---|
| 179 | NSTUB(kbd_read_keys_r2 ,0xff05730c) //109 |
|---|
| 180 | NSTUB(lseek ,0xff027800) //101 |
|---|
| 181 | NSTUB(malloc ,0xff00420c) //112 |
|---|
| 182 | NSTUB(memcmp ,0xff010a48) //101 |
|---|
| 183 | NSTUB(memcpy ,0xff03169c) //101 |
|---|
| 184 | NSTUB(memset ,0xff295c5c) //101 |
|---|
| 185 | NSTUB(mkdir ,0xff027a80) // 6 |
|---|
| 186 | NSTUB(mktime_ext ,0xff0b3bc0) // 1 |
|---|
| 187 | NSTUB(open ,0xff00ab20) // 6 |
|---|
| 188 | NSTUB(opendir ,0xff339578) // 6 |
|---|
| 189 | NSTUB(openfastdir ,0xff339578) // 6 |
|---|
| 190 | NSTUB(qsort ,0xff3ae9d0) // 6 |
|---|
| 191 | NSTUB(rand ,0xff295d98) // 6 |
|---|
| 192 | NSTUB(read ,0xff00ad74) //101 |
|---|
| 193 | NSTUB(readfastdir ,0xff3396cc) // 6 |
|---|
| 194 | NSTUB(rename ,0xff026e68) // 6 |
|---|
| 195 | NSTUB(set_control_event ,0xff097a94) //111 |
|---|
| 196 | NSTUB(srand ,0xff295d8c) // 6 |
|---|
| 197 | NSTUB(stat ,0xff027848) // 3 |
|---|
| 198 | NSTUB(strcat ,0xff0b3378) // 1 |
|---|
| 199 | NSTUB(strchr ,0xff0040d8) // 1 |
|---|
| 200 | NSTUB(strcmp ,0xff010a04) //101 |
|---|
| 201 | NSTUB(strcpy ,0xff0109ec) //101 |
|---|
| 202 | NSTUB(strftime ,0xff0b35c0) //113 |
|---|
| 203 | NSTUB(strlen ,0xff004124) //101 |
|---|
| 204 | NSTUB(strncmp ,0xff00408c) // 1 |
|---|
| 205 | NSTUB(strncpy ,0xff004050) // 1 |
|---|
| 206 | NSTUB(strrchr ,0xff0040fc) // 1 |
|---|
| 207 | NSTUB(strtol ,0xff03199c) //101 |
|---|
| 208 | NSTUB(strtolx ,0xff0317a0) //109 |
|---|
| 209 | DEF(task_CaptSeq ,0xff07c46c) //110 |
|---|
| 210 | DEF(task_ExpDrv ,0xff0cc430) //110 |
|---|
| 211 | DEF(task_InitFileModules ,0xff09bbb0) //110 |
|---|
| 212 | DEF(task_MovieRecord ,0xff07854c) //110 |
|---|
| 213 | DEF(task_PhySw ,0xff024964) //110 |
|---|
| 214 | DEF(task_RotaryEncoder ,0xff057f64) //110 |
|---|
| 215 | NSTUB(time ,0xff08afa4) // 6 |
|---|
| 216 | NSTUB(vsprintf ,0xff0109ac) // 6 |
|---|
| 217 | NSTUB(write ,0xff027638) //101 |
|---|