root/platform/ixus980_sd990/sub/100e/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.00E   // Found @ 0xff875448, "GM1.00E" @ 0xff875455
   7 //   Firmware build timestamp: Aug 22 2008 10:53:49
   8 //   Canon DIGITAL IXUS 980 IS
   9 
  10 // Values for makefile.inc
  11 //   PLATFORMOSVER = 31
  12 //   PLATFORMID = 12691 (0x3193) // Found @ 0xfffe0130
  13 //   MAXRAMADDR = 0x07ffffff
  14 //   MEMISOSTART = 0x000e8b40
  15 //   KEYSYS = d4                 // Found @ 0xffff363c
  16 //   NEED_ENCODED_DISKBOOT = 1   // Found @ 0xffff364c
  17 //   ARAM_HEAP_START = 0x3ce000  // Found @ 0xff94782c
  18 //   ARAM_HEAP_SIZE  = 0x32000   // Found @ 0xff9477ec
  19 
  20 // Detected address ranges:
  21 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  22 // RAM data 0x00001900 - 0x0000fe80 copied from 0xffb74b98 (  58752 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(DoAFLock                             ,0xff8258d0) //120        *** != 0xff863a80
  27 //NHSTUB(UnlockAF                             ,0xff825908) //120        *** != 0xff863a90
  28 //NHSTUB(kbd_pwr_off                          ,0xff84a3a8) //  2 64%    *** != 0x00000000
  29 
  30 // Check of modemap from 'platform/CAMERA/shooting.c':
  31 // Firmware modemap table found @ffa58654 -> ffb49820
  32 // No problems found with modemap table.
  33 
  34 // Values below can be overridden in 'stubs_min.S':
  35 DEF(physw_status                            ,0x00011318) // Found @0xff821c24
  36 DEF(physw_run                               ,0x00001c28) // Found @0xff821898
  37 DEF(physw_sleep_delay                       ,0x00001c26) // Found @0xff821898
  38 DEF(levent_table                            ,0xffb198b0) // Found @0xffb198b0
  39 DEF(FlashParamsTable                        ,0xffb499f4) // Found @0xffb499f4
  40 DEF(movie_status                            ,0x000053dc) // Found @0xff861ed0
  41 DEF(video_compression_rate                  ,0x00005408) // Found @0xff8620cc
  42 DEF(canon_menu_active                       ,0x00005830) // Found @0xff876e48
  43 DEF(canon_shoot_menu_active                 ,0x0000a351) // Found @0xff973b2c
  44 DEF(playrec_mode                            ,0x00005594) // Found @0xff869e90
  45 DEF(zoom_status                             ,0x0000d890) // Found @0xffa59e68
  46 DEF(some_flag_for_af_scan                   ,0x000093e0) // Found @0xff93be2c
  47 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  48 // each entry contains 3 int value(s), the first is the zoom focus length.
  49 // there are 8 entries in the table - set NUM_FL to 8
  50 DEF(focus_len_table                         ,0xfffe2a8c) // Found @0xfffe2a8c
  51 DEF(zoom_busy                               ,0x00008a1c) // Found @0xff93378c
  52 DEF(focus_busy                              ,0x00008914) // Found @0xff92e770
  53 DEF(recreview_hold                          ,0x000061b8) // Found @0xff887648
  54 // Palette colour tables  found @ 0xffb2f948
  55 DEF(active_palette_buffer                   ,0x0000b530) // Found @0xff9c3268
  56 DEF(palette_buffer_ptr                      ,0x0000b524) // Found @0xff9c311c
  57 // Offset from start of palette_buffer to color data = 16 (Found @0xff9c20c8)
  58 // Camera has 2 RAW buffers @ 0x40ebafa0 & 0x42cfb780
  59 //  Note: active buffer --> raw_buffers[ active_raw_buffer   *3]
  60 //        other buffer  --> raw_buffers[(active_raw_buffer^1)*3]
  61 DEF(raw_buffers                             ,0xffae8e60) // Found @0xffae8e60
  62 DEF(active_raw_buffer                       ,0x00005538) // Found @0xff867448
  63 DEF(fileio_semaphore                        ,0x00002a08) // Found @0xff857e68
  64 DEF(exmem_alloc_table                       ,0x0001b668) // Found @0xff870750
  65 DEF(exmem_types_table                       ,0xffb78920) // Found @0x00005688
  66 DEF_CONST(exmem_type_count                  ,0x00000012)
  67 DEF(imager_active                           ,0x00001f9c) // Found @0xff837198 (0x1f98 + 4)
  68 DEF_CONST(uiprop_count                      ,0x00000069) // Found @0xff9620b4
  69 
  70 // Values below go in 'lib.c':
  71 //void *vid_get_bitmap_fb()        { return (void*)0x40471000; }             // Found @0xff845f24
  72 //void *vid_get_viewport_fb()      { return (void*)0x407f6dc0; }             // Found @0xffaadbb8
  73 DEF(viewport_fb_d                           ,0x00005268) // Found 0x5210 (@0xff85af1c) + 0x58 (@0xff85af54)
  74 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x5210+0x58)); } // Found @0xff85af1c & 0xff85af54
  75 DEF(jpeg_count_str                          ,0x0004af18) // Found @0xff9b957c
  76 //char *camera_jpeg_count_str()    { return (char*)0x0004af18; }             // Found @0xff9b957c
  77 //int get_flash_params_count(void) { return 0x78; }                          // Found @0xff962af8
  78 
  79 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  80 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffae86d0, levent 0x90a
  81 //#define SD_READONLY_IDX     2
  82 //#define USB_MASK            0x00040000 // Found @0xffae86dc, levent 0x902
  83 //#define USB_IDX             2
  84 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffae86b8, levent 0x905
  85 //#define BATTCOVER_IDX       2
  86 //#define ANALOG_AV_FLAG      0x00002000 // Found @0xffae85e0, levent 0x900 (non-inverted logic)
  87 //#define ANALOG_AV_IDX       1
  88 
  89 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  90 //static KeyMap keymap[] = {
  91 //    { 1, KEY_POWER           ,0x40000000 }, // Found @0xffae8610, levent 0x600
  92 //    { 1, KEY_PLAYBACK        ,0x80000000 }, // Found @0xffae861c, levent 0x601
  93 //    { 2, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffae8634, levent 0x01
  94 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffae8634, levent 0x01
  95 //    { 2, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffae8628, levent 0x00
  96 //    { 2, KEY_ZOOM_IN         ,0x00000004 }, // Found @0xffae8640, levent 0x02
  97 //    { 2, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffae864c, levent 0x03
  98 //    { 2, KEY_LEFT            ,0x00000010 }, // Found @0xffae8658, levent 0x06
  99 //    { 2, KEY_RIGHT           ,0x00000020 }, // Found @0xffae8664, levent 0x07
 100 //    { 2, KEY_DOWN            ,0x00000040 }, // Found @0xffae8670, levent 0x05
 101 //    { 2, KEY_UP              ,0x00000080 }, // Found @0xffae867c, levent 0x04
 102 //    { 2, KEY_SET             ,0x00000100 }, // Found @0xffae8688, levent 0x08
 103 //    { 2, KEY_DISPLAY         ,0x00000200 }, // Found @0xffae8694, levent 0x0a
 104 //    { 2, KEY_MENU            ,0x00000400 }, // Found @0xffae86a0, levent 0x09
 105 //    { 0, 0, 0 }
 106 //};
 107 
 108 // Values below go in 'platform_camera.h':
 109 //#define CAM_DRYOS         1
 110 //#define CAM_RAW_ROWPIX    4480 // Found @0xffaa6e8c
 111 //#define CAM_RAW_ROWS      3348 // Found @0xffaa6e90
 112 //#undef  CAM_UNCACHED_BIT
 113 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff827f80
 114 //#define PARAM_CAMERA_NAME 4 // Found @0xffb4bd4c
 115 
 116 // Known propcases
 117 // //      PROPCASE_AFSTEP 13
 118 // #define PROPCASE_FOCUS_STATE 18
 119 // #define PROPCASE_AV 23
 120 // #define PROPCASE_BV 34
 121 // //      PROPCASE_DELTA_DIGITALGAIN 77
 122 // #define PROPCASE_DELTA_SV 79
 123 // //      PROPCASE_DELTA_ND 80
 124 // #define PROPCASE_EV_CORRECTION_2 207
 125 // #define PROPCASE_ORIENTATION_SENSOR 219
 126 // #define PROPCASE_SV_MARKET 246
 127 // //      PROPCASE_SVFIX 247
 128 // #define PROPCASE_TV 262
 129 // Guessed propset: 2
 130 
 131 // Misc stuff
 132 DEF(ctypes, 0xffae283e)
 133 
 134 // EXMEM types:
 135 // EXMEM_RAMDISK        0
 136 // EXMEM_COM            1
 137 // EXMEM_FORMATTER      2
 138 // EXMEM_SHADING        3
 139 // EXMEM_FAMODE         4
 140 // EXMEM_FIRMUP         5
 141 // EXMEM_FIRMUP_VRAM    6
 142 // EXMEM_FIRMUP_INFLATE 7
 143 // EXMEM_DVLPWORK       8
 144 // EXMEM_EVF            9
 145 // EXMEM_SCRIPT         10
 146 // EXMEM_FILESTORE      11
 147 // EXMEM_MOVIE_REC      12
 148 // EXMEM_MOVIE_PLY      13
 149 // EXMEM_WIDE           14
 150 // EXMEM_NARROW         15
 151 // EXMEM_CRAW_REC       16
 152 // EXMEM_PCEVF          17
 153 
 154 // ISR flag: 0x195c, pointer to current task's control block: 0x1958
 155 // pointer to TCB area: 0x19e8, found @ 0xff815724
 156 
 157 // LED table init @ 0xff8eb458
 158 // LED #1: 0xc02200bc, offset 0x204
 159 // LED #2: 0xc0220138, offset 0x84
 160 // LED #3: 0xc02200b0, offset 0xc4
 161 // LED #4: 0xc0220134, offset 0x4
 162 // LED #5: 0xc0220130, offset 0x44
 163 
 164 // For capt_seq.c
 165 DEF(_nrflag,0x93c8) // Found @ ff93de40 (0x93cc) & ff93de5c (-0x04)
 166 //static long *nrflag = (long*)(0x93cc-0x04);  // Found @ ff93de40 & ff93de58
 167 
 168 // Stubs below matched 100%.
 169 //    Name                                     Address                Comp to stubs_entry_2.S
 170 NHSTUB(AllocateUncacheableMemory              ,0xff827f3c) //112
 171 NHSTUB(Close                                  ,0xff823b74) //120
 172 NHSTUB(CreateBinarySemaphore                  ,0xff82771c) //115
 173 NHSTUB(CreateTask                             ,0xff81aef4) //120
 174 NHSTUB(DebugAssert                            ,0xff81b1cc) //107
 175 NHSTUB(DeleteDirectory_Fut                    ,0xff823504) //116
 176 NHSTUB(DeleteFile_Fut                         ,0xff823420) //112
 177 NHSTUB(DoAELock                               ,0xff825c20) //120
 178 NHSTUB(EnterToCompensationEVF                 ,0xff825b7c) //104
 179 NHSTUB(ExecuteEventProcedure                  ,0xff872670) //104
 180 NHSTUB(ExitFromCompensationEVF                ,0xff825bc0) //104
 181 NHSTUB(ExitTask                               ,0xff81b184) //120
 182 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff8310e4) //104
 183 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff831228) //104
 184 NHSTUB(Fclose_Fut                             ,0xff82359c) //120
 185 NHSTUB(Feof_Fut                               ,0xff823788) //  1
 186 NHSTUB(Fflush_Fut                             ,0xff8237c4) //  1
 187 NHSTUB(Fgets_Fut                              ,0xff8236f0) //  1
 188 NHSTUB(Fopen_Fut                              ,0xff82355c) //120
 189 NHSTUB(Fread_Fut                              ,0xff823648) //120
 190 NHSTUB(FreeUncacheableMemory                  ,0xff827f7c) //112
 191 NHSTUB(Fseek_Fut                              ,0xff82373c) //120
 192 NHSTUB(Fwrite_Fut                             ,0xff82369c) //120
 193 NHSTUB(GetBatteryTemperature                  ,0xff84ce3c) //102
 194 NHSTUB(GetCCDTemperature                      ,0xff84cdcc) //102
 195 NHSTUB(GetCurrentAvValue                      ,0xff9303b0) //120
 196 NHSTUB(GetCurrentShutterSpeed                 ,0xff898c14) //120
 197 NHSTUB(GetDrive_ClusterSize                   ,0xff859648) //  1
 198 NHSTUB(GetDrive_FreeClusters                  ,0xff8596b0) //  1
 199 NHSTUB(GetDrive_TotalClusters                 ,0xff85967c) //  1
 200 NHSTUB(GetFocusLensSubjectDistance            ,0xff92f474) //102
 201 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff92f85c) //  3
 202 NHSTUB(GetKbdState                            ,0xff84a390) //109
 203 NHSTUB(GetMemInfo                             ,0xff813c24) //115
 204 NHSTUB(GetOpticalTemperature                  ,0xff84ceac) //120
 205 NHSTUB(GetParameterData                       ,0xff962ab8) //101
 206 NHSTUB(GetPropertyCase                        ,0xff876358) //102
 207 NHSTUB(GetSystemTime                          ,0xffa49a98) //120
 208 NHSTUB(GetVRAMHPixelsSize                     ,0xff83c2a8) //120
 209 NHSTUB(GetVRAMVPixelsSize                     ,0xff83c2b4) //120
 210 NHSTUB(GetZoomLensCurrentPoint                ,0xff933afc) //120
 211 NHSTUB(GetZoomLensCurrentPosition             ,0xffa4059c) //102
 212 NHSTUB(GiveSemaphore                          ,0xff827958) //120
 213 NHSTUB(IsStrobeChargeCompleted                ,0xff8b0638) //102
 214 NHSTUB(LEDDrive                               ,0xff849b2c) //120
 215 NHSTUB(LocalTime                              ,0xff86fe0c) //115
 216 NHSTUB(LockMainPower                          ,0xff87da7c) //120
 217 NHSTUB(MakeDirectory_Fut                      ,0xff823494) //116
 218 NHSTUB(MoveFocusLensToDistance                ,0xffaaa5fc) //102
 219 NHSTUB(MoveIrisWithAv                         ,0xffa46ae4) //120
 220 NHSTUB(MoveZoomLensWithPoint                  ,0xffa4706c) //120
 221 NHSTUB(MoveOpticalZoomAt                      ,0xff8250c4) //109
 222 NHSTUB(Open                                   ,0xff823b4c) //120
 223 NHSTUB(PB2Rec                                 ,0xff880ac0) //104
 224 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff863a48) //120
 225 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff863a20) //120
 226 NHSTUB(PT_PlaySound                           ,0xff863398) //102
 227 NHSTUB(PostLogicalEventForNotPowerType        ,0xff87b858) //120
 228 NHSTUB(PostLogicalEventToUI                   ,0xff87b8a4) //120
 229 NHSTUB(PutInNdFilter                          ,0xffa46ed0) //102
 230 NHSTUB(PutOutNdFilter                         ,0xffa46ef4) //102
 231 NHSTUB(Read                                   ,0xff819a4c) //120
 232 NHSTUB(ReadFastDir                            ,0xffa2eb80) //  1
 233 NHSTUB(Rec2PB                                 ,0xff87f458) //104
 234 NHSTUB(RefreshPhysicalScreen                  ,0xff9c7c94) //104
 235 NHSTUB(RenameFile_Fut                         ,0xff8233cc) //  1
 236 NHSTUB(Restart                                ,0xff8297b0) //122
 237 NHSTUB(SetAE_ShutterSpeed                     ,0xffaacdc8) //102
 238 NHSTUB(SetAutoShutdownTime                    ,0xff87daf0) //120
 239 NHSTUB(SetCurrentCaptureModeType              ,0xff884c28) //120
 240 NHSTUB(SetFileAttributes                      ,0xff823ea0) //  1
 241 NHSTUB(SetFileTimeStamp                       ,0xff823e50) //  1
 242 NHSTUB(SetLogicalEventActive                  ,0xff87d7cc) //120
 243 NHSTUB(SetParameterData                       ,0xff962a28) //101
 244 NHSTUB(SetPropertyCase                        ,0xff876250) //102
 245 NHSTUB(SetScriptMode                          ,0xff87d81c) //120
 246 NHSTUB(SleepTask                              ,0xff827bc0) //120
 247 NHSTUB(TakeSemaphore                          ,0xff827888) //120
 248 NHSTUB(TurnOffBackLight                       ,0xff88aca0) //104
 249 NHSTUB(TurnOnBackLight                        ,0xff88ac88) //104
 250 NHSTUB(TurnOnDisplay                          ,0xff845fec) //120
 251 NHSTUB(TurnOffDisplay                         ,0xff845ffc) //120
 252 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff953ba0) //120
 253 NHSTUB(UnlockAE                               ,0xff825c44) //120
 254 NHSTUB(UnlockMainPower                        ,0xff87d9d0) //120
 255 NHSTUB(UnsetZoomForMovie                      ,0xff9689ec) //104
 256 NHSTUB(UpdateMBROnFlash                       ,0xff859488) //105
 257 NHSTUB(VbattGet                               ,0xff820560) //120
 258 NHSTUB(Write                                  ,0xff823c20) //120
 259 NHSTUB(WriteSDCard                            ,0xff9210a4) //108
 260 NHSTUB(_log                                   ,0xffadfabc) //111
 261 NHSTUB(_log10                                 ,0xffade748) //112
 262 NHSTUB(_pow                                   ,0xffade8b8) //121
 263 NHSTUB(_sqrt                                  ,0xffae1718) //  1
 264 NHSTUB(add_ptp_handler                        ,0xff9fbed8) //121
 265 NHSTUB(apex2us                                ,0xff9c8cb0) //121
 266 NHSTUB(close                                  ,0xff819864) //109
 267 NHSTUB(err_init_task                          ,0xff814e80) //111
 268 NHSTUB(exmem_alloc                            ,0xff870d4c) //103
 269 NHSTUB(exmem_free                             ,0xff870dc4) //103
 270 NHSTUB(free                                   ,0xff813a7c) //112
 271 NHSTUB(get_nd_value                           ,0xffa3e0f0) //123
 272 NHSTUB(get_current_nd_value                   ,0xffa3e0ac) //122
 273 NHSTUB(kbd_p1_f                               ,0xff821d20) //109
 274 NHSTUB(kbd_p1_f_cont                          ,0xff821d2c) //109
 275 NHSTUB(kbd_p2_f                               ,0xff821538) //109
 276 NHSTUB(kbd_read_keys                          ,0xff821c24) //109
 277 NHSTUB(kbd_read_keys_r2                       ,0xff849f24) //109
 278 NHSTUB(lseek                                  ,0xff823cb4) //120
 279 NHSTUB(malloc                                 ,0xff8139a8) //112
 280 NHSTUB(memcmp                                 ,0xff81cba4) //120
 281 NHSTUB(memcpy                                 ,0xff8977a4) //120
 282 NHSTUB(memset                                 ,0xff9c7fe8) //120
 283 NHSTUB(mkdir                                  ,0xff823f18) //109
 284 NHSTUB(mktime_ext                             ,0xff898010) //  1
 285 NHSTUB(open                                   ,0xff8197b4) //109
 286 NHSTUB(OpenFastDir                            ,0xffa2eaec) //  1
 287 NHSTUB(closedir                               ,0xffa2ec50) //  1
 288 NHSTUB(qsort                                  ,0xffa93dc0) //  1
 289 NHSTUB(rand                                   ,0xff81ccac) //121
 290 NHSTUB(realloc                                ,0xff813b5c) //115
 291 NHSTUB(reboot_fw_update                       ,0xffa36580) //106
 292 NHSTUB(set_control_event                      ,0xff87d448) //111
 293 NHSTUB(srand                                  ,0xff81cca0) //122
 294 NHSTUB(stat                                   ,0xff823d80) //  1
 295 NHSTUB(strcat                                 ,0xff8975b8) //  1
 296 NHSTUB(strchr                                 ,0xff897640) //  1
 297 NHSTUB(strcmp                                 ,0xff81cb3c) //120
 298 NHSTUB(strcpy                                 ,0xff81cb24) //120
 299 NHSTUB(strftime                               ,0xff897a18) //  1
 300 NHSTUB(strlen                                 ,0xff81cb80) //120
 301 NHSTUB(strncmp                                ,0xff8975f4) //  1
 302 NHSTUB(strncpy                                ,0xff82da50) //  1
 303 NHSTUB(strrchr                                ,0xff9c7fc0) //  1
 304 NHSTUB(strtol                                 ,0xff82dc88) //101
 305 NHSTUB(strtolx                                ,0xff82da8c) //109
 306    DEF(task_CaptSeq                           ,0xff865f0c) //120
 307    DEF(task_DvlpSeqTask                       ,0xff93ebdc) //120
 308    DEF(task_ExpDrv                            ,0xff8a9554) //120
 309    DEF(task_FileWrite                         ,0xffa2b4a0) //120
 310    DEF(task_InitFileModules                   ,0xff881534) //120
 311    DEF(task_MovieRecord                       ,0xff862148) //120
 312    DEF(task_PhySw                             ,0xff821894) //120
 313    DEF(task_RotaryEncoder                     ,0xff84a480) //120
 314 NHSTUB(time                                   ,0xff8703ec) //109
 315 NHSTUB(vsprintf                               ,0xff81cae8) //115
 316 NHSTUB(EngDrvRead                             ,0xff822b60) //102
 317 NHSTUB(PTM_GetCurrentItem                     ,0xff87e328) //105
 318 NHSTUB(CancelHPTimer                          ,0xff871bac) //119
 319 NHSTUB(SetHPTimerAfterNow                     ,0xff871aa4) //119
 320 NHSTUB(PT_MFOn                                ,0xff863ac0) //120
 321 NHSTUB(PT_MFOff                               ,0xff863ad0) //120
 322 NHSTUB(GetAdChValue                           ,0xff847cbc) //120
 323 NHSTUB(get_ptp_buf_size                       ,0xff8ce840) //122
 324 NHSTUB(get_ptp_file_buf                       ,0xff9fd85c) //121

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