| 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.00F |
|---|
| 7 | // Canon PowerShot A490 |
|---|
| 8 | |
|---|
| 9 | // Values for makefile.inc |
|---|
| 10 | // PLATFORMID = 12784 (0x31f0) // Found @ 0xfffe0130 |
|---|
| 11 | // MAXRAMADDR = 0x01ffffff |
|---|
| 12 | // KEYSYS = d4a // Found @ 0xffff1a0c |
|---|
| 13 | // NEED_ENCODED_DISKBOOT = 4 // Found @ 0xffff1a1c |
|---|
| 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(EnterToCompensationEVF ,0xffc27608) //104 *** != 0xffc27604 |
|---|
| 18 | //NSTUB(GetBatteryTemperature ,0xffc45624) //102 *** != 0xffc00b20 |
|---|
| 19 | //NSTUB(GetDrive_FreeClusters ,0xffc23810) // 3 *** != 0xffc5131c |
|---|
| 20 | // ALT: NSTUB(GetDrive_FreeClusters, 0xffc5131c) // 4 9/0 |
|---|
| 21 | //NSTUB(Open ,0xffc260a0) //101 *** != 0xffc4e5d8 |
|---|
| 22 | //NSTUB(SetScriptMode ,0xffc6cb44) //101 *** != 0xffc00f70 |
|---|
| 23 | //NSTUB(TurnOffBackLight ,0xffc77d88) //104 *** != 0xffc77f9c |
|---|
| 24 | //NSTUB(kbd_pwr_off ,0xffc435ec) // 2 64% *** != 0xffc00b20 |
|---|
| 25 | // ERROR: kbd_pwr_on is not found. //--- --- *** != 0xffc00b20 |
|---|
| 26 | //NSTUB(kbd_read_keys_r2 ,0xffc42fb8) //109 *** != 0xffc42fb0 |
|---|
| 27 | //NSTUB(rename ,0xffc259f0) // 4 *** != 0xffc261e8 |
|---|
| 28 | //NSTUB(write ,0xffc2619c) //101 *** != 0xffc0b368 |
|---|
| 29 | |
|---|
| 30 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 31 | // Firmware modemap table found @ffc70628 -> ffc6d174 -> ffd2e028 -> ffe07c90 -> ffeca52c |
|---|
| 32 | // Mode 16417 in firmware but not in current modemap |
|---|
| 33 | // Mode 16399 in firmware but not in current modemap |
|---|
| 34 | // Mode 16407 in firmware but not in current modemap |
|---|
| 35 | // Mode 2609 in firmware but not in current modemap |
|---|
| 36 | // Current modemap entry not found in firmware - MODE_SUPER_MACRO 16905 |
|---|
| 37 | // Current modemap entry not found in firmware - MODE_SCN_INDOOR 16401 |
|---|
| 38 | // Current modemap entry not found in firmware - MODE_SCN_KIDS_PETS 16400 |
|---|
| 39 | // Current modemap entry not found in firmware - MODE_SCN_NIGHT_SCENE 16395 |
|---|
| 40 | // Current modemap entry not found in firmware - MODE_VIDEO_STD 2598 |
|---|
| 41 | |
|---|
| 42 | // Values below go in 'stubs_min.S': |
|---|
| 43 | //DEF(physw_status ,0x0002e754) // Found @0xffc23b2c, stubs_min = 0x0002e754 (0x2E754) |
|---|
| 44 | //DEF(physw_run ,0x00001bf0) // Found @0xffc23790, stubs_min = 0x00001bf0 (0x1BE4+0x0C) |
|---|
| 45 | //DEF(levent_table ,0xffe9fe78) // Found @0xffe9fe78, stubs_min = 0xffe9fe78 (0xFFE9FE78) |
|---|
| 46 | //DEF(FlashParamsTable ,0xffeca71c) // Found @0xffeca71c, stubs_min = 0xffeca71c (0xFFECA71C) |
|---|
| 47 | //DEF(movie_status ,0x00005470) // Found @0xffd0c6a4, stubs_min = 0x00005470 (0x5438+0x38) |
|---|
| 48 | //DEF(full_screen_refresh ,0x000072e8) // Found @0xffd794c4, stubs_min = 0x000072e8 (0x72E8) |
|---|
| 49 | //DEF(canon_menu_active ,0x00002a3c) // Found @0xffc6a028, stubs_min = 0x00002a3c (0x2A38+4) |
|---|
| 50 | //DEF(canon_shoot_menu_active ,0x00006571) // Found @0xffd3fa70, stubs_min = 0x00006571 (0x6570+1) |
|---|
| 51 | //DEF(playrec_mode ,0x00002798) // Found @0xffc5d828, stubs_min = 0x00002798 (0x2794+0x4) |
|---|
| 52 | //DEF(zoom_status ,0x000095a8) // Found @0xffe0ab6c, ** != ** stubs_min = 0x00009588 (0x9588) |
|---|
| 53 | //DEF(some_flag_for_af_scan ,0x00005818) // Found @0xffd0f010, stubs_min = 0x00005818 (0x5818) |
|---|
| 54 | |
|---|
| 55 | // Values below go in 'lib.c': |
|---|
| 56 | //void *vid_get_bitmap_fb() { return (void*)0x10361000; } // Found @0xffc3f024 |
|---|
| 57 | //void *vid_get_viewport_fb() { return (void*)0x10648cc0; } // Found @0xffe53bd4 |
|---|
| 58 | //char *camera_jpeg_count_str() { return (char*)0x0007571c; } // Found @0xffd70afc |
|---|
| 59 | //long hook_raw_size() { return 0x00ec04f0; } // Found @0xffe56f5c |
|---|
| 60 | //int get_flash_params_count(void) { return 0x94; } // Found @0xffd2f0e4 |
|---|
| 61 | |
|---|
| 62 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 63 | //#define SD_READONLY_FLAG 0x00040000 // Found @0xffe820d0, levent 0x90a |
|---|
| 64 | //#define SD_READONLY_IDX 2 |
|---|
| 65 | //#define USB_MASK 0x00080000 // Found @0xffe820dc, levent 0x902 |
|---|
| 66 | //#define USB_IDX 2 |
|---|
| 67 | |
|---|
| 68 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 69 | //static KeyMap keymap[] = { |
|---|
| 70 | // { 2, KEY_RIGHT ,0x00000004 }, // Found @0xffe82070, levent 0x07 |
|---|
| 71 | // { 2, KEY_ZOOM_OUT ,0x00000040 }, // Found @0xffe82094, levent 0x03 |
|---|
| 72 | // { 2, KEY_ZOOM_IN ,0x00000080 }, // Found @0xffe820a0, levent 0x02 |
|---|
| 73 | // { 2, KEY_SET ,0x00000100 }, // Found @0xffe820ac, levent 0x08 |
|---|
| 74 | // { 2, KEY_UP ,0x00100000 }, // Found @0xffe820e8, levent 0x04 |
|---|
| 75 | // { 2, KEY_DOWN ,0x00200000 }, // Found @0xffe820f4, levent 0x05 |
|---|
| 76 | // { 2, KEY_LEFT ,0x00400000 }, // Found @0xffe82100, levent 0x06 |
|---|
| 77 | // { 2, KEY_MENU ,0x01000000 }, // Found @0xffe82118, levent 0x09 |
|---|
| 78 | // { 2, KEY_SHOOT_FULL ,0x00000030 }, // Found @0xffe82088, levent 0x01 |
|---|
| 79 | // { 2, KEY_SHOOT_FULL_ONLY ,0x00000020 }, // Found @0xffe82088, levent 0x01 |
|---|
| 80 | // { 2, KEY_SHOOT_HALF ,0x00000010 }, // Found @0xffe8207c, levent 0x00 |
|---|
| 81 | // { 0, 0, 0 } |
|---|
| 82 | //}; |
|---|
| 83 | |
|---|
| 84 | // Values below go in 'platform_camera.h': |
|---|
| 85 | //#define CAM_DRYOS 1 |
|---|
| 86 | //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher |
|---|
| 87 | //#define CAM_RAW_ROWPIX 3720 // Found @0xffcea098 |
|---|
| 88 | //#define CAM_RAW_ROWS 2772 // Found @0xffcea0a4 |
|---|
| 89 | //#undef CAM_UNCACHED_BIT |
|---|
| 90 | //#define CAM_UNCACHED_BIT 0x10000000 // Found @0xffc29320 |
|---|
| 91 | |
|---|
| 92 | // Stubs below matched 100%. |
|---|
| 93 | // Name Address Comp to stubs_entry_2.S |
|---|
| 94 | NSTUB(AllocateMemory ,0xffdfa3ac) //101 |
|---|
| 95 | NSTUB(AllocateUncacheableMemory ,0xffc292dc) //112 |
|---|
| 96 | NSTUB(Close ,0xffc2610c) //101 |
|---|
| 97 | NSTUB(CreateTask ,0xffc0f1a8) //101 |
|---|
| 98 | NSTUB(DebugAssert ,0xffc0f680) //111 |
|---|
| 99 | NSTUB(DeleteFile_Fut ,0xffc25a84) //112 |
|---|
| 100 | //NSTUB(DoAFLock ,0xffc27558) //102 == 0xffc27558 |
|---|
| 101 | NSTUB(ExecuteEventProcedure ,0xffc65798) // 1 |
|---|
| 102 | //NSTUB(ExitFromCompensationEVF ,0xffc2764c) //104 == 0xffc2764c |
|---|
| 103 | NSTUB(ExitTask ,0xffc0f438) //101 |
|---|
| 104 | //NSTUB(ExpCtrlTool_StartContiAE ,0xffc34ce8) //104 == 0xffc34ce8 |
|---|
| 105 | //NSTUB(ExpCtrlTool_StopContiAE ,0xffc34dc0) //104 == 0xffc34dc0 |
|---|
| 106 | NSTUB(Fclose_Fut ,0xffc25c00) //101 |
|---|
| 107 | NSTUB(Feof_Fut ,0xffc25dec) // 1 |
|---|
| 108 | NSTUB(Fflush_Fut ,0xffc25e28) // 1 |
|---|
| 109 | NSTUB(Fgets_Fut ,0xffc25d54) // 1 |
|---|
| 110 | NSTUB(Fopen_Fut ,0xffc25bc0) //101 |
|---|
| 111 | NSTUB(Fread_Fut ,0xffc25cac) //101 |
|---|
| 112 | NSTUB(FreeMemory ,0xffdfa3a4) //101 |
|---|
| 113 | NSTUB(FreeUncacheableMemory ,0xffc2931c) //112 |
|---|
| 114 | NSTUB(Fseek_Fut ,0xffc25da0) //101 |
|---|
| 115 | NSTUB(Fwrite_Fut ,0xffc25d00) //101 |
|---|
| 116 | //NSTUB(GetCCDTemperature ,0xffc455b0) //102 == 0xffc455b0 |
|---|
| 117 | NSTUB(GetCurrentAvValue ,0xffd087b8) //102 |
|---|
| 118 | NSTUB(GetDrive_ClusterSize ,0xffc512bc) // 4 |
|---|
| 119 | NSTUB(GetDrive_TotalClusters ,0xffc512f0) // 3 |
|---|
| 120 | NSTUB(GetFocusLensSubjectDistance ,0xffd07ab0) //102 |
|---|
| 121 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xffd07f08) // 3 |
|---|
| 122 | //NSTUB(GetImageFolder ,0xffcf1058) //106 == 0xffcf1058 |
|---|
| 123 | NSTUB(GetKbdState ,0xffc435d4) //109 |
|---|
| 124 | NSTUB(GetMemInfo ,0xffc0a7f8) // 3 |
|---|
| 125 | //NSTUB(GetOpticalTemperature ,0xffc4569c) //102 == 0xffc4569c |
|---|
| 126 | NSTUB(GetParameterData ,0xffd2f0a4) //101 |
|---|
| 127 | NSTUB(GetPropertyCase ,0xffc694a4) //102 |
|---|
| 128 | NSTUB(GetSystemTime ,0xffdfa404) //101 |
|---|
| 129 | NSTUB(GetZoomLensCurrentPoint ,0xffd09c78) //102 |
|---|
| 130 | //NSTUB(GetZoomLensCurrentPosition ,0xffdf2448) //102 == 0xffdf2448 |
|---|
| 131 | NSTUB(GiveSemaphore ,0xffc0f104) //112 |
|---|
| 132 | NSTUB(IsStrobeChargeCompleted ,0xffca6ff0) //102 |
|---|
| 133 | //NSTUB(LEDDrive ,0xffc42bc8) //103 == 0xffc42bc8 |
|---|
| 134 | NSTUB(LocalTime ,0xffc634a8) // 1 |
|---|
| 135 | NSTUB(LockMainPower ,0xffc6cd7c) //103 |
|---|
| 136 | //NSTUB(Lseek ,0xffc26228) //101 == 0xffc26228 |
|---|
| 137 | NSTUB(MakeDirectory_Fut ,0xffc25af8) // 1 |
|---|
| 138 | NSTUB(MoveFocusLensToDistance ,0xffe50654) //102 |
|---|
| 139 | NSTUB(MoveIrisWithAv ,0xffdf7aec) //102 |
|---|
| 140 | NSTUB(MoveZoomLensWithPoint ,0xffdf8078) //102 |
|---|
| 141 | NSTUB(NewTaskShell ,0xffc68eb0) //103 |
|---|
| 142 | NSTUB(PB2Rec ,0xffc6f9e8) //104 |
|---|
| 143 | NSTUB(PT_MoveDigitalZoomToWide ,0xffc570e8) //102 |
|---|
| 144 | NSTUB(PT_MoveOpticalZoomAt ,0xffc570c0) //102 |
|---|
| 145 | //NSTUB(PT_PlaySound ,0xffc5f328) // 7 == 0xffc5f328 |
|---|
| 146 | NSTUB(PostLogicalEventForNotPowerType ,0xffc6c5ac) //103 |
|---|
| 147 | NSTUB(PostLogicalEventToUI ,0xffc6c5f8) //103 |
|---|
| 148 | //NSTUB(PutInNdFilter ,0xffdf7edc) //102 == 0xffdf7edc |
|---|
| 149 | //NSTUB(PutOutNdFilter ,0xffdf7f00) //102 == 0xffdf7f00 |
|---|
| 150 | NSTUB(Read ,0xffc0b308) //101 |
|---|
| 151 | //NSTUB(ReadFastDir ,0xffde8e44) // 4 == 0xffde8e44 |
|---|
| 152 | NSTUB(Rec2PB ,0xffc6fa28) //104 |
|---|
| 153 | //NSTUB(RefreshPhysicalScreen ,0xffd79ea0) //104 == 0xffd79ea0 |
|---|
| 154 | //NSTUB(Remove ,0xffc26140) // 4 == 0xffc26140 |
|---|
| 155 | //NSTUB(RenameFile_Fut ,0xffc259f0) // 4 == 0xffc259f0 |
|---|
| 156 | NSTUB(Restart ,0xffc2aab4) //106 |
|---|
| 157 | NSTUB(ScreenLock ,0xffd7b04c) // 3 |
|---|
| 158 | NSTUB(ScreenUnlock ,0xffd7b090) // 7 |
|---|
| 159 | //NSTUB(SetAE_ShutterSpeed ,0xffe52de4) //102 == 0xffe52de4 |
|---|
| 160 | NSTUB(SetAutoShutdownTime ,0xffc6cdf0) //103 |
|---|
| 161 | NSTUB(SetCurrentCaptureModeType ,0xffc7310c) //101 |
|---|
| 162 | //NSTUB(SetFileTimeStamp ,0xffc263a8) // 4 == 0xffc263a8 |
|---|
| 163 | NSTUB(SetLogicalEventActive ,0xffc6caf4) //101 |
|---|
| 164 | NSTUB(SetParameterData ,0xffd2f014) //101 |
|---|
| 165 | NSTUB(SetPropertyCase ,0xffc69374) //102 |
|---|
| 166 | NSTUB(SleepTask ,0xffc29160) //101 |
|---|
| 167 | NSTUB(TakeSemaphore ,0xffc0f034) //101 |
|---|
| 168 | //NSTUB(TurnOnBackLight ,0xffc77d70) //104 == 0xffc77d70 |
|---|
| 169 | //NSTUB(UIFS_WriteFirmInfoToFile ,0xffd1f818) //101 == 0xffd1f818 |
|---|
| 170 | //NSTUB(UnlockAF ,0xffc27590) //102 == 0xffc27590 |
|---|
| 171 | NSTUB(UnlockMainPower ,0xffc6ccd0) //103 |
|---|
| 172 | //NSTUB(UnsetZoomForMovie ,0xffd35564) //104 == 0xffd35564 |
|---|
| 173 | //NSTUB(UpdateMBROnFlash ,0xffc5113c) //105 == 0xffc5113c |
|---|
| 174 | NSTUB(VbattGet ,0xffc22be4) //103 |
|---|
| 175 | NSTUB(Write ,0xffc2619c) //101 |
|---|
| 176 | //NSTUB(WriteSDCard ,0xffcfc7ac) //108 == 0xffcfc7ac |
|---|
| 177 | NSTUB(_log ,0xffe7f4cc) //111 |
|---|
| 178 | NSTUB(_log10 ,0xffe7e410) //112 |
|---|
| 179 | NSTUB(_pow ,0xffe7e580) //114 |
|---|
| 180 | NSTUB(_sqrt ,0xffe80834) // 1 |
|---|
| 181 | NSTUB(add_ptp_handler ,0xffdbd2d8) // 3 |
|---|
| 182 | //NSTUB(apex2us ,0xffd7c39c) // 4 == 0xffd7c39c |
|---|
| 183 | NSTUB(close ,0xffc0b120) // 1 |
|---|
| 184 | //NSTUB(closedir ,0xffde8ca0) // 4 == 0xffde8ca0 |
|---|
| 185 | NSTUB(err_init_task ,0xffc05f50) // 4 |
|---|
| 186 | NSTUB(exmem_alloc ,0xffc64148) //103 |
|---|
| 187 | NSTUB(free ,0xffc04160) //112 |
|---|
| 188 | NSTUB(kbd_p1_f ,0xffc23ba8) //109 |
|---|
| 189 | NSTUB(kbd_p1_f_cont ,0xffc23bb4) //109 |
|---|
| 190 | NSTUB(kbd_p2_f ,0xffc2345c) //109 |
|---|
| 191 | NSTUB(kbd_read_keys ,0xffc23b2c) //109 |
|---|
| 192 | //NSTUB(lseek ,0xffc26228) //101 == 0xffc26228 |
|---|
| 193 | NSTUB(malloc ,0xffc04104) //112 |
|---|
| 194 | NSTUB(memcmp ,0xffc11318) //101 |
|---|
| 195 | NSTUB(memcpy ,0xffc2e864) //101 |
|---|
| 196 | NSTUB(memset ,0xffd7b3d4) //101 |
|---|
| 197 | NSTUB(mkdir ,0xffc265a8) // 4 |
|---|
| 198 | NSTUB(mktime_ext ,0xffc7cba0) // 1 |
|---|
| 199 | NSTUB(open ,0xffc0b070) // 1 |
|---|
| 200 | NSTUB(opendir ,0xffde8cf0) // 4 |
|---|
| 201 | //NSTUB(openfastdir ,0xffde8cf0) // 4 == 0xffde8cf0 |
|---|
| 202 | //NSTUB(qsort ,0xffe3936c) // 4 == 0xffe3936c |
|---|
| 203 | NSTUB(rand ,0xffc11420) // 1 |
|---|
| 204 | NSTUB(read ,0xffc0b308) //101 |
|---|
| 205 | //NSTUB(readfastdir ,0xffde8e44) // 4 == 0xffde8e44 |
|---|
| 206 | NSTUB(reboot_fw_update ,0xffdea6b8) // 1 |
|---|
| 207 | NSTUB(set_control_event ,0xffc6c814) //111 |
|---|
| 208 | NSTUB(srand ,0xffc11414) // 1 |
|---|
| 209 | NSTUB(stat ,0xffc26270) // 3 |
|---|
| 210 | //NSTUB(strcat ,0xffc7c35c) // 1 == 0xffc7c35c |
|---|
| 211 | NSTUB(strchr ,0xffc03fe8) // 1 |
|---|
| 212 | NSTUB(strcmp ,0xffc112d4) //101 |
|---|
| 213 | NSTUB(strcpy ,0xffc112bc) //101 |
|---|
| 214 | NSTUB(strftime ,0xffc7c5a8) //113 |
|---|
| 215 | NSTUB(strlen ,0xffc04034) //101 |
|---|
| 216 | NSTUB(strncmp ,0xffc03f9c) // 1 |
|---|
| 217 | NSTUB(strncpy ,0xffc03f60) // 1 |
|---|
| 218 | //NSTUB(strrchr ,0xffc0400c) // 1 == 0xffc0400c |
|---|
| 219 | NSTUB(strtol ,0xffc2eb44) //101 |
|---|
| 220 | NSTUB(strtolx ,0xffc2e948) //109 |
|---|
| 221 | DEF(task_CaptSeq ,0xffc5919c) //107 |
|---|
| 222 | DEF(task_ExpDrv ,0xffc91388) //110 |
|---|
| 223 | DEF(task_InitFileModules ,0xffc704b4) //107 |
|---|
| 224 | DEF(task_MovieRecord ,0xffd0c8f8) //107 |
|---|
| 225 | DEF(task_PhySw ,0xffc2378c) //107 |
|---|
| 226 | NSTUB(time ,0xffc6335c) // 1 |
|---|
| 227 | NSTUB(vsprintf ,0xffc11280) // 4 |
|---|