| 1 | // !!! THIS FILE IS GENERATED. DO NOT EDIT. !!! |
|---|
| 2 | #include "stubs_asm.h" |
|---|
| 3 | |
|---|
| 4 | // Camera info: |
|---|
| 5 | // DRYOS R47 (DRYOS version 2.3, release #0047) |
|---|
| 6 | // Firmware Ver GM1.00C |
|---|
| 7 | // Canon PowerShot A800 |
|---|
| 8 | |
|---|
| 9 | // Values for makefile.inc |
|---|
| 10 | // PLATFORMID = 12838 (0x3226) // Found @ 0xfffe0040 |
|---|
| 11 | // MAXRAMADDR = 0x01ffffff |
|---|
| 12 | // KEYSYS = d4c // Found @ 0xffff1a20 |
|---|
| 13 | // NEED_ENCODED_DISKBOOT = 6 // Found @ 0xffff1a30 |
|---|
| 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(GetBatteryTemperature ,0xffc45dec) //102 *** != 0x00000000 |
|---|
| 18 | NSTUB(kbd_pwr_off ,0xffc43e84) // 2 60% |
|---|
| 19 | // ERROR: kbd_pwr_on is not found. //--- --- *** != 0x00000000 |
|---|
| 20 | //NSTUB(mkdir ,0xffc267f8) // 6 53% *** != 0xffc267fc |
|---|
| 21 | // ERROR: rand is not found. //--- --- *** != 0x00000000 |
|---|
| 22 | // ERROR: srand is not found. //--- --- *** != 0x00000000 |
|---|
| 23 | |
|---|
| 24 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 25 | // Firmware modemap table found @ffc739fc -> ffc7069c -> ffd39ee8 -> ffe267b8 -> ffee9f18 |
|---|
| 26 | // No problems found with modemap table. |
|---|
| 27 | |
|---|
| 28 | // Values below can be overridden in 'stubs_min.S': |
|---|
| 29 | DEF(physw_status ,0x0002f048) // Found @0xffc23c3c |
|---|
| 30 | DEF(physw_run ,0x00001bf8) // Found @0xffc237fc |
|---|
| 31 | DEF(levent_table ,0xffeba314) // Found @0xffeba314 |
|---|
| 32 | DEF(FlashParamsTable ,0xffeea13c) // Found @0xffeea13c |
|---|
| 33 | DEF(movie_status ,0x000056b8) // Found @0xffd18138 |
|---|
| 34 | DEF(full_screen_refresh ,0x00007810) // Found @0xffd88cc8 |
|---|
| 35 | DEF(canon_menu_active ,0x00002a98) // Found @0xffc6c4e8 |
|---|
| 36 | DEF(canon_shoot_menu_active ,0x000068a9) // Found @0xffd4c494 |
|---|
| 37 | DEF(playrec_mode ,0x000027e4) // Found @0xffc5f96c |
|---|
| 38 | DEF(zoom_status ,0x0000a050) // Found @0xffe2a418 |
|---|
| 39 | DEF(some_flag_for_af_scan ,0x00005a70) // Found @0xffd1b170 |
|---|
| 40 | // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c). |
|---|
| 41 | // each entry contains 3 int value(s), the first is the zoom focus length. |
|---|
| 42 | // there are 7 entries in the table - set NUM_FL to 7 |
|---|
| 43 | DEF(focus_len_table ,0xfffe2ee8) // Found @0xfffe2ee8 |
|---|
| 44 | DEF(zoom_busy ,0x0000560c) // Found @0xffd14e64 |
|---|
| 45 | DEF(focus_busy ,0x0000551c) // Found @0xffd125c4 |
|---|
| 46 | DEF(recreview_hold ,0x000030d4) // Found @0xffc78de0 |
|---|
| 47 | |
|---|
| 48 | // Values below go in 'lib.c': |
|---|
| 49 | //void *vid_get_bitmap_fb() { return (void*)0x10361000; } // Found @0xffc3fafc |
|---|
| 50 | //void *vid_get_viewport_fb() { return (void*)0x1068c2e0; } // Found @0xffe6fb60 |
|---|
| 51 | //void *vid_get_viewport_fb_d() { return (void*)(*(int*)(0x2588+0x54)); } // Found @0xffc543b8 & 0xffc543f0 |
|---|
| 52 | //char *camera_jpeg_count_str() { return (char*)0x00088994; } // Found @0xffd810bc |
|---|
| 53 | //long hook_raw_size() { return 0x00ec04f0; } // Found @0xffe73000 |
|---|
| 54 | //int get_flash_params_count(void) { return 0xa0; } // Found @0xffd3af20 |
|---|
| 55 | |
|---|
| 56 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 57 | //#define SD_READONLY_FLAG 0x00020000 // Found @0xffe9db68, levent 0x90a |
|---|
| 58 | //#define SD_READONLY_IDX 2 |
|---|
| 59 | //#define USB_MASK 0x01000000 // Found @0xffe9db88, levent 0x902 |
|---|
| 60 | //#define USB_IDX 2 |
|---|
| 61 | |
|---|
| 62 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 63 | //static KeyMap keymap[] = { |
|---|
| 64 | // { 2, KEY_ZOOM_OUT ,0x00000040 }, // Found @0xffe9db40, levent 0x03 |
|---|
| 65 | // { 2, KEY_ZOOM_IN ,0x00000080 }, // Found @0xffe9db48, levent 0x02 |
|---|
| 66 | // { 2, KEY_SET ,0x00000100 }, // Found @0xffe9db50, levent 0x08 |
|---|
| 67 | // { 2, KEY_RIGHT ,0x00000200 }, // Found @0xffe9db58, levent 0x07 |
|---|
| 68 | // { 2, KEY_UP ,0x02000000 }, // Found @0xffe9db90, levent 0x04 |
|---|
| 69 | // { 2, KEY_DOWN ,0x04000000 }, // Found @0xffe9db98, levent 0x05 |
|---|
| 70 | // { 2, KEY_LEFT ,0x08000000 }, // Found @0xffe9dba0, levent 0x06 |
|---|
| 71 | // { 2, KEY_MENU ,0x20000000 }, // Found @0xffe9dbb0, levent 0x09 |
|---|
| 72 | // { 2, KEY_SHOOT_FULL ,0x00000030 }, // Found @0xffe9db38, levent 0x01 |
|---|
| 73 | // { 2, KEY_SHOOT_FULL_ONLY ,0x00000020 }, // Found @0xffe9db38, levent 0x01 |
|---|
| 74 | // { 2, KEY_SHOOT_HALF ,0x00000010 }, // Found @0xffe9db30, levent 0x00 |
|---|
| 75 | // { 0, 0, 0 } |
|---|
| 76 | //}; |
|---|
| 77 | |
|---|
| 78 | // Values below go in 'platform_camera.h': |
|---|
| 79 | //#define CAM_DRYOS 1 |
|---|
| 80 | //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher |
|---|
| 81 | //#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher |
|---|
| 82 | //#define CAM_RAW_ROWPIX 3720 // Found @0xffcf3210 |
|---|
| 83 | //#define CAM_RAW_ROWS 2772 // Found @0xffcf321c |
|---|
| 84 | //#undef CAM_UNCACHED_BIT |
|---|
| 85 | //#define CAM_UNCACHED_BIT 0x10000000 // Found @0xffc29904 |
|---|
| 86 | |
|---|
| 87 | // Misc stuff |
|---|
| 88 | DEF(ctypes, 0xffe9d276) |
|---|
| 89 | |
|---|
| 90 | // For capt_seq.c |
|---|
| 91 | //static long *nrflag = (long*)(0x5a8c+0x08); // Found @ ffd1d88c & ffd1d8d0 |
|---|
| 92 | //#define NR_AUTO (0) // have to explictly reset value back to 0 to enable auto |
|---|
| 93 | |
|---|
| 94 | // Stubs below matched 100%. |
|---|
| 95 | // Name Address Comp to stubs_entry_2.S |
|---|
| 96 | NSTUB(AllocateMemory ,0xffe193b0) //101 |
|---|
| 97 | NSTUB(AllocateUncacheableMemory ,0xffc298bc) //112 |
|---|
| 98 | NSTUB(Close ,0xffc26360) //101 |
|---|
| 99 | NSTUB(CreateTask ,0xffc0f290) //101 |
|---|
| 100 | NSTUB(DebugAssert ,0xffc0f768) //111 |
|---|
| 101 | NSTUB(DeleteDirectory_Fut ,0xffc25d5c) // 1 |
|---|
| 102 | NSTUB(DeleteFile_Fut ,0xffc25c78) //112 |
|---|
| 103 | NSTUB(DoAFLock ,0xffc27a24) //102 |
|---|
| 104 | NSTUB(EnterToCompensationEVF ,0xffc27ad4) //104 |
|---|
| 105 | NSTUB(ExecuteEventProcedure ,0xffc67d18) // 1 |
|---|
| 106 | NSTUB(ExitFromCompensationEVF ,0xffc27b18) //104 |
|---|
| 107 | NSTUB(ExitTask ,0xffc0f520) //101 |
|---|
| 108 | NSTUB(ExpCtrlTool_StartContiAE ,0xffc358f8) //104 |
|---|
| 109 | NSTUB(ExpCtrlTool_StopContiAE ,0xffc35a78) //104 |
|---|
| 110 | NSTUB(Fclose_Fut ,0xffc25df4) //101 |
|---|
| 111 | NSTUB(Feof_Fut ,0xffc25fe0) // 1 |
|---|
| 112 | NSTUB(Fflush_Fut ,0xffc2601c) // 1 |
|---|
| 113 | NSTUB(Fgets_Fut ,0xffc25f48) // 6 |
|---|
| 114 | NSTUB(Fopen_Fut ,0xffc25db4) //101 |
|---|
| 115 | NSTUB(Fread_Fut ,0xffc25ea0) //101 |
|---|
| 116 | NSTUB(FreeMemory ,0xffe193a8) //101 |
|---|
| 117 | NSTUB(FreeUncacheableMemory ,0xffc298fc) //112 |
|---|
| 118 | NSTUB(Fseek_Fut ,0xffc25f94) //101 |
|---|
| 119 | NSTUB(Fwrite_Fut ,0xffc25ef4) //101 |
|---|
| 120 | NSTUB(GetCCDTemperature ,0xffc45d78) //102 |
|---|
| 121 | NSTUB(GetCurrentAvValue ,0xffd13ed4) //102 |
|---|
| 122 | NSTUB(GetDrive_ClusterSize ,0xffc52da4) // 6 |
|---|
| 123 | NSTUB(GetDrive_FreeClusters ,0xffc52dfc) // 6 |
|---|
| 124 | NSTUB(GetDrive_TotalClusters ,0xffc52dd4) // 6 |
|---|
| 125 | NSTUB(GetFocusLensSubjectDistance ,0xffd1313c) //102 |
|---|
| 126 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xffd13598) // 3 |
|---|
| 127 | NSTUB(GetImageFolder ,0xffcfa088) // 6 |
|---|
| 128 | NSTUB(GetKbdState ,0xffc43e6c) //109 |
|---|
| 129 | NSTUB(GetMemInfo ,0xffc0a8a0) // 3 |
|---|
| 130 | NSTUB(GetOpticalTemperature ,0xffc45e64) //102 |
|---|
| 131 | NSTUB(GetParameterData ,0xffd3aee0) //101 |
|---|
| 132 | NSTUB(GetPropertyCase ,0xffc6ba84) //102 |
|---|
| 133 | NSTUB(GetSystemTime ,0xffe19408) //101 |
|---|
| 134 | NSTUB(GetZoomLensCurrentPoint ,0xffd151e8) //102 |
|---|
| 135 | NSTUB(GetZoomLensCurrentPosition ,0xffe09db4) //102 |
|---|
| 136 | NSTUB(GiveSemaphore ,0xffc0f1f0) //112 |
|---|
| 137 | NSTUB(IsStrobeChargeCompleted ,0xffcaf2c8) //102 |
|---|
| 138 | NSTUB(LEDDrive ,0xffc43538) //101 |
|---|
| 139 | NSTUB(LocalTime ,0xffc65708) // 6 |
|---|
| 140 | NSTUB(LockMainPower ,0xffc70290) //103 |
|---|
| 141 | NSTUB(Lseek ,0xffc2657c) //101 |
|---|
| 142 | NSTUB(MakeDirectory_Fut ,0xffc25cec) // 6 |
|---|
| 143 | NSTUB(MakeSDCardBootable ,0xffc53034) //105 |
|---|
| 144 | NSTUB(MoveFocusLensToDistance ,0xffe6befc) //102 |
|---|
| 145 | NSTUB(MoveIrisWithAv ,0xffe15be0) //102 |
|---|
| 146 | NSTUB(MoveZoomLensWithPoint ,0xffe16284) //102 |
|---|
| 147 | NSTUB(NewTaskShell ,0xffc6b4c8) //101 |
|---|
| 148 | NSTUB(Open ,0xffc26298) //101 |
|---|
| 149 | NSTUB(PB2Rec ,0xffc72f50) //104 |
|---|
| 150 | NSTUB(PT_MoveDigitalZoomToWide ,0xffc58dec) //102 |
|---|
| 151 | NSTUB(PT_MoveOpticalZoomAt ,0xffc58dc4) //102 |
|---|
| 152 | NSTUB(PT_PlaySound ,0xffc61544) // 6 |
|---|
| 153 | NSTUB(PostLogicalEventForNotPowerType ,0xffc6fabc) //103 |
|---|
| 154 | NSTUB(PostLogicalEventToUI ,0xffc6fb08) //103 |
|---|
| 155 | NSTUB(PutInNdFilter ,0xffe160cc) //102 |
|---|
| 156 | NSTUB(PutOutNdFilter ,0xffe160f0) //102 |
|---|
| 157 | NSTUB(Read ,0xffc0b35c) //101 |
|---|
| 158 | NSTUB(ReadFastDir ,0xffdff8d0) // 6 |
|---|
| 159 | NSTUB(Rec2PB ,0xffc72f90) //104 |
|---|
| 160 | NSTUB(RefreshPhysicalScreen ,0xffc80098) //104 |
|---|
| 161 | NSTUB(Remove ,0xffc264d4) // 6 |
|---|
| 162 | NSTUB(RenameFile_Fut ,0xffc25be4) // 6 |
|---|
| 163 | NSTUB(Restart ,0xffc2b0d8) //106 |
|---|
| 164 | NSTUB(ScreenLock ,0xffc81278) // 4 |
|---|
| 165 | NSTUB(ScreenUnlock ,0xffc812dc) // 3 |
|---|
| 166 | NSTUB(SetAE_ShutterSpeed ,0xffe6ed78) //102 |
|---|
| 167 | NSTUB(SetAutoShutdownTime ,0xffc70304) //103 |
|---|
| 168 | NSTUB(SetCurrentCaptureModeType ,0xffc76628) //101 |
|---|
| 169 | NSTUB(SetFileAttributes ,0xffc26764) // 6 |
|---|
| 170 | NSTUB(SetFileTimeStamp ,0xffc266ec) // 6 |
|---|
| 171 | NSTUB(SetLogicalEventActive ,0xffc70008) //101 |
|---|
| 172 | NSTUB(SetParameterData ,0xffd3ae50) //101 |
|---|
| 173 | NSTUB(SetPropertyCase ,0xffc6b968) //102 |
|---|
| 174 | NSTUB(SetScriptMode ,0xffc70058) //101 |
|---|
| 175 | NSTUB(SleepTask ,0xffc29760) //101 |
|---|
| 176 | NSTUB(TakeSemaphore ,0xffc0f120) //101 |
|---|
| 177 | NSTUB(TurnOffBackLight ,0xffc7b568) //104 |
|---|
| 178 | NSTUB(TurnOnBackLight ,0xffc7b550) //104 |
|---|
| 179 | NSTUB(UIFS_WriteFirmInfoToFile ,0xffd2db9c) //101 |
|---|
| 180 | NSTUB(UnlockAF ,0xffc27a5c) //102 |
|---|
| 181 | NSTUB(UnlockMainPower ,0xffc701e4) //103 |
|---|
| 182 | NSTUB(UnsetZoomForMovie ,0xffd41454) //104 |
|---|
| 183 | NSTUB(VbattGet ,0xffc22b4c) //101 |
|---|
| 184 | NSTUB(Write ,0xffc263b4) //101 |
|---|
| 185 | NSTUB(WriteSDCard ,0xffd07b28) //108 |
|---|
| 186 | NSTUB(_log ,0xffe99ea0) //111 |
|---|
| 187 | NSTUB(_log10 ,0xffe9a3e0) //112 |
|---|
| 188 | NSTUB(_pow ,0xffe9a558) //114 |
|---|
| 189 | NSTUB(_sqrt ,0xffe9c17c) // 6 |
|---|
| 190 | NSTUB(add_ptp_handler ,0xffdd53ac) // 6 |
|---|
| 191 | NSTUB(apex2us ,0xffd8dfd0) // 4 |
|---|
| 192 | NSTUB(close ,0xffc0b1b8) // 6 |
|---|
| 193 | NSTUB(closedir ,0xffdff72c) // 4 |
|---|
| 194 | NSTUB(err_init_task ,0xffc05fd8) // 4 |
|---|
| 195 | NSTUB(exmem_alloc ,0xffc666d0) //101 |
|---|
| 196 | NSTUB(free ,0xffc04248) //112 |
|---|
| 197 | NSTUB(kbd_p1_f ,0xffc23cb8) //109 |
|---|
| 198 | NSTUB(kbd_p1_f_cont ,0xffc23cc4) //109 |
|---|
| 199 | NSTUB(kbd_p2_f ,0xffc234cc) //109 |
|---|
| 200 | NSTUB(kbd_read_keys ,0xffc23c3c) //109 |
|---|
| 201 | NSTUB(kbd_read_keys_r2 ,0xffc43878) //109 |
|---|
| 202 | NSTUB(lseek ,0xffc2657c) //101 |
|---|
| 203 | NSTUB(malloc ,0xffc041f0) //112 |
|---|
| 204 | NSTUB(memcmp ,0xffc114d8) //101 |
|---|
| 205 | NSTUB(memcpy ,0xffc2ee6c) //101 |
|---|
| 206 | NSTUB(memset ,0xffd8d00c) //101 |
|---|
| 207 | NSTUB(mktime_ext ,0xffc82008) // 1 |
|---|
| 208 | NSTUB(open ,0xffc0b108) // 6 |
|---|
| 209 | NSTUB(opendir ,0xffdff77c) // 6 |
|---|
| 210 | NSTUB(openfastdir ,0xffdff77c) // 6 |
|---|
| 211 | NSTUB(qsort ,0xffe527f0) // 6 |
|---|
| 212 | NSTUB(read ,0xffc0b35c) //101 |
|---|
| 213 | NSTUB(reboot_fw_update ,0xffe01178) // 6 |
|---|
| 214 | NSTUB(rename ,0xffc25be4) // 6 |
|---|
| 215 | NSTUB(set_control_event ,0xffc6fd2c) //111 |
|---|
| 216 | NSTUB(stat ,0xffc265c4) // 3 |
|---|
| 217 | NSTUB(strcat ,0xffc817c0) // 1 |
|---|
| 218 | NSTUB(strchr ,0xffc040bc) // 1 |
|---|
| 219 | NSTUB(strcmp ,0xffc11494) //101 |
|---|
| 220 | NSTUB(strcpy ,0xffc1147c) //101 |
|---|
| 221 | NSTUB(strftime ,0xffc81a08) //113 |
|---|
| 222 | NSTUB(strlen ,0xffc04108) //101 |
|---|
| 223 | NSTUB(strncmp ,0xffc04070) // 1 |
|---|
| 224 | NSTUB(strncpy ,0xffc04034) // 1 |
|---|
| 225 | NSTUB(strrchr ,0xffc040e0) // 1 |
|---|
| 226 | NSTUB(strtol ,0xffc2f16c) //101 |
|---|
| 227 | NSTUB(strtolx ,0xffc2ef70) //109 |
|---|
| 228 | DEF(task_CaptSeq ,0xffc5b06c) //110 |
|---|
| 229 | DEF(task_ExpDrv ,0xffc98190) //110 |
|---|
| 230 | DEF(task_InitFileModules ,0xffc7387c) //110 |
|---|
| 231 | DEF(task_MovieRecord ,0xffd18384) //110 |
|---|
| 232 | DEF(task_PhySw ,0xffc237f8) //110 |
|---|
| 233 | NSTUB(time ,0xffc65ce4) // 6 |
|---|
| 234 | NSTUB(vsprintf ,0xffc1143c) // 6 |
|---|
| 235 | NSTUB(write ,0xffc263b4) //101 |
|---|