| 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.01B |
|---|
| 7 | // Canon PowerShot A470 |
|---|
| 8 | |
|---|
| 9 | // Values for makefile.inc |
|---|
| 10 | // PLATFORMID = 12666 (0x317a) // Found @ 0xfffe0130 |
|---|
| 11 | // MAXRAMADDR = 0x01ffffff |
|---|
| 12 | // KEYSYS = d3enc // Found @ 0xffff1a98 |
|---|
| 13 | // NEED_ENCODED_DISKBOOT = 1 // Found @ 0xffff1a78 |
|---|
| 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(PutInNdFilter ,0xffdd6fc0) //102 *** != 0xffe267b0 |
|---|
| 18 | //NSTUB(PutOutNdFilter ,0xffdd6fe4) //102 *** != 0xffe267e8 |
|---|
| 19 | //NSTUB(kbd_pwr_off ,0xffc30b30) // 2 67% *** != 0xffc00948 |
|---|
| 20 | // ERROR: kbd_pwr_on is not found. //--- --- *** != 0xffc00948 |
|---|
| 21 | //NSTUB(rename ,0xffc133b4) // 1 *** != 0xffc13c30 |
|---|
| 22 | //NSTUB(write ,0xffc13c08) //101 *** != 0xffc0a1bc |
|---|
| 23 | |
|---|
| 24 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 25 | // Firmware modemap table found @ffc5ed6c -> ffc5b950 -> ffd28c20 -> ffde7144 -> ffe8fab0 |
|---|
| 26 | // No problems found with modemap table. |
|---|
| 27 | |
|---|
| 28 | // Values below can be overridden in 'stubs_min.S': |
|---|
| 29 | //DEF(physw_status ,0x0001007c) // Found @0xffc11c0c, stubs_min = 0x0001007c (0x1007C) |
|---|
| 30 | //DEF(physw_run ,0x00001bf0) // Found @0xffc118a8, stubs_min = 0x00001bf0 (0x1BF0) |
|---|
| 31 | //DEF(levent_table ,0xffe72ec4) // Found @0xffe72ec4, stubs_min = 0xffe72ec4 (0xFFE72EC4) |
|---|
| 32 | //DEF(FlashParamsTable ,0xffe8fc64) // Found @0xffe8fc64, stubs_min = 0xffe8fc64 (0xffe8fc64) |
|---|
| 33 | //DEF(movie_status ,0x000051d8) // Found @0xffc45174, stubs_min = 0x000051d8 (0x51d8) |
|---|
| 34 | //DEF(canon_menu_active ,0x00009014) // Found @0xffd1eec4, stubs_min = 0x00009014 (0x9014) |
|---|
| 35 | //DEF(canon_shoot_menu_active ,0x000097e1) // Found @0xffd37684, stubs_min = 0x000097e1 (0x97e1) |
|---|
| 36 | //DEF(playrec_mode ,0x00005348) // Found @0xffc4b760, stubs_min = 0x00005348 (0x5344+4) |
|---|
| 37 | //DEF(zoom_status ,0x0000d020) // Found @0xffde8944, stubs_min = 0x0000d020 (0xd020) |
|---|
| 38 | //DEF(some_flag_for_af_scan ,0x0000cd9c) // Found @0xffdd73a4, stubs_min = 0x0000cd9c (0xcd9c) |
|---|
| 39 | //DEF(zoom_busy ,0x000083a4) // Found @0xffd05d3c, stubs_min = 0x000083a4 (0x83a4) |
|---|
| 40 | //DEF(focus_busy ,0x000082b0) // Found @0xffd018d0, stubs_min = 0x000082b0 (0x82B0) |
|---|
| 41 | //DEF(recreview_hold ,0x00005b3c) // Found @0xffc63e24, stubs_min = 0x00005b3c (0x5b3c) |
|---|
| 42 | |
|---|
| 43 | // Values below go in 'lib.c': |
|---|
| 44 | //void *vid_get_bitmap_fb() { return (void*)0x10361000; } // Found @0xffc2cc48 |
|---|
| 45 | //void *vid_get_viewport_fb() { return (void*)0x10659d50; } // Found @0xffe2b904 |
|---|
| 46 | //char *camera_jpeg_count_str() { return (char*)0x00049a00; } // Found @0xffd5de80 |
|---|
| 47 | //long hook_raw_size() { return 0x008d0a68; } // Found @0xffe2db80 |
|---|
| 48 | //int get_flash_params_count(void) { return 0x73; } // Found @0xffd29cdc |
|---|
| 49 | |
|---|
| 50 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 51 | //#define SD_READONLY_FLAG 0x00020000 // Found @0xffe51bb8, levent 0x90a |
|---|
| 52 | //#define SD_READONLY_IDX 2 |
|---|
| 53 | //#define USB_MASK 0x00040000 // Found @0xffe51bc0, levent 0x902 |
|---|
| 54 | //#define USB_IDX 2 |
|---|
| 55 | |
|---|
| 56 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 57 | //static KeyMap keymap[] = { |
|---|
| 58 | // { 2, KEY_UP ,0x00000001 }, // Found @0xffe51b38, levent 0x04 |
|---|
| 59 | // { 2, KEY_MENU ,0x00000400 }, // Found @0xffe51b80, levent 0x09 |
|---|
| 60 | // { 2, KEY_SHOOT_FULL ,0x00000030 }, // Found @0xffe51b60, levent 0x01 |
|---|
| 61 | // { 2, KEY_SHOOT_FULL_ONLY ,0x00000020 }, // Found @0xffe51b60, levent 0x01 |
|---|
| 62 | // { 2, KEY_DOWN ,0x00000002 }, // Found @0xffe51b40, levent 0x05 |
|---|
| 63 | // { 2, KEY_RIGHT ,0x00000004 }, // Found @0xffe51b48, levent 0x07 |
|---|
| 64 | // { 2, KEY_LEFT ,0x00000008 }, // Found @0xffe51b50, levent 0x06 |
|---|
| 65 | // { 2, KEY_SET ,0x00000100 }, // Found @0xffe51b78, levent 0x08 |
|---|
| 66 | // { 2, KEY_SHOOT_HALF ,0x00000010 }, // Found @0xffe51b58, levent 0x00 |
|---|
| 67 | // { 0, 0, 0 } |
|---|
| 68 | //}; |
|---|
| 69 | |
|---|
| 70 | // Values below go in 'platform_camera.h': |
|---|
| 71 | //#define CAM_DRYOS 1 |
|---|
| 72 | //#define CAM_RAW_ROWPIX 3152 // Found @0xffe25324 |
|---|
| 73 | //#define CAM_RAW_ROWS 2346 // Found @0xffe25328 |
|---|
| 74 | //#undef CAM_UNCACHED_BIT |
|---|
| 75 | //#define CAM_UNCACHED_BIT 0x10000000 // Found @0xffc17e54 |
|---|
| 76 | |
|---|
| 77 | // Misc stuff |
|---|
| 78 | DEF(ctypes, 0xffe51716) |
|---|
| 79 | |
|---|
| 80 | // Stubs below matched 100%. |
|---|
| 81 | // Name Address Comp to stubs_entry_2.S |
|---|
| 82 | NSTUB(AllocateMemory ,0xffdda864) //101 |
|---|
| 83 | NSTUB(AllocateUncacheableMemory ,0xffc17e18) //112 |
|---|
| 84 | NSTUB(Close ,0xffc13b5c) //101 |
|---|
| 85 | NSTUB(CreateTask ,0xffc0b8e0) //101 |
|---|
| 86 | NSTUB(DebugAssert ,0xffc0bdb8) //111 |
|---|
| 87 | NSTUB(DeleteDirectory_Fut ,0xffc134ec) // 1 |
|---|
| 88 | NSTUB(DeleteFile_Fut ,0xffc13408) //112 |
|---|
| 89 | //NSTUB(DoAFLock ,0xffc157a0) //102 == 0xffc157a0 |
|---|
| 90 | //NSTUB(EnterToCompensationEVF ,0xffc15a90) //104 == 0xffc15a90 |
|---|
| 91 | NSTUB(ExecuteEventProcedure ,0xffc53308) // 1 |
|---|
| 92 | NSTUB(ExitFromCompensationEVF ,0xffc15bdc) //104 |
|---|
| 93 | NSTUB(ExitTask ,0xffc0bb70) //101 |
|---|
| 94 | //NSTUB(ExpCtrlTool_StartContiAE ,0xffc218c8) //104 == 0xffc218c8 |
|---|
| 95 | //NSTUB(ExpCtrlTool_StopContiAE ,0xffc21a0c) //104 == 0xffc21a0c |
|---|
| 96 | NSTUB(Fclose_Fut ,0xffc13584) //101 |
|---|
| 97 | NSTUB(Feof_Fut ,0xffc13770) // 1 |
|---|
| 98 | NSTUB(Fflush_Fut ,0xffc137ac) // 1 |
|---|
| 99 | NSTUB(Fgets_Fut ,0xffc136d8) // 1 |
|---|
| 100 | NSTUB(Fopen_Fut ,0xffc13544) //101 |
|---|
| 101 | NSTUB(Fread_Fut ,0xffc13630) //101 |
|---|
| 102 | NSTUB(FreeMemory ,0xffdda85c) //101 |
|---|
| 103 | NSTUB(FreeUncacheableMemory ,0xffc17e4c) //112 |
|---|
| 104 | NSTUB(Fseek_Fut ,0xffc13724) //101 |
|---|
| 105 | NSTUB(Fwrite_Fut ,0xffc13684) //101 |
|---|
| 106 | //NSTUB(GetBatteryTemperature ,0xffc32bd8) //102 == 0xffc32bd8 |
|---|
| 107 | NSTUB(GetCCDTemperature ,0xffc32b68) //102 |
|---|
| 108 | NSTUB(GetCurrentAvValue ,0xffd032e4) //102 |
|---|
| 109 | NSTUB(GetDrive_ClusterSize ,0xffc3c8d0) // 1 |
|---|
| 110 | NSTUB(GetDrive_FreeClusters ,0xffc3c938) // 1 |
|---|
| 111 | NSTUB(GetDrive_TotalClusters ,0xffc3c904) // 1 |
|---|
| 112 | NSTUB(GetFocusLensSubjectDistance ,0xffd023dc) //102 |
|---|
| 113 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xffd026e8) // 1 |
|---|
| 114 | NSTUB(GetKbdState ,0xffc30b18) //109 |
|---|
| 115 | NSTUB(GetMemInfo ,0xffc03c40) // 1 |
|---|
| 116 | //NSTUB(GetOpticalTemperature ,0xffc32c48) //102 == 0xffc32c48 |
|---|
| 117 | NSTUB(GetParameterData ,0xffd29c9c) //101 |
|---|
| 118 | NSTUB(GetPropertyCase ,0xffc56f08) //102 |
|---|
| 119 | NSTUB(GetSystemTime ,0xffdda8bc) //101 |
|---|
| 120 | NSTUB(GetZoomLensCurrentPoint ,0xffd060a0) //102 |
|---|
| 121 | NSTUB(GetZoomLensCurrentPosition ,0xffdd1c90) //102 |
|---|
| 122 | NSTUB(GiveSemaphore ,0xffc0b844) //112 |
|---|
| 123 | NSTUB(IsStrobeChargeCompleted ,0xffc97108) //102 |
|---|
| 124 | NSTUB(LEDDrive ,0xffc303c0) //103 |
|---|
| 125 | NSTUB(LocalTime ,0xffc51028) // 1 |
|---|
| 126 | NSTUB(LockMainPower ,0xffc5b568) //103 |
|---|
| 127 | NSTUB(Lseek ,0xffc13c9c) //101 |
|---|
| 128 | NSTUB(MakeDirectory_Fut ,0xffc1347c) // 1 |
|---|
| 129 | NSTUB(MoveFocusLensToDistance ,0xffe28450) //102 |
|---|
| 130 | NSTUB(MoveIrisWithAv ,0xffdd6bd8) //102 |
|---|
| 131 | NSTUB(MoveZoomLensWithPoint ,0xffdd715c) //102 |
|---|
| 132 | NSTUB(NewTaskShell ,0xffc569cc) //103 |
|---|
| 133 | NSTUB(Open ,0xffc13b34) //101 |
|---|
| 134 | NSTUB(PB2Rec ,0xffc5e188) //104 |
|---|
| 135 | NSTUB(PT_MoveDigitalZoomToWide ,0xffc467e8) //102 |
|---|
| 136 | NSTUB(PT_MoveOpticalZoomAt ,0xffc467c0) //102 |
|---|
| 137 | NSTUB(PT_PlaySound ,0xffc460d4) //102 |
|---|
| 138 | //NSTUB(PostLogicalEventForNotPowerType ,0xffc5abd8) //103 == 0xffc5abd8 |
|---|
| 139 | NSTUB(PostLogicalEventToUI ,0xffc5ac24) //103 |
|---|
| 140 | NSTUB(Read ,0xffc0a15c) //101 |
|---|
| 141 | NSTUB(ReadFastDir ,0xffdc415c) // 1 |
|---|
| 142 | NSTUB(Rec2PB ,0xffc5e1b8) //104 |
|---|
| 143 | NSTUB(RefreshPhysicalScreen ,0xffd66e5c) //104 |
|---|
| 144 | NSTUB(Remove ,0xffc13ba4) // 1 |
|---|
| 145 | NSTUB(RenameFile_Fut ,0xffc133b4) // 1 |
|---|
| 146 | NSTUB(Restart ,0xffc19690) //106 |
|---|
| 147 | //NSTUB(SetAE_ShutterSpeed ,0xffe2ab14) //102 == 0xffe2ab14 |
|---|
| 148 | NSTUB(SetAutoShutdownTime ,0xffc5b5dc) //103 |
|---|
| 149 | NSTUB(SetCurrentCaptureModeType ,0xffc61880) //101 |
|---|
| 150 | NSTUB(SetFileTimeStamp ,0xffc13e38) // 1 |
|---|
| 151 | NSTUB(SetLogicalEventActive ,0xffc5b304) // 1 |
|---|
| 152 | NSTUB(SetParameterData ,0xffd29c0c) //101 |
|---|
| 153 | NSTUB(SetPropertyCase ,0xffc56e08) //102 |
|---|
| 154 | //NSTUB(SetScriptMode ,0xffc5b354) //101 == 0xffc5b354 |
|---|
| 155 | NSTUB(SleepTask ,0xffc17c9c) //101 |
|---|
| 156 | NSTUB(TakeSemaphore ,0xffc0b774) //101 |
|---|
| 157 | NSTUB(TurnOffBackLight ,0xffc65db0) //104 |
|---|
| 158 | NSTUB(TurnOnBackLight ,0xffc65d98) //104 |
|---|
| 159 | NSTUB(UIFS_WriteFirmInfoToFile ,0xffd1f7a4) //103 |
|---|
| 160 | //NSTUB(UnlockAF ,0xffc158b8) //102 == 0xffc158b8 |
|---|
| 161 | NSTUB(UnlockMainPower ,0xffc5b4bc) //103 |
|---|
| 162 | //NSTUB(UnsetZoomForMovie ,0xffd2ed10) //104 == 0xffd2ed10 |
|---|
| 163 | NSTUB(UpdateMBROnFlash ,0xffc3c710) //105 |
|---|
| 164 | NSTUB(VbattGet ,0xffc105d0) //103 |
|---|
| 165 | NSTUB(Write ,0xffc13c08) //101 |
|---|
| 166 | //NSTUB(WriteSDCard ,0xffcf8a00) //108 == 0xffcf8a00 |
|---|
| 167 | NSTUB(_log ,0xffe4f51c) //111 |
|---|
| 168 | NSTUB(_log10 ,0xffe4e460) //112 |
|---|
| 169 | NSTUB(_pow ,0xffe4e5d0) //114 |
|---|
| 170 | NSTUB(_sqrt ,0xffe50884) // 1 |
|---|
| 171 | NSTUB(add_ptp_handler ,0xffd960e0) // 1 |
|---|
| 172 | NSTUB(apex2us ,0xffd68398) // 4 |
|---|
| 173 | NSTUB(close ,0xffc09f74) // 1 |
|---|
| 174 | NSTUB(closedir ,0xffdc422c) // 1 |
|---|
| 175 | NSTUB(err_init_task ,0xffc04e98) // 4 |
|---|
| 176 | NSTUB(exmem_alloc ,0xffc51af0) //103 |
|---|
| 177 | NSTUB(free ,0xffc03a98) //112 |
|---|
| 178 | NSTUB(kbd_p1_f ,0xffc11d08) //109 |
|---|
| 179 | NSTUB(kbd_p1_f_cont ,0xffc11d14) //109 |
|---|
| 180 | NSTUB(kbd_p2_f ,0xffc11548) //109 |
|---|
| 181 | NSTUB(kbd_read_keys ,0xffc11c0c) //109 |
|---|
| 182 | NSTUB(kbd_read_keys_r2 ,0xffc30728) //109 |
|---|
| 183 | NSTUB(lseek ,0xffc13c9c) //101 |
|---|
| 184 | NSTUB(malloc ,0xffc039c4) //112 |
|---|
| 185 | NSTUB(memcmp ,0xffc0d90c) //101 |
|---|
| 186 | NSTUB(memcpy ,0xffc6e698) //101 |
|---|
| 187 | NSTUB(memset ,0xffd67210) //101 |
|---|
| 188 | NSTUB(mkdir ,0xffc13f00) // 1 |
|---|
| 189 | // ALT: NSTUB(mkdir, 0xffc13fa0) // 1 32/0 |
|---|
| 190 | NSTUB(mktime_ext ,0xffc6ef04) // 1 |
|---|
| 191 | NSTUB(open ,0xffc09ec4) // 1 |
|---|
| 192 | NSTUB(opendir ,0xffdc40c8) // 1 |
|---|
| 193 | NSTUB(openfastdir ,0xffdc40c8) // 1 |
|---|
| 194 | NSTUB(qsort ,0xffd67718) // 1 |
|---|
| 195 | NSTUB(rand ,0xffc0da14) // 1 |
|---|
| 196 | NSTUB(read ,0xffc0a15c) //101 |
|---|
| 197 | NSTUB(readfastdir ,0xffdc415c) // 1 |
|---|
| 198 | NSTUB(reboot_fw_update ,0xffdc8a30) // 5 |
|---|
| 199 | NSTUB(set_control_event ,0xffc5b058) // 1 |
|---|
| 200 | NSTUB(srand ,0xffc0da08) // 1 |
|---|
| 201 | NSTUB(stat ,0xffc13d68) // 1 |
|---|
| 202 | NSTUB(strcat ,0xffc6e484) // 1 |
|---|
| 203 | NSTUB(strchr ,0xffc6e50c) // 1 |
|---|
| 204 | NSTUB(strcmp ,0xffc0d8a4) //101 |
|---|
| 205 | NSTUB(strcpy ,0xffc0d88c) //101 |
|---|
| 206 | NSTUB(strftime ,0xffc6e90c) // 1 |
|---|
| 207 | NSTUB(strlen ,0xffc0d8e8) //101 |
|---|
| 208 | NSTUB(strncmp ,0xffc6e4c0) // 1 |
|---|
| 209 | NSTUB(strncpy ,0xffc1d81c) // 1 |
|---|
| 210 | NSTUB(strrchr ,0xffc6e530) // 1 |
|---|
| 211 | NSTUB(strtol ,0xffc1da54) //101 |
|---|
| 212 | NSTUB(strtolx ,0xffc1d858) //109 |
|---|
| 213 | DEF(task_CaptSeq ,0xffc488a4) //107 |
|---|
| 214 | DEF(task_ExpDrv ,0xffc900b8) //110 |
|---|
| 215 | DEF(task_InitFileModules ,0xffc5ebf8) //107 |
|---|
| 216 | DEF(task_MovieRecord ,0xffc453d8) //107 |
|---|
| 217 | DEF(task_PhySw ,0xffc118a4) //107 |
|---|
| 218 | NSTUB(time ,0xffc50edc) // 1 |
|---|
| 219 | NSTUB(vsprintf ,0xffc0d80c) // 1 |
|---|