root/platform/ixus135_elph120/sub/100b/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.00B   // Found @ 0xff0c1540, "GM1.00B" @ 0xff0c154d
   7 //   Firmware build timestamp: Jan 22 2013 11:42:53
   8 //   Canon IXUS 135
   9 
  10 // Values for makefile.inc
  11 //   PLATFORMOSVER = 52
  12 //   PLATFORMID = 12902 (0x3266) // 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 @ 0xff2015b8
  18 //   ARAM_HEAP_SIZE  = 0x22000   // Found @ 0xff20157c
  19 
  20 // Detected address ranges:
  21 // ROM      0xff000000 - 0xffffffff (16777216 bytes)
  22 // RAM code 0x00671000 - 0x0069badc copied from 0xff6934fc ( 174812 bytes)
  23 // RAM data 0x00001900 - 0x00015584 copied from 0xff67f878 (  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%        == 0xff033b68
  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 @ff369fe0 -> ff6172b0
  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                            ,0xff55b238) // Found @0xff55b238
  40 DEF(FlashParamsTable                        ,0xff6174e4) // Found @0xff6174e4
  41 DEF(movie_status                            ,0x00007c6c) // Found @0xff1f3958
  42 DEF(video_compression_rate                  ,0x00007c9c) // Found @0xff1f40bc
  43 DEF(full_screen_refresh                     ,0x000087a0) // Found @0xff20f1cc
  44 DEF(canon_menu_active                       ,0x00003fa0) // Found @0xff0ca1ac
  45 DEF(canon_shoot_menu_active                 ,0x0000a385) // Found @0xff27c338
  46 DEF(playrec_mode                            ,0x000039c8) // Found @0xff0b5eec
  47 DEF(zoom_status                             ,0x0000bbac) // Found @0xff2eea44
  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 @0xff1ee63c
  53 DEF(focus_busy                              ,0x00007990) // Found @0xff1e9638
  54 DEF(recreview_hold                          ,0x00002d34) // Found @0xff088430
  55 // Palette colour tables  found @ 0xff561e84
  56 DEF(active_palette_buffer                   ,0x000087a8) // Found @0xff20f150
  57 DEF(palette_buffer_ptr                      ,0x000087ac) // Found @0xff20f4e0
  58 // Offset from start of palette_buffer to color data = 4 (Found @0xff38a928)
  59 // Camera appears to have only 1 RAW buffer @ 0x42365c30 (Found @0xff4138e0)
  60 DEF(fileio_semaphore                        ,0x0000367c) // Found @0xff0a401c
  61 DEF(exmem_alloc_table                       ,0x0009ef4c) // Found @0xff0bc970
  62 DEF(exmem_types_table                       ,0xff681a1c) // 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 @0xff206770
  66 
  67 // Values below go in 'lib.c':
  68 //void *vid_get_bitmap_fb()        { return (void*)0x406b1000; }             // Found @0xff08b488
  69 //void *vid_get_viewport_fb()      { return (void*)0x40806b80; }             // Found @0xff411fc8
  70 DEF(viewport_fb_d                           ,0x00003728) // Found 0x36d4 (@0xff0a7758) + 0x54 (@0xff0a7790)
  71 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x36d4+0x54)); } // Found @0xff0a7758 & 0xff0a7790
  72 DEF(jpeg_count_str                          ,0x00164144) // Found @0xff269a4c
  73 //char *camera_jpeg_count_str()    { return (char*)0x00164144; }             // Found @0xff269a4c
  74 //int get_flash_params_count(void) { return 0x91; }                          // Found @0xff207154
  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 @0xff4fb478, levent 0x20a
  78 //#define SD_READONLY_IDX     2
  79 //#define USB_MASK            0x10000000 // Found @0xff4fb488, levent 0x202
  80 //#define USB_IDX             2
  81 //#define BATTCOVER_FLAG      0x04000000 // Found @0xff4fb480, levent 0x205
  82 //#define BATTCOVER_IDX       2
  83 //#define ANALOG_AV_FLAG      0x02000000 // Found @0xff4fb3e0, 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 @0xff4fb3e8, levent 0x100
  89 //    { 2, KEY_PLAYBACK        ,0x00000002 }, // Found @0xff4fb3f0, levent 0x101
  90 //    { 2, KEY_SHOOT_FULL      ,0x0000000c }, // Found @0xff4fb400, levent 0x01
  91 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000008 }, // Found @0xff4fb400, levent 0x01
  92 //    { 2, KEY_SHOOT_HALF      ,0x00000004 }, // Found @0xff4fb3f8, levent 0x00
  93 //    { 2, KEY_ZOOM_IN         ,0x00000010 }, // Found @0xff4fb408, levent 0x03
  94 //    { 2, KEY_ZOOM_OUT        ,0x00000040 }, // Found @0xff4fb410, levent 0x04
  95 //    { 2, KEY_UP              ,0x00000080 }, // Found @0xff4fb418, levent 0x06
  96 //    { 2, KEY_DOWN            ,0x00000100 }, // Found @0xff4fb420, levent 0x07
  97 //    { 2, KEY_RIGHT           ,0x00000200 }, // Found @0xff4fb428, levent 0x09
  98 //    { 2, KEY_LEFT            ,0x00000400 }, // Found @0xff4fb430, levent 0x08
  99 //    { 2, KEY_SET             ,0x00001000 }, // Found @0xff4fb438, levent 0x0a
 100 //    { 2, KEY_MENU            ,0x00002000 }, // Found @0xff4fb440, levent 0x0b
 101 //    { 2, KEY_VIDEO           ,0x00004000 }, // Found @0xff4fb448, 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 @0xff1bded4
 110 //#define CAM_RAW_ROWS      3504 // Found @0xff1bdee0
 111 //#undef  CAM_UNCACHED_BIT
 112 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff038dd4
 113 //#define CAM_DATE_FOLDER_NAMING 0x080 // Found @0xff32101c (pass as 3rd param to GetImageFolder)
 114 //#define PARAM_CAMERA_NAME 3 // Found @0xff6167a0
 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, 0xff4f8e00)
 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 @ 0xff695720
 165 
 166 // LED table init @ 0xff19cfa4
 167 // LED #1: 0xc0223030, offset 0x104
 168 // LED #2: 0xc0220094, offset 0x4
 169 
 170 // For capt_seq.c
 171 DEF(_nrflag,0xb334) // Found @ ff2a481c (0xb334) & ff2a4858 (+0x00)
 172 //static long *nrflag = (long*)(0xb334+0x00);  // Found @ ff2a481c & ff2a4858
 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                  ,0xff0be5a0) //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                  ,0xff0933dc) //102
 201 NHSTUB(GetCCDTemperature                      ,0xff093368) //102
 202 NHSTUB(GetCurrentAvValue                      ,0xff1eb4f4) //120
 203 NHSTUB(GetCurrentShutterSpeed                 ,0xff108ae0) //120
 204 NHSTUB(GetDrive_ClusterSize                   ,0xff0a568c) //122
 205 NHSTUB(GetDrive_FreeClusters                  ,0xff0a5e6c) //119
 206 NHSTUB(GetDrive_TotalClusters                 ,0xff0a5e44) //122
 207 NHSTUB(GetFocusLensSubjectDistance            ,0xff1ea768) //102
 208 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff1eaafc) //  3
 209 NHSTUB(GetImageFolder                         ,0xff1c55bc) //122
 210 NHSTUB(GetKbdState                            ,0xff0906c0) //109
 211 NHSTUB(GetMemInfo                             ,0xff00506c) //115
 212 NHSTUB(GetOpticalTemperature                  ,0xff093450) //120
 213 NHSTUB(GetParameterData                       ,0xff207114) //101
 214 NHSTUB(GetPropertyCase                        ,0xff0c2960) //101
 215 NHSTUB(GetSystemTime                          ,0xff365b10) //120
 216 NHSTUB(GetVRAMHPixelsSize                     ,0xff0766cc) //120
 217 NHSTUB(GetVRAMVPixelsSize                     ,0xff0766d8) //120
 218 NHSTUB(GetZoomLensCurrentPoint                ,0xff1eeab8) //120
 219 NHSTUB(GetZoomLensCurrentPosition             ,0xff352090) //102
 220 NHSTUB(GiveSemaphore                          ,0x00677904) //120
 221 NHSTUB(IsStrobeChargeCompleted                ,0xff136138) //102
 222 NHSTUB(LEDDrive                               ,0xff1f579c) //120
 223 NHSTUB(LocalTime                              ,0x0067f6b0) //115
 224 NHSTUB(LockMainPower                          ,0xff0c4dd8) //120
 225 NHSTUB(MakeSDCardBootable                     ,0xff0a62f0) //105
 226 NHSTUB(MoveFocusLensToDistance                ,0xff40db30) //102
 227 NHSTUB(MoveIrisWithAv                         ,0xff3602a4) //120
 228 NHSTUB(MoveZoomLensWithPoint                  ,0xff3609e0) //120
 229 NHSTUB(Open                                   ,0xff034114) //120
 230 NHSTUB(PB2Rec                                 ,0xff081738) //104
 231 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff1f68a0) //102
 232 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff1f6870) //102
 233 NHSTUB(PT_PlaySound                           ,0xff0d53c8) //122
 234 NHSTUB(PostLogicalEventForNotPowerType        ,0xff0c44c8) //120
 235 NHSTUB(PostLogicalEventToUI                   ,0xff0c4514) //120
 236 NHSTUB(PutInNdFilter                          ,0xff3607b8) //102
 237 NHSTUB(PutOutNdFilter                         ,0xff3607dc) //102
 238 NHSTUB(Read                                   ,0xff005b28) //120
 239 NHSTUB(ReadFastDir                            ,0xff33d178) //115
 240 NHSTUB(Rec2PB                                 ,0xff081778) //104
 241 NHSTUB(RenameFile_Fut                         ,0xff033ad4) //116
 242 NHSTUB(Restart                                ,0xff038240) //122
 243 NHSTUB(ScreenLock                             ,0xff0c9c9c) //117
 244 NHSTUB(ScreenUnlock                           ,0xff0c9cf0) //117
 245 NHSTUB(SetAE_ShutterSpeed                     ,0xff410ea0) //102
 246 NHSTUB(SetAutoShutdownTime                    ,0xff0c4e4c) //120
 247 NHSTUB(SetCurrentCaptureModeType              ,0xff0d2be8) //120
 248 NHSTUB(SetFileAttributes                      ,0xff0345e0) //  6
 249 NHSTUB(SetFileTimeStamp                       ,0xff034568) //  6
 250 NHSTUB(SetLogicalEventActive                  ,0xff0c4b50) //120
 251 NHSTUB(SetParameterData                       ,0xff207080) //101
 252 NHSTUB(SetPropertyCase                        ,0xff0c27d0) //101
 253 NHSTUB(SetScriptMode                          ,0xff0c4ba0) //120
 254 NHSTUB(SleepTask                              ,0x00677bb0) //120
 255 NHSTUB(TakeSemaphore                          ,0x00677834) //120
 256 NHSTUB(TurnOffBackLight                       ,0xff0d4c94) //104
 257 NHSTUB(TurnOnBackLight                        ,0xff0d4c7c) //104
 258 NHSTUB(TurnOnDisplay                          ,0xff08b890) //120
 259 NHSTUB(TurnOffDisplay                         ,0xff08b8a0) //120
 260 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff22305c) //120
 261 NHSTUB(UnlockAE                               ,0xff035d34) //120
 262 NHSTUB(UnlockAF                               ,0xff035a60) //120
 263 NHSTUB(UnlockMainPower                        ,0xff0c4d2c) //120
 264 NHSTUB(VbattGet                               ,0xff03014c) //120
 265 NHSTUB(Write                                  ,0xff034230) //120
 266 NHSTUB(WriteSDCard                            ,0xff1dba1c) //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                        ,0xff16a158) //121
 272 NHSTUB(apex2us                                ,0xff29da2c) //121
 273 NHSTUB(close                                  ,0xff005984) //109
 274 NHSTUB(err_init_task                          ,0xff004320) //111
 275 NHSTUB(exmem_alloc                            ,0xff0bcf68) //101
 276 NHSTUB(exmem_free                             ,0xff0bcfe0) //101
 277 NHSTUB(free                                   ,0xff002ef0) //112
 278 NHSTUB(get_nd_value                           ,0xff34fbf4) //123
 279 NHSTUB(get_current_nd_value                   ,0xff34fb94) //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                       ,0xff09011c) //109
 285 NHSTUB(lseek                                  ,0xff0343f8) //120
 286 NHSTUB(malloc                                 ,0xff002e98) //112
 287 NHSTUB(memcmp                                 ,0xff00ad4c) //120
 288 NHSTUB(memcpy                                 ,0xff039818) //120
 289 NHSTUB(memset                                 ,0xff0d8db8) //120
 290 NHSTUB(mkdir                                  ,0xff034678) //121
 291 NHSTUB(mktime_ext                             ,0xff0d8260) //  1
 292 NHSTUB(open                                   ,0xff0058d4) //109
 293 NHSTUB(OpenFastDir                            ,0xff33d024) //115
 294 NHSTUB(closedir                               ,0xff33cfd4) //121
 295 NHSTUB(get_fstype                             ,0xff0a5608) //122
 296 NHSTUB(qsort                                  ,0xff282a6c) //  6
 297 NHSTUB(rand                                   ,0xff0d8cbc) //121
 298 NHSTUB(realloc                                ,0xff282acc) //115
 299 NHSTUB(reboot_fw_update                       ,0xff36517c) //106
 300 NHSTUB(set_control_event                      ,0xff0c4810) //111
 301 NHSTUB(srand                                  ,0xff0d8cb0) //122
 302 NHSTUB(stat                                   ,0xff034440) //109
 303 NHSTUB(strcat                                 ,0xff0d8cec) //  1
 304 NHSTUB(strchr                                 ,0xff002d64) //  1
 305 NHSTUB(strcmp                                 ,0xff00ae48) //120
 306 NHSTUB(strcpy                                 ,0xff00ad34) //120
 307 NHSTUB(strftime                               ,0xff0d82ac) //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                           ,0xff0b05bc) //120
 315    DEF(task_DvlpSeqTask                       ,0xff1f9b2c) //120
 316    DEF(task_ExpDrv                            ,0xff11d458) //120
 317    DEF(task_FileWrite                         ,0xff3392b4) //120
 318    DEF(task_InitFileModules                   ,0xff08208c) //120
 319    DEF(task_MovieRecord                       ,0xff1f4590) //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                     ,0xff0c5804) //105
 326 NHSTUB(DisableISDriveError                    ,0xff3614dc) //120
 327 NHSTUB(CancelHPTimer                          ,0xff0bdc88) //119
 328 NHSTUB(SetHPTimerAfterNow                     ,0xff0bdb80) //119
 329 NHSTUB(SS_MFOn                                ,0xff1f6934) //120
 330 NHSTUB(SS_MFOff                               ,0xff1f6944) //120
 331 NHSTUB(GetAdChValue                           ,0xff08c9e8) //120
 332 NHSTUB(get_ptp_buf_size                       ,0xff1655b4) //122
 333 NHSTUB(get_ptp_file_buf                       ,0xff2e07cc) //121

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