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 DEF(cameracon_state                         ,0x0000320c) // Found @0xff878448
  65 
  66 // Values below go in 'lib.c':
  67 //void *vid_get_bitmap_fb()        { return (void*)0x403f1000; }             // Found @0xff83dc44
  68 //void *vid_get_viewport_fb()      { return (void*)0x415f3570; }             // Found @0xffabe714
  69 DEF(viewport_fb_d                           ,0x000027bc) // Found 0x2764 (@0xff854ed8) + 0x58 (@0xff854f10)
  70 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2764+0x58)); } // Found @0xff854ed8 & 0xff854f10
  71 DEF(jpeg_count_str                          ,0x00035278) // Found @0xff9a6c84
  72 //char *camera_jpeg_count_str()    { return (char*)0x00035278; }             // Found @0xff9a6c84
  73 //int get_flash_params_count(void) { return 0x7a; }                          // Found @0xff94c1a8
  74 
  75 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  76 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffaeeb8c, levent 0x90a
  77 //#define SD_READONLY_IDX     2
  78 //#define USB_MASK            0x00080000 // Found @0xffaeeba4, levent 0x902
  79 //#define USB_IDX             2
  80 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffaeeb74, levent 0x905
  81 //#define BATTCOVER_IDX       2
  82 //#define ANALOG_AV_FLAG      0x00040000 // Found @0xffaeeb98, levent 0x900 (non-inverted logic)
  83 //#define ANALOG_AV_IDX       2
  84 
  85 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  86 //static KeyMap keymap[] = {
  87 //    { 1, KEY_POWER           ,0x00000001 }, // Found @0xffaeea90, levent 0x600
  88 //    { 1, KEY_SHOOT_FULL      ,0x00009000 }, // Found @0xffaeeacc, levent 0x01
  89 //    { 1, KEY_SHOOT_FULL_ONLY ,0x00008000 }, // Found @0xffaeeacc, levent 0x01
  90 //    { 1, KEY_SHOOT_HALF      ,0x00001000 }, // Found @0xffaeeaa8, levent 0x00
  91 //    { 1, KEY_ZOOM_OUT        ,0x00002000 }, // Found @0xffaeeab4, levent 0x03
  92 //    { 1, KEY_ZOOM_IN         ,0x00004000 }, // Found @0xffaeeac0, levent 0x02
  93 //    { 2, KEY_LEFT            ,0x00000020 }, // Found @0xffaeeb14, levent 0x06
  94 //    { 2, KEY_RIGHT           ,0x00000040 }, // Found @0xffaeeb20, levent 0x07
  95 //    { 2, KEY_DOWN            ,0x00000080 }, // Found @0xffaeeb2c, levent 0x05
  96 //    { 2, KEY_UP              ,0x00000200 }, // Found @0xffaeeb44, levent 0x04
  97 //    { 2, KEY_SET             ,0x00000400 }, // Found @0xffaeeb50, levent 0x08
  98 //    { 2, KEY_MENU            ,0x00000800 }, // Found @0xffaeeb5c, levent 0x09
  99 //    { 2, KEY_PLAYBACK        ,0x00004000 }, // Found @0xffaeeb68, levent 0x601
 100 //    { 0, 0, 0 }
 101 //};
 102 
 103 // Values below go in 'platform_camera.h':
 104 //#define CAM_DRYOS         1
 105 //#define CAM_RAW_ROWPIX    4080 // Found @0xff8eb014
 106 //#define CAM_RAW_ROWS      3048 // Found @0xff8eb018
 107 //#undef  CAM_UNCACHED_BIT
 108 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff827520
 109 //#define PARAM_CAMERA_NAME 4 // Found @0xffb5c7a0
 110 
 111 // Below goes in 'filewrite.c' or 'platform_camera.h':
 112 //#define MAX_CHUNKS_FOR_FWT 3 // Found @0xffa38e38
 113 
 114 // Known propcases
 115 // //      PROPCASE_AFSTEP 13
 116 // #define PROPCASE_FOCUS_STATE 18
 117 // #define PROPCASE_AV 23
 118 // #define PROPCASE_BV 34
 119 // //      PROPCASE_DELTA_DIGITALGAIN 77
 120 // #define PROPCASE_DELTA_SV 79
 121 // //      PROPCASE_DELTA_ND 80
 122 // #define PROPCASE_EV_CORRECTION_2 207
 123 // #define PROPCASE_ORIENTATION_SENSOR 219
 124 // #define PROPCASE_SV_MARKET 246
 125 // //      PROPCASE_SVFIX 247
 126 // #define PROPCASE_TV 262
 127 // Guessed propset: 2
 128 
 129 // Misc stuff
 130 DEF(ctypes, 0xffaed8de)
 131 
 132 // EXMEM types:
 133 // EXMEM_RAMDISK        0
 134 // EXMEM_COM            1
 135 // EXMEM_FORMATTER      2
 136 // EXMEM_SHADING        3
 137 // EXMEM_FAMODE         4
 138 // EXMEM_FIRMUP         5
 139 // EXMEM_FIRMUP_VRAM    6
 140 // EXMEM_FIRMUP_INFLATE 7
 141 // EXMEM_DVLPWORK       8
 142 // EXMEM_EVF            9
 143 // EXMEM_SCRIPT         10
 144 // EXMEM_FILESTORE      11
 145 // EXMEM_MOVIE_REC      12
 146 // EXMEM_MOVIE_PLY      13
 147 // EXMEM_WIDE           14
 148 // EXMEM_NARROW         15
 149 // EXMEM_CRAW_REC       16
 150 // EXMEM_PCEVF          17
 151 
 152 // ISR flag: 0x1960, pointer to current task's control block: 0x195c
 153 // pointer to TCB area: 0x19ec, found @ 0xff81574c
 154 
 155 // LED table init @ 0xff8cf8f8
 156 // LED #1: 0xc0220130, offset 0x4
 157 // LED #2: 0xc0220134, offset 0x44
 158 
 159 // For capt_seq.c
 160 DEF(_nrflag,0x6410) // Found @ ff9266dc (0x6418) & ff9266fc (-0x08)
 161 //static long *nrflag = (long*)(0x6418-0x08);  // Found @ ff9266dc & ff9266f8
 162 
 163 // Stubs below matched 100%.
 164 //    Name                                     Address                Comp to stubs_entry_2.S
 165 NHSTUB(AllocateUncacheableMemory              ,0xff8274dc) //112
 166 NHSTUB(Close                                  ,0xff823cc8) //120
 167 NHSTUB(CreateBinarySemaphore                  ,0xff826cbc) //115
 168 NHSTUB(CreateTask                             ,0xff81afac) //120
 169 NHSTUB(DebugAssert                            ,0xff81b284) //107
 170 NHSTUB(DeleteDirectory_Fut                    ,0xff823658) //116
 171 NHSTUB(DeleteFile_Fut                         ,0xff823574) //112
 172 NHSTUB(DeleteSemaphore                        ,0xff826d7c) //120
 173 NHSTUB(DoAELock                               ,0xff82556c) //120
 174 NHSTUB(DoAFLock                               ,0xff825380) //120
 175 NHSTUB(EnterToCompensationEVF                 ,0xff82546c) //104
 176 NHSTUB(ExecuteEventProcedure                  ,0xff86b884) //104
 177 NHSTUB(ExitFromCompensationEVF                ,0xff8254b0) //104
 178 NHSTUB(ExitTask                               ,0xff81b23c) //120
 179 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff830020) //104
 180 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff830164) //104
 181 NHSTUB(Fclose_Fut                             ,0xff8236f0) //120
 182 NHSTUB(Feof_Fut                               ,0xff8238dc) //  1
 183 NHSTUB(Fflush_Fut                             ,0xff823918) //  1
 184 NHSTUB(Fgets_Fut                              ,0xff823844) //  1
 185 NHSTUB(Fopen_Fut                              ,0xff8236b0) //120
 186 NHSTUB(Fread_Fut                              ,0xff82379c) //120
 187 NHSTUB(FreeUncacheableMemory                  ,0xff82751c) //112
 188 NHSTUB(Fseek_Fut                              ,0xff823890) //120
 189 NHSTUB(Fwrite_Fut                             ,0xff8237f0) //120
 190 NHSTUB(GetBatteryTemperature                  ,0xff847118) //102
 191 NHSTUB(GetCCDTemperature                      ,0xff8470a4) //102
 192 NHSTUB(GetCurrentAvValue                      ,0xff91a3c0) //120
 193 NHSTUB(GetCurrentShutterSpeed                 ,0xff88c960) //120
 194 NHSTUB(GetDrive_ClusterSize                   ,0xff85360c) //  5
 195 NHSTUB(GetDrive_FreeClusters                  ,0xff853664) //  5
 196 NHSTUB(GetDrive_TotalClusters                 ,0xff853638) //  5
 197 NHSTUB(GetFocusLensSubjectDistance            ,0xff919470) //102
 198 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff91984c) //  3
 199 NHSTUB(GetKbdState                            ,0xff844130) //109
 200 NHSTUB(GetMemInfo                             ,0xff813be4) //115
 201 NHSTUB(GetOpticalTemperature                  ,0xff84718c) //120
 202 NHSTUB(GetParameterData                       ,0xff94c168) //101
 203 NHSTUB(GetPropertyCase                        ,0xff86f5f0) //102
 204 NHSTUB(GetSystemTime                          ,0xffa5f074) //120
 205 NHSTUB(GetVRAMHPixelsSize                     ,0xff8b58dc) //120
 206 NHSTUB(GetVRAMVPixelsSize                     ,0xff8b58e8) //120
 207 NHSTUB(GetZoomLensCurrentPoint                ,0xff91db10) //120
 208 NHSTUB(GetZoomLensCurrentPosition             ,0xffa50a54) //102
 209 NHSTUB(GiveSemaphore                          ,0xff826ef8) //120
 210 NHSTUB(IsStrobeChargeCompleted                ,0xff8a71a0) //102
 211 NHSTUB(LEDDrive                               ,0xff843600) //120
 212 NHSTUB(LocalTime                              ,0xff869274) //115
 213 NHSTUB(LockMainPower                          ,0xff876f80) //120
 214 NHSTUB(MakeDirectory_Fut                      ,0xff8235e8) //116
 215 NHSTUB(MoveFocusLensToDistance                ,0xffabb0ac) //102
 216 NHSTUB(MoveIrisWithAv                         ,0xffa5d178) //120
 217 NHSTUB(MoveZoomLensWithPoint                  ,0xffa5d700) //120
 218 NHSTUB(MoveOpticalZoomAt                      ,0xff824f14) //109
 219 NHSTUB(Open                                   ,0xff823ca0) //120
 220 NHSTUB(PB2Rec                                 ,0xff879ff8) //104
 221 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff85c4c8) //120
 222 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff85c4a0) //120
 223 NHSTUB(PT_PlaySound                           ,0xff85c0a4) //102
 224 NHSTUB(PostLogicalEventForNotPowerType        ,0xff874ce0) //120
 225 NHSTUB(PostLogicalEventToUI                   ,0xff874d2c) //120
 226 NHSTUB(PutInNdFilter                          ,0xffa5d564) //102
 227 NHSTUB(PutOutNdFilter                         ,0xffa5d588) //102
 228 NHSTUB(Read                                   ,0xff819ae4) //120
 229 NHSTUB(ReadFastDir                            ,0xffa3d294) //  1
 230 NHSTUB(Rec2PB                                 ,0xff8789fc) //104
 231 NHSTUB(RefreshPhysicalScreen                  ,0xff9b77c8) //104
 232 NHSTUB(RenameFile_Fut                         ,0xff823520) //  1
 233 NHSTUB(Restart                                ,0xff828c2c) //122
 234 NHSTUB(SetAE_ShutterSpeed                     ,0xffabd88c) //102
 235 NHSTUB(SetAutoShutdownTime                    ,0xff876ff4) //120
 236 NHSTUB(SetCurrentCaptureModeType              ,0xff87ea48) //120
 237 NHSTUB(SetDate                                ,0xffabf370) //120
 238 NHSTUB(SetFileAttributes                      ,0xff823ff4) //  1
 239 NHSTUB(SetFileTimeStamp                       ,0xff823fa4) //  1
 240 NHSTUB(SetLogicalEventActive                  ,0xff876cd0) //120
 241 NHSTUB(SetParameterData                       ,0xff94c0d8) //101
 242 NHSTUB(SetPropertyCase                        ,0xff86f4e8) //102
 243 NHSTUB(SetScriptMode                          ,0xff876d20) //120
 244 NHSTUB(SleepTask                              ,0xff827160) //120
 245 NHSTUB(TakeSemaphore                          ,0xff826e28) //120
 246 NHSTUB(TurnOffBackLight                       ,0xff88492c) //104
 247 NHSTUB(TurnOnBackLight                        ,0xff884914) //104
 248 NHSTUB(TurnOnDisplay                          ,0xff83dd68) //120
 249 NHSTUB(TurnOffDisplay                         ,0xff83dd78) //120
 250 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff938fa8) //120
 251 NHSTUB(UnlockAE                               ,0xff825590) //120
 252 NHSTUB(UnlockAF                               ,0xff8253b8) //120
 253 NHSTUB(UnlockMainPower                        ,0xff876ed4) //120
 254 NHSTUB(UnsetZoomForMovie                      ,0xff9529b0) //104
 255 NHSTUB(UpdateMBROnFlash                       ,0xff853464) //105
 256 NHSTUB(VbattGet                               ,0xff820644) //120
 257 NHSTUB(Write                                  ,0xff823d74) //120
 258 NHSTUB(WriteSDCard                            ,0xff90ab78) //108
 259 NHSTUB(_log                                   ,0xffaeab74) //111
 260 NHSTUB(_log10                                 ,0xffae9800) //112
 261 NHSTUB(_pow                                   ,0xffae9970) //121
 262 NHSTUB(_sqrt                                  ,0xffaec718) //  1
 263 NHSTUB(add_ptp_handler                        ,0xffa05144) //121
 264 NHSTUB(apex2us                                ,0xff9ba9d0) //121
 265 NHSTUB(close                                  ,0xff8198fc) //109
 266 NHSTUB(err_init_task                          ,0xff814e2c) //111
 267 NHSTUB(exmem_alloc                            ,0xff86a134) //103
 268 NHSTUB(exmem_ualloc                           ,0xff869f88) //103
 269 NHSTUB(exmem_ufree                            ,0xff86a0d4) //103
 270 NHSTUB(free                                   ,0xff813a3c) //112
 271 NHSTUB(get_nd_value                           ,0xffa4e5a8) //123
 272 NHSTUB(get_current_nd_value                   ,0xffa4e564) //122
 273 NHSTUB(get_current_deltasv                    ,0xff88d4f0) //122
 274 NHSTUB(GetCurrentDriveBaseSvValue             ,0xff892660) //123
 275 NHSTUB(kbd_p1_f                               ,0xff821e78) //109
 276 NHSTUB(kbd_p1_f_cont                          ,0xff821e84) //109
 277 NHSTUB(kbd_p2_f                               ,0xff821730) //109
 278 NHSTUB(kbd_read_keys                          ,0xff821dfc) //109
 279 NHSTUB(kbd_read_keys_r2                       ,0xff843ad4) //109
 280 NHSTUB(lseek                                  ,0xff823e08) //120
 281 NHSTUB(malloc                                 ,0xff813968) //112
 282 NHSTUB(memcmp                                 ,0xff81cc5c) //120
 283 NHSTUB(memcpy                                 ,0xff88b508) //120
 284 NHSTUB(memset                                 ,0xff9b9cb8) //120
 285 NHSTUB(mkdir                                  ,0xff82406c) //109
 286 NHSTUB(mktime_ext                             ,0xff88bd74) //  1
 287 NHSTUB(open                                   ,0xff81984c) //109
 288 NHSTUB(OpenFastDir                            ,0xffa3d200) //  1
 289 NHSTUB(closedir                               ,0xffa3d364) //  1
 290 NHSTUB(qsort                                  ,0xffa9ffc0) //  1
 291 NHSTUB(rand                                   ,0xff81cd64) //121
 292 NHSTUB(realloc                                ,0xff813b1c) //115
 293 NHSTUB(reboot_fw_update                       ,0xffa44944) //106
 294 NHSTUB(set_control_event                      ,0xff876934) //111
 295 NHSTUB(srand                                  ,0xff81cd58) //122
 296 NHSTUB(stat                                   ,0xff823ed4) //  1
 297 NHSTUB(strcat                                 ,0xff88b31c) //  1
 298 NHSTUB(strchr                                 ,0xff88b3a4) //  1
 299 NHSTUB(strcmp                                 ,0xff81cbf4) //120
 300 NHSTUB(strcpy                                 ,0xff81cbdc) //120
 301 NHSTUB(strftime                               ,0xff88b77c) //  1
 302 NHSTUB(strlen                                 ,0xff81cc38) //120
 303 NHSTUB(strncmp                                ,0xff88b358) //  1
 304 NHSTUB(strncpy                                ,0xff82ce1c) //  1
 305 NHSTUB(strrchr                                ,0xff9b9c90) //  1
 306 NHSTUB(strtol                                 ,0xff82d054) //101
 307 NHSTUB(strtolx                                ,0xff82ce58) //109
 308    DEF(task_CaptSeq                           ,0xff85eae4) //120
 309    DEF(task_DvlpSeqTask                       ,0xff85ff7c) //120
 310    DEF(task_ExpDrv                            ,0xff89d8cc) //120
 311    DEF(task_FileWrite                         ,0xffa38dd4) //120
 312    DEF(task_InitFileModules                   ,0xff87aac0) //120
 313    DEF(task_MovieRecord                       ,0xff921750) //120
 314    DEF(task_PhySw                             ,0xff821a60) //120
 315    DEF(task_RotaryEncoder                     ,0xff844220) //120
 316 NHSTUB(time                                   ,0xff8697ec) //109
 317 NHSTUB(vsprintf                               ,0xff81cba0) //115
 318 NHSTUB(EngDrvRead                             ,0xff822cb4) //102
 319 NHSTUB(PTM_GetCurrentItem                     ,0xff8779b0) //105
 320 NHSTUB(CancelHPTimer                          ,0xff86af6c) //119
 321 NHSTUB(SetHPTimerAfterNow                     ,0xff86ae64) //119
 322 NHSTUB(PT_MFOn                                ,0xff85c540) //120
 323 NHSTUB(PT_MFOff                               ,0xff85c550) //120
 324 NHSTUB(GetAdChValue                           ,0xff84064c) //120
 325 NHSTUB(get_ptp_buf_size                       ,0xff8b8500) //122
 326 NHSTUB(get_ptp_file_buf                       ,0xffa06d18) //121
 327 NHSTUB(SetVideoOutType                        ,0xffabe0a8) //109
 328 NHSTUB(GetVideoOutType                        ,0xffabdfdc) //120

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