root/platform/ixus170_elph170/sub/100a/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 R55 (DRYOS version 2.3, release #0055+p6)
   6 //   Firmware Ver GM1.00A   // Found @ 0xff89e7a0, "GM1.00A" @ 0xff89e7ad
   7 //   Firmware build timestamp: Dec  3 2014 10:13:23
   8 //   Canon IXUS 170
   9 
  10 // Values for makefile.inc
  11 //   PLATFORMOSVER = 55
  12 //   PLATFORMID = 12972 (0x32ac) // Found @ 0xffff0040
  13 //   MAXRAMADDR = 0x07ffffff
  14 //   MEMISOSTART = 0x001929d8
  15 //   KEYSYS = d4g                // Found @ 0xff812968
  16 //   NEED_ENCODED_DISKBOOT = 13   // Found @ 0xff812978
  17 //   ARAM_HEAP_START = 0x60e000  // Found @ 0xff9a9078
  18 //   ARAM_HEAP_SIZE  = 0x22000   // Found @ 0xff9a9038
  19 
  20 // Detected address ranges:
  21 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  22 // RAM code 0x006b1000 - 0x006be858 copied from 0xffcee1fc (  55384 bytes)
  23 // RAM data 0x00001900 - 0x0000fc7c copied from 0xffcdfe80 (  58236 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                       ,0xff8274a4) //  1 90%        == 0xff8274a4
  28 //NHSTUB(GetFocusLensSubjectDistanceFromLens  ,0xff98e69c) //  3 90%        == 0xff98e69c
  29 // ERROR: MakeDirectory_Fut is not found.                  //--- ---    *** != 0xff827fb4
  30 // ERROR: RefreshPhysicalScreen is not found.              //--- ---    *** != 0x00000000
  31 
  32 // Check of modemap from 'platform/CAMERA/shooting.c':
  33 // Firmware modemap table found @ffad6950 -> ffca8a0c
  34 // No problems found with modemap table.
  35 
  36 // Values below can be overridden in 'stubs_min.S':
  37 DEF(physw_status                            ,0x00010a44) // Found @0xff82dc98
  38 DEF(physw_run                               ,0x00001c94) // Found @0xff82d7c8
  39 DEF(physw_sleep_delay                       ,0x00001c9c) // Found @0xff82d7c8
  40 DEF(levent_table                            ,0xffbf83d8) // Found @0xffbf83d8
  41 DEF(FlashParamsTable                        ,0xffca8d44) // Found @0xffca8d44
  42 DEF(movie_status                            ,0x000072c4) // Found @0xff998fe0
  43 DEF(video_compression_rate                  ,0x00007274) // Found @0xff999ca8
  44 DEF(full_screen_refresh                     ,0x00007dfc) // Found @0xff9bc8ac
  45 DEF(canon_menu_active                       ,0x00003ba8) // Found @0xff8a6afc
  46 DEF(canon_shoot_menu_active                 ,0x000094e5) // Found @0xffa18d64
  47 DEF(playrec_mode                            ,0x00003698) // Found @0xff89506c
  48 DEF(zoom_status                             ,0x00005efc) // Found @0xff937da0
  49 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  50 // each entry contains 1 int value, which is the the zoom focus length.
  51 // there are 551 entries in the table - set NUM_FL to 551
  52 DEF(focus_len_table                         ,0xffdf5c14) // Found @0xffdf5c14
  53 //DEF(zoom_busy                               ,0x00007018) // Found @0xff990c98,          stubs_min = 0x00007018 (0x00007018)
  54 //DEF(focus_busy                              ,0x00006ee0) // Found @0xff98d01c,          stubs_min = 0x00006ee0 (0x00006ee0)
  55 // Palette colour tables  found @ 0xffbfc0a8
  56 // Camera appears to have only 1 RAW buffer @ 0x43737e20 (Found @0xffb6b654)
  57 DEF(fileio_semaphore                        ,0x00001d0c) // Found @0xff83008c
  58 DEF(exmem_alloc_table                       ,0x00011d7c) // Found @0xff834a10
  59 DEF(exmem_types_table                       ,0xffce0324) // Found @0x00001da4
  60 DEF_CONST(exmem_type_count                  ,0x0000001e)
  61 DEF(imager_active                           ,0x0000203c) // Found @0xff84b064 (0x2038 + 4)
  62 DEF_CONST(uiprop_count                      ,0x000000c6) // Found @0xff9b276c
  63 
  64 // Values below go in 'lib.c':
  65 //void *vid_get_bitmap_fb()        { return (void*)0x40711000; }             // Found @0xff86613c
  66 //void *vid_get_viewport_fb()      { return (void*)0x40866b80; }             // Found @0xffb69c8c
  67 DEF(jpeg_count_str                          ,0x000e1d78) // Found @0xffa03dfc
  68 //char *camera_jpeg_count_str()    { return (char*)0x000e1d78; }             // Found @0xffa03dfc
  69 //int get_flash_params_count(void) { return 0xd4; }                          // Found @0xff9b31f0
  70 
  71 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  72 //#define SD_READONLY_FLAG    0x02000000 // Found @0xffbb0c20, levent 0x20a
  73 //#define SD_READONLY_IDX     2
  74 //#define USB_MASK            0x10000000 // Found @0xffbb0c30, levent 0x202
  75 //#define USB_IDX             2
  76 //#define BATTCOVER_FLAG      0x04000000 // Found @0xffbb0c28, levent 0x205
  77 //#define BATTCOVER_IDX       2
  78 //#define ANALOG_AV_FLAG      0x00002000 // Found @0xffbb0bc8, levent 0x200 (non-inverted logic)
  79 //#define ANALOG_AV_IDX       0
  80 
  81 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  82 //static KeyMap keymap[] = {
  83 //    { 0, KEY_VIDEO           ,0x00000002 }, // Found @0xffbb0b88, levent 0x02
  84 //    { 0, KEY_POWER           ,0x00000020 }, // Found @0xffbb0b90, levent 0x100
  85 //    { 0, KEY_PLAYBACK        ,0x00000040 }, // Found @0xffbb0b98, levent 0x101
  86 //    { 0, KEY_SET             ,0x00000100 }, // Found @0xffbb0ba0, levent 0x0a
  87 //    { 0, KEY_UP              ,0x00000200 }, // Found @0xffbb0ba8, levent 0x06
  88 //    { 0, KEY_RIGHT           ,0x00000400 }, // Found @0xffbb0bb0, levent 0x09
  89 //    { 0, KEY_DOWN            ,0x00000800 }, // Found @0xffbb0bb8, levent 0x07
  90 //    { 0, KEY_LEFT            ,0x00001000 }, // Found @0xffbb0bc0, levent 0x08
  91 //    { 0, KEY_HELP            ,0x00004000 }, // Found @0xffbb0bd0, levent 0x0d
  92 //    { 0, KEY_MENU            ,0x00008000 }, // Found @0xffbb0bd8, levent 0x14
  93 //    { 2, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffbb0be8, levent 0x01
  94 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffbb0be8, levent 0x01
  95 //    { 2, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffbb0be0, levent 0x00
  96 //    { 2, KEY_ZOOM_OUT        ,0x00000010 }, // Found @0xffbb0bf0, levent 0x04
  97 //    { 2, KEY_ZOOM_IN         ,0x00000020 }, // Found @0xffbb0bf8, levent 0x03
  98 //    { 0, 0, 0 }
  99 //};
 100 
 101 // Values below go in 'platform_camera.h':
 102 //#define CAM_DRYOS         1
 103 //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
 104 //#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher
 105 //#define CAM_RAW_ROWPIX    5248 // Found @0xff969f78
 106 //#define CAM_RAW_ROWS      3920 // Found @0xff969f80
 107 //#undef  CAM_UNCACHED_BIT
 108 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff826238
 109 //#define CAM_DATE_FOLDER_NAMING 0x080 // Found @0xffaa47f0 (pass as 3rd param to GetImageFolder)
 110 //#define PARAM_CAMERA_NAME 3 // Found @0xffca79f0
 111 //#define CAM_3ARG_DebugAssert 1
 112 
 113 // Known propcases
 114 // //      PROPCASE_AFSTEP 13
 115 // #define PROPCASE_FOCUS_STATE 18
 116 // #define PROPCASE_AV 23
 117 // #define PROPCASE_BV 34
 118 // //      PROPCASE_DELTA_DIGITALGAIN 77
 119 // #define PROPCASE_DELTA_SV 79
 120 // //      PROPCASE_DELTA_ND 80
 121 // #define PROPCASE_EV_CORRECTION_2 210
 122 // #define PROPCASE_ORIENTATION_SENSOR 222
 123 // #define PROPCASE_SV_MARKET 249
 124 // //      PROPCASE_SVFIX 250
 125 // #define PROPCASE_TV 265
 126 // Guessed propset: 6
 127 
 128 // Misc stuff
 129 DEF(ctypes, 0xffbadbc4)
 130 
 131 // EXMEM types:
 132 // EXMEM_RAMDISK        0
 133 // EXMEM_COM            1
 134 // EXMEM_FORMATTER      2
 135 // EXMEM_SHADING        3
 136 // EXMEM_FAMODE         4
 137 // EXMEM_FIRMUP         5
 138 // EXMEM_FIRMUP_VRAM    6
 139 // EXMEM_FIRMUP_INFLATE 7
 140 // EXMEM_FIRMUP_PICTURESTYLE 8
 141 // EXMEM_DVLPWORK       9
 142 // EXMEM_EVF            10
 143 // EXMEM_SCRIPT         11
 144 // EXMEM_GPS            12
 145 // EXMEM_FACEAUTH       13
 146 // EXMEM_OHYEARLOG      14
 147 // EXMEM_WIFI           15
 148 // EXMEM_LENS_FIRMUP    16
 149 // EXMEM_LENS_COMPENSATION 17
 150 // EXMEM_FILESTORE      18
 151 // EXMEM_MOVIE_REC      19
 152 // EXMEM_MOVIE_PLY      20
 153 // EXMEM_WIFI_RESIZE    21
 154 // EXMEM_PCEVF          22
 155 // EXMEM_WIDE           23
 156 // EXMEM_NARROW         24
 157 // EXMEM_AUTO_GIS_MODE  25
 158 // EXMEM_NP_GIS_MODE    26
 159 // EXMEM_TRIPODHDR_MODE 27
 160 // EXMEM_HSHQ_MODE      28
 161 // EXMEM_CRAW_REC       29
 162 
 163 // ISR flag: 0x1944, pointer to current task's control block: 0x1940
 164 // pointer to TCB area: 0x19c4, found @ 0xffcef7a4
 165 
 166 // LED table init @ 0xff945d20
 167 // LED #1: 0xc022d200 (#98 in GPIO table), offset 0x98
 168 // LED #2: 0xc022d1fc (#97 in GPIO table), offset 0x8
 169 // GPIO table @ 0xffbb061c
 170 
 171 // Stubs below matched 100%.
 172 //    Name                                     Address                Comp to stubs_entry_2.S
 173 NHSTUB(AllocateUncacheableMemory              ,0xff8261f4) //112
 174 NHSTUB(Close                                  ,0xff827b18) //120
 175 NHSTUB(CreateBinarySemaphore                  ,0xff8262cc) //115
 176 NHSTUB(CreateTask                             ,0xff824a30) //120
 177 NHSTUB(DebugAssert                            ,0xff824ddc) //107
 178 NHSTUB(DeleteDirectory_Fut                    ,0xff827518) //116
 179 NHSTUB(DoAELock                               ,0xff8336d4) //120
 180 NHSTUB(DoAFLock                               ,0xff833398) //120
 181 NHSTUB(EnterToCompensationEVF                 ,0xff833638) //104
 182 NHSTUB(ExecuteEventProcedure                  ,0xff8354f4) //104
 183 NHSTUB(ExitFromCompensationEVF                ,0xff833680) //104
 184 NHSTUB(ExitTask                               ,0xff824d78) //120
 185 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff8439e8) //104
 186 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff843b80) //104
 187 NHSTUB(Fclose_Fut                             ,0xff8275b0) //120
 188 NHSTUB(Feof_Fut                               ,0xff82779c) //  1
 189 NHSTUB(Fflush_Fut                             ,0xff8277d8) //  1
 190 NHSTUB(Fgets_Fut                              ,0xff827704) //  6
 191 NHSTUB(Fopen_Fut                              ,0xff827570) //120
 192 NHSTUB(Fread_Fut                              ,0xff82765c) //120
 193 NHSTUB(FreeUncacheableMemory                  ,0xff826230) //112
 194 NHSTUB(Fseek_Fut                              ,0xff827750) //120
 195 NHSTUB(Fwrite_Fut                             ,0xff8276b0) //120
 196 NHSTUB(GetBatteryTemperature                  ,0xff86ef40) //102
 197 NHSTUB(GetCCDTemperature                      ,0xff86eec8) //102
 198 NHSTUB(GetCurrentAvValue                      ,0xff887c30) //120
 199 NHSTUB(GetCurrentShutterSpeed                 ,0xff8c640c) //120
 200 NHSTUB(GetUsableMaxAv                         ,0xff96a780) //120
 201 NHSTUB(GetUsableMinAv                         ,0xff96a764) //120
 202 NHSTUB(GetDrive_ClusterSize                   ,0xff831724) //122
 203 NHSTUB(GetDrive_FreeClusters                  ,0xff831f30) //119
 204 NHSTUB(GetDrive_TotalClusters                 ,0xff831f04) //122
 205 NHSTUB(GetFocusLensSubjectDistance            ,0xff98e2b8) //102
 206 NHSTUB(GetImageFolder                         ,0xff972100) //122
 207 NHSTUB(GetKbdState                            ,0xff86b770) //109
 208 NHSTUB(GetMemInfo                             ,0xff823400) //115
 209 NHSTUB(GetOpticalTemperature                  ,0xff86efb8) //120
 210 NHSTUB(GetParameterData                       ,0xff9b31ac) //101
 211 NHSTUB(GetPropertyCase                        ,0xff8a00b0) //101
 212 NHSTUB(GetSystemTime                          ,0xffad4554) //120
 213 NHSTUB(GetVRAMHPixelsSize                     ,0xff84fc04) //120
 214 NHSTUB(GetVRAMVPixelsSize                     ,0xff84fc10) //120
 215 NHSTUB(GetZoomLensCurrentPoint                ,0xff99111c) //120
 216 NHSTUB(GetZoomLensCurrentPosition             ,0xffac48e8) //102
 217 NHSTUB(GiveSemaphore                          ,0xff82654c) //120
 218 NHSTUB(IsStrobeChargeCompleted                ,0xff8e5084) //102
 219 NHSTUB(LEDDrive                               ,0xff99aa08) //120
 220 NHSTUB(LocalTime                              ,0xff83e164) //115
 221 NHSTUB(LockMainPower                          ,0xff8a29fc) //120
 222 NHSTUB(MakeSDCardBootable                     ,0xff8322f8) //105
 223 NHSTUB(MoveFocusLensToDistance                ,0xffb6d854) //102
 224 NHSTUB(MoveIrisWithAv                         ,0xfface8f4) //120
 225 NHSTUB(MoveZoomLensWithPoint                  ,0xffacf250) //120
 226 NHSTUB(Open                                   ,0xff827a50) //120
 227 NHSTUB(PB2Rec                                 ,0xff85a2fc) //104
 228 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff99bb88) //102
 229 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff99bb58) //102
 230 NHSTUB(PT_PlaySound                           ,0xff8b0380) //122
 231 NHSTUB(PostLogicalEventForNotPowerType        ,0xff8a1f48) //120
 232 NHSTUB(PostLogicalEventToUI                   ,0xff8a1f94) //120
 233 NHSTUB(PutInNdFilter                          ,0xffacf008) //102
 234 NHSTUB(PutOutNdFilter                         ,0xffacf02c) //102
 235 NHSTUB(Read                                   ,0xff823ebc) //120
 236 NHSTUB(ReadFastDir                            ,0xffab33b0) //115
 237 NHSTUB(Rec2PB                                 ,0xff8589e4) //104
 238 NHSTUB(RenameFile_Fut                         ,0xff827410) //116
 239 NHSTUB(Restart                                ,0xff8385a0) //122
 240 NHSTUB(ScreenLock                             ,0xff8a6424) //117
 241 NHSTUB(ScreenUnlock                           ,0xff8a6480) //117
 242 NHSTUB(SetAE_ShutterSpeed                     ,0xffb68ac8) //102
 243 NHSTUB(SetAutoShutdownTime                    ,0xff8a2a70) //120
 244 NHSTUB(SetCurrentCaptureModeType              ,0xff8ad08c) //120
 245 NHSTUB(SetFileAttributes                      ,0xff827f1c) //  6
 246 NHSTUB(SetFileTimeStamp                       ,0xff827ea4) //  6
 247 NHSTUB(SetLogicalEventActive                  ,0xff8a25f0) //120
 248 NHSTUB(SetParameterData                       ,0xff9b3110) //101
 249 NHSTUB(SetPropertyCase                        ,0xff89fed8) //101
 250 NHSTUB(SetScriptMode                          ,0xff8a2644) //120
 251 NHSTUB(SleepTask                              ,0xff82a760) //120
 252 NHSTUB(TakeSemaphore                          ,0xff826474) //120
 253 NHSTUB(TurnOffBackLight                       ,0xff8afa88) //104
 254 NHSTUB(TurnOnBackLight                        ,0xff8afa70) //104
 255 NHSTUB(TurnOnDisplay                          ,0xff86651c) //120
 256 NHSTUB(TurnOffDisplay                         ,0xff86652c) //120
 257 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff9d0860) //120
 258 NHSTUB(UnlockAE                               ,0xff8336f8) //120
 259 NHSTUB(UnlockAF                               ,0xff8333c8) //120
 260 NHSTUB(UnlockMainPower                        ,0xff8a2954) //120
 261 NHSTUB(VbattGet                               ,0xff82cab0) //120
 262 NHSTUB(Write                                  ,0xff827b6c) //120
 263 NHSTUB(WriteSDCard                            ,0xff881984) //108
 264 NHSTUB(_log                                   ,0x006bb388) //111
 265 //NHSTUB(_log10                               ,0x006bb8c8) //112            == 0x006bb8c8
 266 NHSTUB(_pow                                   ,0x006bba40) //121
 267 NHSTUB(_sqrt                                  ,0x006bd664) //  6
 268 NHSTUB(add_ptp_handler                        ,0xffa7600c) //121
 269 NHSTUB(apex2us                                ,0xffa2655c) //121
 270 NHSTUB(close                                  ,0xff823d18) //109
 271 NHSTUB(err_init_task                          ,0xff824798) //111
 272 NHSTUB(exmem_alloc                            ,0xff8350dc) //101
 273 NHSTUB(exmem_free                             ,0xff835144) //101
 274 NHSTUB(free                                   ,0xff825628) //112
 275 NHSTUB(get_nd_value                           ,0xffac1ea4) //123
 276 NHSTUB(get_current_nd_value                   ,0xffac1e44) //122
 277 NHSTUB(kbd_p1_f                               ,0xff82dce8) //109
 278 NHSTUB(kbd_p1_f_cont                          ,0xff82dcf4) //109
 279 NHSTUB(kbd_p2_f                               ,0xff82d460) //109
 280 NHSTUB(kbd_read_keys                          ,0xff82dc98) //109
 281 NHSTUB(kbd_read_keys_r2                       ,0xff86b230) //109
 282 NHSTUB(lseek                                  ,0xff827d34) //120
 283 NHSTUB(malloc                                 ,0xff8255d0) //112
 284 NHSTUB(memcmp                                 ,0xff8253a8) //120
 285 NHSTUB(memcpy                                 ,0xff8b41c8) //120
 286 NHSTUB(memset                                 ,0xffa20574) //120
 287 NHSTUB(mkdir                                  ,0xff827fb4) //121
 288 NHSTUB(mktime_ext                             ,0xff8b3a50) //  1
 289 NHSTUB(open                                   ,0xff823c68) //109
 290 NHSTUB(OpenFastDir                            ,0xffab325c) //115
 291 NHSTUB(closedir                               ,0xffab320c) //121
 292 NHSTUB(get_fstype                             ,0xff83169c) //122
 293 NHSTUB(qsort                                  ,0xffb2e154) //  6
 294 NHSTUB(rand                                   ,0xffa20544) //121
 295 NHSTUB(realloc                                ,0xffa205f0) //115
 296 NHSTUB(reboot_fw_update                       ,0xffad3c08) //106
 297 NHSTUB(set_control_event                      ,0xff8a22b0) //111
 298 NHSTUB(srand                                  ,0xffa20538) //122
 299 NHSTUB(stat                                   ,0xff827d7c) //109
 300 NHSTUB(strcat                                 ,0xff838f48) //  1
 301 NHSTUB(strchr                                 ,0xff838fd0) //  1
 302 NHSTUB(strcmp                                 ,0xff8254a4) //120
 303 NHSTUB(strcpy                                 ,0xff825390) //120
 304 NHSTUB(strftime                               ,0xff8b3a9c) //113
 305 NHSTUB(strlen                                 ,0xff8254e8) //120
 306 NHSTUB(strncmp                                ,0xff838f84) //  1
 307 NHSTUB(strncpy                                ,0xff8286ac) //  1
 308 NHSTUB(strrchr                                ,0xff8b4314) //  1
 309 NHSTUB(strtol                                 ,0xff838f34) //101
 310 NHSTUB(strtolx                                ,0xff838d38) //109
 311    DEF(task_CaptSeq                           ,0xff88f788) //120
 312    DEF(task_DvlpSeqTask                       ,0xff99fb74) //120
 313    DEF(task_ExpDrv                            ,0xff8dd134) //120
 314    DEF(task_FileWrite                         ,0xffab1dfc) //120
 315    DEF(task_InitFileModules                   ,0xff85ab78) //120
 316    DEF(task_MovieRecord                       ,0xff999d74) //120
 317    DEF(task_PhySw                             ,0xff82d7c4) //120
 318    DEF(hook_CreateTask                        ,0xff824a30) //105
 319 NHSTUB(time                                   ,0xff82ab10) //119
 320 NHSTUB(vsprintf                               ,0xff82866c) //115
 321 NHSTUB(EngDrvRead                             ,0xff82ddf8) //102
 322 NHSTUB(PTM_GetCurrentItem                     ,0xff8a4680) //105
 323 NHSTUB(DisableISDriveError                    ,0xffad06dc) //120
 324 NHSTUB(CancelHPTimer                          ,0xff89c814) //119
 325 NHSTUB(SetHPTimerAfterNow                     ,0xff89c70c) //119
 326 NHSTUB(SS_MFOn                                ,0xff99bc1c) //120
 327 NHSTUB(SS_MFOff                               ,0xff99bc2c) //120
 328 NHSTUB(GetAdChValue                           ,0xff867758) //120
 329 NHSTUB(get_ptp_buf_size                       ,0xff922754) //122
 330 NHSTUB(get_ptp_file_buf                       ,0xffa77c68) //121

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