root/platform/ixus160_elph160/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 @ 0xff89b5f4, "GM1.00A" @ 0xff89b601
   7 //   Firmware build timestamp: Oct 23 2014 09:55:10
   8 //   Canon IXUS 160
   9 
  10 // Values for makefile.inc
  11 //   PLATFORMOSVER = 55
  12 //   PLATFORMID = 12970 (0x32aa) // Found @ 0xffff0040
  13 //   MAXRAMADDR = 0x07ffffff
  14 //   MEMISOSTART = 0x00185cb0
  15 //   KEYSYS = d4g                // Found @ 0xff81296c
  16 //   NEED_ENCODED_DISKBOOT = 13   // Found @ 0xff81297c
  17 //   ARAM_HEAP_START = 0x60e000  // Found @ 0xff9a53d0
  18 //   ARAM_HEAP_SIZE  = 0x22000   // Found @ 0xff9a5390
  19 
  20 // Detected address ranges:
  21 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  22 // RAM code 0x006b1000 - 0x006be8d8 copied from 0xffcf60b4 (  55512 bytes)
  23 // RAM data 0x00001900 - 0x0000f9ec copied from 0xffce7fc8 (  57580 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  ,0xff98df94) //  3 90%        == 0xff98df94
  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 @ffadd0bc -> ffcb2584
  34 // No problems found with modemap table.
  35 
  36 // Values below can be overridden in 'stubs_min.S':
  37 DEF(physw_status                            ,0x000107a4) // Found @0xff82dc98
  38 DEF(physw_run                               ,0x00001c94) // Found @0xff82d7c8
  39 DEF(physw_sleep_delay                       ,0x00001c9c) // Found @0xff82d7c8
  40 DEF(levent_table                            ,0xffc025e8) // Found @0xffc025e8
  41 DEF(FlashParamsTable                        ,0xffcb28c0) // Found @0xffcb28c0
  42 DEF(movie_status                            ,0x000070cc) // Found @0xff994fc8
  43 DEF(video_compression_rate                  ,0x0000707c) // Found @0xff995c90
  44 DEF(full_screen_refresh                     ,0x00007c04) // Found @0xff9b8c04
  45 DEF(canon_menu_active                       ,0x00003ac8) // Found @0xff8a38d8
  46 DEF(canon_shoot_menu_active                 ,0x00009285) // Found @0xffa13df0
  47 DEF(playrec_mode                            ,0x000035c4) // Found @0xff8921c4
  48 DEF(zoom_status                             ,0x00005e6c) // Found @0xff9375fc
  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                         ,0xffffae7c) // Found @0xffffae7c
  53 DEF(zoom_busy                               ,0x00006f8c) // Found @0xff990358
  54 DEF(focus_busy                              ,0x00006e54) // Found @0xff98c910
  55 // Palette colour tables  found @ 0xffc062b8
  56 // Camera appears to have only 1 RAW buffer @ 0x43737e20 (Found @0xffb7c910)
  57 DEF(fileio_semaphore                        ,0x00001d0c) // Found @0xff83008c
  58 DEF(exmem_alloc_table                       ,0x00011adc) // Found @0xff8348dc
  59 DEF(exmem_types_table                       ,0xffce846c) // Found @0x00001da4
  60 DEF_CONST(exmem_type_count                  ,0x0000001e)
  61 DEF(imager_active                           ,0x0000203c) // Found @0xff84b050 (0x2038 + 4)
  62 DEF_CONST(uiprop_count                      ,0x000000c6) // Found @0xff9aeac4
  63 
  64 // Values below go in 'lib.c':
  65 //void *vid_get_bitmap_fb()        { return (void*)0x40711000; }             // Found @0xff8662d0
  66 //void *vid_get_viewport_fb()      { return (void*)0x40866b80; }             // Found @0xffb7af7c
  67 DEF(jpeg_count_str                          ,0x000d7868) // Found @0xff9ff7f0
  68 //char *camera_jpeg_count_str()    { return (char*)0x000d7868; }             // Found @0xff9ff7f0
  69 //int get_flash_params_count(void) { return 0xd4; }                          // Found @0xff9af548
  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 @0xffbc0ba0, levent 0x20a
  73 //#define SD_READONLY_IDX     2
  74 //#define USB_MASK            0x10000000 // Found @0xffbc0bb0, levent 0x202
  75 //#define USB_IDX             2
  76 //#define BATTCOVER_FLAG      0x04000000 // Found @0xffbc0ba8, levent 0x205
  77 //#define BATTCOVER_IDX       2
  78 //#define ANALOG_AV_FLAG      0x00002000 // Found @0xffbc0b48, 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 @0xffbc0b08, levent 0x02
  84 //    { 0, KEY_POWER           ,0x00000020 }, // Found @0xffbc0b10, levent 0x100
  85 //    { 0, KEY_PLAYBACK        ,0x00000040 }, // Found @0xffbc0b18, levent 0x101
  86 //    { 0, KEY_SET             ,0x00000100 }, // Found @0xffbc0b20, levent 0x0a
  87 //    { 0, KEY_UP              ,0x00000200 }, // Found @0xffbc0b28, levent 0x06
  88 //    { 0, KEY_RIGHT           ,0x00000400 }, // Found @0xffbc0b30, levent 0x09
  89 //    { 0, KEY_DOWN            ,0x00000800 }, // Found @0xffbc0b38, levent 0x07
  90 //    { 0, KEY_LEFT            ,0x00001000 }, // Found @0xffbc0b40, levent 0x08
  91 //    { 0, KEY_HELP            ,0x00004000 }, // Found @0xffbc0b50, levent 0x0d
  92 //    { 0, KEY_MENU            ,0x00008000 }, // Found @0xffbc0b58, levent 0x14
  93 //    { 2, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffbc0b68, levent 0x01
  94 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffbc0b68, levent 0x01
  95 //    { 2, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffbc0b60, levent 0x00
  96 //    { 2, KEY_ZOOM_OUT        ,0x00000010 }, // Found @0xffbc0b70, levent 0x04
  97 //    { 2, KEY_ZOOM_IN         ,0x00000020 }, // Found @0xffbc0b78, 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 @0xff96986c
 106 //#define CAM_RAW_ROWS      3920 // Found @0xff969874
 107 //#undef  CAM_UNCACHED_BIT
 108 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff826238
 109 //#define CAM_DATE_FOLDER_NAMING 0x080 // Found @0xffaab6e4 (pass as 3rd param to GetImageFolder)
 110 //#define PARAM_CAMERA_NAME 3 // Found @0xffcb1568
 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, 0xffbbd7a0)
 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 @ 0xffcf765c
 165 
 166 // LED table init @ 0xff945608
 167 // LED #1: 0xc022d200 (#98 in GPIO table), offset 0x98
 168 // LED #2: 0xc022d1fc (#97 in GPIO table), offset 0x8
 169 // GPIO table @ 0xffbc059c
 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                               ,0xff833690) //120
 180 NHSTUB(DoAFLock                               ,0xff833354) //120
 181 NHSTUB(EnterToCompensationEVF                 ,0xff8335f4) //104
 182 NHSTUB(ExecuteEventProcedure                  ,0xff8353c0) //104
 183 NHSTUB(ExitFromCompensationEVF                ,0xff83363c) //104
 184 NHSTUB(ExitTask                               ,0xff824d78) //120
 185 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff84393c) //104
 186 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff843ad4) //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                  ,0xff86f06c) //102
 197 NHSTUB(GetCCDTemperature                      ,0xff86eff4) //102
 198 NHSTUB(GetCurrentAvValue                      ,0xff887d20) //120
 199 NHSTUB(GetCurrentShutterSpeed                 ,0xff8c3190) //120
 200 NHSTUB(GetUsableMaxAv                         ,0xff96a074) //120
 201 NHSTUB(GetUsableMinAv                         ,0xff96a058) //120
 202 NHSTUB(GetDrive_ClusterSize                   ,0xff831724) //122
 203 NHSTUB(GetDrive_FreeClusters                  ,0xff831f30) //119
 204 NHSTUB(GetDrive_TotalClusters                 ,0xff831f04) //122
 205 NHSTUB(GetFocusLensSubjectDistance            ,0xff98dbb0) //102
 206 NHSTUB(GetImageFolder                         ,0xff9719f4) //122
 207 NHSTUB(GetKbdState                            ,0xff86b89c) //109
 208 NHSTUB(GetMemInfo                             ,0xff823400) //115
 209 NHSTUB(GetOpticalTemperature                  ,0xff86f0e4) //120
 210 NHSTUB(GetParameterData                       ,0xff9af504) //101
 211 NHSTUB(GetPropertyCase                        ,0xff89cf04) //101
 212 NHSTUB(GetSystemTime                          ,0xffadacc0) //120
 213 NHSTUB(GetVRAMHPixelsSize                     ,0xff84fb9c) //120
 214 NHSTUB(GetVRAMVPixelsSize                     ,0xff84fba8) //120
 215 NHSTUB(GetZoomLensCurrentPoint                ,0xff9907e8) //120
 216 NHSTUB(GetZoomLensCurrentPosition             ,0xffacb53c) //102
 217 NHSTUB(GiveSemaphore                          ,0xff82654c) //120
 218 NHSTUB(IsStrobeChargeCompleted                ,0xff8e4df8) //102
 219 NHSTUB(LEDDrive                               ,0xff9969d8) //120
 220 NHSTUB(LocalTime                              ,0xff83e030) //115
 221 NHSTUB(LockMainPower                          ,0xff89f850) //120
 222 NHSTUB(MakeSDCardBootable                     ,0xff8322f8) //105
 223 NHSTUB(MoveFocusLensToDistance                ,0xffb7e888) //102
 224 NHSTUB(MoveIrisWithAv                         ,0xffad5c9c) //120
 225 NHSTUB(MoveZoomLensWithPoint                  ,0xffad65e0) //120
 226 NHSTUB(MoveOpticalZoomAt                      ,0xff832e00) //109
 227 NHSTUB(Open                                   ,0xff827a50) //120
 228 NHSTUB(PB2Rec                                 ,0xff85a294) //104
 229 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff997b58) //102
 230 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff997b28) //102
 231 NHSTUB(PT_PlaySound                           ,0xff8ad134) //122
 232 NHSTUB(PostLogicalEventForNotPowerType        ,0xff89ed9c) //120
 233 NHSTUB(PostLogicalEventToUI                   ,0xff89ede8) //120
 234 NHSTUB(PutInNdFilter                          ,0xffad63a0) //102
 235 NHSTUB(PutOutNdFilter                         ,0xffad63c4) //102
 236 NHSTUB(Read                                   ,0xff823ebc) //120
 237 NHSTUB(ReadFastDir                            ,0xffaba2a4) //115
 238 NHSTUB(Rec2PB                                 ,0xff85897c) //104
 239 NHSTUB(RenameFile_Fut                         ,0xff827410) //116
 240 NHSTUB(Restart                                ,0xff83846c) //122
 241 NHSTUB(ScreenLock                             ,0xff8a3200) //117
 242 NHSTUB(ScreenUnlock                           ,0xff8a325c) //117
 243 NHSTUB(SetAE_ShutterSpeed                     ,0xffb79db8) //102
 244 NHSTUB(SetAutoShutdownTime                    ,0xff89f8c4) //120
 245 NHSTUB(SetCurrentCaptureModeType              ,0xff8a9e5c) //120
 246 NHSTUB(SetFileAttributes                      ,0xff827f1c) //  6
 247 NHSTUB(SetFileTimeStamp                       ,0xff827ea4) //  6
 248 NHSTUB(SetLogicalEventActive                  ,0xff89f444) //120
 249 NHSTUB(SetParameterData                       ,0xff9af468) //101
 250 NHSTUB(SetPropertyCase                        ,0xff89cd2c) //101
 251 NHSTUB(SetScriptMode                          ,0xff89f498) //120
 252 NHSTUB(SleepTask                              ,0xff82a760) //120
 253 NHSTUB(TakeSemaphore                          ,0xff826474) //120
 254 NHSTUB(TurnOffBackLight                       ,0xff8ac83c) //104
 255 NHSTUB(TurnOnBackLight                        ,0xff8ac824) //104
 256 NHSTUB(TurnOnDisplay                          ,0xff8666b0) //120
 257 NHSTUB(TurnOffDisplay                         ,0xff8666c0) //120
 258 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff9ccbb8) //120
 259 NHSTUB(UnlockAE                               ,0xff8336b4) //120
 260 NHSTUB(UnlockAF                               ,0xff833384) //120
 261 NHSTUB(UnlockMainPower                        ,0xff89f7a8) //120
 262 NHSTUB(VbattGet                               ,0xff82cab0) //120
 263 NHSTUB(Write                                  ,0xff827b6c) //120
 264 NHSTUB(WriteSDCard                            ,0xff881a2c) //108
 265 NHSTUB(_log                                   ,0x006bb388) //111
 266 //NHSTUB(_log10                               ,0x006bb8c8) //112            == 0x006bb8c8
 267 NHSTUB(_pow                                   ,0x006bba40) //121
 268 NHSTUB(_sqrt                                  ,0x006bd6e0) //  6
 269 NHSTUB(add_ptp_handler                        ,0xffa714d4) //121
 270 NHSTUB(apex2us                                ,0xffa215e8) //121
 271 NHSTUB(close                                  ,0xff823d18) //109
 272 NHSTUB(err_init_task                          ,0xff824798) //111
 273 NHSTUB(exmem_alloc                            ,0xff834fa8) //101
 274 NHSTUB(exmem_free                             ,0xff835010) //101
 275 NHSTUB(free                                   ,0xff825628) //112
 276 NHSTUB(get_nd_value                           ,0xffac8b48) //123
 277 NHSTUB(get_current_nd_value                   ,0xffac8ae8) //122
 278 NHSTUB(kbd_p1_f                               ,0xff82dce8) //109
 279 NHSTUB(kbd_p1_f_cont                          ,0xff82dcf4) //109
 280 NHSTUB(kbd_p2_f                               ,0xff82d460) //109
 281 NHSTUB(kbd_read_keys                          ,0xff82dc98) //109
 282 NHSTUB(kbd_read_keys_r2                       ,0xff86b35c) //109
 283 NHSTUB(lseek                                  ,0xff827d34) //120
 284 NHSTUB(malloc                                 ,0xff8255d0) //112
 285 NHSTUB(memcmp                                 ,0xff8253a8) //120
 286 NHSTUB(memcpy                                 ,0xff8b0f4c) //120
 287 NHSTUB(memset                                 ,0xffa1b600) //120
 288 NHSTUB(mkdir                                  ,0xff827fb4) //121
 289 NHSTUB(mktime_ext                             ,0xff8b07d4) //  1
 290 NHSTUB(open                                   ,0xff823c68) //109
 291 NHSTUB(OpenFastDir                            ,0xffaba150) //115
 292 NHSTUB(closedir                               ,0xffaba100) //121
 293 NHSTUB(get_fstype                             ,0xff83169c) //122
 294 NHSTUB(qsort                                  ,0xffb3476c) //  6
 295 NHSTUB(rand                                   ,0xffa1b5d0) //121
 296 NHSTUB(realloc                                ,0xffa1b67c) //115
 297 NHSTUB(reboot_fw_update                       ,0xffada374) //106
 298 NHSTUB(set_control_event                      ,0xff89f104) //111
 299 NHSTUB(srand                                  ,0xffa1b5c4) //122
 300 NHSTUB(stat                                   ,0xff827d7c) //109
 301 NHSTUB(strcat                                 ,0xff838e14) //  1
 302 NHSTUB(strchr                                 ,0xff838e9c) //  1
 303 NHSTUB(strcmp                                 ,0xff8254a4) //120
 304 NHSTUB(strcpy                                 ,0xff825390) //120
 305 NHSTUB(strftime                               ,0xff8b0820) //113
 306 NHSTUB(strlen                                 ,0xff8254e8) //120
 307 NHSTUB(strncmp                                ,0xff838e50) //  1
 308 NHSTUB(strncpy                                ,0xff8286ac) //  1
 309 NHSTUB(strrchr                                ,0xff8b1098) //  1
 310 NHSTUB(strtol                                 ,0xff838e00) //101
 311 NHSTUB(strtolx                                ,0xff838c04) //109
 312    DEF(task_CaptSeq                           ,0xff88ca84) //120
 313    DEF(task_DvlpSeqTask                       ,0xff99bc70) //120
 314    DEF(task_ExpDrv                            ,0xff8db0b0) //120
 315    DEF(task_FileWrite                         ,0xffab8cf0) //120
 316    DEF(task_InitFileModules                   ,0xff85ab10) //120
 317    DEF(task_MovieRecord                       ,0xff995d5c) //120
 318    DEF(task_PhySw                             ,0xff82d7c4) //120
 319    DEF(hook_CreateTask                        ,0xff824a30) //105
 320 NHSTUB(time                                   ,0xff82ab10) //119
 321 NHSTUB(vsprintf                               ,0xff82866c) //115
 322 NHSTUB(EngDrvRead                             ,0xff82ddf8) //102
 323 NHSTUB(PTM_GetCurrentItem                     ,0xff8a1464) //105
 324 NHSTUB(CancelHPTimer                          ,0xff899668) //119
 325 NHSTUB(SetHPTimerAfterNow                     ,0xff899560) //119
 326 NHSTUB(SS_MFOn                                ,0xff997bec) //120
 327 NHSTUB(SS_MFOff                               ,0xff997bfc) //120
 328 NHSTUB(GetAdChValue                           ,0xff8678ec) //120
 329 NHSTUB(get_ptp_buf_size                       ,0xff921fb0) //122
 330 NHSTUB(get_ptp_file_buf                       ,0xffa73130) //121

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