root/platform/ixus140_elph130/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 R52 (DRYOS version 2.3, release #0052)
   6 //   Firmware Ver GM1.00A   // Found @ 0xff0c1640, "GM1.00A" @ 0xff0c164d
   7 //   Firmware build timestamp: Nov 28 2012 14:48:51
   8 //   Canon PowerShot ELPH 130 IS
   9 
  10 // Values for makefile.inc
  11 //   PLATFORMOSVER = 52
  12 //   PLATFORMID = 12901 (0x3265) // Found @ 0xfff40040
  13 //   MAXRAMADDR = 0x03ffffff
  14 //   MEMISOSTART = 0x00242f28
  15 //   KEYSYS = d4d                // Found @ 0xffff1d2c
  16 //   NEED_ENCODED_DISKBOOT = 10   // Found @ 0xffff1d3c
  17 //   ARAM_HEAP_START = 0x5ce000  // Found @ 0xff201a10
  18 //   ARAM_HEAP_SIZE  = 0x22000   // Found @ 0xff2019d4
  19 
  20 // Detected address ranges:
  21 // ROM      0xff000000 - 0xffffffff (16777216 bytes)
  22 // RAM code 0x00671000 - 0x0069badc copied from 0xff6982d4 ( 174812 bytes)
  23 // RAM data 0x00001900 - 0x00015584 copied from 0xff684650 (  81028 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                         ,0xff033b68) //  1 90%
  28 // ERROR: MakeDirectory_Fut is not found.                  //--- ---    *** != 0xff034678
  29 // ERROR: RefreshPhysicalScreen is not found.              //--- ---    *** != 0x00000000
  30 
  31 // Check of modemap from 'platform/CAMERA/shooting.c':
  32 // Firmware modemap table found @ff36a698 -> ff61c088
  33 // No problems found with modemap table.
  34 
  35 // Values below can be overridden in 'stubs_min.S':
  36 DEF(physw_status                            ,0x0003a950) // Found @0xff0313b4
  37 DEF(physw_run                               ,0x00001dec) // Found @0xff030f08
  38 DEF(physw_sleep_delay                       ,0x00001df4) // Found @0xff030f08
  39 DEF(levent_table                            ,0xff55ffa0) // Found @0xff55ffa0
  40 DEF(FlashParamsTable                        ,0xff61c2bc) // Found @0xff61c2bc
  41 DEF(movie_status                            ,0x00007c6c) // Found @0xff1f3da0
  42 DEF(video_compression_rate                  ,0x00007c9c) // Found @0xff1f4504
  43 DEF(full_screen_refresh                     ,0x000087a0) // Found @0xff20f624
  44 DEF(canon_menu_active                       ,0x00003fa0) // Found @0xff0ca2ac
  45 DEF(canon_shoot_menu_active                 ,0x0000a385) // Found @0xff27c790
  46 DEF(playrec_mode                            ,0x000039c8) // Found @0xff0b5fec
  47 DEF(zoom_status                             ,0x0000bbac) // Found @0xff2eee9c
  48 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  49 // each entry contains 2 int value(s), the first is the zoom focus length.
  50 // there are 101 entries in the table - set NUM_FL to 101
  51 DEF(focus_len_table                         ,0xfff4a3e0) // Found @0xfff4a3e0
  52 DEF(zoom_busy                               ,0x00007b20) // Found @0xff1eea84
  53 DEF(focus_busy                              ,0x00007990) // Found @0xff1e9a80
  54 DEF(recreview_hold                          ,0x00002d34) // Found @0xff088464
  55 // Palette colour tables  found @ 0xff566bec
  56 DEF(active_palette_buffer                   ,0x000087a8) // Found @0xff20f5a8
  57 DEF(palette_buffer_ptr                      ,0x000087ac) // Found @0xff20f938
  58 // Offset from start of palette_buffer to color data = 4 (Found @0xff38afe0)
  59 // Camera appears to have only 1 RAW buffer @ 0x42365c30 (Found @0xff413f98)
  60 DEF(fileio_semaphore                        ,0x0000367c) // Found @0xff0a411c
  61 DEF(exmem_alloc_table                       ,0x0009ef4c) // Found @0xff0bca70
  62 DEF(exmem_types_table                       ,0xff6867f4) // Found @0x00003aa4
  63 DEF_CONST(exmem_type_count                  ,0x0000001b)
  64 DEF(imager_active                           ,0x000024c0) // Found @0xff070c7c (0x24bc + 4)
  65 DEF_CONST(uiprop_count                      ,0x00000083) // Found @0xff206bc8
  66 
  67 // Values below go in 'lib.c':
  68 //void *vid_get_bitmap_fb()        { return (void*)0x406b1000; }             // Found @0xff08b550
  69 //void *vid_get_viewport_fb()      { return (void*)0x40806b80; }             // Found @0xff412680
  70 DEF(viewport_fb_d                           ,0x00003728) // Found 0x36d4 (@0xff0a7858) + 0x54 (@0xff0a7890)
  71 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x36d4+0x54)); } // Found @0xff0a7858 & 0xff0a7890
  72 DEF(jpeg_count_str                          ,0x00164144) // Found @0xff269ea4
  73 //char *camera_jpeg_count_str()    { return (char*)0x00164144; }             // Found @0xff269ea4
  74 //int get_flash_params_count(void) { return 0x91; }                          // Found @0xff2075ac
  75 
  76 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  77 //#define SD_READONLY_FLAG    0x02000000 // Found @0xff4fbaf0, levent 0x20a
  78 //#define SD_READONLY_IDX     2
  79 //#define USB_MASK            0x10000000 // Found @0xff4fbb00, levent 0x202
  80 //#define USB_IDX             2
  81 //#define BATTCOVER_FLAG      0x04000000 // Found @0xff4fbaf8, levent 0x205
  82 //#define BATTCOVER_IDX       2
  83 //#define ANALOG_AV_FLAG      0x02000000 // Found @0xff4fba58, levent 0x200 (non-inverted logic)
  84 //#define ANALOG_AV_IDX       1
  85 
  86 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  87 //static KeyMap keymap[] = {
  88 //    { 2, KEY_POWER           ,0x00000001 }, // Found @0xff4fba60, levent 0x100
  89 //    { 2, KEY_PLAYBACK        ,0x00000002 }, // Found @0xff4fba68, levent 0x101
  90 //    { 2, KEY_SHOOT_FULL      ,0x0000000c }, // Found @0xff4fba78, levent 0x01
  91 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000008 }, // Found @0xff4fba78, levent 0x01
  92 //    { 2, KEY_SHOOT_HALF      ,0x00000004 }, // Found @0xff4fba70, levent 0x00
  93 //    { 2, KEY_ZOOM_IN         ,0x00000010 }, // Found @0xff4fba80, levent 0x03
  94 //    { 2, KEY_ZOOM_OUT        ,0x00000040 }, // Found @0xff4fba88, levent 0x04
  95 //    { 2, KEY_UP              ,0x00000080 }, // Found @0xff4fba90, levent 0x06
  96 //    { 2, KEY_DOWN            ,0x00000100 }, // Found @0xff4fba98, levent 0x07
  97 //    { 2, KEY_RIGHT           ,0x00000200 }, // Found @0xff4fbaa0, levent 0x09
  98 //    { 2, KEY_LEFT            ,0x00000400 }, // Found @0xff4fbaa8, levent 0x08
  99 //    { 2, KEY_SET             ,0x00001000 }, // Found @0xff4fbab0, levent 0x0a
 100 //    { 2, KEY_MENU            ,0x00002000 }, // Found @0xff4fbab8, levent 0x0b
 101 //    { 2, KEY_VIDEO           ,0x00004000 }, // Found @0xff4fbac0, levent 0x02
 102 //    { 0, 0, 0 }
 103 //};
 104 
 105 // Values below go in 'platform_camera.h':
 106 //#define CAM_DRYOS         1
 107 //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
 108 //#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher
 109 //#define CAM_RAW_ROWPIX    4704 // Found @0xff1be31c
 110 //#define CAM_RAW_ROWS      3504 // Found @0xff1be328
 111 //#undef  CAM_UNCACHED_BIT
 112 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff038dd4
 113 //#define CAM_DATE_FOLDER_NAMING 0x080 // Found @0xff321718 (pass as 3rd param to GetImageFolder)
 114 //#define PARAM_CAMERA_NAME 3 // Found @0xff61b578
 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 210
 125 // #define PROPCASE_ORIENTATION_SENSOR 222
 126 // #define PROPCASE_SV_MARKET 249
 127 // //      PROPCASE_SVFIX 250
 128 // #define PROPCASE_TV 265
 129 // Guessed propset: 6
 130 
 131 // Misc stuff
 132 DEF(ctypes, 0xff4f9478)
 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_GPS            11
 147 // EXMEM_FACEAUTH       12
 148 // EXMEM_OHYEARLOG      13
 149 // EXMEM_WIFI           14
 150 // EXMEM_FILESTORE      15
 151 // EXMEM_MOVIE_REC      16
 152 // EXMEM_MOVIE_PLY      17
 153 // EXMEM_WIDE           18
 154 // EXMEM_NARROW         19
 155 // EXMEM_AUTO_GIS_MODE  20
 156 // EXMEM_NP_GIS_MODE    21
 157 // EXMEM_TRIPODHDR_MODE 22
 158 // EXMEM_HSHQ_MODE      23
 159 // EXMEM_CRAW_REC       24
 160 // EXMEM_PCEVF          25
 161 // EXMEM_WIFI_RESIZE    26
 162 
 163 // ISR flag: 0x1958, pointer to current task's control block: 0x1954
 164 // pointer to TCB area: 0x19e8, found @ 0xff69a4f8
 165 
 166 // LED table init @ 0xff19d3ec
 167 // LED #1: 0xc0223030, offset 0x104
 168 // LED #2: 0xc0220094, offset 0x4
 169 
 170 // For capt_seq.c
 171 DEF(_nrflag,0xb334) // Found @ ff2a4c74 (0xb334) & ff2a4cb0 (+0x00)
 172 //static long *nrflag = (long*)(0xb334+0x00);  // Found @ ff2a4c74 & ff2a4cb0
 173 //#define NR_AUTO (0)                          // have to explictly reset value back to 0 to enable auto
 174 
 175 // Stubs below matched 100%.
 176 //    Name                                     Address                Comp to stubs_entry_2.S
 177 NHSTUB(AllocateUncacheableMemory              ,0xff038d8c) //112
 178 NHSTUB(Close                                  ,0xff0341dc) //120
 179 NHSTUB(CreateBinarySemaphore                  ,0x006776c8) //115
 180 NHSTUB(CreateTask                             ,0x006768b0) //120
 181 NHSTUB(DebugAssert                            ,0x00676c28) //107
 182 NHSTUB(DeleteDirectory_Fut                    ,0xff033bdc) //116
 183 NHSTUB(DoAELock                               ,0xff035d10) //120
 184 NHSTUB(DoAFLock                               ,0xff035a30) //120
 185 NHSTUB(EnterToCompensationEVF                 ,0xff035c78) //104
 186 NHSTUB(ExecuteEventProcedure                  ,0xff0be6a0) //104
 187 NHSTUB(ExitFromCompensationEVF                ,0xff035cbc) //104
 188 NHSTUB(ExitTask                               ,0x00676b40) //120
 189 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff06a1a0) //104
 190 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff06a308) //104
 191 NHSTUB(Fclose_Fut                             ,0xff033c74) //120
 192 NHSTUB(Feof_Fut                               ,0xff033e60) //  1
 193 NHSTUB(Fflush_Fut                             ,0xff033e9c) //  1
 194 NHSTUB(Fgets_Fut                              ,0xff033dc8) //  6
 195 NHSTUB(Fopen_Fut                              ,0xff033c34) //120
 196 NHSTUB(Fread_Fut                              ,0xff033d20) //120
 197 NHSTUB(FreeUncacheableMemory                  ,0xff038dcc) //112
 198 NHSTUB(Fseek_Fut                              ,0xff033e14) //120
 199 NHSTUB(Fwrite_Fut                             ,0xff033d74) //120
 200 NHSTUB(GetBatteryTemperature                  ,0xff0934bc) //102
 201 NHSTUB(GetCCDTemperature                      ,0xff093448) //102
 202 NHSTUB(GetCurrentAvValue                      ,0xff1eb93c) //120
 203 NHSTUB(GetCurrentShutterSpeed                 ,0xff108be0) //120
 204 NHSTUB(GetDrive_ClusterSize                   ,0xff0a578c) //122
 205 NHSTUB(GetDrive_FreeClusters                  ,0xff0a5f6c) //119
 206 NHSTUB(GetDrive_TotalClusters                 ,0xff0a5f44) //122
 207 NHSTUB(GetFocusLensSubjectDistance            ,0xff1eabb0) //102
 208 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff1eaf44) //  3
 209 NHSTUB(GetImageFolder                         ,0xff1c5a04) //122
 210 NHSTUB(GetKbdState                            ,0xff0907a0) //109
 211 NHSTUB(GetMemInfo                             ,0xff00506c) //115
 212 NHSTUB(GetOpticalTemperature                  ,0xff093530) //120
 213 NHSTUB(GetParameterData                       ,0xff20756c) //101
 214 NHSTUB(GetPropertyCase                        ,0xff0c2a60) //101
 215 NHSTUB(GetSystemTime                          ,0xff3661c8) //120
 216 NHSTUB(GetVRAMHPixelsSize                     ,0xff0766f4) //120
 217 NHSTUB(GetVRAMVPixelsSize                     ,0xff076700) //120
 218 NHSTUB(GetZoomLensCurrentPoint                ,0xff1eef00) //120
 219 NHSTUB(GetZoomLensCurrentPosition             ,0xff352778) //102
 220 NHSTUB(GiveSemaphore                          ,0x00677904) //120
 221 NHSTUB(IsStrobeChargeCompleted                ,0xff136238) //102
 222 NHSTUB(LEDDrive                               ,0xff1f5be4) //120
 223 NHSTUB(LocalTime                              ,0x0067f6b0) //115
 224 NHSTUB(LockMainPower                          ,0xff0c4ed8) //120
 225 NHSTUB(MakeSDCardBootable                     ,0xff0a63f0) //105
 226 NHSTUB(MoveFocusLensToDistance                ,0xff40e1e8) //102
 227 NHSTUB(MoveIrisWithAv                         ,0xff36095c) //120
 228 NHSTUB(MoveZoomLensWithPoint                  ,0xff361098) //120
 229 NHSTUB(Open                                   ,0xff034114) //120
 230 NHSTUB(PB2Rec                                 ,0xff081764) //104
 231 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff1f6ce8) //102
 232 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff1f6cb8) //102
 233 NHSTUB(PT_PlaySound                           ,0xff0d54c8) //122
 234 NHSTUB(PostLogicalEventForNotPowerType        ,0xff0c45c8) //120
 235 NHSTUB(PostLogicalEventToUI                   ,0xff0c4614) //120
 236 NHSTUB(PutInNdFilter                          ,0xff360e70) //102
 237 NHSTUB(PutOutNdFilter                         ,0xff360e94) //102
 238 NHSTUB(Read                                   ,0xff005b28) //120
 239 NHSTUB(ReadFastDir                            ,0xff33d874) //115
 240 NHSTUB(Rec2PB                                 ,0xff0817a4) //104
 241 NHSTUB(RenameFile_Fut                         ,0xff033ad4) //116
 242 NHSTUB(Restart                                ,0xff038240) //122
 243 NHSTUB(ScreenLock                             ,0xff0c9d9c) //117
 244 NHSTUB(ScreenUnlock                           ,0xff0c9df0) //117
 245 NHSTUB(SetAE_ShutterSpeed                     ,0xff411558) //102
 246 NHSTUB(SetAutoShutdownTime                    ,0xff0c4f4c) //120
 247 NHSTUB(SetCurrentCaptureModeType              ,0xff0d2ce8) //120
 248 NHSTUB(SetFileAttributes                      ,0xff0345e0) //  6
 249 NHSTUB(SetFileTimeStamp                       ,0xff034568) //  6
 250 NHSTUB(SetLogicalEventActive                  ,0xff0c4c50) //120
 251 NHSTUB(SetParameterData                       ,0xff2074d8) //101
 252 NHSTUB(SetPropertyCase                        ,0xff0c28d0) //101
 253 NHSTUB(SetScriptMode                          ,0xff0c4ca0) //120
 254 NHSTUB(SleepTask                              ,0x00677bb0) //120
 255 NHSTUB(TakeSemaphore                          ,0x00677834) //120
 256 NHSTUB(TurnOffBackLight                       ,0xff0d4d94) //104
 257 NHSTUB(TurnOnBackLight                        ,0xff0d4d7c) //104
 258 NHSTUB(TurnOnDisplay                          ,0xff08b958) //120
 259 NHSTUB(TurnOffDisplay                         ,0xff08b968) //120
 260 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff2234b4) //120
 261 NHSTUB(UnlockAE                               ,0xff035d34) //120
 262 NHSTUB(UnlockAF                               ,0xff035a60) //120
 263 NHSTUB(UnlockMainPower                        ,0xff0c4e2c) //120
 264 NHSTUB(VbattGet                               ,0xff03014c) //120
 265 NHSTUB(Write                                  ,0xff034230) //120
 266 NHSTUB(WriteSDCard                            ,0xff1dbe64) //108
 267 NHSTUB(_log                                   ,0x00697808) //111
 268 NHSTUB(_log10                                 ,0x00697d48) //112
 269 NHSTUB(_pow                                   ,0x00697ec0) //121
 270 NHSTUB(_sqrt                                  ,0x00699c5c) //  6
 271 NHSTUB(add_ptp_handler                        ,0xff16a4a4) //121
 272 NHSTUB(apex2us                                ,0xff29de84) //121
 273 NHSTUB(close                                  ,0xff005984) //109
 274 NHSTUB(err_init_task                          ,0xff004320) //111
 275 NHSTUB(exmem_alloc                            ,0xff0bd068) //101
 276 NHSTUB(exmem_free                             ,0xff0bd0e0) //101
 277 NHSTUB(free                                   ,0xff002ef0) //112
 278 NHSTUB(get_nd_value                           ,0xff3502dc) //123
 279 NHSTUB(get_current_nd_value                   ,0xff35027c) //122
 280 NHSTUB(kbd_p1_f                               ,0xff031404) //109
 281 NHSTUB(kbd_p1_f_cont                          ,0xff031410) //109
 282 NHSTUB(kbd_p2_f                               ,0xff030ba0) //109
 283 NHSTUB(kbd_read_keys                          ,0xff0313b4) //109
 284 NHSTUB(kbd_read_keys_r2                       ,0xff0901fc) //109
 285 NHSTUB(lseek                                  ,0xff0343f8) //120
 286 NHSTUB(malloc                                 ,0xff002e98) //112
 287 NHSTUB(memcmp                                 ,0xff00ad4c) //120
 288 NHSTUB(memcpy                                 ,0xff039818) //120
 289 NHSTUB(memset                                 ,0xff0d8eb8) //120
 290 NHSTUB(mkdir                                  ,0xff034678) //121
 291 NHSTUB(mktime_ext                             ,0xff0d8360) //  1
 292 NHSTUB(open                                   ,0xff0058d4) //109
 293 NHSTUB(OpenFastDir                            ,0xff33d720) //115
 294 NHSTUB(closedir                               ,0xff33d6d0) //121
 295 NHSTUB(get_fstype                             ,0xff0a5708) //122
 296 NHSTUB(qsort                                  ,0xff282ec4) //  6
 297 NHSTUB(rand                                   ,0xff0d8dbc) //121
 298 NHSTUB(realloc                                ,0xff282f24) //115
 299 NHSTUB(reboot_fw_update                       ,0xff365834) //106
 300 NHSTUB(set_control_event                      ,0xff0c4910) //111
 301 NHSTUB(srand                                  ,0xff0d8db0) //122
 302 NHSTUB(stat                                   ,0xff034440) //109
 303 NHSTUB(strcat                                 ,0xff0d8dec) //  1
 304 NHSTUB(strchr                                 ,0xff002d64) //  1
 305 NHSTUB(strcmp                                 ,0xff00ae48) //120
 306 NHSTUB(strcpy                                 ,0xff00ad34) //120
 307 NHSTUB(strftime                               ,0xff0d83ac) //113
 308 NHSTUB(strlen                                 ,0xff002db0) //120
 309 NHSTUB(strncmp                                ,0xff002d18) //  1
 310 NHSTUB(strncpy                                ,0xff002cdc) //  1
 311 NHSTUB(strrchr                                ,0xff002d88) //  1
 312 NHSTUB(strtol                                 ,0xff039804) //101
 313 NHSTUB(strtolx                                ,0xff039608) //109
 314    DEF(task_CaptSeq                           ,0xff0b06bc) //120
 315    DEF(task_DvlpSeqTask                       ,0xff1f9f84) //120
 316    DEF(task_ExpDrv                            ,0xff11d558) //120
 317    DEF(task_FileWrite                         ,0xff3399b0) //120
 318    DEF(task_InitFileModules                   ,0xff0820b8) //120
 319    DEF(task_MovieRecord                       ,0xff1f49d8) //120
 320    DEF(task_PhySw                             ,0xff030f04) //120
 321    DEF(hook_CreateTask                        ,0x006768b0) //105
 322 NHSTUB(time                                   ,0x0067fb58) //119
 323 NHSTUB(vsprintf                               ,0xff00abe4) //115
 324 NHSTUB(EngDrvRead                             ,0xff0322e4) //102
 325 NHSTUB(PTM_GetCurrentItem                     ,0xff0c5904) //105
 326 NHSTUB(DisableISDriveError                    ,0xff361b94) //120
 327 NHSTUB(CancelHPTimer                          ,0xff0bdd88) //119
 328 NHSTUB(SetHPTimerAfterNow                     ,0xff0bdc80) //119
 329 NHSTUB(SS_MFOn                                ,0xff1f6d7c) //120
 330 NHSTUB(SS_MFOff                               ,0xff1f6d8c) //120
 331 NHSTUB(GetAdChValue                           ,0xff08cac8) //120
 332 NHSTUB(get_ptp_buf_size                       ,0xff165900) //122
 333 NHSTUB(get_ptp_file_buf                       ,0xff2e0c24) //121

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