root/platform/n_facebook/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 @ 0xff0cb588, "GM1.00A" @ 0xff0cb595
   7 //   Firmware build timestamp: Jul 12 2013 11:24:38
   8 //   Canon PowerShot N
   9 
  10 // Values for makefile.inc
  11 //   DIGIC = 50# DIGIC 5
  12 //   PLATFORMOSVER = 52
  13 //   PLATFORMID = 12939# (0x328b) Found @ 0xfff40040
  14 //   MAXRAMADDR = 0x0fffffff
  15 //   MEMISOSTART = 0x002f8aec
  16 //   KEYSYS = d4d# Found @ 0xffff3c38
  17 //   NEED_ENCODED_DISKBOOT = 10# Found @ 0xffff3c48
  18 //   ARAM_HEAP_START = 0x5ce000# Found @ 0xff2490e4
  19 //   ARAM_HEAP_SIZE  = 0x22000# Found @ 0xff2490a8
  20 
  21 // Detected address ranges:
  22 // ROM      0xff000000 - 0xffffffff (16777216 bytes)
  23 // RAM code 0x00685000 - 0x006b081c copied from 0xff8e8f64 ( 178204 bytes)
  24 // RAM data 0x00001900 - 0x0001b640 copied from 0xff8cf224 ( 105792 bytes)
  25 
  26 // Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S'
  27 //    Name                                     Address      Rule  %  Comp to stubs_entry_2.S
  28 NHSTUB(DeleteFile_Fut                         ,0xff034bb4) //  1 90%
  29 // ERROR: MakeDirectory_Fut is not found.                  //--- ---    *** != 0xff0356c4
  30 // ERROR: RefreshPhysicalScreen is not found.              //--- ---    *** != 0xff0399f8
  31 
  32 // Check of modemap from 'platform/CAMERA/shooting.c':
  33 // Firmware modemap table found @ff3f2588 -> ff8985e0
  34 // Mode 33339 in firmware but not in current modemap
  35 // Mode 32784 in firmware but not in current modemap
  36 // Mode 33334 in firmware but not in current modemap
  37 // Mode 33295 in firmware but not in current modemap
  38 
  39 // Values below can be overridden in 'stubs_min.S':
  40 DEF(physw_status                            ,0x00040b44) // Found @0xff032410
  41 DEF(physw_run                               ,0x00001e28) // Found @0xff031f64
  42 DEF(physw_sleep_delay                       ,0x00001e30) // Found @0xff031f64
  43 DEF(levent_table                            ,0xff666598) // Found @0xff666598
  44 DEF(FlashParamsTable                        ,0xff898808) // Found @0xff898808
  45 DEF(movie_status                            ,0x0000a5f4) // Found @0xff239904
  46 DEF(video_compression_rate                  ,0x0000a624) // Found @0xff23abc0
  47 DEF(full_screen_refresh                     ,0x0000b0f0) // Found @0xff2591cc
  48 DEF(canon_menu_active                       ,0x0000418c) // Found @0xff0d4eb0
  49 DEF(canon_shoot_menu_active                 ,0x0000cecd) // Found @0xff2d5acc
  50 DEF(playrec_mode                            ,0x00003ba4) // Found @0xff0c04bc
  51 DEF(zoom_status                             ,0x0000e990) // Found @0xff35a4a0
  52 DEF(zoom_busy                               ,0x0000a488) // Found @0xff2341d0
  53 DEF(focus_busy                              ,0x0000a324) // Found @0xff22f50c
  54 DEF(recreview_hold                          ,0x00002db4) // Found @0xff08a244
  55 // Camera has 2 RAW buffers @ 0x44000000 & 0x4adb23c0
  56 //  Note: active buffer --> raw_buffers[active_raw_buffer]
  57 //        other buffer  --> raw_buffers[active_raw_buffer^1]
  58 DEF(raw_buffers                             ,0xff609ba8) // Found @0xff609ba8
  59 DEF(active_raw_buffer                       ,0x00003af4) // Found @0xff0bc0b4
  60 DEF(fileio_semaphore                        ,0x000037dc) // Found @0xff0aaa94
  61 DEF(exmem_alloc_table                       ,0x000a5ce4) // Found @0xff0c6858
  62 DEF(exmem_types_table                       ,0xff8d1594) // Found @0x00003c70
  63 DEF_CONST(exmem_type_count                  ,0x0000001c)
  64 DEF(imager_active                           ,0x000024f8) // Found @0xff072ab8 (0x24f4 + 4)
  65 DEF_CONST(uiprop_count                      ,0x00000083) // Found @0xff24f6b4
  66 DEF(cameracon_state                         ,0x000028f0) // Found @0xff080ae4
  67 
  68 // Values below go in 'lib.c':
  69 //void *vid_get_bitmap_fb()        { return (void*)0x406c5000; }             // Found @0xff08d5d8
  70 //void *vid_get_viewport_fb()      { return (void*)0x4081ab80; }             // Found @0xff4b7678
  71 DEF(jpeg_count_str                          ,0x00220be0) // Found @0xff2c14cc
  72 //char *camera_jpeg_count_str()    { return (char*)0x00220be0; }             // Found @0xff2c14cc
  73 //int get_flash_params_count(void) { return 0x91; }                          // Found @0xff250098
  74 
  75 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  76 //#define USB_MASK            0x10000000 // Found @0xff5bd708, levent 0x202
  77 //#define USB_IDX             2
  78 
  79 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  80 //static KeyMap keymap[] = {
  81 //    { 0, KEY_POWER           ,0x00100000 }, // Found @0xff5bd680, levent 0x100
  82 //    { 2, KEY_SHOOT_FULL      ,0x00000030 }, // Found @0xff5bd690, levent 0x01
  83 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000020 }, // Found @0xff5bd690, levent 0x01
  84 //    { 2, KEY_SHOOT_HALF      ,0x00000010 }, // Found @0xff5bd688, levent 0x00
  85 //    { 2, KEY_ZOOM_OUT        ,0x00000100 }, // Found @0xff5bd698, levent 0x04
  86 //    { 2, KEY_ZOOM_IN         ,0x00000200 }, // Found @0xff5bd6a0, levent 0x03
  87 //    { 2, KEY_PLAYBACK        ,0x00010000 }, // Found @0xff5bd6b0, levent 0x101
  88 //    { 0, 0, 0 }
  89 //};
  90 
  91 // Values below go in 'platform_camera.h':
  92 //#define CAM_DRYOS         1
  93 //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
  94 //#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher
  95 //#define CAM_RAW_ROWPIX    4176 // Found @0xff2016a4
  96 //#define CAM_RAW_ROWS      3062 // Found @0xff2016b0
  97 //#undef  CAM_UNCACHED_BIT
  98 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff03a120
  99 //#define CAM_DATE_FOLDER_NAMING 0x080 // Found @0xff3a8a28 (pass as 3rd param to GetImageFolder)
 100 //#define PARAM_CAMERA_NAME 3 // Found @0xff897ad0
 101 //#define CAM_HAS_WIFI 1 // Firmware has wifi support (only define if camera has hardware)
 102 
 103 // Below goes in 'filewrite.c' or 'platform_camera.h':
 104 //#define MAX_CHUNKS_FOR_FWT 7 // Found @0xff3c0430
 105 
 106 // Known propcases
 107 // //      PROPCASE_AFSTEP 13
 108 // #define PROPCASE_FOCUS_STATE 18
 109 // #define PROPCASE_AV 23
 110 // #define PROPCASE_BV 34
 111 // //      PROPCASE_DELTA_DIGITALGAIN 77
 112 // #define PROPCASE_DELTA_SV 79
 113 // //      PROPCASE_DELTA_ND 80
 114 // #define PROPCASE_EV_CORRECTION_2 210
 115 // #define PROPCASE_ORIENTATION_SENSOR 222
 116 // #define PROPCASE_SV_MARKET 249
 117 // //      PROPCASE_SVFIX 250
 118 // #define PROPCASE_TV 265
 119 // Guessed propset: 6
 120 
 121 // Misc stuff
 122 DEF(ctypes, 0xff5ba758)
 123 
 124 // EXMEM types:
 125 // EXMEM_RAMDISK        0
 126 // EXMEM_COM            1
 127 // EXMEM_FORMATTER      2
 128 // EXMEM_SHADING        3
 129 // EXMEM_FAMODE         4
 130 // EXMEM_FIRMUP         5
 131 // EXMEM_FIRMUP_VRAM    6
 132 // EXMEM_FIRMUP_INFLATE 7
 133 // EXMEM_DVLPWORK       8
 134 // EXMEM_EVF            9
 135 // EXMEM_SCRIPT         10
 136 // EXMEM_GPS            11
 137 // EXMEM_FACEAUTH       12
 138 // EXMEM_OHYEARLOG      13
 139 // EXMEM_WIFI           14
 140 // EXMEM_FILESTORE      15
 141 // EXMEM_MOVIE_REC      16
 142 // EXMEM_MOVIE_PLY      17
 143 // EXMEM_WIDE           18
 144 // EXMEM_NARROW         19
 145 // EXMEM_AUTO_GIS_MODE  20
 146 // EXMEM_NP_GIS_MODE    21
 147 // EXMEM_TRIPODHDR_MODE 22
 148 // EXMEM_HSHQ_MODE      23
 149 // EXMEM_CRAW_REC       24
 150 // EXMEM_PCEVF          25
 151 // EXMEM_CREATIVE_SHOT  26
 152 // EXMEM_WIFI_RESIZE    27
 153 
 154 // ISR flag: 0x1958, pointer to current task's control block: 0x1954
 155 // pointer to TCB area: 0x19f8, found @ 0xff8eb188
 156 
 157 // LED table init @ 0xff1c0554
 158 // LED #1: unknown (index: 0x80000001), offset 0x4
 159 
 160 // For capt_seq.c
 161 DEF(_nrflag,0xdeb0) // Found @ ff2ff348 (0xdeb0) & ff2ff384 (+0x00)
 162 //static long *nrflag = (long*)(0xdeb0+0x00);  // Found @ ff2ff348 & ff2ff384
 163 //#define NR_AUTO (0)                          // have to explictly reset value back to 0 to enable auto
 164 
 165 // Stubs below matched 100%.
 166 //    Name                                     Address                Comp to stubs_entry_2.S
 167 NHSTUB(AllocateUncacheableMemory              ,0xff03a0d8) //112
 168 NHSTUB(Close                                  ,0xff035228) //120
 169 NHSTUB(CreateBinarySemaphore                  ,0x0068a8b0) //115
 170 NHSTUB(CreateTask                             ,0x0068ab8c) //120
 171 NHSTUB(DebugAssert                            ,0x0068b104) //107
 172 NHSTUB(DeleteDirectory_Fut                    ,0xff034c28) //116
 173 NHSTUB(DeleteSemaphore                        ,0x0068a970) //120
 174 NHSTUB(DoAELock                               ,0xff036d88) //120
 175 NHSTUB(DoAFLock                               ,0xff036ae4) //120
 176 NHSTUB(EnterToCompensationEVF                 ,0xff036cf0) //104
 177 NHSTUB(ExecuteEventProcedure                  ,0xff0c8488) //104
 178 NHSTUB(ExitFromCompensationEVF                ,0xff036d34) //104
 179 NHSTUB(ExitTask                               ,0x0068ae1c) //120
 180 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff06b57c) //104
 181 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff06b6e4) //104
 182 NHSTUB(Fclose_Fut                             ,0xff034cc0) //120
 183 NHSTUB(Feof_Fut                               ,0xff034eac) //  1
 184 NHSTUB(Fflush_Fut                             ,0xff034ee8) //  1
 185 NHSTUB(Fgets_Fut                              ,0xff034e14) //  6
 186 NHSTUB(Fopen_Fut                              ,0xff034c80) //120
 187 NHSTUB(Fread_Fut                              ,0xff034d6c) //120
 188 NHSTUB(FreeUncacheableMemory                  ,0xff03a118) //112
 189 NHSTUB(Fseek_Fut                              ,0xff034e60) //120
 190 NHSTUB(Fwrite_Fut                             ,0xff034dc0) //120
 191 NHSTUB(GetBatteryTemperature                  ,0xff095d58) //102
 192 NHSTUB(GetCCDTemperature                      ,0xff095ce4) //102
 193 NHSTUB(GetCurrentAvValue                      ,0xff231484) //120
 194 NHSTUB(GetCurrentShutterSpeed                 ,0xff113930) //120
 195 NHSTUB(GetDrive_ClusterSize                   ,0xff0ac104) //122
 196 NHSTUB(GetDrive_FreeClusters                  ,0xff0ac8e4) //119
 197 NHSTUB(GetDrive_TotalClusters                 ,0xff0ac8bc) //122
 198 NHSTUB(GetFocusLensSubjectDistance            ,0xff23063c) //102
 199 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff2309d0) //  3
 200 NHSTUB(GetImageFolder                         ,0xff2090cc) //122
 201 NHSTUB(GetKbdState                            ,0xff092fcc) //109
 202 NHSTUB(GetMemInfo                             ,0xff0052c4) //115
 203 NHSTUB(GetOpticalTemperature                  ,0xff095dcc) //120
 204 NHSTUB(GetParameterData                       ,0xff250058) //101
 205 NHSTUB(GetPropertyCase                        ,0xff0cc99c) //101
 206 NHSTUB(GetSystemTime                          ,0xff3ef694) //120
 207 NHSTUB(GetVRAMHPixelsSize                     ,0xff078240) //120
 208 NHSTUB(GetVRAMVPixelsSize                     ,0xff07824c) //120
 209 NHSTUB(GetZoomLensCurrentPoint                ,0xff234644) //120
 210 NHSTUB(GetZoomLensCurrentPosition             ,0xff3da5c0) //102
 211 NHSTUB(GiveSemaphore                          ,0x0068aaec) //120
 212 NHSTUB(IsStrobeChargeCompleted                ,0xff14bca8) //102
 213 NHSTUB(LEDDrive                               ,0xff23c4c8) //120
 214 NHSTUB(LocalTime                              ,0x006937ec) //115
 215 NHSTUB(LockMainPower                          ,0xff0cf678) //120
 216 NHSTUB(MakeSDCardBootable                     ,0xff0acd68) //105
 217 NHSTUB(MoveFocusLensToDistance                ,0xff4b31ec) //102
 218 NHSTUB(MoveIrisWithAv                         ,0xff3eb024) //120
 219 NHSTUB(MoveZoomLensWithPoint                  ,0xff3eb760) //120
 220 NHSTUB(MoveOpticalZoomAt                      ,0xff03659c) //109
 221 NHSTUB(Open                                   ,0xff035160) //120
 222 NHSTUB(PB2Rec                                 ,0xff082af4) //104
 223 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff23d604) //102
 224 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff23d5d4) //102
 225 NHSTUB(PT_PlaySound                           ,0xff0df6b8) //122
 226 NHSTUB(PostLogicalEventForNotPowerType        ,0xff0cecdc) //120
 227 NHSTUB(PostLogicalEventToUI                   ,0xff0ced28) //120
 228 NHSTUB(PutInNdFilter                          ,0xff3eb538) //102
 229 NHSTUB(PutOutNdFilter                         ,0xff3eb55c) //102
 230 NHSTUB(Read                                   ,0xff005d80) //120
 231 NHSTUB(ReadFastDir                            ,0xff3c4274) //115
 232 NHSTUB(Rec2PB                                 ,0xff082b3c) //104
 233 NHSTUB(RenameFile_Fut                         ,0xff034b20) //116
 234 NHSTUB(Restart                                ,0xff03958c) //122
 235 NHSTUB(ScreenLock                             ,0xff0d48e8) //117
 236 NHSTUB(ScreenUnlock                           ,0xff0d493c) //117
 237 NHSTUB(SetAE_ShutterSpeed                     ,0xff4b6550) //102
 238 NHSTUB(SetAutoShutdownTime                    ,0xff0cf6ec) //120
 239 NHSTUB(SetCurrentCaptureModeType              ,0xff0dcaac) //120
 240 NHSTUB(SetDate                                ,0xff4b82d8) //120
 241 NHSTUB(SetFileAttributes                      ,0xff03562c) //  6
 242 NHSTUB(SetFileTimeStamp                       ,0xff0355b4) //  6
 243 NHSTUB(SetLogicalEventActive                  ,0xff0cf3e0) //120
 244 NHSTUB(SetParameterData                       ,0xff24ffc4) //101
 245 NHSTUB(SetPropertyCase                        ,0xff0cc80c) //101
 246 NHSTUB(SetScriptMode                          ,0xff0cf474) //120
 247 NHSTUB(SleepTask                              ,0x0068c4e8) //120
 248 NHSTUB(TakeSemaphore                          ,0x0068aa1c) //120
 249 NHSTUB(TurnOffBackLight                       ,0xff0defd4) //104
 250 NHSTUB(TurnOnBackLight                        ,0xff0defbc) //104
 251 NHSTUB(TurnOnDisplay                          ,0xff08d9e0) //120
 252 NHSTUB(TurnOffDisplay                         ,0xff08d9f0) //120
 253 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff26ce4c) //120
 254 NHSTUB(UnlockAE                               ,0xff036dac) //120
 255 NHSTUB(UnlockAF                               ,0xff036b14) //120
 256 NHSTUB(UnlockMainPower                        ,0xff0cf5cc) //120
 257 NHSTUB(VbattGet                               ,0xff031068) //120
 258 NHSTUB(Write                                  ,0xff03527c) //120
 259 NHSTUB(WriteSDCard                            ,0xff2211ec) //108
 260 NHSTUB(_log                                   ,0x006ac0f8) //111
 261 NHSTUB(_log10                                 ,0x006ac638) //112
 262 NHSTUB(_pow                                   ,0x006ac7b0) //121
 263 NHSTUB(_sqrt                                  ,0x006ae888) //  6
 264 // ALT: NHSTUB(_sqrt, 0xffdf6b58) // 6 27/0
 265 NHSTUB(add_ptp_handler                        ,0xff18a7c8) //121
 266 NHSTUB(apex2us                                ,0xff2f8dbc) //121
 267 NHSTUB(close                                  ,0xff005bdc) //109
 268 NHSTUB(err_init_task                          ,0xff00432c) //111
 269 NHSTUB(exmem_alloc                            ,0xff0c6e50) //101
 270 NHSTUB(exmem_ualloc                           ,0xff0c6ca4) //101
 271 NHSTUB(exmem_ufree                            ,0xff0c6df0) //101
 272 NHSTUB(free                                   ,0xff002efc) //112
 273 NHSTUB(get_nd_value                           ,0xff3d811c) //123
 274 NHSTUB(get_current_nd_value                   ,0xff3d80bc) //122
 275 NHSTUB(get_current_deltasv                    ,0xff11459c) //122
 276 NHSTUB(GetCurrentDriveBaseSvValue             ,0xff11a9f4) //120
 277 NHSTUB(kbd_p1_f                               ,0xff032460) //109
 278 NHSTUB(kbd_p1_f_cont                          ,0xff03246c) //109
 279 NHSTUB(kbd_p2_f                               ,0xff031bfc) //109
 280 NHSTUB(kbd_read_keys                          ,0xff032410) //109
 281 NHSTUB(kbd_read_keys_r2                       ,0xff092a5c) //109
 282 NHSTUB(lseek                                  ,0xff035444) //120
 283 NHSTUB(malloc                                 ,0xff002ea4) //112
 284 NHSTUB(memcmp                                 ,0xff00b988) //120
 285 NHSTUB(memcpy                                 ,0xff03ab64) //120
 286 NHSTUB(memset                                 ,0xff0e3bf0) //120
 287 NHSTUB(mkdir                                  ,0xff0356c4) //121
 288 NHSTUB(mktime_ext                             ,0xff0e3098) //  1
 289 NHSTUB(open                                   ,0xff005b2c) //109
 290 NHSTUB(OpenFastDir                            ,0xff3c4120) //115
 291 NHSTUB(closedir                               ,0xff3c40d0) //121
 292 NHSTUB(get_fstype                             ,0xff0ac080) //122
 293 NHSTUB(qsort                                  ,0xff2dddfc) //  6
 294 NHSTUB(rand                                   ,0xff0e3af4) //121
 295 NHSTUB(realloc                                ,0xff2dde5c) //115
 296 NHSTUB(reboot_fw_update                       ,0xff3eed08) //106
 297 NHSTUB(set_control_event                      ,0xff0cf050) //111
 298 NHSTUB(srand                                  ,0xff0e3ae8) //122
 299 NHSTUB(stat                                   ,0xff03548c) //109
 300 NHSTUB(strcat                                 ,0xff0e3b24) //  1
 301 NHSTUB(strchr                                 ,0xff002d70) //  1
 302 NHSTUB(strcmp                                 ,0xff00ba84) //120
 303 NHSTUB(strcpy                                 ,0xff00b970) //120
 304 NHSTUB(strftime                               ,0xff0e30e4) //113
 305 NHSTUB(strlen                                 ,0xff002dbc) //120
 306 NHSTUB(strncmp                                ,0xff002d24) //  1
 307 NHSTUB(strncpy                                ,0xff002ce8) //  1
 308 NHSTUB(strrchr                                ,0xff002d94) //  1
 309 NHSTUB(strtol                                 ,0xff03ab50) //101
 310 NHSTUB(strtolx                                ,0xff03a954) //109
 311    DEF(task_CaptSeq                           ,0xff0b82ec) //120
 312    DEF(task_DvlpSeqTask                       ,0xff240e60) //120
 313    DEF(task_ExpDrv                            ,0xff12a2f0) //120
 314    DEF(task_FileWrite                         ,0xff3c03d4) //120
 315    DEF(task_InitFileModules                   ,0xff0834f8) //120
 316    DEF(task_MovieRecord                       ,0xff23b0e0) //120
 317    DEF(task_PhySw                             ,0xff031f60) //120
 318    DEF(task_TouchPanel                        ,0xff0974a4) //120
 319    DEF(hook_CreateTask                        ,0x0068ab8c) //105
 320 NHSTUB(time                                   ,0x00693c94) //119
 321 NHSTUB(vsprintf                               ,0xff00b820) //115
 322 NHSTUB(EngDrvRead                             ,0xff033330) //102
 323 NHSTUB(PTM_GetCurrentItem                     ,0xff0d0008) //105
 324 NHSTUB(DisableISDriveError                    ,0xff3ec25c) //120
 325 NHSTUB(CancelHPTimer                          ,0xff0c7b70) //119
 326 NHSTUB(SetHPTimerAfterNow                     ,0xff0c7a68) //119
 327 NHSTUB(SS_MFOn                                ,0xff23d698) //120
 328 NHSTUB(SS_MFOff                               ,0xff23d6a8) //120
 329 NHSTUB(GetAdChValue                           ,0xff08eb50) //120
 330 NHSTUB(get_ptp_buf_size                       ,0xff1847c0) //122
 331 NHSTUB(get_ptp_file_buf                       ,0xff34bd58) //121
 332 NHSTUB(SetVideoOutType                        ,0xff4b6d98) //109
 333 NHSTUB(GetVideoOutType                        ,0xff4b6ce8) //120
 334 NHSTUB(IsWirelessConnect                      ,0xff085ba0) //122

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