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