| 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.00C |
|---|
| 7 | // Canon PowerShot A3000 IS |
|---|
| 8 | |
|---|
| 9 | // Values for makefile.inc |
|---|
| 10 | // PLATFORMID = 12786 (0x31f2) // Found @ 0xfffe0130 |
|---|
| 11 | // MAXRAMADDR = 0x01ffffff |
|---|
| 12 | // KEYSYS = d4a // Found @ 0xffff1aac |
|---|
| 13 | // NEED_ENCODED_DISKBOOT = 4 // Found @ 0xffff1abc |
|---|
| 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(DoAFLock ,0xffc27744) //102 *** != 0xffc59f78 |
|---|
| 18 | //NSTUB(GetDrive_FreeClusters ,0xffc239b8) // 3 *** != 0xffc524a0 |
|---|
| 19 | // ALT: NSTUB(GetDrive_FreeClusters, 0xffc524a0) // 4 9/0 |
|---|
| 20 | //NSTUB(LEDDrive ,0xffc43a04) //103 *** != 0xffc43acc |
|---|
| 21 | //NSTUB(ScreenLock ,0xffd86d9c) // 3 *** != 0xffd86fa4 |
|---|
| 22 | //NSTUB(ScreenUnlock ,0xffd86de0) // 7 *** != 0xffd85c54 |
|---|
| 23 | //NSTUB(SetScriptMode ,0xffc6fd38) //101 *** != 0xffc00f70 |
|---|
| 24 | //NSTUB(UnlockAF ,0xffc2777c) //102 *** != 0xffc59f88 |
|---|
| 25 | //NSTUB(add_ptp_handler ,0xffdc8e94) // 3 *** != 0x0ffdc8e9 |
|---|
| 26 | //NSTUB(kbd_pwr_off ,0xffc445a0) // 2 64% *** != 0xffc43e0c |
|---|
| 27 | NSTUB(kbd_pwr_on ,0xffc44560) // 2 82% |
|---|
| 28 | //NSTUB(rename ,0xffc25b9c) // 4 *** != 0xffc26394 |
|---|
| 29 | |
|---|
| 30 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 31 | // Firmware modemap table found @ffc73838 -> ffc70368 -> ffd35c94 -> ffe16228 -> ffeddb84 |
|---|
| 32 | // Mode 2609 in firmware but not in current modemap |
|---|
| 33 | |
|---|
| 34 | // Values below go in 'stubs_min.S': |
|---|
| 35 | //DEF(physw_status ,0x0002eed4) // Found @0xffc23cd4, stubs_min = 0x0002eed4 (0x2EED4) |
|---|
| 36 | //DEF(physw_run ,0x00001bf0) // Found @0xffc23938, stubs_min = 0x00001bf0 (0x1BE4+0x0C) |
|---|
| 37 | //DEF(levent_table ,0xffeafe20) // Found @0xffeafe20, stubs_min = 0xffeafe20 (0xFFEAFE20) |
|---|
| 38 | //DEF(FlashParamsTable ,0xffeddd7c) // Found @0xffeddd7c, stubs_min = 0xffeddd7c (0xFFEDDD7C) |
|---|
| 39 | //DEF(movie_status ,0x000056f8) // Found @0xffd13678, stubs_min = 0x000056f8 (0x56C0+0x38) |
|---|
| 40 | //DEF(full_screen_refresh ,0x000076cc) // Found @0xffd8520c, stubs_min = 0x000076cc (0x76CC) |
|---|
| 41 | //DEF(canon_menu_active ,0x00002b7c) // Found @0xffc6d20c, stubs_min = 0x00002b7c (0x2B78+4) |
|---|
| 42 | //DEF(canon_shoot_menu_active ,0x000068b1) // Found @0xffd4825c, stubs_min = 0x000068b1 (0x68B0+1) |
|---|
| 43 | //DEF(playrec_mode ,0x000028d8) // Found @0xffc60944, stubs_min = 0x000028d8 (0x28D4+0x4) |
|---|
| 44 | //DEF(zoom_status ,0x00009cd8) // Found @0xffe18568, stubs_min = 0x00009cd8 (0x9CD8) |
|---|
| 45 | //DEF(some_flag_for_af_scan ,0x00005aa0) // Found @0xffd16004, stubs_min = 0x00005aa0 (0x5AA0) |
|---|
| 46 | |
|---|
| 47 | // Values below go in 'lib.c': |
|---|
| 48 | //void *vid_get_bitmap_fb() { return (void*)0x10361000; } // Found @0xffc3fc80 |
|---|
| 49 | //void *vid_get_viewport_fb() { return (void*)0x10650100; } // Found @0xffe62758 |
|---|
| 50 | //char *camera_jpeg_count_str() { return (char*)0x00075120; } // Found @0xffd7bd90 |
|---|
| 51 | //long hook_raw_size() { return 0x00ec04f0; } // Found @0xffe65ae8 |
|---|
| 52 | //int get_flash_params_count(void) { return 0x94; } // Found @0xffd36d50 |
|---|
| 53 | |
|---|
| 54 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 55 | //#define SD_READONLY_FLAG 0x00020000 // Found @0xffe9177c, levent 0x90a |
|---|
| 56 | //#define SD_READONLY_IDX 2 |
|---|
| 57 | //#define USB_MASK 0x00040000 // Found @0xffe91788, levent 0x902 |
|---|
| 58 | //#define USB_IDX 2 |
|---|
| 59 | |
|---|
| 60 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 61 | //static KeyMap keymap[] = { |
|---|
| 62 | // { 2, KEY_ZOOM_IN ,0x00000004 }, // Found @0xffe916c8, levent 0x02 |
|---|
| 63 | // { 2, KEY_ZOOM_OUT ,0x00000008 }, // Found @0xffe916d4, levent 0x03 |
|---|
| 64 | // { 2, KEY_UP ,0x00000010 }, // Found @0xffe916e0, levent 0x04 |
|---|
| 65 | // { 2, KEY_DOWN ,0x00000020 }, // Found @0xffe916ec, levent 0x05 |
|---|
| 66 | // { 2, KEY_RIGHT ,0x00000040 }, // Found @0xffe916f8, levent 0x07 |
|---|
| 67 | // { 2, KEY_LEFT ,0x00000080 }, // Found @0xffe91704, levent 0x06 |
|---|
| 68 | // { 2, KEY_SET ,0x00000100 }, // Found @0xffe91710, levent 0x08 |
|---|
| 69 | // { 2, KEY_MENU ,0x00000200 }, // Found @0xffe9171c, levent 0x09 |
|---|
| 70 | // { 2, KEY_DISPLAY ,0x00000400 }, // Found @0xffe91728, levent 0x0a |
|---|
| 71 | // { 2, KEY_SHOOT_FULL ,0x00000003 }, // Found @0xffe916bc, levent 0x01 |
|---|
| 72 | // { 2, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffe916bc, levent 0x01 |
|---|
| 73 | // { 2, KEY_SHOOT_HALF ,0x00000001 }, // Found @0xffe916b0, levent 0x00 |
|---|
| 74 | // { 0, 0, 0 } |
|---|
| 75 | //}; |
|---|
| 76 | |
|---|
| 77 | // Values below go in 'platform_camera.h': |
|---|
| 78 | //#define CAM_DRYOS 1 |
|---|
| 79 | //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher |
|---|
| 80 | //#define CAM_RAW_ROWPIX 3720 // Found @0xffcee63c |
|---|
| 81 | //#define CAM_RAW_ROWS 2772 // Found @0xffcee648 |
|---|
| 82 | //#undef CAM_UNCACHED_BIT |
|---|
| 83 | //#define CAM_UNCACHED_BIT 0x10000000 // Found @0xffc296f0 |
|---|
| 84 | |
|---|
| 85 | // Stubs below matched 100%. |
|---|
| 86 | // Name Address Comp to stubs_entry_2.S |
|---|
| 87 | NSTUB(AllocateMemory ,0xffe08260) //101 |
|---|
| 88 | NSTUB(AllocateUncacheableMemory ,0xffc296ac) //112 |
|---|
| 89 | NSTUB(Close ,0xffc262b8) //101 |
|---|
| 90 | NSTUB(CreateTask ,0xffc0f110) //101 |
|---|
| 91 | NSTUB(DebugAssert ,0xffc0f5e8) //111 |
|---|
| 92 | NSTUB(DeleteFile_Fut ,0xffc25c30) //112 |
|---|
| 93 | //NSTUB(EnterToCompensationEVF ,0xffc277f4) //104 == 0xffc277f4 |
|---|
| 94 | NSTUB(ExecuteEventProcedure ,0xffc68958) // 1 |
|---|
| 95 | //NSTUB(ExitFromCompensationEVF ,0xffc27838) //104 == 0xffc27838 |
|---|
| 96 | NSTUB(ExitTask ,0xffc0f3a0) //101 |
|---|
| 97 | //NSTUB(ExpCtrlTool_StartContiAE ,0xffc35110) //104 == 0xffc35110 |
|---|
| 98 | //NSTUB(ExpCtrlTool_StopContiAE ,0xffc351e8) //104 == 0xffc351e8 |
|---|
| 99 | NSTUB(Fclose_Fut ,0xffc25dac) //101 |
|---|
| 100 | NSTUB(Feof_Fut ,0xffc25f98) // 1 |
|---|
| 101 | NSTUB(Fflush_Fut ,0xffc25fd4) // 1 |
|---|
| 102 | NSTUB(Fgets_Fut ,0xffc25f00) // 1 |
|---|
| 103 | NSTUB(Fopen_Fut ,0xffc25d6c) //101 |
|---|
| 104 | NSTUB(Fread_Fut ,0xffc25e58) //101 |
|---|
| 105 | NSTUB(FreeMemory ,0xffe08258) //101 |
|---|
| 106 | NSTUB(FreeUncacheableMemory ,0xffc296ec) //112 |
|---|
| 107 | NSTUB(Fseek_Fut ,0xffc25f4c) //101 |
|---|
| 108 | NSTUB(Fwrite_Fut ,0xffc25eac) //101 |
|---|
| 109 | NSTUB(GetBatteryTemperature ,0xffc46680) //102 |
|---|
| 110 | NSTUB(GetCCDTemperature ,0xffc4660c) //102 |
|---|
| 111 | NSTUB(GetCurrentAvValue ,0xffd0ca30) //102 |
|---|
| 112 | NSTUB(GetDrive_ClusterSize ,0xffc52440) // 4 |
|---|
| 113 | NSTUB(GetDrive_TotalClusters ,0xffc52474) // 3 |
|---|
| 114 | NSTUB(GetFocusLensSubjectDistance ,0xffd0bd28) //102 |
|---|
| 115 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xffd0c180) // 3 |
|---|
| 116 | NSTUB(GetImageFolder ,0xffcf55f8) //106 |
|---|
| 117 | NSTUB(GetKbdState ,0xffc4452c) //109 |
|---|
| 118 | NSTUB(GetMemInfo ,0xffc0a760) // 3 |
|---|
| 119 | NSTUB(GetOpticalTemperature ,0xffc466f4) //102 |
|---|
| 120 | NSTUB(GetParameterData ,0xffd36d10) //101 |
|---|
| 121 | NSTUB(GetPropertyCase ,0xffc6c664) //102 |
|---|
| 122 | NSTUB(GetSystemTime ,0xffe082b8) //101 |
|---|
| 123 | NSTUB(GetZoomLensCurrentPoint ,0xffd0fafc) //102 |
|---|
| 124 | NSTUB(GetZoomLensCurrentPosition ,0xffdff8ec) //102 |
|---|
| 125 | NSTUB(GiveSemaphore ,0xffc0f06c) //112 |
|---|
| 126 | NSTUB(IsStrobeChargeCompleted ,0xffcaac70) //102 |
|---|
| 127 | NSTUB(LocalTime ,0xffc66668) // 1 |
|---|
| 128 | NSTUB(LockMainPower ,0xffc6ff70) //103 |
|---|
| 129 | //NSTUB(Lseek ,0xffc263d4) //101 == 0xffc263d4 |
|---|
| 130 | NSTUB(MakeDirectory_Fut ,0xffc25ca4) // 1 |
|---|
| 131 | NSTUB(MoveFocusLensToDistance ,0xffe5f1d8) //102 |
|---|
| 132 | NSTUB(MoveIrisWithAv ,0xffe050ac) //102 |
|---|
| 133 | NSTUB(MoveZoomLensWithPoint ,0xffe0563c) //102 |
|---|
| 134 | NSTUB(NewTaskShell ,0xffc6c070) //103 |
|---|
| 135 | NSTUB(Open ,0xffc2624c) //101 |
|---|
| 136 | //NSTUB(PB2Rec ,0xffc72d38) //104 == 0xffc72d38 |
|---|
| 137 | NSTUB(PT_MoveDigitalZoomToWide ,0xffc59f28) //102 |
|---|
| 138 | NSTUB(PT_MoveOpticalZoomAt ,0xffc59f00) //102 |
|---|
| 139 | //NSTUB(PT_PlaySound ,0xffc624e8) // 7 == 0xffc624e8 |
|---|
| 140 | NSTUB(PostLogicalEventForNotPowerType ,0xffc6f7a0) //103 |
|---|
| 141 | NSTUB(PostLogicalEventToUI ,0xffc6f7ec) //103 |
|---|
| 142 | //NSTUB(PutInNdFilter ,0xffe054a0) //102 == 0xffe054a0 |
|---|
| 143 | //NSTUB(PutOutNdFilter ,0xffe054c4) //102 == 0xffe054c4 |
|---|
| 144 | NSTUB(Read ,0xffc0b270) //101 |
|---|
| 145 | //NSTUB(ReadFastDir ,0xffdf6414) // 4 == 0xffdf6414 |
|---|
| 146 | //NSTUB(Rec2PB ,0xffc72d78) //104 == 0xffc72d78 |
|---|
| 147 | //NSTUB(RefreshPhysicalScreen ,0xffd85bf0) //104 == 0xffd85bf0 |
|---|
| 148 | //NSTUB(Remove ,0xffc262ec) // 4 == 0xffc262ec |
|---|
| 149 | //NSTUB(RenameFile_Fut ,0xffc25b9c) // 4 == 0xffc25b9c |
|---|
| 150 | NSTUB(Restart ,0xffc2ae90) //106 |
|---|
| 151 | NSTUB(SetAE_ShutterSpeed ,0xffe61968) //102 |
|---|
| 152 | NSTUB(SetAutoShutdownTime ,0xffc6ffe4) //103 |
|---|
| 153 | NSTUB(SetCurrentCaptureModeType ,0xffc76674) //101 |
|---|
| 154 | //NSTUB(SetFileTimeStamp ,0xffc26554) // 4 == 0xffc26554 |
|---|
| 155 | NSTUB(SetLogicalEventActive ,0xffc6fce8) //101 |
|---|
| 156 | NSTUB(SetParameterData ,0xffd36c80) //101 |
|---|
| 157 | NSTUB(SetPropertyCase ,0xffc6c534) //102 |
|---|
| 158 | NSTUB(SleepTask ,0xffc29530) //101 |
|---|
| 159 | NSTUB(TakeSemaphore ,0xffc0ef9c) //101 |
|---|
| 160 | //NSTUB(TurnOffBackLight ,0xffc7b440) //104 == 0xffc7b440 |
|---|
| 161 | //NSTUB(TurnOnBackLight ,0xffc7b428) //104 == 0xffc7b428 |
|---|
| 162 | //NSTUB(UIFS_WriteFirmInfoToFile ,0xffd27398) //103 == 0xffd27398 |
|---|
| 163 | NSTUB(UnlockMainPower ,0xffc6fec4) //103 |
|---|
| 164 | //NSTUB(UnsetZoomForMovie ,0xffd3cc54) //104 == 0xffd3cc54 |
|---|
| 165 | NSTUB(UpdateMBROnFlash ,0xffc522c0) //105 |
|---|
| 166 | NSTUB(VbattGet ,0xffc22cf0) //103 |
|---|
| 167 | NSTUB(Write ,0xffc26348) //101 |
|---|
| 168 | NSTUB(WriteSDCard ,0xffd00d4c) //108 |
|---|
| 169 | NSTUB(_log ,0xffe8eaf4) //111 |
|---|
| 170 | NSTUB(_log10 ,0xffe8da38) //112 |
|---|
| 171 | NSTUB(_pow ,0xffe8dba8) //114 |
|---|
| 172 | NSTUB(_sqrt ,0xffe8fe5c) // 1 |
|---|
| 173 | //NSTUB(apex2us ,0xffd880ec) // 4 == 0xffd880ec |
|---|
| 174 | NSTUB(close ,0xffc0b088) // 1 |
|---|
| 175 | //NSTUB(closedir ,0xffdf6270) // 4 == 0xffdf6270 |
|---|
| 176 | NSTUB(err_init_task ,0xffc05f50) // 4 |
|---|
| 177 | NSTUB(exmem_alloc ,0xffc67308) //103 |
|---|
| 178 | NSTUB(free ,0xffc04160) //112 |
|---|
| 179 | NSTUB(kbd_p1_f ,0xffc23d54) //109 |
|---|
| 180 | NSTUB(kbd_p1_f_cont ,0xffc23d60) //109 |
|---|
| 181 | NSTUB(kbd_p2_f ,0xffc23604) //109 |
|---|
| 182 | NSTUB(kbd_read_keys ,0xffc23cd4) //109 |
|---|
| 183 | //NSTUB(kbd_read_keys_r2 ,0xffc43eac) //109 == 0xffc43eac |
|---|
| 184 | //NSTUB(lseek ,0xffc263d4) //101 == 0xffc263d4 |
|---|
| 185 | NSTUB(malloc ,0xffc04104) //112 |
|---|
| 186 | NSTUB(memcmp ,0xffc11280) //101 |
|---|
| 187 | NSTUB(memcpy ,0xffc2ec8c) //101 |
|---|
| 188 | NSTUB(memset ,0xffd87124) //101 |
|---|
| 189 | NSTUB(mkdir ,0xffc26754) // 4 |
|---|
| 190 | NSTUB(mktime_ext ,0xffc806fc) // 1 |
|---|
| 191 | NSTUB(open ,0xffc0afd8) // 1 |
|---|
| 192 | NSTUB(opendir ,0xffdf62c0) // 4 |
|---|
| 193 | //NSTUB(openfastdir ,0xffdf62c0) // 4 == 0xffdf62c0 |
|---|
| 194 | //NSTUB(qsort ,0xffe4724c) // 4 == 0xffe4724c |
|---|
| 195 | NSTUB(rand ,0xffc11388) // 1 |
|---|
| 196 | NSTUB(read ,0xffc0b270) //101 |
|---|
| 197 | //NSTUB(readfastdir ,0xffdf6414) // 4 == 0xffdf6414 |
|---|
| 198 | //NSTUB(reboot_fw_update ,0xffdf7c88) // 1 == 0xffdf7c88 |
|---|
| 199 | //NSTUB(set_control_event ,0xffc6fa08) //111 == 0xffc6fa08 |
|---|
| 200 | NSTUB(srand ,0xffc1137c) // 1 |
|---|
| 201 | NSTUB(stat ,0xffc2641c) // 3 |
|---|
| 202 | //NSTUB(strcat ,0xffc7feb8) // 1 == 0xffc7feb8 |
|---|
| 203 | NSTUB(strchr ,0xffc03fe8) // 1 |
|---|
| 204 | NSTUB(strcmp ,0xffc1123c) //101 |
|---|
| 205 | NSTUB(strcpy ,0xffc11224) //101 |
|---|
| 206 | NSTUB(strftime ,0xffc80104) //113 |
|---|
| 207 | NSTUB(strlen ,0xffc04034) //101 |
|---|
| 208 | NSTUB(strncmp ,0xffc03f9c) // 1 |
|---|
| 209 | NSTUB(strncpy ,0xffc03f60) // 1 |
|---|
| 210 | //NSTUB(strrchr ,0xffc0400c) // 1 == 0xffc0400c |
|---|
| 211 | NSTUB(strtol ,0xffc2ef6c) //101 |
|---|
| 212 | NSTUB(strtolx ,0xffc2ed70) //109 |
|---|
| 213 | DEF(task_CaptSeq ,0xffc5c1e8) //107 |
|---|
| 214 | DEF(task_ExpDrv ,0xffc95048) //110 |
|---|
| 215 | DEF(task_InitFileModules ,0xffc736c4) //107 |
|---|
| 216 | DEF(task_MovieRecord ,0xffd138cc) //107 |
|---|
| 217 | DEF(task_PhySw ,0xffc23934) //107 |
|---|
| 218 | NSTUB(time ,0xffc6651c) // 1 |
|---|
| 219 | NSTUB(vsprintf ,0xffc111e8) // 4 |
|---|
| 220 | NSTUB(write ,0xffc26348) //101 |
|---|