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