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

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