root/platform/ixus150_elph140/sub/100c/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 R54 (DRYOS version 2.3, release #0054+p3)
   6 //   Firmware Ver GM1.00C   // Found @ 0xff89ae34, "GM1.00C" @ 0xff89ae41
   7 //   Firmware build timestamp: Nov 21 2013 21:14:08
   8 //   Canon IXUS 150
   9 
  10 // Values for makefile.inc
  11 //   PLATFORMOSVER = 54
  12 //   PLATFORMID = 12935 (0x3287) // Found @ 0xffff0040
  13 //   MAXRAMADDR = 0x07ffffff
  14 //   MEMISOSTART = 0x00182980
  15 //   KEYSYS = d4f                // Found @ 0xff812744
  16 //   NEED_ENCODED_DISKBOOT = 12   // Found @ 0xff812754
  17 //   ARAM_HEAP_START = 0x60e000  // Found @ 0xff9a1c9c
  18 //   ARAM_HEAP_SIZE  = 0x22000   // Found @ 0xff9a1c5c
  19 
  20 // Detected address ranges:
  21 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  22 // RAM code 0x006b1000 - 0x006c1400 copied from 0xffcd7394 (  66560 bytes)
  23 // RAM data 0x00001900 - 0x0000f764 copied from 0xffcc9530 (  56932 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(DeleteFile_Fut                         ,0xff826afc) //  1 90%
  28 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff9881b0) //  3 95%
  29 // ERROR: MakeDirectory_Fut is not found.                  //--- ---    *** != 0xff82760c
  30 // ERROR: RefreshPhysicalScreen is not found.              //--- ---    *** != 0x00000000
  31 
  32 // Check of modemap from 'platform/CAMERA/shooting.c':
  33 // Firmware modemap table found @ffac6aa4 -> ffc871ac
  34 // No problems found with modemap table.
  35 
  36 // Values below can be overridden in 'stubs_min.S':
  37 DEF(physw_status                            ,0x000104f0) // Found @0xff82bda8
  38 DEF(physw_run                               ,0x00001c94) // Found @0xff82b900
  39 DEF(physw_sleep_delay                       ,0x00001c9c) // Found @0xff82b900
  40 DEF(levent_table                            ,0xffbe83dc) // Found @0xffbe83dc
  41 DEF(FlashParamsTable                        ,0xffc87440) // Found @0xffc87440
  42 DEF(movie_status                            ,0x00007070) // Found @0xff992758
  43 //DEF(video_compression_rate                  ,0x00007024) // Found @0xff9933e4, ** != ** stubs_min = 0x000070a0 (0x70a0)
  44 DEF(full_screen_refresh                     ,0x00007b34) // Found @0xff9b52ec
  45 DEF(canon_menu_active                       ,0x00003b10) // Found @0xff8a3150
  46 DEF(canon_shoot_menu_active                 ,0x00009199) // Found @0xffa100e0
  47 DEF(playrec_mode                            ,0x00003608) // Found @0xff89184c
  48 DEF(zoom_status                             ,0x00005c64) // Found @0xff9322fc
  49 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  50 // each entry contains 2 int value(s), the first is the zoom focus length.
  51 // there are 101 entries in the table - set NUM_FL to 101
  52 DEF(focus_len_table                         ,0xffffae14) // Found @0xffffae14
  53 DEF(zoom_busy                               ,0x00006d78) // Found @0xff98a8b0
  54 DEF(focus_busy                              ,0x00006c24) // Found @0xff986c84
  55 // Palette colour tables  found @ 0xffbec15c
  56 // Camera appears to have only 1 RAW buffer @ 0x42f95130 (Found @0xffb57724)
  57 DEF(fileio_semaphore                        ,0x00001d0c) // Found @0xff82e160
  58 DEF(exmem_alloc_table                       ,0x0001184c) // Found @0xff832b7c
  59 DEF(exmem_types_table                       ,0xffcc99d4) // Found @0x00001da4
  60 DEF_CONST(exmem_type_count                  ,0x0000001b)
  61 DEF(imager_active                           ,0x00002028) // Found @0xff849518 (0x2024 + 4)
  62 DEF_CONST(uiprop_count                      ,0x0000009d) // Found @0xff9ab4e8
  63 
  64 // Values below go in 'lib.c':
  65 //void *vid_get_bitmap_fb()        { return (void*)0x406f1000; }             // Found @0xff862fc0
  66 //void *vid_get_viewport_fb()      { return (void*)0x40846b80; }             // Found @0xffb55d0c
  67 DEF(viewport_fb_d                           ,0x0000327c) // Found 0x3228 (@0xff8803a8) + 0x54 (@0xff8803e0)
  68 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x3228+0x54)); } // Found @0xff8803a8 & 0xff8803e0
  69 DEF(jpeg_count_str                          ,0x000d5168) // Found @0xff9fbabc
  70 //char *camera_jpeg_count_str()    { return (char*)0x000d5168; }             // Found @0xff9fbabc
  71 //int get_flash_params_count(void) { return 0xa6; }                          // Found @0xff9abf6c
  72 
  73 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  74 //#define SD_READONLY_FLAG    0x02000000 // Found @0xffb994fc, levent 0x20a
  75 //#define SD_READONLY_IDX     2
  76 //#define USB_MASK            0x10000000 // Found @0xffb9950c, levent 0x202
  77 //#define USB_IDX             2
  78 //#define BATTCOVER_FLAG      0x04000000 // Found @0xffb99504, levent 0x205
  79 //#define BATTCOVER_IDX       2
  80 //#define ANALOG_AV_FLAG      0x00000080 // Found @0xffb9949c, levent 0x200 (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 //    { 2, KEY_SET             ,0x00000001 }, // Found @0xffb99464, levent 0x0a
  86 //    { 2, KEY_UP              ,0x00000002 }, // Found @0xffb9946c, levent 0x06
  87 //    { 2, KEY_RIGHT           ,0x00000004 }, // Found @0xffb99474, levent 0x09
  88 //    { 2, KEY_DOWN            ,0x00000008 }, // Found @0xffb9947c, levent 0x07
  89 //    { 2, KEY_LEFT            ,0x00000010 }, // Found @0xffb99484, levent 0x08
  90 //    { 2, KEY_SHOOT_FULL      ,0x00000060 }, // Found @0xffb99494, levent 0x01
  91 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000040 }, // Found @0xffb99494, levent 0x01
  92 //    { 2, KEY_SHOOT_HALF      ,0x00000020 }, // Found @0xffb9948c, levent 0x00
  93 //    { 2, KEY_POWER           ,0x00000100 }, // Found @0xffb994a4, levent 0x100
  94 //    { 2, KEY_PLAYBACK        ,0x00000200 }, // Found @0xffb994ac, levent 0x101
  95 //    { 2, KEY_HELP            ,0x00000800 }, // Found @0xffb994b4, levent 0x0d
  96 //    { 2, KEY_MENU            ,0x00001000 }, // Found @0xffb994bc, levent 0x0e
  97 //    { 2, KEY_VIDEO           ,0x00002000 }, // Found @0xffb994c4, levent 0x02
  98 //    { 2, KEY_ZOOM_OUT        ,0x00004000 }, // Found @0xffb994cc, levent 0x04
  99 //    { 2, KEY_ZOOM_IN         ,0x00008000 }, // Found @0xffb994d4, levent 0x03
 100 //    { 0, 0, 0 }
 101 //};
 102 
 103 // Values below go in 'platform_camera.h':
 104 //#define CAM_DRYOS         1
 105 //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
 106 //#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher
 107 //#define CAM_RAW_ROWPIX    4704 // Found @0xff96462c
 108 //#define CAM_RAW_ROWS      3504 // Found @0xff964638
 109 //#undef  CAM_UNCACHED_BIT
 110 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff825e30
 111 //#define CAM_DATE_FOLDER_NAMING 0x080 // Found @0xffa95368 (pass as 3rd param to GetImageFolder)
 112 //#define PARAM_CAMERA_NAME 3 // Found @0xffc86500
 113 //#define CAM_3ARG_DebugAssert 1
 114 
 115 // Known propcases
 116 // //      PROPCASE_AFSTEP 13
 117 // #define PROPCASE_FOCUS_STATE 18
 118 // #define PROPCASE_AV 23
 119 // #define PROPCASE_BV 34
 120 // //      PROPCASE_DELTA_DIGITALGAIN 77
 121 // #define PROPCASE_DELTA_SV 79
 122 // //      PROPCASE_DELTA_ND 80
 123 // #define PROPCASE_EV_CORRECTION_2 210
 124 // #define PROPCASE_ORIENTATION_SENSOR 222
 125 // #define PROPCASE_SV_MARKET 249
 126 // //      PROPCASE_SVFIX 250
 127 // #define PROPCASE_TV 265
 128 // Guessed propset: 6
 129 
 130 // Misc stuff
 131 DEF(ctypes, 0xffb96a18)
 132 
 133 // EXMEM types:
 134 // EXMEM_RAMDISK        0
 135 // EXMEM_COM            1
 136 // EXMEM_FORMATTER      2
 137 // EXMEM_SHADING        3
 138 // EXMEM_FAMODE         4
 139 // EXMEM_FIRMUP         5
 140 // EXMEM_FIRMUP_VRAM    6
 141 // EXMEM_FIRMUP_INFLATE 7
 142 // EXMEM_DVLPWORK       8
 143 // EXMEM_EVF            9
 144 // EXMEM_SCRIPT         10
 145 // EXMEM_GPS            11
 146 // EXMEM_FACEAUTH       12
 147 // EXMEM_OHYEARLOG      13
 148 // EXMEM_WIFI           14
 149 // EXMEM_FILESTORE      15
 150 // EXMEM_MOVIE_REC      16
 151 // EXMEM_MOVIE_PLY      17
 152 // EXMEM_WIFI_RESIZE    18
 153 // EXMEM_PCEVF          19
 154 // EXMEM_WIDE           20
 155 // EXMEM_NARROW         21
 156 // EXMEM_AUTO_GIS_MODE  22
 157 // EXMEM_NP_GIS_MODE    23
 158 // EXMEM_TRIPODHDR_MODE 24
 159 // EXMEM_HSHQ_MODE      25
 160 // EXMEM_CRAW_REC       26
 161 
 162 // ISR flag: 0x1944, pointer to current task's control block: 0x1940
 163 // pointer to TCB area: 0x19c4, found @ 0xffcd8910
 164 
 165 // LED table init @ 0xff9400e0
 166 // LED #1: 0xc022d200 (#98 in GPIO table), offset 0x98
 167 // LED #2: 0xc022d1fc (#97 in GPIO table), offset 0x8
 168 // GPIO table @ 0xffb98f14
 169 
 170 // Stubs below matched 100%.
 171 //    Name                                     Address                Comp to stubs_entry_2.S
 172 NHSTUB(AllocateUncacheableMemory              ,0xff825dec) //112
 173 NHSTUB(Close                                  ,0xff827170) //120
 174 NHSTUB(CreateBinarySemaphore                  ,0x006b784c) //115
 175 NHSTUB(CreateTask                             ,0x006b562c) //120
 176 NHSTUB(DebugAssert                            ,0x006b59c0) //107
 177 NHSTUB(DeleteDirectory_Fut                    ,0xff826b70) //116
 178 NHSTUB(DoAELock                               ,0xff83186c) //120
 179 NHSTUB(DoAFLock                               ,0xff831530) //120
 180 NHSTUB(EnterToCompensationEVF                 ,0xff8317d0) //104
 181 NHSTUB(ExecuteEventProcedure                  ,0xff8335fc) //104
 182 NHSTUB(ExitFromCompensationEVF                ,0xff831818) //104
 183 NHSTUB(ExitTask                               ,0x006b595c) //120
 184 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff84161c) //104
 185 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff841790) //104
 186 NHSTUB(Fclose_Fut                             ,0xff826c08) //120
 187 NHSTUB(Feof_Fut                               ,0xff826df4) //  1
 188 NHSTUB(Fflush_Fut                             ,0xff826e30) //  1
 189 NHSTUB(Fgets_Fut                              ,0xff826d5c) //  6
 190 NHSTUB(Fopen_Fut                              ,0xff826bc8) //120
 191 NHSTUB(Fread_Fut                              ,0xff826cb4) //120
 192 NHSTUB(FreeUncacheableMemory                  ,0xff825e28) //112
 193 NHSTUB(Fseek_Fut                              ,0xff826da8) //120
 194 NHSTUB(Fwrite_Fut                             ,0xff826d08) //120
 195 NHSTUB(GetBatteryTemperature                  ,0xff86bd40) //102
 196 NHSTUB(GetCCDTemperature                      ,0xff86bcc8) //102
 197 NHSTUB(GetCurrentAvValue                      ,0xff8843f0) //120
 198 NHSTUB(GetCurrentShutterSpeed                 ,0xff8c2b1c) //120
 199 NHSTUB(GetDrive_ClusterSize                   ,0xff82f7f4) //122
 200 NHSTUB(GetDrive_FreeClusters                  ,0xff830040) //119
 201 NHSTUB(GetDrive_TotalClusters                 ,0xff830014) //122
 202 NHSTUB(GetFocusLensSubjectDistance            ,0xff987dcc) //102
 203 NHSTUB(GetImageFolder                         ,0xff96be7c) //122
 204 NHSTUB(GetKbdState                            ,0xff86855c) //109
 205 NHSTUB(GetMemInfo                             ,0xff8235cc) //115
 206 NHSTUB(GetOpticalTemperature                  ,0xff86bdb8) //120
 207 NHSTUB(GetParameterData                       ,0xff9abf28) //101
 208 NHSTUB(GetPropertyCase                        ,0xff89c6c8) //101
 209 NHSTUB(GetSystemTime                          ,0xffac46ac) //120
 210 NHSTUB(GetVRAMHPixelsSize                     ,0xff84df90) //120
 211 NHSTUB(GetVRAMVPixelsSize                     ,0xff84df9c) //120
 212 NHSTUB(GetZoomLensCurrentPoint                ,0xff98ad40) //120
 213 NHSTUB(GetZoomLensCurrentPosition             ,0xffab3a74) //102
 214 NHSTUB(GiveSemaphore                          ,0x006b7acc) //120
 215 NHSTUB(IsStrobeChargeCompleted                ,0xff8f19f8) //102
 216 NHSTUB(LEDDrive                               ,0xff9941a0) //120
 217 NHSTUB(LocalTime                              ,0x006b9a18) //115
 218 NHSTUB(LockMainPower                          ,0xff89f01c) //120
 219 NHSTUB(MakeSDCardBootable                     ,0xff8304ec) //105
 220 NHSTUB(MoveFocusLensToDistance                ,0xffb59710) //102
 221 NHSTUB(MoveIrisWithAv                         ,0xffabec44) //120
 222 NHSTUB(MoveZoomLensWithPoint                  ,0xffabf554) //120
 223 NHSTUB(Open                                   ,0xff8270a8) //120
 224 NHSTUB(PB2Rec                                 ,0xff85735c) //104
 225 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff995268) //102
 226 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff995238) //102
 227 NHSTUB(PT_PlaySound                           ,0xff8ac330) //122
 228 NHSTUB(PostLogicalEventForNotPowerType        ,0xff89e568) //120
 229 NHSTUB(PostLogicalEventToUI                   ,0xff89e5b4) //120
 230 NHSTUB(PutInNdFilter                          ,0xffabf30c) //102
 231 NHSTUB(PutOutNdFilter                         ,0xffabf330) //102
 232 NHSTUB(Read                                   ,0xff824088) //120
 233 NHSTUB(ReadFastDir                            ,0xffaa3ab8) //115
 234 NHSTUB(Rec2PB                                 ,0xff855afc) //104
 235 NHSTUB(RenameFile_Fut                         ,0xff826a68) //116
 236 NHSTUB(Restart                                ,0xff836668) //122
 237 NHSTUB(ScreenLock                             ,0xff8a2a78) //117
 238 NHSTUB(ScreenUnlock                           ,0xff8a2ad4) //117
 239 NHSTUB(SetAE_ShutterSpeed                     ,0xffb54b9c) //102
 240 NHSTUB(SetAutoShutdownTime                    ,0xff89f090) //120
 241 NHSTUB(SetCurrentCaptureModeType              ,0xff8a91e4) //120
 242 NHSTUB(SetFileAttributes                      ,0xff827574) //  6
 243 NHSTUB(SetFileTimeStamp                       ,0xff8274fc) //  6
 244 NHSTUB(SetLogicalEventActive                  ,0xff89ec10) //120
 245 NHSTUB(SetParameterData                       ,0xff9abe8c) //101
 246 NHSTUB(SetPropertyCase                        ,0xff89c528) //101
 247 NHSTUB(SetScriptMode                          ,0xff89ec64) //120
 248 NHSTUB(SleepTask                              ,0x006b8d88) //120
 249 NHSTUB(TakeSemaphore                          ,0x006b79f4) //120
 250 NHSTUB(TurnOffBackLight                       ,0xff8abbd4) //104
 251 NHSTUB(TurnOnBackLight                        ,0xff8abbbc) //104
 252 NHSTUB(TurnOnDisplay                          ,0xff8633a0) //120
 253 NHSTUB(TurnOffDisplay                         ,0xff8633b0) //120
 254 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff9c8b44) //120
 255 NHSTUB(UnlockAE                               ,0xff831890) //120
 256 NHSTUB(UnlockAF                               ,0xff831560) //120
 257 NHSTUB(UnlockMainPower                        ,0xff89ef74) //120
 258 NHSTUB(VbattGet                               ,0xff82ac10) //120
 259 NHSTUB(Write                                  ,0xff8271c4) //120
 260 NHSTUB(WriteSDCard                            ,0xff87e1a0) //108
 261 NHSTUB(_log                                   ,0x006bd900) //111
 262 NHSTUB(_log10                                 ,0x006bde40) //112
 263 NHSTUB(_pow                                   ,0x006bdfb8) //121
 264 NHSTUB(_sqrt                                  ,0x006bfbdc) //  6
 265 NHSTUB(add_ptp_handler                        ,0xffa67208) //121
 266 NHSTUB(apex2us                                ,0xffa1cdcc) //121
 267 NHSTUB(close                                  ,0xff823ee4) //109
 268 NHSTUB(err_init_task                          ,0xff824978) //111
 269 NHSTUB(exmem_alloc                            ,0xff833188) //101
 270 NHSTUB(exmem_free                             ,0xff8331f0) //101
 271 NHSTUB(free                                   ,0xff825220) //112
 272 NHSTUB(get_nd_value                           ,0xffab1314) //123
 273 NHSTUB(get_current_nd_value                   ,0xffab12b4) //122
 274 NHSTUB(kbd_p1_f                               ,0xff82bdf8) //109
 275 NHSTUB(kbd_p1_f_cont                          ,0xff82be04) //109
 276 NHSTUB(kbd_p2_f                               ,0xff82b598) //109
 277 NHSTUB(kbd_read_keys                          ,0xff82bda8) //109
 278 NHSTUB(kbd_read_keys_r2                       ,0xff868048) //109
 279 NHSTUB(lseek                                  ,0xff82738c) //120
 280 NHSTUB(malloc                                 ,0xff8251c8) //112
 281 NHSTUB(memcmp                                 ,0xff824fa0) //120
 282 NHSTUB(memcpy                                 ,0xff8affc0) //120
 283 NHSTUB(memset                                 ,0xffa1703c) //120
 284 NHSTUB(mkdir                                  ,0xff82760c) //121
 285 NHSTUB(mktime_ext                             ,0xff8af848) //  1
 286 NHSTUB(open                                   ,0xff823e34) //109
 287 NHSTUB(OpenFastDir                            ,0xffaa3964) //115
 288 NHSTUB(closedir                               ,0xffaa3914) //121
 289 NHSTUB(get_fstype                             ,0xff82f76c) //122
 290 NHSTUB(qsort                                  ,0xffb19268) //  6
 291 NHSTUB(rand                                   ,0xffa1700c) //121
 292 NHSTUB(realloc                                ,0xffa170b8) //115
 293 NHSTUB(reboot_fw_update                       ,0xffac3d60) //106
 294 NHSTUB(set_control_event                      ,0xff89e8d0) //111
 295 NHSTUB(srand                                  ,0xffa17000) //122
 296 NHSTUB(stat                                   ,0xff8273d4) //109
 297 NHSTUB(strcat                                 ,0xff836ff8) //  1
 298 NHSTUB(strchr                                 ,0xff837080) //  1
 299 NHSTUB(strcmp                                 ,0xff82509c) //120
 300 NHSTUB(strcpy                                 ,0xff824f88) //120
 301 NHSTUB(strftime                               ,0xff8af894) //113
 302 NHSTUB(strlen                                 ,0xff8250e0) //120
 303 NHSTUB(strncmp                                ,0xff837034) //  1
 304 NHSTUB(strncpy                                ,0xff827d04) //  1
 305 NHSTUB(strrchr                                ,0xff8b010c) //  1
 306 NHSTUB(strtol                                 ,0xff836fe4) //101
 307 NHSTUB(strtolx                                ,0xff836de8) //109
 308    DEF(task_CaptSeq                           ,0xff88bf78) //120
 309    DEF(task_DvlpSeqTask                       ,0xff998ae0) //120
 310    DEF(task_ExpDrv                            ,0xff8d94a0) //120
 311    DEF(task_FileWrite                         ,0xffaa2554) //120
 312    DEF(task_InitFileModules                   ,0xff857c38) //120
 313    DEF(task_MovieRecord                       ,0xff9934b0) //120
 314    DEF(task_PhySw                             ,0xff82b8fc) //120
 315    DEF(hook_CreateTask                        ,0x006b562c) //105
 316 NHSTUB(time                                   ,0x006b927c) //119
 317 NHSTUB(vsprintf                               ,0xff827cc4) //115
 318 NHSTUB(EngDrvRead                             ,0xff82bf04) //102
 319 NHSTUB(PTM_GetCurrentItem                     ,0xff8a0c6c) //105
 320 NHSTUB(DisableISDriveError                    ,0xffac0058) //120
 321 NHSTUB(CancelHPTimer                          ,0xff898edc) //119
 322 NHSTUB(SetHPTimerAfterNow                     ,0xff898dd4) //119
 323 NHSTUB(SS_MFOn                                ,0xff9952fc) //120
 324 NHSTUB(SS_MFOff                               ,0xff99530c) //120
 325 NHSTUB(GetAdChValue                           ,0xff864544) //120
 326 NHSTUB(get_ptp_buf_size                       ,0xff91dd7c) //122
 327 NHSTUB(get_ptp_file_buf                       ,0xffa68e54) //121

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