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

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