root/platform/ixus110_sd960/sub/101f/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.01F   // Found @ 0xff86e6dc, "GM1.01F" @ 0xff86e6e9
   7 //   Firmware build timestamp: May 14 2009 09:18:27
   8 //   Canon DIGITAL IXUS 110 IS
   9 
  10 // Values for makefile.inc
  11 //   PLATFORMOSVER = 31
  12 //   PLATFORMID = 12733 (0x31bd) // Found @ 0xfffe0130
  13 //   MAXRAMADDR = 0x03ffffff
  14 //   MEMISOSTART = 0x00148428
  15 //   KEYSYS = d4                 // Found @ 0xffff3564
  16 //   NEED_ENCODED_DISKBOOT = 2   // Found @ 0xffff3574
  17 //   ARAM_HEAP_START = 0x34e000  // Found @ 0xff92e9e4
  18 //   ARAM_HEAP_SIZE  = 0x32000   // Found @ 0xff92e9a4
  19 
  20 // Detected address ranges:
  21 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  22 // RAM data 0x00001900 - 0x0000d7ec copied from 0xffb7e0d4 (  48876 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(kbd_pwr_off                            ,0xff844148) //  2 64%
  27 
  28 // Check of modemap from 'platform/CAMERA/shooting.c':
  29 // Firmware modemap table found @ffa6ac28 -> ffb5a440
  30 // No problems found with modemap table.
  31 
  32 // Values below can be overridden in 'stubs_min.S':
  33 DEF(physw_status                            ,0x0000ec78) // Found @0xff821dfc
  34 DEF(physw_run                               ,0x00001c34) // Found @0xff821a64
  35 DEF(physw_sleep_delay                       ,0x00001c32) // Found @0xff821a64
  36 DEF(levent_table                            ,0xffb27f50) // Found @0xffb27f50
  37 DEF(FlashParamsTable                        ,0xffb5a61c) // Found @0xffb5a61c
  38 DEF(movie_status                            ,0x00005ef8) // Found @0xff921558
  39 DEF(video_compression_rate                  ,0x00005f24) // Found @0xff9217c4
  40 DEF(canon_menu_active                       ,0x00002d10) // Found @0xff870138
  41 DEF(canon_shoot_menu_active                 ,0x000070c1) // Found @0xff95c9f0
  42 DEF(playrec_mode                            ,0x00002a78) // Found @0xff8634f0
  43 DEF(zoom_status                             ,0x0000b488) // Found @0xffa6d018
  44 DEF(some_flag_for_af_scan                   ,0x00006430) // Found @0xff92483c
  45 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  46 // each entry contains 3 int value(s), the first is the zoom focus length.
  47 // there are 10 entries in the table - set NUM_FL to 10
  48 //DEF(focus_len_table                         ,0xfffe2a8c) // Found @0xfffe2a8c,          stubs_min = 0xfffe2a8c (0xfffe2a8c)
  49 DEF(zoom_busy                               ,0x00005e28) // Found @0xff91d888
  50 DEF(focus_busy                              ,0x00005d20) // Found @0xff9186f8
  51 DEF(recreview_hold                          ,0x00003640) // Found @0xff881428
  52 // Palette colour tables  found @ 0xffb4128c
  53 //DEF(active_palette_buffer                   ,0x000084cc) // Found @0xff9b2820,          stubs_min = 0x000084cc (0x84cc)
  54 //DEF(palette_buffer_ptr                      ,0x000084dc) // Found @0xff9b24e4,          stubs_min = 0x000084dc (0x84dc)
  55 // Offset from start of palette_buffer to color data = 12 (Found @0xff9b1490)
  56 // Camera appears to have only 1 RAW buffer @ 0x424ad900 (Found @0xffac0d34)
  57 DEF(fileio_semaphore                        ,0x00002730) // Found @0xff851ce8
  58 DEF(exmem_alloc_table                       ,0x00015448) // Found @0xff869b38
  59 DEF(exmem_types_table                       ,0xffb7f334) // Found @0x00002b60
  60 DEF_CONST(exmem_type_count                  ,0x00000012)
  61 DEF(imager_active                           ,0x00001ec0) // Found @0xff832f60 (0x1ebc + 4)
  62 DEF_CONST(uiprop_count                      ,0x0000006b) // Found @0xff94b854
  63 
  64 // Values below go in 'lib.c':
  65 //void *vid_get_bitmap_fb()        { return (void*)0x403f1000; }             // Found @0xff83dc44
  66 //void *vid_get_viewport_fb()      { return (void*)0x415f3570; }             // Found @0xffabe804
  67 DEF(viewport_fb_d                           ,0x000027bc) // Found 0x2764 (@0xff854ed8) + 0x58 (@0xff854f10)
  68 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2764+0x58)); } // Found @0xff854ed8 & 0xff854f10
  69 DEF(jpeg_count_str                          ,0x00035278) // Found @0xff9a6d74
  70 //char *camera_jpeg_count_str()    { return (char*)0x00035278; }             // Found @0xff9a6d74
  71 //int get_flash_params_count(void) { return 0x7a; }                          // Found @0xff94c298
  72 
  73 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  74 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffaeec7c, levent 0x90a
  75 //#define SD_READONLY_IDX     2
  76 //#define USB_MASK            0x00080000 // Found @0xffaeec94, levent 0x902
  77 //#define USB_IDX             2
  78 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffaeec64, levent 0x905
  79 //#define BATTCOVER_IDX       2
  80 //#define ANALOG_AV_FLAG      0x00040000 // Found @0xffaeec88, levent 0x900 (non-inverted logic)
  81 //#define ANALOG_AV_IDX       2
  82 
  83 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  84 //static KeyMap keymap[] = {
  85 //    { 1, KEY_POWER           ,0x00000001 }, // Found @0xffaeeb80, levent 0x600
  86 //    { 1, KEY_SHOOT_FULL      ,0x00009000 }, // Found @0xffaeebbc, levent 0x01
  87 //    { 1, KEY_SHOOT_FULL_ONLY ,0x00008000 }, // Found @0xffaeebbc, levent 0x01
  88 //    { 1, KEY_SHOOT_HALF      ,0x00001000 }, // Found @0xffaeeb98, levent 0x00
  89 //    { 1, KEY_ZOOM_OUT        ,0x00002000 }, // Found @0xffaeeba4, levent 0x03
  90 //    { 1, KEY_ZOOM_IN         ,0x00004000 }, // Found @0xffaeebb0, levent 0x02
  91 //    { 2, KEY_LEFT            ,0x00000020 }, // Found @0xffaeec04, levent 0x06
  92 //    { 2, KEY_RIGHT           ,0x00000040 }, // Found @0xffaeec10, levent 0x07
  93 //    { 2, KEY_DOWN            ,0x00000080 }, // Found @0xffaeec1c, levent 0x05
  94 //    { 2, KEY_UP              ,0x00000200 }, // Found @0xffaeec34, levent 0x04
  95 //    { 2, KEY_SET             ,0x00000400 }, // Found @0xffaeec40, levent 0x08
  96 //    { 2, KEY_MENU            ,0x00000800 }, // Found @0xffaeec4c, levent 0x09
  97 //    { 2, KEY_PLAYBACK        ,0x00004000 }, // Found @0xffaeec58, levent 0x601
  98 //    { 0, 0, 0 }
  99 //};
 100 
 101 // Values below go in 'platform_camera.h':
 102 //#define CAM_DRYOS         1
 103 //#define CAM_RAW_ROWPIX    4080 // Found @0xff8eb104
 104 //#define CAM_RAW_ROWS      3048 // Found @0xff8eb108
 105 //#undef  CAM_UNCACHED_BIT
 106 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff827520
 107 //#define PARAM_CAMERA_NAME 4 // Found @0xffb5c890
 108 
 109 // Known propcases
 110 // //      PROPCASE_AFSTEP 13
 111 // #define PROPCASE_FOCUS_STATE 18
 112 // #define PROPCASE_AV 23
 113 // #define PROPCASE_BV 34
 114 // //      PROPCASE_DELTA_DIGITALGAIN 77
 115 // #define PROPCASE_DELTA_SV 79
 116 // //      PROPCASE_DELTA_ND 80
 117 // #define PROPCASE_EV_CORRECTION_2 207
 118 // #define PROPCASE_ORIENTATION_SENSOR 219
 119 // #define PROPCASE_SV_MARKET 246
 120 // //      PROPCASE_SVFIX 247
 121 // #define PROPCASE_TV 262
 122 // Guessed propset: 2
 123 
 124 // Misc stuff
 125 DEF(ctypes, 0xffaed9ce)
 126 
 127 // EXMEM types:
 128 // EXMEM_RAMDISK        0
 129 // EXMEM_COM            1
 130 // EXMEM_FORMATTER      2
 131 // EXMEM_SHADING        3
 132 // EXMEM_FAMODE         4
 133 // EXMEM_FIRMUP         5
 134 // EXMEM_FIRMUP_VRAM    6
 135 // EXMEM_FIRMUP_INFLATE 7
 136 // EXMEM_DVLPWORK       8
 137 // EXMEM_EVF            9
 138 // EXMEM_SCRIPT         10
 139 // EXMEM_FILESTORE      11
 140 // EXMEM_MOVIE_REC      12
 141 // EXMEM_MOVIE_PLY      13
 142 // EXMEM_WIDE           14
 143 // EXMEM_NARROW         15
 144 // EXMEM_CRAW_REC       16
 145 // EXMEM_PCEVF          17
 146 
 147 // ISR flag: 0x1960, pointer to current task's control block: 0x195c
 148 // pointer to TCB area: 0x19ec, found @ 0xff81574c
 149 
 150 // LED table init @ 0xff8cf9e8
 151 // LED #1: 0xc0220130, offset 0x4
 152 // LED #2: 0xc0220134, offset 0x44
 153 
 154 // For capt_seq.c
 155 DEF(_nrflag,0x6410) // Found @ ff9267cc (0x6418) & ff9267ec (-0x08)
 156 //static long *nrflag = (long*)(0x6418-0x08);  // Found @ ff9267cc & ff9267e8
 157 
 158 // Stubs below matched 100%.
 159 //    Name                                     Address                Comp to stubs_entry_2.S
 160 NHSTUB(AllocateUncacheableMemory              ,0xff8274dc) //112
 161 NHSTUB(Close                                  ,0xff823cc8) //120
 162 NHSTUB(CreateBinarySemaphore                  ,0xff826cbc) //115
 163 NHSTUB(CreateTask                             ,0xff81afac) //120
 164 NHSTUB(DebugAssert                            ,0xff81b284) //107
 165 NHSTUB(DeleteDirectory_Fut                    ,0xff823658) //116
 166 NHSTUB(DeleteFile_Fut                         ,0xff823574) //112
 167 NHSTUB(DoAELock                               ,0xff82556c) //120
 168 NHSTUB(DoAFLock                               ,0xff825380) //120
 169 NHSTUB(EnterToCompensationEVF                 ,0xff82546c) //104
 170 NHSTUB(ExecuteEventProcedure                  ,0xff86b884) //104
 171 NHSTUB(ExitFromCompensationEVF                ,0xff8254b0) //104
 172 NHSTUB(ExitTask                               ,0xff81b23c) //120
 173 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff830020) //104
 174 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff830164) //104
 175 NHSTUB(Fclose_Fut                             ,0xff8236f0) //120
 176 NHSTUB(Feof_Fut                               ,0xff8238dc) //  1
 177 NHSTUB(Fflush_Fut                             ,0xff823918) //  1
 178 NHSTUB(Fgets_Fut                              ,0xff823844) //  1
 179 NHSTUB(Fopen_Fut                              ,0xff8236b0) //120
 180 NHSTUB(Fread_Fut                              ,0xff82379c) //120
 181 NHSTUB(FreeUncacheableMemory                  ,0xff82751c) //112
 182 NHSTUB(Fseek_Fut                              ,0xff823890) //120
 183 NHSTUB(Fwrite_Fut                             ,0xff8237f0) //120
 184 NHSTUB(GetBatteryTemperature                  ,0xff847118) //102
 185 NHSTUB(GetCCDTemperature                      ,0xff8470a4) //102
 186 NHSTUB(GetCurrentAvValue                      ,0xff91a4b0) //120
 187 NHSTUB(GetCurrentShutterSpeed                 ,0xff88c960) //120
 188 NHSTUB(GetDrive_ClusterSize                   ,0xff85360c) //  5
 189 NHSTUB(GetDrive_FreeClusters                  ,0xff853664) //  5
 190 NHSTUB(GetDrive_TotalClusters                 ,0xff853638) //  5
 191 NHSTUB(GetFocusLensSubjectDistance            ,0xff919560) //102
 192 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff91993c) //  3
 193 NHSTUB(GetKbdState                            ,0xff844130) //109
 194 NHSTUB(GetMemInfo                             ,0xff813be4) //115
 195 NHSTUB(GetOpticalTemperature                  ,0xff84718c) //120
 196 NHSTUB(GetParameterData                       ,0xff94c258) //101
 197 NHSTUB(GetPropertyCase                        ,0xff86f5f0) //102
 198 NHSTUB(GetSystemTime                          ,0xffa5f164) //120
 199 NHSTUB(GetVRAMHPixelsSize                     ,0xff8b59cc) //120
 200 NHSTUB(GetVRAMVPixelsSize                     ,0xff8b59d8) //120
 201 NHSTUB(GetZoomLensCurrentPoint                ,0xff91dc00) //120
 202 NHSTUB(GetZoomLensCurrentPosition             ,0xffa50b44) //102
 203 NHSTUB(GiveSemaphore                          ,0xff826ef8) //120
 204 NHSTUB(IsStrobeChargeCompleted                ,0xff8a71a0) //102
 205 NHSTUB(LEDDrive                               ,0xff843600) //120
 206 NHSTUB(LocalTime                              ,0xff869274) //115
 207 NHSTUB(LockMainPower                          ,0xff876f80) //120
 208 NHSTUB(MakeDirectory_Fut                      ,0xff8235e8) //116
 209 NHSTUB(MoveFocusLensToDistance                ,0xffabb19c) //102
 210 NHSTUB(MoveIrisWithAv                         ,0xffa5d268) //120
 211 NHSTUB(MoveZoomLensWithPoint                  ,0xffa5d7f0) //120
 212 NHSTUB(Open                                   ,0xff823ca0) //120
 213 NHSTUB(PB2Rec                                 ,0xff879ff8) //104
 214 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff85c4c8) //120
 215 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff85c4a0) //120
 216 NHSTUB(PT_PlaySound                           ,0xff85c0a4) //102
 217 NHSTUB(PostLogicalEventForNotPowerType        ,0xff874ce0) //120
 218 NHSTUB(PostLogicalEventToUI                   ,0xff874d2c) //120
 219 NHSTUB(PutInNdFilter                          ,0xffa5d654) //102
 220 NHSTUB(PutOutNdFilter                         ,0xffa5d678) //102
 221 NHSTUB(Read                                   ,0xff819ae4) //120
 222 NHSTUB(ReadFastDir                            ,0xffa3d384) //  1
 223 NHSTUB(Rec2PB                                 ,0xff8789fc) //104
 224 NHSTUB(RefreshPhysicalScreen                  ,0xff9b78b8) //104
 225 NHSTUB(RenameFile_Fut                         ,0xff823520) //  1
 226 NHSTUB(Restart                                ,0xff828c2c) //122
 227 NHSTUB(SetAE_ShutterSpeed                     ,0xffabd97c) //102
 228 NHSTUB(SetAutoShutdownTime                    ,0xff876ff4) //120
 229 NHSTUB(SetCurrentCaptureModeType              ,0xff87ea48) //120
 230 NHSTUB(SetFileAttributes                      ,0xff823ff4) //  1
 231 NHSTUB(SetFileTimeStamp                       ,0xff823fa4) //  1
 232 NHSTUB(SetLogicalEventActive                  ,0xff876cd0) //120
 233 NHSTUB(SetParameterData                       ,0xff94c1c8) //101
 234 NHSTUB(SetPropertyCase                        ,0xff86f4e8) //102
 235 NHSTUB(SetScriptMode                          ,0xff876d20) //120
 236 NHSTUB(SleepTask                              ,0xff827160) //120
 237 NHSTUB(TakeSemaphore                          ,0xff826e28) //120
 238 NHSTUB(TurnOffBackLight                       ,0xff88492c) //104
 239 NHSTUB(TurnOnBackLight                        ,0xff884914) //104
 240 NHSTUB(TurnOnDisplay                          ,0xff83dd68) //120
 241 NHSTUB(TurnOffDisplay                         ,0xff83dd78) //120
 242 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff939098) //120
 243 NHSTUB(UnlockAE                               ,0xff825590) //120
 244 NHSTUB(UnlockAF                               ,0xff8253b8) //120
 245 NHSTUB(UnlockMainPower                        ,0xff876ed4) //120
 246 NHSTUB(UnsetZoomForMovie                      ,0xff952aa0) //104
 247 NHSTUB(UpdateMBROnFlash                       ,0xff853464) //105
 248 NHSTUB(VbattGet                               ,0xff820644) //120
 249 NHSTUB(Write                                  ,0xff823d74) //120
 250 NHSTUB(WriteSDCard                            ,0xff90ac68) //108
 251 NHSTUB(_log                                   ,0xffaeac64) //111
 252 NHSTUB(_log10                                 ,0xffae98f0) //112
 253 NHSTUB(_pow                                   ,0xffae9a60) //121
 254 NHSTUB(_sqrt                                  ,0xffaec808) //  1
 255 NHSTUB(add_ptp_handler                        ,0xffa05234) //121
 256 NHSTUB(apex2us                                ,0xff9baac0) //121
 257 NHSTUB(close                                  ,0xff8198fc) //109
 258 NHSTUB(err_init_task                          ,0xff814e2c) //111
 259 NHSTUB(exmem_alloc                            ,0xff86a134) //103
 260 NHSTUB(exmem_free                             ,0xff86a1ac) //103
 261 NHSTUB(free                                   ,0xff813a3c) //112
 262 NHSTUB(get_nd_value                           ,0xffa4e698) //123
 263 NHSTUB(get_current_nd_value                   ,0xffa4e654) //122
 264 NHSTUB(kbd_p1_f                               ,0xff821e78) //109
 265 NHSTUB(kbd_p1_f_cont                          ,0xff821e84) //109
 266 NHSTUB(kbd_p2_f                               ,0xff821730) //109
 267 NHSTUB(kbd_read_keys                          ,0xff821dfc) //109
 268 NHSTUB(kbd_read_keys_r2                       ,0xff843ad4) //109
 269 NHSTUB(lseek                                  ,0xff823e08) //120
 270 NHSTUB(malloc                                 ,0xff813968) //112
 271 NHSTUB(memcmp                                 ,0xff81cc5c) //120
 272 NHSTUB(memcpy                                 ,0xff88b508) //120
 273 NHSTUB(memset                                 ,0xff9b9da8) //120
 274 NHSTUB(mkdir                                  ,0xff82406c) //109
 275 NHSTUB(mktime_ext                             ,0xff88bd74) //  1
 276 NHSTUB(open                                   ,0xff81984c) //109
 277 NHSTUB(OpenFastDir                            ,0xffa3d2f0) //  1
 278 NHSTUB(closedir                               ,0xffa3d454) //  1
 279 NHSTUB(qsort                                  ,0xffaa00b0) //  1
 280 NHSTUB(rand                                   ,0xff81cd64) //121
 281 NHSTUB(realloc                                ,0xff813b1c) //115
 282 NHSTUB(reboot_fw_update                       ,0xffa44a34) //106
 283 NHSTUB(set_control_event                      ,0xff876934) //111
 284 NHSTUB(srand                                  ,0xff81cd58) //122
 285 NHSTUB(stat                                   ,0xff823ed4) //  1
 286 NHSTUB(strcat                                 ,0xff88b31c) //  1
 287 NHSTUB(strchr                                 ,0xff88b3a4) //  1
 288 NHSTUB(strcmp                                 ,0xff81cbf4) //120
 289 NHSTUB(strcpy                                 ,0xff81cbdc) //120
 290 NHSTUB(strftime                               ,0xff88b77c) //  1
 291 NHSTUB(strlen                                 ,0xff81cc38) //120
 292 NHSTUB(strncmp                                ,0xff88b358) //  1
 293 NHSTUB(strncpy                                ,0xff82ce1c) //  1
 294 NHSTUB(strrchr                                ,0xff9b9d80) //  1
 295 NHSTUB(strtol                                 ,0xff82d054) //101
 296 NHSTUB(strtolx                                ,0xff82ce58) //109
 297    DEF(task_CaptSeq                           ,0xff85eae4) //120
 298    DEF(task_DvlpSeqTask                       ,0xff85ff7c) //120
 299    DEF(task_ExpDrv                            ,0xff89d8cc) //120
 300    DEF(task_FileWrite                         ,0xffa38ec4) //120
 301    DEF(task_InitFileModules                   ,0xff87aac0) //120
 302    DEF(task_MovieRecord                       ,0xff921840) //120
 303    DEF(task_PhySw                             ,0xff821a60) //120
 304    DEF(task_RotaryEncoder                     ,0xff844220) //120
 305 NHSTUB(time                                   ,0xff8697ec) //109
 306 NHSTUB(vsprintf                               ,0xff81cba0) //115
 307 NHSTUB(EngDrvRead                             ,0xff822cb4) //102
 308 NHSTUB(PTM_GetCurrentItem                     ,0xff8779b0) //105
 309 NHSTUB(CancelHPTimer                          ,0xff86af6c) //119
 310 NHSTUB(SetHPTimerAfterNow                     ,0xff86ae64) //119
 311 NHSTUB(PT_MFOn                                ,0xff85c540) //120
 312 NHSTUB(PT_MFOff                               ,0xff85c550) //120
 313 NHSTUB(GetAdChValue                           ,0xff84064c) //120
 314 NHSTUB(get_ptp_buf_size                       ,0xff8b85f0) //122
 315 NHSTUB(get_ptp_file_buf                       ,0xffa06e08) //121

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