| 1 | // !!! THIS FILE IS GENERATED. DO NOT EDIT. !!! |
|---|
| 2 | #include "stubs_asm.h" |
|---|
| 3 | |
|---|
| 4 | // Camera info: |
|---|
| 5 | // DRYOS R31 (DRYOS version 2.3, release #0031) |
|---|
| 6 | // Firmware Ver GM1.00C |
|---|
| 7 | // Canon PowerShot A1100 IS |
|---|
| 8 | |
|---|
| 9 | // Values for makefile.inc |
|---|
| 10 | // PLATFORMOSVER = 31 |
|---|
| 11 | // PLATFORMID = 12739 (0x31c3) // Found @ 0xfffe0130 |
|---|
| 12 | // MAXRAMADDR = 0x03ffffff |
|---|
| 13 | // KEYSYS = d4 // Found @ 0xffff1d04 |
|---|
| 14 | // NEED_ENCODED_DISKBOOT = 2 // Found @ 0xffff1d14 |
|---|
| 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(ExpCtrlTool_StopContiAE ,0xffc1f9c4) //104 *** != 0xffc1faac |
|---|
| 19 | //NSTUB(SetAE_ShutterSpeed ,0xffe425b8) //102 *** != 0xffe3d994 |
|---|
| 20 | //NSTUB(kbd_pwr_off ,0xffc30b9c) // 2 64% *** != 0xffc30b40 |
|---|
| 21 | NSTUB(kbd_pwr_on ,0xffc30b5c) // 2 82% |
|---|
| 22 | |
|---|
| 23 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 24 | // Firmware modemap table found @ffc6067c -> ffc5d0d0 -> ffd1ba78 -> ffdfeb44 -> ffebbd0c |
|---|
| 25 | // Mode 16398 in firmware but not in current modemap |
|---|
| 26 | |
|---|
| 27 | // Values below can be overridden in 'stubs_min.S': |
|---|
| 28 | DEF(physw_status ,0x0000c624) // Found @0xffc11a0c |
|---|
| 29 | DEF(physw_run ,0x00001c24) // Found @0xffc11680 |
|---|
| 30 | DEF(levent_table ,0xffe93cdc) // Found @0xffe93cdc |
|---|
| 31 | DEF(FlashParamsTable ,0xffebbee0) // Found @0xffebbee0 |
|---|
| 32 | DEF(movie_status ,0x00005630) // Found @0xffcf8080 |
|---|
| 33 | DEF(canon_menu_active ,0x00002b7c) // Found @0xffc59f18 |
|---|
| 34 | DEF(canon_shoot_menu_active ,0x000068c9) // Found @0xffd2bd58 |
|---|
| 35 | DEF(playrec_mode ,0x000028f0) // Found @0xffc4d504 |
|---|
| 36 | DEF(zoom_status ,0x000098d0) // Found @0xffe00374 |
|---|
| 37 | DEF(some_flag_for_af_scan ,0x00005af4) // Found @0xffcfa7a4 |
|---|
| 38 | // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c). |
|---|
| 39 | // each entry contains 3 int value(s), the first is the zoom focus length. |
|---|
| 40 | // there are 8 entries in the table - set NUM_FL to 8 |
|---|
| 41 | DEF(focus_len_table ,0xfffe2a8c) // Found @0xfffe2a8c |
|---|
| 42 | DEF(zoom_busy ,0x00005560) // Found @0xffcf4788 |
|---|
| 43 | DEF(focus_busy ,0x00005478) // Found @0xffcefa8c |
|---|
| 44 | //DEF(recreview_hold ,0x000030e0) // Found @0xffc65938, ** != ** stubs_min = 0xffc00414 (0xFFC00414) |
|---|
| 45 | |
|---|
| 46 | // Values below go in 'lib.c': |
|---|
| 47 | //void *vid_get_bitmap_fb() { return (void*)0x403f1000; } // Found @0xffc2c594 |
|---|
| 48 | //void *vid_get_viewport_fb() { return (void*)0x4076fcc0; } // Found @0xffe433a8 |
|---|
| 49 | //void *vid_get_viewport_fb_d() { return (void*)(*(int*)(0x2630+0x58)); } // Found @0xffc404f0 & 0xffc40528 |
|---|
| 50 | //char *camera_jpeg_count_str() { return (char*)0x0002f4a8; } // Found @0xffd60210 |
|---|
| 51 | //long hook_raw_size() { return 0x011e4ee0; } // Found @0xffe45910 |
|---|
| 52 | //int get_flash_params_count(void) { return 0x7a; } // Found @0xffd1cb34 |
|---|
| 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 @0xffe70c7c, levent 0x90a |
|---|
| 56 | //#define SD_READONLY_IDX 2 |
|---|
| 57 | //#define USB_MASK 0x00040000 // Found @0xffe70c88, 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 | // { 1, KEY_UP ,0x00000100 }, // Found @0xffe70b68, levent 0x04 |
|---|
| 63 | // { 1, KEY_DOWN ,0x00000200 }, // Found @0xffe70b74, levent 0x05 |
|---|
| 64 | // { 1, KEY_RIGHT ,0x00000400 }, // Found @0xffe70b80, levent 0x07 |
|---|
| 65 | // { 1, KEY_LEFT ,0x00000800 }, // Found @0xffe70b8c, levent 0x06 |
|---|
| 66 | // { 1, KEY_SET ,0x00001000 }, // Found @0xffe70b98, levent 0x08 |
|---|
| 67 | // { 1, KEY_MENU ,0x00002000 }, // Found @0xffe70ba4, levent 0x09 |
|---|
| 68 | // { 1, KEY_DISPLAY ,0x00004000 }, // Found @0xffe70bb0, levent 0x0a |
|---|
| 69 | // { 2, KEY_ZOOM_IN ,0x00000040 }, // Found @0xffe70c28, levent 0x02 |
|---|
| 70 | // { 2, KEY_ZOOM_OUT ,0x00000080 }, // Found @0xffe70c34, levent 0x03 |
|---|
| 71 | // { 2, KEY_SHOOT_FULL ,0x00000030 }, // Found @0xffe70c1c, levent 0x01 |
|---|
| 72 | // { 2, KEY_SHOOT_FULL_ONLY ,0x00000020 }, // Found @0xffe70c1c, levent 0x01 |
|---|
| 73 | // { 2, KEY_SHOOT_HALF ,0x00000010 }, // Found @0xffe70c10, levent 0x00 |
|---|
| 74 | // { 0, 0, 0 } |
|---|
| 75 | //}; |
|---|
| 76 | |
|---|
| 77 | // Values below go in 'platform_camera.h': |
|---|
| 78 | //#define CAM_DRYOS 1 |
|---|
| 79 | //#define CAM_RAW_ROWPIX 4104 // Found @0xffcc7c84 |
|---|
| 80 | //#define CAM_RAW_ROWS 3048 // Found @0xffcc7c8c |
|---|
| 81 | //#undef CAM_UNCACHED_BIT |
|---|
| 82 | //#define CAM_UNCACHED_BIT 0x40000000 // Found @0xffc16e84 |
|---|
| 83 | |
|---|
| 84 | // Misc stuff |
|---|
| 85 | DEF(ctypes, 0xffe6fa66) |
|---|
| 86 | |
|---|
| 87 | // For capt_seq.c |
|---|
| 88 | //static long *nrflag = (long*)(0x5ae0-0x08); // Found @ ffcfc4d4 & ffcfc4f0 |
|---|
| 89 | |
|---|
| 90 | // Stubs below matched 100%. |
|---|
| 91 | // Name Address Comp to stubs_entry_2.S |
|---|
| 92 | NSTUB(AllocateMemory ,0xffdf53ac) //101 |
|---|
| 93 | NSTUB(AllocateUncacheableMemory ,0xffc16e40) //112 |
|---|
| 94 | NSTUB(Close ,0xffc138e0) //101 |
|---|
| 95 | NSTUB(CreateTask ,0xffc0afac) //101 |
|---|
| 96 | NSTUB(DebugAssert ,0xffc0b284) //111 |
|---|
| 97 | NSTUB(DeleteDirectory_Fut ,0xffc13270) // 1 |
|---|
| 98 | NSTUB(DeleteFile_Fut ,0xffc1318c) //112 |
|---|
| 99 | NSTUB(DoAFLock ,0xffc14f40) //102 |
|---|
| 100 | NSTUB(EnterToCompensationEVF ,0xffc14ff0) //104 |
|---|
| 101 | NSTUB(ExecuteEventProcedure ,0xffc555c0) // 1 |
|---|
| 102 | NSTUB(ExitFromCompensationEVF ,0xffc15034) //104 |
|---|
| 103 | NSTUB(ExitTask ,0xffc0b23c) //101 |
|---|
| 104 | NSTUB(ExpCtrlTool_StartContiAE ,0xffc1f880) //104 |
|---|
| 105 | NSTUB(Fclose_Fut ,0xffc13308) //101 |
|---|
| 106 | NSTUB(Feof_Fut ,0xffc134f4) // 1 |
|---|
| 107 | NSTUB(Fflush_Fut ,0xffc13530) // 1 |
|---|
| 108 | NSTUB(Fgets_Fut ,0xffc1345c) // 1 |
|---|
| 109 | NSTUB(Fopen_Fut ,0xffc132c8) //101 |
|---|
| 110 | NSTUB(Fread_Fut ,0xffc133b4) //101 |
|---|
| 111 | NSTUB(FreeMemory ,0xffdf53a4) //101 |
|---|
| 112 | NSTUB(FreeUncacheableMemory ,0xffc16e80) //112 |
|---|
| 113 | NSTUB(Fseek_Fut ,0xffc134a8) //101 |
|---|
| 114 | NSTUB(Fwrite_Fut ,0xffc13408) //101 |
|---|
| 115 | NSTUB(GetBatteryTemperature ,0xffc32c44) //102 |
|---|
| 116 | NSTUB(GetCCDTemperature ,0xffc32bd0) //102 |
|---|
| 117 | NSTUB(GetCurrentAvValue ,0xffcf18a8) //102 |
|---|
| 118 | NSTUB(GetDrive_ClusterSize ,0xffc3ed84) // 5 |
|---|
| 119 | NSTUB(GetDrive_FreeClusters ,0xffc3eddc) // 5 |
|---|
| 120 | NSTUB(GetDrive_TotalClusters ,0xffc3edb0) // 5 |
|---|
| 121 | NSTUB(GetFocusLensSubjectDistance ,0xffcf08f4) //102 |
|---|
| 122 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xffcf0cd4) // 3 |
|---|
| 123 | NSTUB(GetKbdState ,0xffc30b28) //109 |
|---|
| 124 | NSTUB(GetMemInfo ,0xffc03be4) // 1 |
|---|
| 125 | NSTUB(GetOpticalTemperature ,0xffc32cbc) //102 |
|---|
| 126 | NSTUB(GetParameterData ,0xffd1caf4) //101 |
|---|
| 127 | NSTUB(GetPropertyCase ,0xffc593fc) //102 |
|---|
| 128 | NSTUB(GetSystemTime ,0xffdf5404) //101 |
|---|
| 129 | NSTUB(GetVRAMHPixelsSize ,0xffc959f0) //102 |
|---|
| 130 | NSTUB(GetVRAMVPixelsSize ,0xffc959fc) //102 |
|---|
| 131 | NSTUB(GetZoomLensCurrentPoint ,0xffcf4b00) //102 |
|---|
| 132 | NSTUB(GetZoomLensCurrentPosition ,0xffded338) //102 |
|---|
| 133 | NSTUB(GiveSemaphore ,0xffc1685c) //112 |
|---|
| 134 | NSTUB(IsStrobeChargeCompleted ,0xffc870ec) //102 |
|---|
| 135 | NSTUB(LEDDrive ,0xffc30088) //103 |
|---|
| 136 | NSTUB(LocalTime ,0xffc53284) // 1 |
|---|
| 137 | NSTUB(LockMainPower ,0xffc5cce8) //103 |
|---|
| 138 | NSTUB(Lseek ,0xffc13a20) //101 |
|---|
| 139 | NSTUB(MakeDirectory_Fut ,0xffc13200) // 1 |
|---|
| 140 | NSTUB(MoveFocusLensToDistance ,0xffe3fdd8) //102 |
|---|
| 141 | NSTUB(MoveIrisWithAv ,0xffdf2648) //102 |
|---|
| 142 | NSTUB(MoveZoomLensWithPoint ,0xffdf2bd4) //102 |
|---|
| 143 | NSTUB(NewTaskShell ,0xffc58ea8) //103 |
|---|
| 144 | NSTUB(Open ,0xffc138b8) //101 |
|---|
| 145 | NSTUB(PB2Rec ,0xffc5e760) //104 |
|---|
| 146 | NSTUB(PT_MoveDigitalZoomToWide ,0xffc46da8) //102 |
|---|
| 147 | NSTUB(PT_MoveOpticalZoomAt ,0xffc46d80) //102 |
|---|
| 148 | NSTUB(PT_PlaySound ,0xffc469bc) //102 |
|---|
| 149 | NSTUB(PostLogicalEventForNotPowerType ,0xffc5c310) //103 |
|---|
| 150 | NSTUB(PostLogicalEventToUI ,0xffc5c35c) //103 |
|---|
| 151 | NSTUB(PutInNdFilter ,0xffdf2a38) //102 |
|---|
| 152 | NSTUB(PutOutNdFilter ,0xffdf2a5c) //102 |
|---|
| 153 | NSTUB(Read ,0xffc09ae4) //101 |
|---|
| 154 | NSTUB(ReadFastDir ,0xffddf844) // 1 |
|---|
| 155 | NSTUB(Rec2PB ,0xffc5fb48) //104 |
|---|
| 156 | NSTUB(RefreshPhysicalScreen ,0xffd6b630) //104 |
|---|
| 157 | NSTUB(Remove ,0xffc13928) // 1 |
|---|
| 158 | NSTUB(RenameFile_Fut ,0xffc13138) // 1 |
|---|
| 159 | NSTUB(Restart ,0xffc18594) //106 |
|---|
| 160 | NSTUB(SetAutoShutdownTime ,0xffc5cd5c) //103 |
|---|
| 161 | NSTUB(SetCurrentCaptureModeType ,0xffc632cc) //101 |
|---|
| 162 | NSTUB(SetFileAttributes ,0xffc13c0c) // 1 |
|---|
| 163 | NSTUB(SetFileTimeStamp ,0xffc13bbc) // 1 |
|---|
| 164 | NSTUB(SetLogicalEventActive ,0xffc5ca64) //101 |
|---|
| 165 | NSTUB(SetParameterData ,0xffd1ca64) //101 |
|---|
| 166 | NSTUB(SetPropertyCase ,0xffc592f8) //102 |
|---|
| 167 | NSTUB(SetScriptMode ,0xffc5cab4) //101 |
|---|
| 168 | NSTUB(SleepTask ,0xffc16ac4) //101 |
|---|
| 169 | NSTUB(TakeSemaphore ,0xffc1678c) //101 |
|---|
| 170 | NSTUB(TurnOffBackLight ,0xffc67d48) //104 |
|---|
| 171 | NSTUB(TurnOnBackLight ,0xffc67d30) //104 |
|---|
| 172 | NSTUB(UIFS_WriteFirmInfoToFile ,0xffd0d490) //101 |
|---|
| 173 | NSTUB(UnlockAF ,0xffc14f78) //102 |
|---|
| 174 | NSTUB(UnlockMainPower ,0xffc5cc3c) //103 |
|---|
| 175 | NSTUB(UnsetZoomForMovie ,0xffd226ec) //104 |
|---|
| 176 | NSTUB(UpdateMBROnFlash ,0xffc3ebdc) //105 |
|---|
| 177 | NSTUB(VbattGet ,0xffc10318) //103 |
|---|
| 178 | NSTUB(Write ,0xffc1398c) //101 |
|---|
| 179 | NSTUB(WriteSDCard ,0xffce4748) //108 |
|---|
| 180 | NSTUB(_log ,0xffe6d86c) //111 |
|---|
| 181 | NSTUB(_log10 ,0xffe6c7b0) //112 |
|---|
| 182 | NSTUB(_pow ,0xffe6c920) //114 |
|---|
| 183 | NSTUB(_sqrt ,0xffe6ebd4) // 1 |
|---|
| 184 | NSTUB(add_ptp_handler ,0xffdb1584) // 3 |
|---|
| 185 | NSTUB(apex2us ,0xffd6c6e8) // 4 |
|---|
| 186 | NSTUB(close ,0xffc098fc) // 1 |
|---|
| 187 | NSTUB(closedir ,0xffddf914) // 1 |
|---|
| 188 | NSTUB(err_init_task ,0xffc04e2c) // 4 |
|---|
| 189 | NSTUB(exmem_alloc ,0xffc53eb8) //103 |
|---|
| 190 | NSTUB(free ,0xffc03a3c) //112 |
|---|
| 191 | NSTUB(kbd_p1_f ,0xffc11a90) //109 |
|---|
| 192 | NSTUB(kbd_p1_f_cont ,0xffc11a9c) //109 |
|---|
| 193 | NSTUB(kbd_p2_f ,0xffc1134c) //109 |
|---|
| 194 | NSTUB(kbd_read_keys ,0xffc11a0c) //109 |
|---|
| 195 | NSTUB(kbd_read_keys_r2 ,0xffc304a4) //109 |
|---|
| 196 | NSTUB(lseek ,0xffc13a20) //101 |
|---|
| 197 | NSTUB(malloc ,0xffc03968) //112 |
|---|
| 198 | NSTUB(memcmp ,0xffc0cc60) //101 |
|---|
| 199 | NSTUB(memcpy ,0xffc6b9dc) //101 |
|---|
| 200 | NSTUB(memset ,0xffd6b9d0) //101 |
|---|
| 201 | NSTUB(mkdir ,0xffc13c84) // 1 |
|---|
| 202 | // ALT: NSTUB(mkdir, 0xffc13d24) // 1 32/0 |
|---|
| 203 | NSTUB(mktime_ext ,0xffc6c248) // 1 |
|---|
| 204 | NSTUB(open ,0xffc0984c) // 1 |
|---|
| 205 | NSTUB(opendir ,0xffddf7b0) // 1 |
|---|
| 206 | NSTUB(openfastdir ,0xffddf7b0) // 1 |
|---|
| 207 | NSTUB(qsort ,0xffe265e4) // 1 |
|---|
| 208 | NSTUB(rand ,0xffc0cd68) // 1 |
|---|
| 209 | NSTUB(read ,0xffc09ae4) //101 |
|---|
| 210 | NSTUB(reboot_fw_update ,0xffde3328) // 5 |
|---|
| 211 | NSTUB(rename ,0xffc13138) // 1 |
|---|
| 212 | NSTUB(set_control_event ,0xffc5c798) //111 |
|---|
| 213 | NSTUB(srand ,0xffc0cd5c) // 1 |
|---|
| 214 | NSTUB(stat ,0xffc13aec) // 1 |
|---|
| 215 | NSTUB(strcat ,0xffc6b7f0) // 1 |
|---|
| 216 | NSTUB(strchr ,0xffc6b878) // 1 |
|---|
| 217 | NSTUB(strcmp ,0xffc0cbf8) //101 |
|---|
| 218 | NSTUB(strcpy ,0xffc0cbe0) //101 |
|---|
| 219 | NSTUB(strftime ,0xffc6bc50) // 1 |
|---|
| 220 | NSTUB(strlen ,0xffc0cc3c) //101 |
|---|
| 221 | NSTUB(strncmp ,0xffc6b82c) // 1 |
|---|
| 222 | NSTUB(strncpy ,0xffc1c67c) // 1 |
|---|
| 223 | NSTUB(strrchr ,0xffd6b9a8) // 1 |
|---|
| 224 | NSTUB(strtol ,0xffc1c8b4) //101 |
|---|
| 225 | NSTUB(strtolx ,0xffc1c6b8) //109 |
|---|
| 226 | DEF(task_CaptSeq ,0xffc49060) //107 |
|---|
| 227 | DEF(task_ExpDrv ,0xffc7ddcc) //110 |
|---|
| 228 | DEF(task_InitFileModules ,0xffc60508) //107 |
|---|
| 229 | DEF(task_MovieRecord ,0xffcf82d4) //107 |
|---|
| 230 | DEF(task_PhySw ,0xffc1167c) //107 |
|---|
| 231 | NSTUB(time ,0xffc53138) // 1 |
|---|
| 232 | NSTUB(vsprintf ,0xffc0cba4) // 1 |
|---|
| 233 | NSTUB(write ,0xffc1398c) //101 |
|---|