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

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