| 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.00E |
|---|
| 7 | // Canon PowerShot A590 IS |
|---|
| 8 | |
|---|
| 9 | // Values for makefile.inc |
|---|
| 10 | // PLATFORMID = 12662 (0x3176) // Found @ 0xfffe0130 |
|---|
| 11 | // MAXRAMADDR = 0x01ffffff |
|---|
| 12 | // KEYSYS = d3enc // Found @ 0xffff1ad8 |
|---|
| 13 | // NEED_ENCODED_DISKBOOT = 1 // Found @ 0xffff1ab8 |
|---|
| 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 | //NSTUB(kbd_pwr_off ,0xffc356b8) // 2 67% *** != 0xffc356c8 |
|---|
| 18 | NSTUB(kbd_pwr_on ,0xffc35678) // 2 86% |
|---|
| 19 | //NSTUB(rename ,0xffc133e0) // 1 *** != 0xffc13c5c |
|---|
| 20 | //NSTUB(write ,0xffc13c34) //101 *** != 0xffc0a1bc |
|---|
| 21 | |
|---|
| 22 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 23 | // Firmware modemap table found @ffc65928 -> ffc62504 -> ffd3423c -> ffdfe964 -> ffeaed68 |
|---|
| 24 | // Mode 32791 in firmware but not in current modemap |
|---|
| 25 | |
|---|
| 26 | // Values below go in 'stubs_min.S': |
|---|
| 27 | //DEF(physw_status ,0x0000f11c) // Found @0xffc11c30, stubs_min = 0x0000f11c (0xF11C) |
|---|
| 28 | //DEF(physw_run ,0x00001bf0) // Found @0xffc118cc, stubs_min = 0x00001bf0 (0x1BF0) |
|---|
| 29 | //DEF(levent_table ,0xffe8de18) // Found @0xffe8de18, stubs_min = 0xffe8de18 (0xFFE8DE18) |
|---|
| 30 | //DEF(FlashParamsTable ,0xffeaef24) // Found @0xffeaef24, stubs_min = 0xffeaef24 (0xFFEAEF24) |
|---|
| 31 | //DEF(movie_status ,0x000053c8) // Found @0xffc4b958, stubs_min = 0x000053c8 (0x53c8) |
|---|
| 32 | //DEF(canon_menu_active ,0x00008d20) // Found @0xffd29ef8, stubs_min = 0x00008d20 (0x8D20) |
|---|
| 33 | //DEF(canon_shoot_menu_active ,0x00009641) // Found @0xffd444a4, stubs_min = 0x00009641 (0x9641) |
|---|
| 34 | //DEF(playrec_mode ,0x00005538) // Found @0xffc52108, stubs_min = 0x00005538 (0x5534+4) |
|---|
| 35 | //DEF(zoom_status ,0x0000bfbc) // Found @0xffe00164, stubs_min = 0x0000bfbc (0xBFBC) |
|---|
| 36 | //DEF(some_flag_for_af_scan ,0x0000bd3c) // Found @0xffdee828, stubs_min = 0x0000bd3c (0xBD3C) |
|---|
| 37 | |
|---|
| 38 | // Values below go in 'lib.c': |
|---|
| 39 | //void *vid_get_bitmap_fb() { return (void*)0x10361000; } // Found @0xffc31338 |
|---|
| 40 | //void *vid_get_viewport_fb() { return (void*)0x10659e80; } // Found @0xffe42a30 |
|---|
| 41 | //char *camera_jpeg_count_str() { return (char*)0x00049344; } // Found @0xffd727b0 |
|---|
| 42 | //long hook_raw_size() { return 0x009e6fc4; } // Found @0xffe44cbc |
|---|
| 43 | //int get_flash_params_count(void) { return 0x73; } // Found @0xffd352f8 |
|---|
| 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 @0xffe6eda0, levent 0x90a |
|---|
| 47 | //#define SD_READONLY_IDX 2 |
|---|
| 48 | //#define USB_MASK 0x00040000 // Found @0xffe6edac, 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 | // { 1, KEY_SHOOT_FULL ,0xc0000000 }, // Found @0xffe6ecc8, levent 0x01 |
|---|
| 54 | // { 1, KEY_SHOOT_FULL_ONLY ,0x80000000 }, // Found @0xffe6ecc8, levent 0x01 |
|---|
| 55 | // { 1, KEY_SHOOT_HALF ,0x40000000 }, // Found @0xffe6ecbc, levent 0x00 |
|---|
| 56 | // { 2, KEY_ZOOM_IN ,0x00000004 }, // Found @0xffe6ecec, levent 0x02 |
|---|
| 57 | // { 2, KEY_ZOOM_OUT ,0x00000008 }, // Found @0xffe6ecf8, levent 0x03 |
|---|
| 58 | // { 2, KEY_UP ,0x00000010 }, // Found @0xffe6ed04, levent 0x04 |
|---|
| 59 | // { 2, KEY_DOWN ,0x00000020 }, // Found @0xffe6ed10, levent 0x05 |
|---|
| 60 | // { 2, KEY_RIGHT ,0x00000040 }, // Found @0xffe6ed1c, levent 0x07 |
|---|
| 61 | // { 2, KEY_LEFT ,0x00000080 }, // Found @0xffe6ed28, levent 0x06 |
|---|
| 62 | // { 2, KEY_SET ,0x00000100 }, // Found @0xffe6ed34, levent 0x08 |
|---|
| 63 | // { 2, KEY_MENU ,0x00000200 }, // Found @0xffe6ed40, levent 0x09 |
|---|
| 64 | // { 2, KEY_DISPLAY ,0x00000400 }, // Found @0xffe6ed4c, levent 0x0a |
|---|
| 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 @0xffe3c240 |
|---|
| 71 | //#define CAM_RAW_ROWS 2490 // Found @0xffe3c244 |
|---|
| 72 | //#undef CAM_UNCACHED_BIT |
|---|
| 73 | //#define CAM_UNCACHED_BIT 0x10000000 // Found @0xffc18320 |
|---|
| 74 | |
|---|
| 75 | // Stubs below matched 100%. |
|---|
| 76 | // Name Address Comp to stubs_entry_2.S |
|---|
| 77 | NSTUB(AllocateMemory ,0xffdf1d74) //101 |
|---|
| 78 | NSTUB(AllocateUncacheableMemory ,0xffc182e4) //112 |
|---|
| 79 | NSTUB(Close ,0xffc13b88) //101 |
|---|
| 80 | NSTUB(CreateTask ,0xffc0b8e0) //101 |
|---|
| 81 | NSTUB(DebugAssert ,0xffc0bdb8) //111 |
|---|
| 82 | NSTUB(DeleteFile_Fut ,0xffc13434) //112 |
|---|
| 83 | //NSTUB(DoAFLock ,0xffc15b04) //102 == 0xffc15b04 |
|---|
| 84 | NSTUB(EnterToCompensationEVF ,0xffc15f54) //104 |
|---|
| 85 | //NSTUB(ExecuteEventProcedure ,0xffc59eb4) // 1 == 0xffc59eb4 |
|---|
| 86 | //NSTUB(ExitFromCompensationEVF ,0xffc15fa4) //104 == 0xffc15fa4 |
|---|
| 87 | NSTUB(ExitTask ,0xffc0bb70) //101 |
|---|
| 88 | //NSTUB(ExpCtrlTool_StartContiAE ,0xffc21f10) //104 == 0xffc21f10 |
|---|
| 89 | //NSTUB(ExpCtrlTool_StopContiAE ,0xffc22054) //104 == 0xffc22054 |
|---|
| 90 | NSTUB(Fclose_Fut ,0xffc135b0) //101 |
|---|
| 91 | NSTUB(Feof_Fut ,0xffc1379c) // 1 |
|---|
| 92 | NSTUB(Fflush_Fut ,0xffc137d8) // 1 |
|---|
| 93 | NSTUB(Fgets_Fut ,0xffc13704) // 1 |
|---|
| 94 | NSTUB(Fopen_Fut ,0xffc13570) //101 |
|---|
| 95 | NSTUB(Fread_Fut ,0xffc1365c) //101 |
|---|
| 96 | NSTUB(FreeMemory ,0xffdf1d6c) //101 |
|---|
| 97 | NSTUB(FreeUncacheableMemory ,0xffc18318) //112 |
|---|
| 98 | NSTUB(Fseek_Fut ,0xffc13750) //101 |
|---|
| 99 | NSTUB(Fwrite_Fut ,0xffc136b0) //101 |
|---|
| 100 | NSTUB(GetBatteryTemperature ,0xffc377b4) //102 |
|---|
| 101 | NSTUB(GetCCDTemperature ,0xffc37744) //102 |
|---|
| 102 | NSTUB(GetCurrentAvValue ,0xffd0ce14) //102 |
|---|
| 103 | NSTUB(GetDrive_ClusterSize ,0xffc41688) // 1 |
|---|
| 104 | NSTUB(GetDrive_FreeClusters ,0xffc416f0) // 1 |
|---|
| 105 | NSTUB(GetDrive_TotalClusters ,0xffc416bc) // 1 |
|---|
| 106 | NSTUB(GetFocusLensSubjectDistance ,0xffd0b310) //102 |
|---|
| 107 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xffd0b61c) // 1 |
|---|
| 108 | NSTUB(GetKbdState ,0xffc35644) //109 |
|---|
| 109 | NSTUB(GetMemInfo ,0xffc03c40) // 1 |
|---|
| 110 | NSTUB(GetOpticalTemperature ,0xffc37824) //102 |
|---|
| 111 | NSTUB(GetParameterData ,0xffd352b8) //101 |
|---|
| 112 | NSTUB(GetPropertyCase ,0xffc5dab4) //102 |
|---|
| 113 | NSTUB(GetSystemTime ,0xffdf1dcc) //101 |
|---|
| 114 | NSTUB(GetZoomLensCurrentPoint ,0xffd0fcc0) //102 |
|---|
| 115 | NSTUB(GetZoomLensCurrentPosition ,0xffde89e0) //102 |
|---|
| 116 | NSTUB(GiveSemaphore ,0xffc0b844) //112 |
|---|
| 117 | NSTUB(IsStrobeChargeCompleted ,0xffc9e3f0) //102 |
|---|
| 118 | //NSTUB(LEDDrive ,0xffc34ce0) //103 == 0xffc34ce0 |
|---|
| 119 | NSTUB(LocalTime ,0xffc57bd4) // 1 |
|---|
| 120 | NSTUB(LockMainPower ,0xffc6211c) //103 |
|---|
| 121 | NSTUB(Lseek ,0xffc13cc8) //101 |
|---|
| 122 | NSTUB(MakeDirectory_Fut ,0xffc134a8) // 1 |
|---|
| 123 | NSTUB(MoveFocusLensToDistance ,0xffe3f55c) //102 |
|---|
| 124 | NSTUB(MoveIrisWithAv ,0xffded984) //102 |
|---|
| 125 | NSTUB(MoveZoomLensWithPoint ,0xffdedfcc) //102 |
|---|
| 126 | NSTUB(NewTaskShell ,0xffc5d578) //103 |
|---|
| 127 | NSTUB(Open ,0xffc13b60) //101 |
|---|
| 128 | NSTUB(PB2Rec ,0xffc64d3c) //104 |
|---|
| 129 | NSTUB(PT_MoveDigitalZoomToWide ,0xffc4cfcc) //102 |
|---|
| 130 | NSTUB(PT_MoveOpticalZoomAt ,0xffc4cfa4) //102 |
|---|
| 131 | NSTUB(PT_PlaySound ,0xffc4c8b8) //102 |
|---|
| 132 | NSTUB(PostLogicalEventForNotPowerType ,0xffc6178c) //103 |
|---|
| 133 | NSTUB(PostLogicalEventToUI ,0xffc617d8) //103 |
|---|
| 134 | NSTUB(PutInNdFilter ,0xffe3d8d8) //102 |
|---|
| 135 | NSTUB(PutOutNdFilter ,0xffe3d910) //102 |
|---|
| 136 | NSTUB(Read ,0xffc0a15c) //101 |
|---|
| 137 | NSTUB(ReadFastDir ,0xffdd96c0) // 1 |
|---|
| 138 | NSTUB(Rec2PB ,0xffc64d6c) //104 |
|---|
| 139 | NSTUB(RefreshPhysicalScreen ,0xffd7c830) //104 |
|---|
| 140 | NSTUB(Remove ,0xffc13bd0) // 1 |
|---|
| 141 | NSTUB(RenameFile_Fut ,0xffc133e0) // 1 |
|---|
| 142 | NSTUB(Restart ,0xffc19b5c) //106 |
|---|
| 143 | //NSTUB(SetAE_ShutterSpeed ,0xffe41c40) //102 == 0xffe41c40 |
|---|
| 144 | NSTUB(SetAutoShutdownTime ,0xffc62190) //103 |
|---|
| 145 | NSTUB(SetCurrentCaptureModeType ,0xffc68210) //101 |
|---|
| 146 | NSTUB(SetFileTimeStamp ,0xffc13e64) // 1 |
|---|
| 147 | NSTUB(SetLogicalEventActive ,0xffc61eb8) // 1 |
|---|
| 148 | NSTUB(SetParameterData ,0xffd35228) //101 |
|---|
| 149 | NSTUB(SetPropertyCase ,0xffc5d9b4) //102 |
|---|
| 150 | //NSTUB(SetScriptMode ,0xffc61f08) //101 == 0xffc61f08 |
|---|
| 151 | NSTUB(SleepTask ,0xffc18168) //101 |
|---|
| 152 | NSTUB(TakeSemaphore ,0xffc0b774) //101 |
|---|
| 153 | NSTUB(TurnOffBackLight ,0xffc6c570) //104 |
|---|
| 154 | NSTUB(TurnOnBackLight ,0xffc6c558) //104 |
|---|
| 155 | //NSTUB(UIFS_WriteFirmInfoToFile ,0xffd2aa58) //103 == 0xffd2aa58 |
|---|
| 156 | //NSTUB(UnlockAF ,0xffc15c1c) //102 == 0xffc15c1c |
|---|
| 157 | NSTUB(UnlockMainPower ,0xffc62070) //103 |
|---|
| 158 | //NSTUB(UnsetZoomForMovie ,0xffd3a34c) //104 == 0xffd3a34c |
|---|
| 159 | NSTUB(UpdateMBROnFlash ,0xffc414c8) //105 |
|---|
| 160 | NSTUB(VbattGet ,0xffc105f4) //103 |
|---|
| 161 | NSTUB(Write ,0xffc13c34) //101 |
|---|
| 162 | //NSTUB(WriteSDCard ,0xffd01548) //108 == 0xffd01548 |
|---|
| 163 | NSTUB(_log ,0xffe67ddc) //111 |
|---|
| 164 | NSTUB(_log10 ,0xffe66d20) //112 |
|---|
| 165 | NSTUB(_pow ,0xffe66e90) //114 |
|---|
| 166 | NSTUB(_sqrt ,0xffe69144) // 1 |
|---|
| 167 | NSTUB(add_ptp_handler ,0xffdaa4e8) // 1 |
|---|
| 168 | //NSTUB(apex2us ,0xffd7dd6c) // 4 == 0xffd7dd6c |
|---|
| 169 | NSTUB(close ,0xffc09f74) // 1 |
|---|
| 170 | NSTUB(closedir ,0xffdd9790) // 1 |
|---|
| 171 | NSTUB(err_init_task ,0xffc04e98) // 4 |
|---|
| 172 | NSTUB(exmem_alloc ,0xffc5869c) //103 |
|---|
| 173 | NSTUB(free ,0xffc03a98) //112 |
|---|
| 174 | NSTUB(kbd_p1_f ,0xffc11d34) //109 |
|---|
| 175 | NSTUB(kbd_p1_f_cont ,0xffc11d40) //109 |
|---|
| 176 | NSTUB(kbd_p2_f ,0xffc1156c) //109 |
|---|
| 177 | NSTUB(kbd_read_keys ,0xffc11c30) //109 |
|---|
| 178 | NSTUB(kbd_read_keys_r2 ,0xffc35104) //109 |
|---|
| 179 | NSTUB(lseek ,0xffc13cc8) //101 |
|---|
| 180 | NSTUB(malloc ,0xffc039c4) //112 |
|---|
| 181 | NSTUB(memcmp ,0xffc0d90c) //101 |
|---|
| 182 | NSTUB(memcpy ,0xffc74f88) //101 |
|---|
| 183 | NSTUB(memset ,0xffd7cbe4) //101 |
|---|
| 184 | NSTUB(mkdir ,0xffc13f2c) // 1 |
|---|
| 185 | // ALT: NSTUB(mkdir, 0xffc13fcc) // 1 32/0 |
|---|
| 186 | NSTUB(mktime_ext ,0xffc757f4) // 1 |
|---|
| 187 | NSTUB(open ,0xffc09ec4) // 1 |
|---|
| 188 | NSTUB(opendir ,0xffdd962c) // 1 |
|---|
| 189 | NSTUB(openfastdir ,0xffdd962c) // 1 |
|---|
| 190 | NSTUB(qsort ,0xffd7d0ec) // 1 |
|---|
| 191 | NSTUB(rand ,0xffc0da14) // 1 |
|---|
| 192 | NSTUB(read ,0xffc0a15c) //101 |
|---|
| 193 | NSTUB(readfastdir ,0xffdd96c0) // 1 |
|---|
| 194 | NSTUB(reboot_fw_update ,0xffdddf94) // 5 |
|---|
| 195 | NSTUB(set_control_event ,0xffc61c0c) // 1 |
|---|
| 196 | NSTUB(srand ,0xffc0da08) // 1 |
|---|
| 197 | NSTUB(stat ,0xffc13d94) // 1 |
|---|
| 198 | NSTUB(strcat ,0xffc74d74) // 1 |
|---|
| 199 | NSTUB(strchr ,0xffc74dfc) // 1 |
|---|
| 200 | NSTUB(strcmp ,0xffc0d8a4) //101 |
|---|
| 201 | NSTUB(strcpy ,0xffc0d88c) //101 |
|---|
| 202 | NSTUB(strftime ,0xffc751fc) // 1 |
|---|
| 203 | NSTUB(strlen ,0xffc0d8e8) //101 |
|---|
| 204 | NSTUB(strncmp ,0xffc74db0) // 1 |
|---|
| 205 | NSTUB(strncpy ,0xffc1dcc8) // 1 |
|---|
| 206 | NSTUB(strrchr ,0xffc74e20) // 1 |
|---|
| 207 | NSTUB(strtol ,0xffc1df00) //101 |
|---|
| 208 | NSTUB(strtolx ,0xffc1dd04) //109 |
|---|
| 209 | DEF(task_CaptSeq ,0xffc4f0f8) //107 |
|---|
| 210 | DEF(task_ExpDrv ,0xffc973e4) //110 |
|---|
| 211 | DEF(task_InitFileModules ,0xffc657b4) //107 |
|---|
| 212 | DEF(task_MovieRecord ,0xffc4bbbc) //107 |
|---|
| 213 | DEF(task_PhySw ,0xffc118c8) //107 |
|---|
| 214 | NSTUB(time ,0xffc57a88) // 1 |
|---|
| 215 | NSTUB(vsprintf ,0xffc0d80c) // 1 |
|---|