| 1 | // !!! THIS FILE IS GENERATED. DO NOT EDIT. !!! |
|---|
| 2 | #include "stubs_asm.h" |
|---|
| 3 | |
|---|
| 4 | // Camera info: |
|---|
| 5 | // DRYOS R43 (DRYOS version 2.3, release #0043) |
|---|
| 6 | // Firmware Ver GM1.00D |
|---|
| 7 | // Canon PowerShot A490 |
|---|
| 8 | |
|---|
| 9 | // Values for makefile.inc |
|---|
| 10 | // PLATFORMOSVER = 43 |
|---|
| 11 | // PLATFORMID = 12784 (0x31f0) // Found @ 0xfffe0130 |
|---|
| 12 | // MAXRAMADDR = 0x01ffffff |
|---|
| 13 | // KEYSYS = d4a // Found @ 0xffff1a0c |
|---|
| 14 | // NEED_ENCODED_DISKBOOT = 4 // Found @ 0xffff1a1c |
|---|
| 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(EnterToCompensationEVF ,0xffc27608) //104 *** != 0xffc27604 |
|---|
| 19 | //NSTUB(GetBatteryTemperature ,0xffc45624) //102 *** != 0xffc00b20 |
|---|
| 20 | //NSTUB(GetDrive_FreeClusters ,0xffc23810) // 3 *** != 0xffc5131c |
|---|
| 21 | // ALT: NSTUB(GetDrive_FreeClusters, 0xffc5131c) // 4 9/0 |
|---|
| 22 | //NSTUB(SetScriptMode ,0xffc6caf4) //101 *** != 0xffc00f70 |
|---|
| 23 | //NSTUB(TurnOffBackLight ,0xffc77d38) //104 *** != 0xffc77f4c |
|---|
| 24 | //NSTUB(kbd_pwr_off ,0xffc435ec) // 2 64% *** != 0x00000000 |
|---|
| 25 | // ERROR: kbd_pwr_on is not found. //--- --- *** != 0x00000000 |
|---|
| 26 | //NSTUB(kbd_read_keys_r2 ,0xffc42fb8) //109 *** != 0xffc42fb0 |
|---|
| 27 | //NSTUB(rename ,0xffc259f0) // 4 *** != 0xffc261e8 |
|---|
| 28 | |
|---|
| 29 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 30 | // Firmware modemap table found @ffc705d8 -> ffc6d124 -> ffd2df78 -> ffe07c8c -> ffeca51c |
|---|
| 31 | // No problems found with modemap table. |
|---|
| 32 | |
|---|
| 33 | // Values below can be overridden in 'stubs_min.S': |
|---|
| 34 | DEF(physw_status ,0x0002e754) // Found @0xffc23b2c |
|---|
| 35 | DEF(physw_run ,0x00001bf0) // Found @0xffc23790 |
|---|
| 36 | DEF(levent_table ,0xffe9fe64) // Found @0xffe9fe64 |
|---|
| 37 | DEF(FlashParamsTable ,0xffeca70c) // Found @0xffeca70c |
|---|
| 38 | DEF(movie_status ,0x00005470) // Found @0xffd0c5f4 |
|---|
| 39 | DEF(full_screen_refresh ,0x000072e8) // Found @0xffd79414 |
|---|
| 40 | DEF(canon_menu_active ,0x00002a3c) // Found @0xffc69fd8 |
|---|
| 41 | DEF(canon_shoot_menu_active ,0x00006571) // Found @0xffd3f9c0 |
|---|
| 42 | DEF(playrec_mode ,0x00002798) // Found @0xffc5d7d8 |
|---|
| 43 | DEF(zoom_status ,0x000095a8) // Found @0xffe0ab68 |
|---|
| 44 | DEF(some_flag_for_af_scan ,0x00005818) // Found @0xffd0ef60 |
|---|
| 45 | // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c). |
|---|
| 46 | // each entry contains 3 int value(s), the first is the zoom focus length. |
|---|
| 47 | // there are 7 entries in the table - set NUM_FL to 7 |
|---|
| 48 | DEF(focus_len_table ,0xfffe2990) // Found @0xfffe2990 |
|---|
| 49 | DEF(zoom_busy ,0x000053f0) // Found @0xffd09850 |
|---|
| 50 | DEF(focus_busy ,0x00005300) // Found @0xffd06e88 |
|---|
| 51 | DEF(recreview_hold ,0x0000302c) // Found @0xffc7578c |
|---|
| 52 | |
|---|
| 53 | // Values below go in 'lib.c': |
|---|
| 54 | //void *vid_get_bitmap_fb() { return (void*)0x10361000; } // Found @0xffc3f024 |
|---|
| 55 | //void *vid_get_viewport_fb() { return (void*)0x10648cc0; } // Found @0xffe53bd0 |
|---|
| 56 | //void *vid_get_viewport_fb_d() { return (void*)(*(int*)(0x2540+0x54)); } // Found @0xffc528c4 & 0xffc528fc |
|---|
| 57 | //char *camera_jpeg_count_str() { return (char*)0x0007571c; } // Found @0xffd70a4c |
|---|
| 58 | //long hook_raw_size() { return 0x00ec04f0; } // Found @0xffe56f58 |
|---|
| 59 | //int get_flash_params_count(void) { return 0x94; } // Found @0xffd2f034 |
|---|
| 60 | |
|---|
| 61 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 62 | //#define SD_READONLY_FLAG 0x00040000 // Found @0xffe820bc, levent 0x90a |
|---|
| 63 | //#define SD_READONLY_IDX 2 |
|---|
| 64 | //#define USB_MASK 0x00080000 // Found @0xffe820c8, levent 0x902 |
|---|
| 65 | //#define USB_IDX 2 |
|---|
| 66 | |
|---|
| 67 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 68 | //static KeyMap keymap[] = { |
|---|
| 69 | // { 2, KEY_RIGHT ,0x00000004 }, // Found @0xffe8205c, levent 0x07 |
|---|
| 70 | // { 2, KEY_ZOOM_OUT ,0x00000040 }, // Found @0xffe82080, levent 0x03 |
|---|
| 71 | // { 2, KEY_ZOOM_IN ,0x00000080 }, // Found @0xffe8208c, levent 0x02 |
|---|
| 72 | // { 2, KEY_SET ,0x00000100 }, // Found @0xffe82098, levent 0x08 |
|---|
| 73 | // { 2, KEY_UP ,0x00100000 }, // Found @0xffe820d4, levent 0x04 |
|---|
| 74 | // { 2, KEY_DOWN ,0x00200000 }, // Found @0xffe820e0, levent 0x05 |
|---|
| 75 | // { 2, KEY_LEFT ,0x00400000 }, // Found @0xffe820ec, levent 0x06 |
|---|
| 76 | // { 2, KEY_MENU ,0x01000000 }, // Found @0xffe82104, levent 0x09 |
|---|
| 77 | // { 2, KEY_SHOOT_FULL ,0x00000030 }, // Found @0xffe82074, levent 0x01 |
|---|
| 78 | // { 2, KEY_SHOOT_FULL_ONLY ,0x00000020 }, // Found @0xffe82074, levent 0x01 |
|---|
| 79 | // { 2, KEY_SHOOT_HALF ,0x00000010 }, // Found @0xffe82068, levent 0x00 |
|---|
| 80 | // { 0, 0, 0 } |
|---|
| 81 | //}; |
|---|
| 82 | |
|---|
| 83 | // Values below go in 'platform_camera.h': |
|---|
| 84 | //#define CAM_DRYOS 1 |
|---|
| 85 | //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher |
|---|
| 86 | //#define CAM_RAW_ROWPIX 3720 // Found @0xffcea048 |
|---|
| 87 | //#define CAM_RAW_ROWS 2772 // Found @0xffcea054 |
|---|
| 88 | //#undef CAM_UNCACHED_BIT |
|---|
| 89 | //#define CAM_UNCACHED_BIT 0x10000000 // Found @0xffc29320 |
|---|
| 90 | |
|---|
| 91 | // Misc stuff |
|---|
| 92 | DEF(ctypes, 0xffe81956) |
|---|
| 93 | |
|---|
| 94 | // For capt_seq.c |
|---|
| 95 | //static long *nrflag = (long*)(0x5800-0x08); // Found @ ffd10d74 & ffd10d90 |
|---|
| 96 | |
|---|
| 97 | // Stubs below matched 100%. |
|---|
| 98 | // Name Address Comp to stubs_entry_2.S |
|---|
| 99 | NSTUB(AllocateMemory ,0xffdfa3a8) //101 |
|---|
| 100 | NSTUB(AllocateUncacheableMemory ,0xffc292dc) //112 |
|---|
| 101 | NSTUB(Close ,0xffc2610c) //101 |
|---|
| 102 | NSTUB(CreateTask ,0xffc0f1a8) //101 |
|---|
| 103 | NSTUB(DebugAssert ,0xffc0f680) //111 |
|---|
| 104 | NSTUB(DeleteDirectory_Fut ,0xffc25b68) // 1 |
|---|
| 105 | NSTUB(DeleteFile_Fut ,0xffc25a84) //112 |
|---|
| 106 | NSTUB(DoAFLock ,0xffc27558) //102 |
|---|
| 107 | NSTUB(ExecuteEventProcedure ,0xffc65748) // 1 |
|---|
| 108 | NSTUB(ExitFromCompensationEVF ,0xffc2764c) //104 |
|---|
| 109 | NSTUB(ExitTask ,0xffc0f438) //101 |
|---|
| 110 | NSTUB(ExpCtrlTool_StartContiAE ,0xffc34ce8) //104 |
|---|
| 111 | NSTUB(ExpCtrlTool_StopContiAE ,0xffc34dc0) //104 |
|---|
| 112 | NSTUB(Fclose_Fut ,0xffc25c00) //101 |
|---|
| 113 | NSTUB(Feof_Fut ,0xffc25dec) // 1 |
|---|
| 114 | NSTUB(Fflush_Fut ,0xffc25e28) // 1 |
|---|
| 115 | NSTUB(Fgets_Fut ,0xffc25d54) // 1 |
|---|
| 116 | NSTUB(Fopen_Fut ,0xffc25bc0) //101 |
|---|
| 117 | NSTUB(Fread_Fut ,0xffc25cac) //101 |
|---|
| 118 | NSTUB(FreeMemory ,0xffdfa3a0) //101 |
|---|
| 119 | NSTUB(FreeUncacheableMemory ,0xffc2931c) //112 |
|---|
| 120 | NSTUB(Fseek_Fut ,0xffc25da0) //101 |
|---|
| 121 | NSTUB(Fwrite_Fut ,0xffc25d00) //101 |
|---|
| 122 | NSTUB(GetCCDTemperature ,0xffc455b0) //102 |
|---|
| 123 | NSTUB(GetCurrentAvValue ,0xffd08708) //102 |
|---|
| 124 | NSTUB(GetDrive_ClusterSize ,0xffc512bc) // 4 |
|---|
| 125 | NSTUB(GetDrive_TotalClusters ,0xffc512f0) // 3 |
|---|
| 126 | NSTUB(GetFocusLensSubjectDistance ,0xffd07a00) //102 |
|---|
| 127 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xffd07e58) // 3 |
|---|
| 128 | NSTUB(GetImageFolder ,0xffcf1008) //106 |
|---|
| 129 | NSTUB(GetKbdState ,0xffc435d4) //109 |
|---|
| 130 | NSTUB(GetMemInfo ,0xffc0a7f8) // 3 |
|---|
| 131 | NSTUB(GetOpticalTemperature ,0xffc4569c) //102 |
|---|
| 132 | NSTUB(GetParameterData ,0xffd2eff4) //101 |
|---|
| 133 | NSTUB(GetPropertyCase ,0xffc69454) //102 |
|---|
| 134 | NSTUB(GetSystemTime ,0xffdfa400) //101 |
|---|
| 135 | NSTUB(GetVRAMHPixelsSize ,0xffcb69ac) //102 |
|---|
| 136 | NSTUB(GetVRAMVPixelsSize ,0xffcb69b8) //102 |
|---|
| 137 | NSTUB(GetZoomLensCurrentPoint ,0xffd09bc8) //102 |
|---|
| 138 | NSTUB(GetZoomLensCurrentPosition ,0xffdf2444) //102 |
|---|
| 139 | NSTUB(GiveSemaphore ,0xffc0f104) //112 |
|---|
| 140 | NSTUB(IsStrobeChargeCompleted ,0xffca6fa0) //102 |
|---|
| 141 | NSTUB(LEDDrive ,0xffc42bc8) //103 |
|---|
| 142 | NSTUB(LocalTime ,0xffc63458) // 1 |
|---|
| 143 | NSTUB(LockMainPower ,0xffc6cd2c) //103 |
|---|
| 144 | NSTUB(Lseek ,0xffc26228) //101 |
|---|
| 145 | NSTUB(MakeDirectory_Fut ,0xffc25af8) // 1 |
|---|
| 146 | NSTUB(MoveFocusLensToDistance ,0xffe50650) //102 |
|---|
| 147 | NSTUB(MoveIrisWithAv ,0xffdf7ae8) //102 |
|---|
| 148 | NSTUB(MoveZoomLensWithPoint ,0xffdf8074) //102 |
|---|
| 149 | NSTUB(NewTaskShell ,0xffc68e60) //103 |
|---|
| 150 | NSTUB(Open ,0xffc260a0) //101 |
|---|
| 151 | NSTUB(PB2Rec ,0xffc6f998) //104 |
|---|
| 152 | NSTUB(PT_MoveDigitalZoomToWide ,0xffc57098) //102 |
|---|
| 153 | NSTUB(PT_MoveOpticalZoomAt ,0xffc57070) //102 |
|---|
| 154 | NSTUB(PT_PlaySound ,0xffc5f2d8) // 7 |
|---|
| 155 | NSTUB(PostLogicalEventForNotPowerType ,0xffc6c55c) //103 |
|---|
| 156 | NSTUB(PostLogicalEventToUI ,0xffc6c5a8) //103 |
|---|
| 157 | NSTUB(PutInNdFilter ,0xffdf7ed8) //102 |
|---|
| 158 | NSTUB(PutOutNdFilter ,0xffdf7efc) //102 |
|---|
| 159 | NSTUB(Read ,0xffc0b308) //101 |
|---|
| 160 | NSTUB(ReadFastDir ,0xffde8e40) // 4 |
|---|
| 161 | NSTUB(Rec2PB ,0xffc6f9d8) //104 |
|---|
| 162 | NSTUB(RefreshPhysicalScreen ,0xffd79df0) //104 |
|---|
| 163 | NSTUB(Remove ,0xffc26140) // 4 |
|---|
| 164 | NSTUB(RenameFile_Fut ,0xffc259f0) // 4 |
|---|
| 165 | NSTUB(Restart ,0xffc2aab4) //106 |
|---|
| 166 | NSTUB(ScreenLock ,0xffd7af9c) // 3 |
|---|
| 167 | NSTUB(ScreenUnlock ,0xffd7afe0) // 7 |
|---|
| 168 | NSTUB(SetAE_ShutterSpeed ,0xffe52de0) //102 |
|---|
| 169 | NSTUB(SetAutoShutdownTime ,0xffc6cda0) //103 |
|---|
| 170 | NSTUB(SetCurrentCaptureModeType ,0xffc730bc) //101 |
|---|
| 171 | NSTUB(SetFileAttributes ,0xffc26404) // 3 |
|---|
| 172 | NSTUB(SetFileTimeStamp ,0xffc263a8) // 4 |
|---|
| 173 | NSTUB(SetLogicalEventActive ,0xffc6caa4) //101 |
|---|
| 174 | NSTUB(SetParameterData ,0xffd2ef64) //101 |
|---|
| 175 | NSTUB(SetPropertyCase ,0xffc69324) //102 |
|---|
| 176 | NSTUB(SleepTask ,0xffc29160) //101 |
|---|
| 177 | NSTUB(TakeSemaphore ,0xffc0f034) //101 |
|---|
| 178 | NSTUB(TurnOnBackLight ,0xffc77d20) //104 |
|---|
| 179 | NSTUB(UIFS_WriteFirmInfoToFile ,0xffd1f768) //101 |
|---|
| 180 | NSTUB(UnlockAF ,0xffc27590) //102 |
|---|
| 181 | NSTUB(UnlockMainPower ,0xffc6cc80) //103 |
|---|
| 182 | NSTUB(UnsetZoomForMovie ,0xffd354b4) //104 |
|---|
| 183 | NSTUB(UpdateMBROnFlash ,0xffc5113c) //105 |
|---|
| 184 | NSTUB(VbattGet ,0xffc22be4) //103 |
|---|
| 185 | NSTUB(Write ,0xffc2619c) //101 |
|---|
| 186 | NSTUB(WriteSDCard ,0xffcfc6fc) //108 |
|---|
| 187 | NSTUB(_log ,0xffe7f4b8) //111 |
|---|
| 188 | NSTUB(_log10 ,0xffe7e3fc) //112 |
|---|
| 189 | NSTUB(_pow ,0xffe7e56c) //114 |
|---|
| 190 | NSTUB(_sqrt ,0xffe80820) // 1 |
|---|
| 191 | NSTUB(add_ptp_handler ,0xffdbd2d4) // 3 |
|---|
| 192 | NSTUB(apex2us ,0xffd7c2ec) // 4 |
|---|
| 193 | NSTUB(close ,0xffc0b120) // 1 |
|---|
| 194 | NSTUB(closedir ,0xffde8c9c) // 4 |
|---|
| 195 | NSTUB(err_init_task ,0xffc05f50) // 4 |
|---|
| 196 | NSTUB(exmem_alloc ,0xffc640f8) //103 |
|---|
| 197 | NSTUB(free ,0xffc04160) //112 |
|---|
| 198 | NSTUB(kbd_p1_f ,0xffc23ba8) //109 |
|---|
| 199 | NSTUB(kbd_p1_f_cont ,0xffc23bb4) //109 |
|---|
| 200 | NSTUB(kbd_p2_f ,0xffc2345c) //109 |
|---|
| 201 | NSTUB(kbd_read_keys ,0xffc23b2c) //109 |
|---|
| 202 | NSTUB(lseek ,0xffc26228) //101 |
|---|
| 203 | NSTUB(malloc ,0xffc04104) //112 |
|---|
| 204 | NSTUB(memcmp ,0xffc11318) //101 |
|---|
| 205 | NSTUB(memcpy ,0xffc2e864) //101 |
|---|
| 206 | NSTUB(memset ,0xffd7b324) //101 |
|---|
| 207 | NSTUB(mkdir ,0xffc265a8) // 4 |
|---|
| 208 | NSTUB(mktime_ext ,0xffc7cb50) // 1 |
|---|
| 209 | NSTUB(open ,0xffc0b070) // 1 |
|---|
| 210 | NSTUB(opendir ,0xffde8cec) // 4 |
|---|
| 211 | NSTUB(openfastdir ,0xffde8cec) // 4 |
|---|
| 212 | NSTUB(qsort ,0xffe39368) // 4 |
|---|
| 213 | NSTUB(rand ,0xffc11420) // 1 |
|---|
| 214 | NSTUB(read ,0xffc0b308) //101 |
|---|
| 215 | NSTUB(reboot_fw_update ,0xffdea6b4) // 1 |
|---|
| 216 | NSTUB(set_control_event ,0xffc6c7c4) //111 |
|---|
| 217 | NSTUB(srand ,0xffc11414) // 1 |
|---|
| 218 | NSTUB(stat ,0xffc26270) // 3 |
|---|
| 219 | NSTUB(strcat ,0xffc7c30c) // 1 |
|---|
| 220 | NSTUB(strchr ,0xffc03fe8) // 1 |
|---|
| 221 | NSTUB(strcmp ,0xffc112d4) //101 |
|---|
| 222 | NSTUB(strcpy ,0xffc112bc) //101 |
|---|
| 223 | NSTUB(strftime ,0xffc7c558) //113 |
|---|
| 224 | NSTUB(strlen ,0xffc04034) //101 |
|---|
| 225 | NSTUB(strncmp ,0xffc03f9c) // 1 |
|---|
| 226 | NSTUB(strncpy ,0xffc03f60) // 1 |
|---|
| 227 | NSTUB(strrchr ,0xffc0400c) // 1 |
|---|
| 228 | NSTUB(strtol ,0xffc2eb44) //101 |
|---|
| 229 | NSTUB(strtolx ,0xffc2e948) //109 |
|---|
| 230 | DEF(task_CaptSeq ,0xffc5914c) //107 |
|---|
| 231 | DEF(task_ExpDrv ,0xffc91338) //110 |
|---|
| 232 | DEF(task_InitFileModules ,0xffc70464) //107 |
|---|
| 233 | DEF(task_MovieRecord ,0xffd0c848) //107 |
|---|
| 234 | DEF(task_PhySw ,0xffc2378c) //107 |
|---|
| 235 | NSTUB(time ,0xffc6330c) // 1 |
|---|
| 236 | NSTUB(vsprintf ,0xffc11280) // 4 |
|---|
| 237 | NSTUB(write ,0xffc2619c) //101 |
|---|