root/platform/ixus870_sd880/sub/101a/stubs_entry.S

/* [<][>][^][v][top][bottom][index][help] */
   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.01A   // Found @ 0xff870898, "GM1.01A" @ 0xff8708a5
   7 //   Firmware build timestamp: Oct 15 2008 18:36:07
   8 //   Canon DIGITAL IXUS 870 IS
   9 
  10 // Values for makefile.inc
  11 //   DIGIC = 40# DIGIC 4
  12 //   PLATFORMOSVER = 31
  13 //   PLATFORMID = 12694# (0x3196) Found @ 0xfffe0130
  14 //   MAXRAMADDR = 0x03ffffff
  15 //   MEMISOSTART = 0x000de578
  16 //   KEYSYS = d4# Found @ 0xffff3554
  17 //   NEED_ENCODED_DISKBOOT = 1# Found @ 0xffff3564
  18 //   ARAM_HEAP_START = 0x30e000# Found @ 0xff93fc9c
  19 //   ARAM_HEAP_SIZE  = 0x32000# Found @ 0xff93fc5c
  20 
  21 // Detected address ranges:
  22 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  23 // RAM data 0x00001900 - 0x0000fbe8 copied from 0xffb53358 (  58088 bytes)
  24 
  25 // Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S'
  26 //    Name                                     Address      Rule  %  Comp to stubs_entry_2.S
  27 //NHSTUB(GetDrive_TotalClusters               ,0xff8554e0) //  1        *** != 0xff85557c
  28 //NHSTUB(kbd_pwr_off                          ,0xff846260) //  2 64%    *** != 0x00000000
  29 
  30 // Check of modemap from 'platform/CAMERA/shooting.c':
  31 // Firmware modemap table found @ffa4b9b4 -> ffb2d2fc
  32 // No problems found with modemap table.
  33 
  34 // Values below can be overridden in 'stubs_min.S':
  35 DEF(physw_status                            ,0x00011078) // Found @0xff821ba4
  36 DEF(physw_run                               ,0x00001c28) // Found @0xff821818
  37 DEF(physw_sleep_delay                       ,0x00001c26) // Found @0xff821818
  38 DEF(levent_table                            ,0xffb07270) // Found @0xffb07270
  39 DEF(FlashParamsTable                        ,0xffb2d4d0) // Found @0xffb2d4d0
  40 DEF(movie_status                            ,0x000051e4) // Found @0xff85dd18
  41 DEF(video_compression_rate                  ,0x00005210) // Found @0xff85dfc0
  42 DEF(canon_menu_active                       ,0x00005610) // Found @0xff872298
  43 DEF(canon_shoot_menu_active                 ,0x0000a161) // Found @0xff96aa10
  44 DEF(playrec_mode                            ,0x00005398) // Found @0xff865b40
  45 DEF(zoom_status                             ,0x0000d570) // Found @0xffa4d1c8
  46 DEF(some_flag_for_af_scan                   ,0x00009280) // Found @0xff933ca0
  47 DEF(zoom_busy                               ,0x000088b4) // Found @0xff92b65c
  48 DEF(focus_busy                              ,0x000087ac) // Found @0xff926640
  49 //DEF(recreview_hold                          ,0x00005f94) // Found @0xff882adc, ** != ** stubs_min = 0x00009e9c (0x9E18+0x84)
  50 // Camera has 2 RAW buffers @ 0x412007fc & 0x429aaa2c
  51 //  Note: active buffer --> raw_buffers[ active_raw_buffer   *3]
  52 //        other buffer  --> raw_buffers[(active_raw_buffer^1)*3]
  53 DEF(raw_buffers                             ,0xffad77b4) // Found @0xffad77b4
  54 DEF(active_raw_buffer                       ,0x0000533c) // Found @0xff86322c
  55 DEF(fileio_semaphore                        ,0x00002814) // Found @0xff853ccc
  56 DEF(exmem_alloc_table                       ,0x0001b3ac) // Found @0xff86bba0
  57 DEF(exmem_types_table                       ,0xffb56ec0) // Found @0x00005468
  58 DEF_CONST(exmem_type_count                  ,0x00000012)
  59 DEF(imager_active                           ,0x00001f90) // Found @0xff836af8 (0x1f8c + 4)
  60 DEF_CONST(uiprop_count                      ,0x00000069) // Found @0xff959d6c
  61 DEF(cameracon_state                         ,0x00005b7c) // Found @0xff87a2f4
  62 
  63 // Values below go in 'lib.c':
  64 //void *vid_get_bitmap_fb()        { return (void*)0x403b1000; }             // Found @0xff841de0
  65 //void *vid_get_viewport_fb()      { return (void*)0x40a2f2d0; }             // Found @0xffaa19b8
  66 DEF(viewport_fb_d                           ,0x00005074) // Found 0x501c (@0xff856d80) + 0x58 (@0xff856db8)
  67 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x501c+0x58)); } // Found @0xff856d80 & 0xff856db8
  68 DEF(jpeg_count_str                          ,0x0004a980) // Found @0xff9ad200
  69 //char *camera_jpeg_count_str()    { return (char*)0x0004a980; }             // Found @0xff9ad200
  70 //int get_flash_params_count(void) { return 0x78; }                          // Found @0xff95a7b0
  71 
  72 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  73 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffad7034, levent 0x90a
  74 //#define SD_READONLY_IDX     2
  75 //#define USB_MASK            0x00040000 // Found @0xffad7040, levent 0x902
  76 //#define USB_IDX             2
  77 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffad701c, levent 0x905
  78 //#define BATTCOVER_IDX       2
  79 //#define ANALOG_AV_FLAG      0x00800000 // Found @0xffad6f50, levent 0x900 (non-inverted logic)
  80 //#define ANALOG_AV_IDX       1
  81 
  82 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  83 //static KeyMap keymap[] = {
  84 //    { 1, KEY_POWER           ,0x40000000 }, // Found @0xffad6f74, levent 0x600
  85 //    { 1, KEY_PLAYBACK        ,0x80000000 }, // Found @0xffad6f80, levent 0x601
  86 //    { 2, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffad6f98, levent 0x01
  87 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffad6f98, levent 0x01
  88 //    { 2, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffad6f8c, levent 0x00
  89 //    { 2, KEY_ZOOM_IN         ,0x00000004 }, // Found @0xffad6fa4, levent 0x02
  90 //    { 2, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffad6fb0, levent 0x03
  91 //    { 2, KEY_LEFT            ,0x00000010 }, // Found @0xffad6fbc, levent 0x06
  92 //    { 2, KEY_RIGHT           ,0x00000020 }, // Found @0xffad6fc8, levent 0x07
  93 //    { 2, KEY_DOWN            ,0x00000040 }, // Found @0xffad6fd4, levent 0x05
  94 //    { 2, KEY_UP              ,0x00000080 }, // Found @0xffad6fe0, levent 0x04
  95 //    { 2, KEY_SET             ,0x00000100 }, // Found @0xffad6fec, levent 0x08
  96 //    { 2, KEY_DISPLAY         ,0x00000200 }, // Found @0xffad6ff8, levent 0x0a
  97 //    { 2, KEY_MENU            ,0x00000400 }, // Found @0xffad7004, levent 0x09
  98 //    { 0, 0, 0 }
  99 //};
 100 
 101 // Values below go in 'platform_camera.h':
 102 //#define CAM_DRYOS         1
 103 //#define CAM_RAW_ROWPIX    3720 // Found @0xffa9ac80
 104 //#define CAM_RAW_ROWS      2772 // Found @0xffa9ac88
 105 //#undef  CAM_UNCACHED_BIT
 106 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff827bac
 107 //#define PARAM_CAMERA_NAME 4 // Found @0xffb2f724
 108 
 109 // Below goes in 'filewrite.c' or 'platform_camera.h':
 110 //#define MAX_CHUNKS_FOR_FWT 3 // Found @0xffa1e624
 111 
 112 // Known propcases
 113 // //      PROPCASE_AFSTEP 13
 114 // #define PROPCASE_FOCUS_STATE 18
 115 // #define PROPCASE_AV 23
 116 // #define PROPCASE_BV 34
 117 // //      PROPCASE_DELTA_DIGITALGAIN 77
 118 // #define PROPCASE_DELTA_SV 79
 119 // //      PROPCASE_DELTA_ND 80
 120 // #define PROPCASE_EV_CORRECTION_2 207
 121 // #define PROPCASE_ORIENTATION_SENSOR 219
 122 // #define PROPCASE_SV_MARKET 246
 123 // //      PROPCASE_SVFIX 247
 124 // #define PROPCASE_TV 262
 125 // Guessed propset: 2
 126 
 127 // Misc stuff
 128 DEF(ctypes, 0xffad5eda)
 129 
 130 // EXMEM types:
 131 // EXMEM_RAMDISK        0
 132 // EXMEM_COM            1
 133 // EXMEM_FORMATTER      2
 134 // EXMEM_SHADING        3
 135 // EXMEM_FAMODE         4
 136 // EXMEM_FIRMUP         5
 137 // EXMEM_FIRMUP_VRAM    6
 138 // EXMEM_FIRMUP_INFLATE 7
 139 // EXMEM_DVLPWORK       8
 140 // EXMEM_EVF            9
 141 // EXMEM_SCRIPT         10
 142 // EXMEM_FILESTORE      11
 143 // EXMEM_MOVIE_REC      12
 144 // EXMEM_MOVIE_PLY      13
 145 // EXMEM_WIDE           14
 146 // EXMEM_NARROW         15
 147 // EXMEM_CRAW_REC       16
 148 // EXMEM_PCEVF          17
 149 
 150 // ISR flag: 0x195c, pointer to current task's control block: 0x1958
 151 // pointer to TCB area: 0x19e8, found @ 0xff815724
 152 
 153 // LED table init @ 0xff8e35d8
 154 // LED #1: 0xc02200d4, offset 0x204
 155 // LED #2: 0xc0220134, offset 0x4
 156 // LED #3: 0xc0220130, offset 0x44
 157 
 158 // For capt_seq.c
 159 DEF(_nrflag,0x9268) // Found @ ff935c18 (0x926c) & ff935c34 (-0x04)
 160 //static long *nrflag = (long*)(0x926c-0x04);  // Found @ ff935c18 & ff935c30
 161 
 162 // Stubs below matched 100%.
 163 //    Name                                     Address                Comp to stubs_entry_2.S
 164 NHSTUB(AllocateUncacheableMemory              ,0xff827b68) //112
 165 NHSTUB(Close                                  ,0xff823af4) //120
 166 NHSTUB(CreateBinarySemaphore                  ,0xff827348) //115
 167 NHSTUB(CreateTask                             ,0xff81aef4) //120
 168 NHSTUB(DebugAssert                            ,0xff81b1cc) //107
 169 NHSTUB(DeleteDirectory_Fut                    ,0xff823484) //116
 170 NHSTUB(DeleteFile_Fut                         ,0xff8233a0) //112
 171 NHSTUB(DeleteSemaphore                        ,0xff827408) //120
 172 NHSTUB(DoAELock                               ,0xff8258c4) //120
 173 NHSTUB(DoAFLock                               ,0xff8255d8) //120
 174 NHSTUB(EnterToCompensationEVF                 ,0xff82582c) //104
 175 NHSTUB(ExecuteEventProcedure                  ,0xff86dac0) //104
 176 NHSTUB(ExitFromCompensationEVF                ,0xff825870) //104
 177 NHSTUB(ExitTask                               ,0xff81b184) //120
 178 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff830d00) //104
 179 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff830e44) //104
 180 NHSTUB(Fclose_Fut                             ,0xff82351c) //120
 181 NHSTUB(Feof_Fut                               ,0xff823708) //  1
 182 NHSTUB(Fflush_Fut                             ,0xff823744) //  1
 183 NHSTUB(Fgets_Fut                              ,0xff823670) //  1
 184 NHSTUB(Fopen_Fut                              ,0xff8234dc) //120
 185 NHSTUB(Fread_Fut                              ,0xff8235c8) //120
 186 NHSTUB(FreeUncacheableMemory                  ,0xff827ba8) //112
 187 NHSTUB(Fseek_Fut                              ,0xff8236bc) //120
 188 NHSTUB(Fwrite_Fut                             ,0xff82361c) //120
 189 NHSTUB(GetBatteryTemperature                  ,0xff848cf4) //102
 190 NHSTUB(GetCCDTemperature                      ,0xff848c84) //102
 191 NHSTUB(GetCurrentAvValue                      ,0xff928280) //120
 192 NHSTUB(GetCurrentShutterSpeed                 ,0xff893d64) //120
 193 NHSTUB(GetDrive_ClusterSize                   ,0xff8554ac) //  1
 194 NHSTUB(GetDrive_FreeClusters                  ,0xff855514) //  1
 195 NHSTUB(GetFocusLensSubjectDistance            ,0xff927344) //102
 196 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff92772c) //  3
 197 NHSTUB(GetKbdState                            ,0xff846248) //109
 198 NHSTUB(GetMemInfo                             ,0xff813c24) //115
 199 NHSTUB(GetOpticalTemperature                  ,0xff848d64) //120
 200 NHSTUB(GetParameterData                       ,0xff95a770) //101
 201 NHSTUB(GetPropertyCase                        ,0xff8717a8) //102
 202 NHSTUB(GetSystemTime                          ,0xffa3d910) //120
 203 NHSTUB(GetVRAMHPixelsSize                     ,0xff8c4160) //120
 204 NHSTUB(GetVRAMVPixelsSize                     ,0xff8c416c) //120
 205 NHSTUB(GetZoomLensCurrentPoint                ,0xff92b9cc) //120
 206 NHSTUB(GetZoomLensCurrentPosition             ,0xffa337f0) //102
 207 NHSTUB(GiveSemaphore                          ,0xff827584) //120
 208 NHSTUB(IsStrobeChargeCompleted                ,0xff8ab714) //102
 209 NHSTUB(LEDDrive                               ,0xff8459e8) //120
 210 NHSTUB(LocalTime                              ,0xff86b25c) //115
 211 NHSTUB(LockMainPower                          ,0xff878ec8) //120
 212 NHSTUB(MakeDirectory_Fut                      ,0xff823414) //116
 213 NHSTUB(MoveFocusLensToDistance                ,0xffa9e3fc) //102
 214 NHSTUB(MoveIrisWithAv                         ,0xffa3a93c) //120
 215 NHSTUB(MoveZoomLensWithPoint                  ,0xffa3aec4) //120
 216 NHSTUB(MoveOpticalZoomAt                      ,0xff825004) //109
 217 NHSTUB(Open                                   ,0xff823acc) //120
 218 NHSTUB(PB2Rec                                 ,0xff87bf0c) //104
 219 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff85f93c) //120
 220 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff85f914) //120
 221 NHSTUB(PT_PlaySound                           ,0xff85f28c) //102
 222 NHSTUB(PostLogicalEventForNotPowerType        ,0xff876ca4) //120
 223 NHSTUB(PostLogicalEventToUI                   ,0xff876cf0) //120
 224 NHSTUB(PutInNdFilter                          ,0xffa3ad28) //102
 225 NHSTUB(PutOutNdFilter                         ,0xffa3ad4c) //102
 226 NHSTUB(Read                                   ,0xff819a4c) //120
 227 NHSTUB(ReadFastDir                            ,0xffa21ca0) //  1
 228 NHSTUB(Rec2PB                                 ,0xff87a8a4) //104
 229 NHSTUB(RefreshPhysicalScreen                  ,0xff9b8424) //104
 230 NHSTUB(RenameFile_Fut                         ,0xff82334c) //  1
 231 NHSTUB(Restart                                ,0xff8293dc) //122
 232 NHSTUB(SetAE_ShutterSpeed                     ,0xffaa0bc8) //102
 233 NHSTUB(SetAutoShutdownTime                    ,0xff878f3c) //120
 234 NHSTUB(SetCurrentCaptureModeType              ,0xff8800bc) //120
 235 NHSTUB(SetDate                                ,0xffaa261c) //120
 236 NHSTUB(SetFileAttributes                      ,0xff823e20) //  1
 237 NHSTUB(SetFileTimeStamp                       ,0xff823dd0) //  1
 238 NHSTUB(SetLogicalEventActive                  ,0xff878c18) //120
 239 NHSTUB(SetParameterData                       ,0xff95a6e0) //101
 240 NHSTUB(SetPropertyCase                        ,0xff8716a0) //102
 241 NHSTUB(SetScriptMode                          ,0xff878c68) //120
 242 NHSTUB(SleepTask                              ,0xff8277ec) //120
 243 NHSTUB(TakeSemaphore                          ,0xff8274b4) //120
 244 NHSTUB(TurnOffBackLight                       ,0xff886078) //104
 245 NHSTUB(TurnOnBackLight                        ,0xff886060) //104
 246 NHSTUB(TurnOnDisplay                          ,0xff841ea8) //120
 247 NHSTUB(TurnOffDisplay                         ,0xff841eb8) //120
 248 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff94b858) //120
 249 NHSTUB(UnlockAE                               ,0xff8258e8) //120
 250 NHSTUB(UnlockAF                               ,0xff825610) //120
 251 NHSTUB(UnlockMainPower                        ,0xff878e1c) //120
 252 NHSTUB(UnsetZoomForMovie                      ,0xff9607a0) //104
 253 NHSTUB(UpdateMBROnFlash                       ,0xff8552ec) //105
 254 NHSTUB(VbattGet                               ,0xff820570) //120
 255 NHSTUB(Write                                  ,0xff823ba0) //120
 256 NHSTUB(WriteSDCard                            ,0xff918858) //108
 257 NHSTUB(_log                                   ,0xffad3158) //111
 258 NHSTUB(_log10                                 ,0xffad1de4) //112
 259 NHSTUB(_pow                                   ,0xffad1f54) //121
 260 NHSTUB(_sqrt                                  ,0xffad4db4) //  1
 261 NHSTUB(add_ptp_handler                        ,0xff9ef744) //121
 262 NHSTUB(apex2us                                ,0xff9b9440) //121
 263 NHSTUB(close                                  ,0xff819864) //109
 264 NHSTUB(err_init_task                          ,0xff814e80) //111
 265 NHSTUB(exmem_alloc                            ,0xff86c19c) //103
 266 NHSTUB(exmem_ualloc                           ,0xff86bff0) //103
 267 NHSTUB(exmem_ufree                            ,0xff86c13c) //103
 268 NHSTUB(free                                   ,0xff813a7c) //112
 269 NHSTUB(get_nd_value                           ,0xffa31344) //123
 270 NHSTUB(get_current_nd_value                   ,0xffa31300) //122
 271 NHSTUB(get_current_deltasv                    ,0xff8948f4) //122
 272 NHSTUB(GetCurrentDriveBaseSvValue             ,0xff8995e0) //123
 273 NHSTUB(kbd_p1_f                               ,0xff821ca0) //109
 274 NHSTUB(kbd_p1_f_cont                          ,0xff821cac) //109
 275 NHSTUB(kbd_p2_f                               ,0xff8214b8) //109
 276 NHSTUB(kbd_read_keys                          ,0xff821ba4) //109
 277 NHSTUB(kbd_read_keys_r2                       ,0xff845de0) //109
 278 NHSTUB(lseek                                  ,0xff823c34) //120
 279 NHSTUB(malloc                                 ,0xff8139a8) //112
 280 NHSTUB(memcmp                                 ,0xff81cbb4) //120
 281 NHSTUB(memcpy                                 ,0xff8928f4) //120
 282 NHSTUB(memset                                 ,0xff9b8778) //120
 283 NHSTUB(mkdir                                  ,0xff823e98) //109
 284 NHSTUB(mktime_ext                             ,0xff893160) //  1
 285 NHSTUB(open                                   ,0xff8197b4) //109
 286 NHSTUB(OpenFastDir                            ,0xffa21c0c) //  1
 287 NHSTUB(closedir                               ,0xffa21d70) //  1
 288 NHSTUB(qsort                                  ,0xffa84fc8) //  1
 289 NHSTUB(rand                                   ,0xff81ccbc) //121
 290 NHSTUB(realloc                                ,0xff813b5c) //115
 291 NHSTUB(reboot_fw_update                       ,0xffa296a0) //106
 292 NHSTUB(set_control_event                      ,0xff878894) //111
 293 NHSTUB(srand                                  ,0xff81ccb0) //122
 294 NHSTUB(stat                                   ,0xff823d00) //  1
 295 NHSTUB(strcat                                 ,0xff892708) //  1
 296 NHSTUB(strchr                                 ,0xff892790) //  1
 297 NHSTUB(strcmp                                 ,0xff81cb4c) //120
 298 NHSTUB(strcpy                                 ,0xff81cb34) //120
 299 NHSTUB(strftime                               ,0xff892b68) //  1
 300 NHSTUB(strlen                                 ,0xff81cb90) //120
 301 NHSTUB(strncmp                                ,0xff892744) //  1
 302 NHSTUB(strncpy                                ,0xff82d678) //  1
 303 NHSTUB(strrchr                                ,0xff9b8750) //  1
 304 NHSTUB(strtol                                 ,0xff82d8b0) //101
 305 NHSTUB(strtolx                                ,0xff82d6b4) //109
 306    DEF(task_CaptSeq                           ,0xff861cfc) //120
 307    DEF(task_DvlpSeqTask                       ,0xff9369b4) //120
 308    DEF(task_ExpDrv                            ,0xff8a4608) //120
 309    DEF(task_FileWrite                         ,0xffa1e5c0) //120
 310    DEF(task_InitFileModules                   ,0xff87c980) //120
 311    DEF(task_MovieRecord                       ,0xff85e03c) //120
 312    DEF(task_PhySw                             ,0xff821814) //120
 313    DEF(task_RotaryEncoder                     ,0xff846338) //120
 314 NHSTUB(time                                   ,0xff86b83c) //109
 315 NHSTUB(vsprintf                               ,0xff81caf8) //115
 316 NHSTUB(EngDrvRead                             ,0xff822ae0) //102
 317 NHSTUB(PTM_GetCurrentItem                     ,0xff879774) //105
 318 NHSTUB(CancelHPTimer                          ,0xff86cffc) //119
 319 NHSTUB(SetHPTimerAfterNow                     ,0xff86cef4) //119
 320 NHSTUB(PT_MFOn                                ,0xff85f9b4) //120
 321 NHSTUB(PT_MFOff                               ,0xff85f9c4) //120
 322 NHSTUB(GetAdChValue                           ,0xff843b78) //120
 323 NHSTUB(get_ptp_buf_size                       ,0xff8c6a98) //122
 324 NHSTUB(get_ptp_file_buf                       ,0xff9f10c8) //121
 325 NHSTUB(SetVideoOutType                        ,0xffaa13b4) //109
 326 NHSTUB(GetVideoOutType                        ,0xffaa1318) //120

/* [<][>][^][v][top][bottom][index][help] */