| 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.01B |
|---|
| 7 | // Canon DIGITAL IXUS 980 IS |
|---|
| 8 | |
|---|
| 9 | // Values for makefile.inc |
|---|
| 10 | // PLATFORMID = 12691 (0x3193) // Found @ 0xfffe0130 |
|---|
| 11 | // MAXRAMADDR = 0x07ffffff |
|---|
| 12 | // KEYSYS = d4 // Found @ 0xffff363c |
|---|
| 13 | // NEED_ENCODED_DISKBOOT = 1 // Found @ 0xffff364c |
|---|
| 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 ,0xff8258d0) //102 *** != 0xff863a80 |
|---|
| 18 | //NSTUB(UnlockAF ,0xff825908) //102 *** != 0xff863a90 |
|---|
| 19 | //NSTUB(kbd_pwr_off ,0xff84a3a8) // 2 64% *** != 0xff81093c |
|---|
| 20 | // ERROR: kbd_pwr_on is not found. //--- --- *** != 0xff81093c |
|---|
| 21 | //NSTUB(rename ,0xff8233cc) // 1 *** != 0xff823c48 |
|---|
| 22 | //NSTUB(write ,0xff823c20) //101 *** != 0xff819aac |
|---|
| 23 | |
|---|
| 24 | // Check of modemap from 'platform/CAMERA/shooting.c': |
|---|
| 25 | // Firmware modemap table found @ff8816a8 -> ff87de64 -> ff961a3c -> ffa58654 -> ffb49850 |
|---|
| 26 | // No problems found with modemap table. |
|---|
| 27 | |
|---|
| 28 | // Values below go in 'stubs_min.S': |
|---|
| 29 | //DEF(physw_status ,0x00011318) // Found @0xff821c24, stubs_min = 0x00011318 (0x11318) |
|---|
| 30 | //DEF(physw_run ,0x00001c28) // Found @0xff821898, stubs_min = 0x00001c28 (0x1c28) |
|---|
| 31 | //DEF(levent_table ,0xffb198e0) // Found @0xffb198e0, stubs_min = 0xffb198e0 (0xFFB198E0) |
|---|
| 32 | //DEF(FlashParamsTable ,0xffb49a24) // Found @0xffb49a24, stubs_min = 0xffb49a24 (0xFFB49A24) |
|---|
| 33 | //DEF(movie_status ,0x000053dc) // Found @0xff861ed0, stubs_min = 0x000053dc (0x53DC) |
|---|
| 34 | //DEF(canon_menu_active ,0x00005830) // Found @0xff876e48, stubs_min = 0x00005830 (0x5830) |
|---|
| 35 | //DEF(canon_shoot_menu_active ,0x0000a351) // Found @0xff973b2c, stubs_min = 0x0000a351 (0xA351) |
|---|
| 36 | //DEF(playrec_mode ,0x00005594) // Found @0xff869e90, stubs_min = 0x00005594 (0x5594) |
|---|
| 37 | //DEF(zoom_status ,0x0000d890) // Found @0xffa59e68, stubs_min = 0x0000d890 (0xD890) |
|---|
| 38 | //DEF(some_flag_for_af_scan ,0x000093e0) // Found @0xff93be2c, stubs_min = 0x000093e0 (0x93E0) |
|---|
| 39 | |
|---|
| 40 | // Values below go in 'lib.c': |
|---|
| 41 | //void *vid_get_bitmap_fb() { return (void*)0x40471000; } // Found @0xff845f24 |
|---|
| 42 | //void *vid_get_viewport_fb() { return (void*)0x407f6dc0; } // Found @0xffaadbb8 |
|---|
| 43 | //char *camera_jpeg_count_str() { return (char*)0x0004af18; } // Found @0xff9b957c |
|---|
| 44 | //long hook_raw_size() { return 0x01574d00; } // Found @0xffaaff70 |
|---|
| 45 | //int get_flash_params_count(void) { return 0x78; } // Found @0xff962af8 |
|---|
| 46 | |
|---|
| 47 | // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c). |
|---|
| 48 | //#define SD_READONLY_FLAG 0x00020000 // Found @0xffae8700, levent 0x90a |
|---|
| 49 | //#define SD_READONLY_IDX 2 |
|---|
| 50 | //#define USB_MASK 0x00040000 // Found @0xffae870c, levent 0x902 |
|---|
| 51 | //#define USB_IDX 2 |
|---|
| 52 | |
|---|
| 53 | // Keymap values for kbd.c. Additional keys may be present, only common values included here. |
|---|
| 54 | //static KeyMap keymap[] = { |
|---|
| 55 | // { 2, KEY_ZOOM_IN ,0x00000004 }, // Found @0xffae8670, levent 0x02 |
|---|
| 56 | // { 2, KEY_ZOOM_OUT ,0x00000008 }, // Found @0xffae867c, levent 0x03 |
|---|
| 57 | // { 2, KEY_LEFT ,0x00000010 }, // Found @0xffae8688, levent 0x06 |
|---|
| 58 | // { 2, KEY_RIGHT ,0x00000020 }, // Found @0xffae8694, levent 0x07 |
|---|
| 59 | // { 2, KEY_DOWN ,0x00000040 }, // Found @0xffae86a0, levent 0x05 |
|---|
| 60 | // { 2, KEY_UP ,0x00000080 }, // Found @0xffae86ac, levent 0x04 |
|---|
| 61 | // { 2, KEY_SET ,0x00000100 }, // Found @0xffae86b8, levent 0x08 |
|---|
| 62 | // { 2, KEY_DISPLAY ,0x00000200 }, // Found @0xffae86c4, levent 0x0a |
|---|
| 63 | // { 2, KEY_SHOOT_FULL ,0x00000003 }, // Found @0xffae8664, levent 0x01 |
|---|
| 64 | // { 2, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffae8664, levent 0x01 |
|---|
| 65 | // { 2, KEY_MENU ,0x00000400 }, // Found @0xffae86d0, levent 0x09 |
|---|
| 66 | // { 2, KEY_SHOOT_HALF ,0x00000001 }, // Found @0xffae8658, 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 4480 // Found @0xffaa6e8c |
|---|
| 73 | //#define CAM_RAW_ROWS 3348 // Found @0xffaa6e90 |
|---|
| 74 | //#undef CAM_UNCACHED_BIT |
|---|
| 75 | //#define CAM_UNCACHED_BIT 0x40000000 // Found @0xff827f80 |
|---|
| 76 | |
|---|
| 77 | // Stubs below matched 100%. |
|---|
| 78 | // Name Address Comp to stubs_entry_2.S |
|---|
| 79 | NSTUB(AllocateMemory ,0xffa49a40) //101 |
|---|
| 80 | NSTUB(AllocateUncacheableMemory ,0xff827f3c) //112 |
|---|
| 81 | NSTUB(Close ,0xff823b74) //101 |
|---|
| 82 | NSTUB(CreateTask ,0xff81aef4) //101 |
|---|
| 83 | NSTUB(DebugAssert ,0xff81b1cc) //111 |
|---|
| 84 | NSTUB(DeleteFile_Fut ,0xff823420) //112 |
|---|
| 85 | //NSTUB(EnterToCompensationEVF ,0xff825b7c) //104 == 0xff825b7c |
|---|
| 86 | NSTUB(ExecuteEventProcedure ,0xff872670) // 1 |
|---|
| 87 | //NSTUB(ExitFromCompensationEVF ,0xff825bc0) //104 == 0xff825bc0 |
|---|
| 88 | NSTUB(ExitTask ,0xff81b184) //101 |
|---|
| 89 | NSTUB(ExpCtrlTool_StartContiAE ,0xff8310e4) //104 |
|---|
| 90 | NSTUB(ExpCtrlTool_StopContiAE ,0xff831228) //104 |
|---|
| 91 | NSTUB(Fclose_Fut ,0xff82359c) //101 |
|---|
| 92 | NSTUB(Feof_Fut ,0xff823788) // 1 |
|---|
| 93 | NSTUB(Fflush_Fut ,0xff8237c4) // 1 |
|---|
| 94 | NSTUB(Fgets_Fut ,0xff8236f0) // 1 |
|---|
| 95 | NSTUB(Fopen_Fut ,0xff82355c) //101 |
|---|
| 96 | NSTUB(Fread_Fut ,0xff823648) //101 |
|---|
| 97 | NSTUB(FreeMemory ,0xffa49a38) //101 |
|---|
| 98 | NSTUB(FreeUncacheableMemory ,0xff827f7c) //112 |
|---|
| 99 | NSTUB(Fseek_Fut ,0xff82373c) //101 |
|---|
| 100 | NSTUB(Fwrite_Fut ,0xff82369c) //101 |
|---|
| 101 | NSTUB(GetBatteryTemperature ,0xff84ce3c) //102 |
|---|
| 102 | NSTUB(GetCCDTemperature ,0xff84cdcc) //102 |
|---|
| 103 | NSTUB(GetCurrentAvValue ,0xff9303b0) //102 |
|---|
| 104 | NSTUB(GetDrive_ClusterSize ,0xff859648) // 1 |
|---|
| 105 | //NSTUB(GetDrive_FreeClusters ,0xff8596b0) // 1 == 0xff8596b0 |
|---|
| 106 | //NSTUB(GetDrive_TotalClusters ,0xff85967c) // 1 == 0xff85967c |
|---|
| 107 | NSTUB(GetFocusLensSubjectDistance ,0xff92f474) //102 |
|---|
| 108 | NSTUB(GetFocusLensSubjectDistanceFromLens ,0xff92f85c) // 3 |
|---|
| 109 | NSTUB(GetKbdState ,0xff84a390) //109 |
|---|
| 110 | NSTUB(GetMemInfo ,0xff813c24) // 1 |
|---|
| 111 | NSTUB(GetOpticalTemperature ,0xff84ceac) //102 |
|---|
| 112 | NSTUB(GetParameterData ,0xff962ab8) //101 |
|---|
| 113 | NSTUB(GetPropertyCase ,0xff876358) //102 |
|---|
| 114 | NSTUB(GetSystemTime ,0xffa49a98) //101 |
|---|
| 115 | NSTUB(GetZoomLensCurrentPoint ,0xff933afc) //102 |
|---|
| 116 | NSTUB(GetZoomLensCurrentPosition ,0xffa4059c) //102 |
|---|
| 117 | NSTUB(GiveSemaphore ,0xff827958) //112 |
|---|
| 118 | NSTUB(IsStrobeChargeCompleted ,0xff8b0638) //102 |
|---|
| 119 | //NSTUB(LEDDrive ,0xff849b2c) //103 == 0xff849b2c |
|---|
| 120 | NSTUB(LocalTime ,0xff86fe0c) // 1 |
|---|
| 121 | NSTUB(LockMainPower ,0xff87da7c) //103 |
|---|
| 122 | NSTUB(Lseek ,0xff823cb4) //101 |
|---|
| 123 | NSTUB(MakeDirectory_Fut ,0xff823494) // 1 |
|---|
| 124 | NSTUB(MoveFocusLensToDistance ,0xffaaa5fc) //102 |
|---|
| 125 | NSTUB(MoveIrisWithAv ,0xffa46ae4) //102 |
|---|
| 126 | NSTUB(MoveZoomLensWithPoint ,0xffa4706c) //102 |
|---|
| 127 | NSTUB(NewTaskShell ,0xff875e00) //103 |
|---|
| 128 | NSTUB(Open ,0xff823b4c) //101 |
|---|
| 129 | //NSTUB(PB2Rec ,0xff880ac0) //104 == 0xff880ac0 |
|---|
| 130 | NSTUB(PT_MoveDigitalZoomToWide ,0xff863a48) //102 |
|---|
| 131 | NSTUB(PT_MoveOpticalZoomAt ,0xff863a20) //102 |
|---|
| 132 | NSTUB(PT_PlaySound ,0xff863398) //102 |
|---|
| 133 | NSTUB(PostLogicalEventForNotPowerType ,0xff87b858) //103 |
|---|
| 134 | NSTUB(PostLogicalEventToUI ,0xff87b8a4) //103 |
|---|
| 135 | //NSTUB(PutInNdFilter ,0xffa46ed0) //102 == 0xffa46ed0 |
|---|
| 136 | //NSTUB(PutOutNdFilter ,0xffa46ef4) //102 == 0xffa46ef4 |
|---|
| 137 | NSTUB(Read ,0xff819a4c) //101 |
|---|
| 138 | NSTUB(ReadFastDir ,0xffa2eb80) // 1 |
|---|
| 139 | //NSTUB(Rec2PB ,0xff87f458) //104 == 0xff87f458 |
|---|
| 140 | //NSTUB(RefreshPhysicalScreen ,0xff9c7c94) //104 == 0xff9c7c94 |
|---|
| 141 | NSTUB(Remove ,0xff823bbc) // 1 |
|---|
| 142 | NSTUB(RenameFile_Fut ,0xff8233cc) // 1 |
|---|
| 143 | //NSTUB(Restart ,0xff8297b0) //106 == 0xff8297b0 |
|---|
| 144 | NSTUB(SetAE_ShutterSpeed ,0xffaacdc8) //102 |
|---|
| 145 | NSTUB(SetAutoShutdownTime ,0xff87daf0) //103 |
|---|
| 146 | NSTUB(SetCurrentCaptureModeType ,0xff884c28) //101 |
|---|
| 147 | NSTUB(SetFileTimeStamp ,0xff823e50) // 1 |
|---|
| 148 | NSTUB(SetLogicalEventActive ,0xff87d7cc) //101 |
|---|
| 149 | NSTUB(SetParameterData ,0xff962a28) //101 |
|---|
| 150 | NSTUB(SetPropertyCase ,0xff876250) //102 |
|---|
| 151 | //NSTUB(SetScriptMode ,0xff87d81c) //101 == 0xff87d81c |
|---|
| 152 | NSTUB(SleepTask ,0xff827bc0) //101 |
|---|
| 153 | NSTUB(TakeSemaphore ,0xff827888) //101 |
|---|
| 154 | //NSTUB(TurnOffBackLight ,0xff88aca0) //104 == 0xff88aca0 |
|---|
| 155 | NSTUB(TurnOnBackLight ,0xff88ac88) //104 |
|---|
| 156 | NSTUB(UIFS_WriteFirmInfoToFile ,0xff953ba0) //101 |
|---|
| 157 | NSTUB(UnlockMainPower ,0xff87d9d0) //103 |
|---|
| 158 | //NSTUB(UnsetZoomForMovie ,0xff9689ec) //104 == 0xff9689ec |
|---|
| 159 | NSTUB(UpdateMBROnFlash ,0xff859488) //105 |
|---|
| 160 | NSTUB(VbattGet ,0xff820560) //103 |
|---|
| 161 | NSTUB(Write ,0xff823c20) //101 |
|---|
| 162 | //NSTUB(WriteSDCard ,0xff9210a4) //108 == 0xff9210a4 |
|---|
| 163 | NSTUB(_log ,0xffadfaec) //111 |
|---|
| 164 | NSTUB(_log10 ,0xffade778) //112 |
|---|
| 165 | NSTUB(_pow ,0xffade8e8) //114 |
|---|
| 166 | NSTUB(_sqrt ,0xffae1748) // 1 |
|---|
| 167 | NSTUB(add_ptp_handler ,0xff9fbed8) // 3 |
|---|
| 168 | NSTUB(apex2us ,0xff9c8cb0) // 4 |
|---|
| 169 | NSTUB(close ,0xff819864) // 1 |
|---|
| 170 | NSTUB(closedir ,0xffa2ec50) // 1 |
|---|
| 171 | NSTUB(err_init_task ,0xff814e80) // 4 |
|---|
| 172 | NSTUB(exmem_alloc ,0xff870d4c) //103 |
|---|
| 173 | NSTUB(free ,0xff813a7c) //112 |
|---|
| 174 | NSTUB(kbd_p1_f ,0xff821d20) //109 |
|---|
| 175 | NSTUB(kbd_p1_f_cont ,0xff821d2c) //109 |
|---|
| 176 | NSTUB(kbd_p2_f ,0xff821538) //109 |
|---|
| 177 | NSTUB(kbd_read_keys ,0xff821c24) //109 |
|---|
| 178 | NSTUB(kbd_read_keys_r2 ,0xff849f24) //109 |
|---|
| 179 | NSTUB(lseek ,0xff823cb4) //101 |
|---|
| 180 | NSTUB(malloc ,0xff8139a8) //112 |
|---|
| 181 | NSTUB(memcmp ,0xff81cba4) //101 |
|---|
| 182 | NSTUB(memcpy ,0xff8977a4) //101 |
|---|
| 183 | NSTUB(memset ,0xff9c7fe8) //101 |
|---|
| 184 | NSTUB(mkdir ,0xff823f18) // 1 |
|---|
| 185 | // ALT: NSTUB(mkdir, 0xff823fb8) // 1 32/0 |
|---|
| 186 | NSTUB(mktime_ext ,0xff898010) // 1 |
|---|
| 187 | NSTUB(open ,0xff8197b4) // 1 |
|---|
| 188 | NSTUB(opendir ,0xffa2eaec) // 1 |
|---|
| 189 | NSTUB(openfastdir ,0xffa2eaec) // 1 |
|---|
| 190 | //NSTUB(qsort ,0xffa93dc0) // 1 == 0xffa93dc0 |
|---|
| 191 | NSTUB(rand ,0xff81ccac) // 1 |
|---|
| 192 | NSTUB(read ,0xff819a4c) //101 |
|---|
| 193 | NSTUB(readfastdir ,0xffa2eb80) // 1 |
|---|
| 194 | NSTUB(reboot_fw_update ,0xffa36580) // 5 |
|---|
| 195 | NSTUB(set_control_event ,0xff87d448) // 1 |
|---|
| 196 | NSTUB(srand ,0xff81cca0) // 1 |
|---|
| 197 | NSTUB(stat ,0xff823d80) // 1 |
|---|
| 198 | NSTUB(strcat ,0xff8975b8) // 1 |
|---|
| 199 | //NSTUB(strchr ,0xff897640) // 1 == 0xff897640 |
|---|
| 200 | NSTUB(strcmp ,0xff81cb3c) //101 |
|---|
| 201 | NSTUB(strcpy ,0xff81cb24) //101 |
|---|
| 202 | NSTUB(strftime ,0xff897a18) // 1 |
|---|
| 203 | NSTUB(strlen ,0xff81cb80) //101 |
|---|
| 204 | NSTUB(strncmp ,0xff8975f4) // 1 |
|---|
| 205 | NSTUB(strncpy ,0xff82da50) // 1 |
|---|
| 206 | //NSTUB(strrchr ,0xff9c7fc0) // 1 == 0xff9c7fc0 |
|---|
| 207 | NSTUB(strtol ,0xff82dc88) //101 |
|---|
| 208 | NSTUB(strtolx ,0xff82da8c) //109 |
|---|
| 209 | DEF(task_CaptSeq ,0xff865f0c) //107 |
|---|
| 210 | DEF(task_ExpDrv ,0xff8a9554) //110 |
|---|
| 211 | DEF(task_InitFileModules ,0xff881534) //107 |
|---|
| 212 | DEF(task_MovieRecord ,0xff862148) //107 |
|---|
| 213 | DEF(task_PhySw ,0xff821894) //107 |
|---|
| 214 | NSTUB(time ,0xff8703ec) // 2 |
|---|
| 215 | NSTUB(vsprintf ,0xff81cae8) // 1 |
|---|