root/platform/n/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: Feb 28 2013 12:00:21
   8 //   Canon PowerShot N
   9 
  10 // Values for makefile.inc
  11 //   DIGIC = 50# DIGIC 5
  12 //   PLATFORMOSVER = 52
  13 //   PLATFORMID = 12894# (0x325e) Found @ 0xfff40040
  14 //   MAXRAMADDR = 0x0fffffff
  15 //   MEMISOSTART = 0x002f8b2c
  16 //   KEYSYS = d4d# Found @ 0xffff3c38
  17 //   NEED_ENCODED_DISKBOOT = 10# Found @ 0xffff3c48
  18 //   ARAM_HEAP_START = 0x5ce000# Found @ 0xff2490b8
  19 //   ARAM_HEAP_SIZE  = 0x22000# Found @ 0xff24907c
  20 
  21 // Detected address ranges:
  22 // ROM      0xff000000 - 0xffffffff (16777216 bytes)
  23 // RAM code 0x00685000 - 0x006b081c copied from 0xff8e9e9c ( 178204 bytes)
  24 // RAM data 0x00001900 - 0x0001b668 copied from 0xff8d0134 ( 105832 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 @ff3f2834 -> ff899458
  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                            ,0x00040b64) // Found @0xff032410
  41 DEF(physw_run                               ,0x00001e28) // Found @0xff031f64
  42 DEF(physw_sleep_delay                       ,0x00001e30) // Found @0xff031f64
  43 DEF(levent_table                            ,0xff666ac0) // Found @0xff666ac0
  44 DEF(FlashParamsTable                        ,0xff899680) // Found @0xff899680
  45 DEF(movie_status                            ,0x0000a5f4) // Found @0xff2398bc
  46 DEF(video_compression_rate                  ,0x0000a624) // Found @0xff23ab78
  47 DEF(full_screen_refresh                     ,0x0000b0f0) // Found @0xff2591a8
  48 DEF(canon_menu_active                       ,0x0000418c) // Found @0xff0d4eb0
  49 DEF(canon_shoot_menu_active                 ,0x0000cedd) // Found @0xff2d5d78
  50 DEF(playrec_mode                            ,0x00003ba4) // Found @0xff0c04bc
  51 DEF(zoom_status                             ,0x0000e9a0) // Found @0xff35a74c
  52 DEF(zoom_busy                               ,0x0000a488) // Found @0xff234188
  53 DEF(focus_busy                              ,0x0000a324) // Found @0xff22f4c4
  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                             ,0xff60a0d0) // Found @0xff60a0d0
  59 DEF(active_raw_buffer                       ,0x00003af4) // Found @0xff0bc0b4
  60 DEF(fileio_semaphore                        ,0x000037dc) // Found @0xff0aaa94
  61 DEF(exmem_alloc_table                       ,0x000a5d04) // Found @0xff0c6858
  62 DEF(exmem_types_table                       ,0xff8d24a4) // 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 @0xff24f688
  66 
  67 // Values below go in 'lib.c':
  68 //void *vid_get_bitmap_fb()        { return (void*)0x406c5000; }             // Found @0xff08d5d8
  69 //void *vid_get_viewport_fb()      { return (void*)0x4081ab80; }             // Found @0xff4b7ba4
  70 DEF(jpeg_count_str                          ,0x00220c20) // Found @0xff2c1778
  71 //char *camera_jpeg_count_str()    { return (char*)0x00220c20; }             // Found @0xff2c1778
  72 //int get_flash_params_count(void) { return 0x91; }                          // Found @0xff25006c
  73 
  74 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  75 //#define USB_MASK            0x10000000 // Found @0xff5bdc30, levent 0x202
  76 //#define USB_IDX             2
  77 
  78 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  79 //static KeyMap keymap[] = {
  80 //    { 0, KEY_POWER           ,0x00100000 }, // Found @0xff5bdba8, levent 0x100
  81 //    { 2, KEY_SHOOT_FULL      ,0x00000030 }, // Found @0xff5bdbb8, levent 0x01
  82 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000020 }, // Found @0xff5bdbb8, levent 0x01
  83 //    { 2, KEY_SHOOT_HALF      ,0x00000010 }, // Found @0xff5bdbb0, levent 0x00
  84 //    { 2, KEY_ZOOM_OUT        ,0x00000100 }, // Found @0xff5bdbc0, levent 0x04
  85 //    { 2, KEY_ZOOM_IN         ,0x00000200 }, // Found @0xff5bdbc8, levent 0x03
  86 //    { 2, KEY_PLAYBACK        ,0x00010000 }, // Found @0xff5bdbd8, levent 0x101
  87 //    { 0, 0, 0 }
  88 //};
  89 
  90 // Values below go in 'platform_camera.h':
  91 //#define CAM_DRYOS         1
  92 //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
  93 //#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher
  94 //#define CAM_RAW_ROWPIX    4176 // Found @0xff20165c
  95 //#define CAM_RAW_ROWS      3062 // Found @0xff201668
  96 //#undef  CAM_UNCACHED_BIT
  97 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff03a120
  98 //#define CAM_DATE_FOLDER_NAMING 0x080 // Found @0xff3a8cd4 (pass as 3rd param to GetImageFolder)
  99 //#define PARAM_CAMERA_NAME 3 // Found @0xff89894c
 100 
 101 // Known propcases
 102 // //      PROPCASE_AFSTEP 13
 103 // #define PROPCASE_FOCUS_STATE 18
 104 // #define PROPCASE_AV 23
 105 // #define PROPCASE_BV 34
 106 // //      PROPCASE_DELTA_DIGITALGAIN 77
 107 // #define PROPCASE_DELTA_SV 79
 108 // //      PROPCASE_DELTA_ND 80
 109 // #define PROPCASE_EV_CORRECTION_2 210
 110 // #define PROPCASE_ORIENTATION_SENSOR 222
 111 // #define PROPCASE_SV_MARKET 249
 112 // //      PROPCASE_SVFIX 250
 113 // #define PROPCASE_TV 265
 114 // Guessed propset: 6
 115 
 116 // Misc stuff
 117 DEF(ctypes, 0xff5bac84)
 118 
 119 // EXMEM types:
 120 // EXMEM_RAMDISK        0
 121 // EXMEM_COM            1
 122 // EXMEM_FORMATTER      2
 123 // EXMEM_SHADING        3
 124 // EXMEM_FAMODE         4
 125 // EXMEM_FIRMUP         5
 126 // EXMEM_FIRMUP_VRAM    6
 127 // EXMEM_FIRMUP_INFLATE 7
 128 // EXMEM_DVLPWORK       8
 129 // EXMEM_EVF            9
 130 // EXMEM_SCRIPT         10
 131 // EXMEM_GPS            11
 132 // EXMEM_FACEAUTH       12
 133 // EXMEM_OHYEARLOG      13
 134 // EXMEM_WIFI           14
 135 // EXMEM_FILESTORE      15
 136 // EXMEM_MOVIE_REC      16
 137 // EXMEM_MOVIE_PLY      17
 138 // EXMEM_WIDE           18
 139 // EXMEM_NARROW         19
 140 // EXMEM_AUTO_GIS_MODE  20
 141 // EXMEM_NP_GIS_MODE    21
 142 // EXMEM_TRIPODHDR_MODE 22
 143 // EXMEM_HSHQ_MODE      23
 144 // EXMEM_CRAW_REC       24
 145 // EXMEM_PCEVF          25
 146 // EXMEM_CREATIVE_SHOT  26
 147 // EXMEM_WIFI_RESIZE    27
 148 
 149 // ISR flag: 0x1958, pointer to current task's control block: 0x1954
 150 // pointer to TCB area: 0x19f8, found @ 0xff8ec0c0
 151 
 152 // LED table init @ 0xff1c050c
 153 // LED #1: unknown (index: 0x80000001), offset 0x4
 154 
 155 // For capt_seq.c
 156 DEF(_nrflag,0xdec0) // Found @ ff2ff5f4 (0xdec0) & ff2ff630 (+0x00)
 157 //static long *nrflag = (long*)(0xdec0+0x00);  // Found @ ff2ff5f4 & ff2ff630
 158 //#define NR_AUTO (0)                          // have to explictly reset value back to 0 to enable auto
 159 
 160 // Stubs below matched 100%.
 161 //    Name                                     Address                Comp to stubs_entry_2.S
 162 NHSTUB(AllocateUncacheableMemory              ,0xff03a0d8) //112
 163 NHSTUB(Close                                  ,0xff035228) //120
 164 NHSTUB(CreateBinarySemaphore                  ,0x0068a8b0) //115
 165 NHSTUB(CreateTask                             ,0x0068ab8c) //120
 166 NHSTUB(DebugAssert                            ,0x0068b104) //107
 167 NHSTUB(DeleteDirectory_Fut                    ,0xff034c28) //116
 168 NHSTUB(DoAELock                               ,0xff036d88) //120
 169 NHSTUB(DoAFLock                               ,0xff036ae4) //120
 170 NHSTUB(EnterToCompensationEVF                 ,0xff036cf0) //104
 171 NHSTUB(ExecuteEventProcedure                  ,0xff0c8488) //104
 172 NHSTUB(ExitFromCompensationEVF                ,0xff036d34) //104
 173 NHSTUB(ExitTask                               ,0x0068ae1c) //120
 174 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff06b57c) //104
 175 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff06b6e4) //104
 176 NHSTUB(Fclose_Fut                             ,0xff034cc0) //120
 177 NHSTUB(Feof_Fut                               ,0xff034eac) //  1
 178 NHSTUB(Fflush_Fut                             ,0xff034ee8) //  1
 179 NHSTUB(Fgets_Fut                              ,0xff034e14) //  6
 180 NHSTUB(Fopen_Fut                              ,0xff034c80) //120
 181 NHSTUB(Fread_Fut                              ,0xff034d6c) //120
 182 NHSTUB(FreeUncacheableMemory                  ,0xff03a118) //112
 183 NHSTUB(Fseek_Fut                              ,0xff034e60) //120
 184 NHSTUB(Fwrite_Fut                             ,0xff034dc0) //120
 185 NHSTUB(GetBatteryTemperature                  ,0xff095d58) //102
 186 NHSTUB(GetCCDTemperature                      ,0xff095ce4) //102
 187 NHSTUB(GetCurrentAvValue                      ,0xff23143c) //120
 188 NHSTUB(GetCurrentShutterSpeed                 ,0xff113934) //120
 189 NHSTUB(GetDrive_ClusterSize                   ,0xff0ac104) //122
 190 NHSTUB(GetDrive_FreeClusters                  ,0xff0ac8e4) //119
 191 NHSTUB(GetDrive_TotalClusters                 ,0xff0ac8bc) //122
 192 NHSTUB(GetFocusLensSubjectDistance            ,0xff2305f4) //102
 193 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff230988) //  3
 194 NHSTUB(GetImageFolder                         ,0xff209084) //122
 195 NHSTUB(GetKbdState                            ,0xff092fcc) //109
 196 NHSTUB(GetMemInfo                             ,0xff0052c4) //115
 197 NHSTUB(GetOpticalTemperature                  ,0xff095dcc) //120
 198 NHSTUB(GetParameterData                       ,0xff25002c) //101
 199 NHSTUB(GetPropertyCase                        ,0xff0cc99c) //101
 200 NHSTUB(GetSystemTime                          ,0xff3ef940) //120
 201 NHSTUB(GetVRAMHPixelsSize                     ,0xff078240) //120
 202 NHSTUB(GetVRAMVPixelsSize                     ,0xff07824c) //120
 203 NHSTUB(GetZoomLensCurrentPoint                ,0xff2345fc) //120
 204 NHSTUB(GetZoomLensCurrentPosition             ,0xff3da86c) //102
 205 NHSTUB(GiveSemaphore                          ,0x0068aaec) //120
 206 NHSTUB(IsStrobeChargeCompleted                ,0xff14bcac) //102
 207 NHSTUB(LEDDrive                               ,0xff23c49c) //120
 208 NHSTUB(LocalTime                              ,0x006937ec) //115
 209 NHSTUB(LockMainPower                          ,0xff0cf678) //120
 210 NHSTUB(MakeSDCardBootable                     ,0xff0acd68) //105
 211 NHSTUB(MoveFocusLensToDistance                ,0xff4b3718) //102
 212 NHSTUB(MoveIrisWithAv                         ,0xff3eb2d0) //120
 213 NHSTUB(MoveZoomLensWithPoint                  ,0xff3eba0c) //120
 214 NHSTUB(MoveOpticalZoomAt                      ,0xff03659c) //109
 215 NHSTUB(Open                                   ,0xff035160) //120
 216 NHSTUB(PB2Rec                                 ,0xff082af4) //104
 217 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff23d5d8) //102
 218 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff23d5a8) //102
 219 NHSTUB(PT_PlaySound                           ,0xff0df6bc) //122
 220 NHSTUB(PostLogicalEventForNotPowerType        ,0xff0cecdc) //120
 221 NHSTUB(PostLogicalEventToUI                   ,0xff0ced28) //120
 222 NHSTUB(PutInNdFilter                          ,0xff3eb7e4) //102
 223 NHSTUB(PutOutNdFilter                         ,0xff3eb808) //102
 224 NHSTUB(Read                                   ,0xff005d80) //120
 225 NHSTUB(ReadFastDir                            ,0xff3c4520) //115
 226 NHSTUB(Rec2PB                                 ,0xff082b3c) //104
 227 NHSTUB(RenameFile_Fut                         ,0xff034b20) //116
 228 NHSTUB(Restart                                ,0xff03958c) //122
 229 NHSTUB(ScreenLock                             ,0xff0d48e8) //117
 230 NHSTUB(ScreenUnlock                           ,0xff0d493c) //117
 231 NHSTUB(SetAE_ShutterSpeed                     ,0xff4b6a7c) //102
 232 NHSTUB(SetAutoShutdownTime                    ,0xff0cf6ec) //120
 233 NHSTUB(SetCurrentCaptureModeType              ,0xff0dcab0) //120
 234 NHSTUB(SetFileAttributes                      ,0xff03562c) //  6
 235 NHSTUB(SetFileTimeStamp                       ,0xff0355b4) //  6
 236 NHSTUB(SetLogicalEventActive                  ,0xff0cf3e0) //120
 237 NHSTUB(SetParameterData                       ,0xff24ff98) //101
 238 NHSTUB(SetPropertyCase                        ,0xff0cc80c) //101
 239 NHSTUB(SetScriptMode                          ,0xff0cf474) //120
 240 NHSTUB(SleepTask                              ,0x0068c4e8) //120
 241 NHSTUB(TakeSemaphore                          ,0x0068aa1c) //120
 242 NHSTUB(TurnOffBackLight                       ,0xff0defd8) //104
 243 NHSTUB(TurnOnBackLight                        ,0xff0defc0) //104
 244 NHSTUB(TurnOnDisplay                          ,0xff08d9e0) //120
 245 NHSTUB(TurnOffDisplay                         ,0xff08d9f0) //120
 246 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff26ce28) //120
 247 NHSTUB(UnlockAE                               ,0xff036dac) //120
 248 NHSTUB(UnlockAF                               ,0xff036b14) //120
 249 NHSTUB(UnlockMainPower                        ,0xff0cf5cc) //120
 250 NHSTUB(VbattGet                               ,0xff031068) //120
 251 NHSTUB(Write                                  ,0xff03527c) //120
 252 NHSTUB(WriteSDCard                            ,0xff2211a4) //108
 253 NHSTUB(_log                                   ,0x006ac0f8) //111
 254 NHSTUB(_log10                                 ,0x006ac638) //112
 255 NHSTUB(_pow                                   ,0x006ac7b0) //121
 256 NHSTUB(_sqrt                                  ,0x006ae888) //  6
 257 // ALT: NHSTUB(_sqrt, 0xffdf6b58) // 6 27/0
 258 NHSTUB(add_ptp_handler                        ,0xff18a7cc) //121
 259 NHSTUB(apex2us                                ,0xff2f9068) //121
 260 NHSTUB(close                                  ,0xff005bdc) //109
 261 NHSTUB(err_init_task                          ,0xff00432c) //111
 262 NHSTUB(exmem_alloc                            ,0xff0c6e50) //101
 263 NHSTUB(exmem_ualloc                           ,0xff0c6ca4) //101
 264 NHSTUB(exmem_ufree                            ,0xff0c6df0) //101
 265 NHSTUB(free                                   ,0xff002efc) //112
 266 NHSTUB(get_nd_value                           ,0xff3d83c8) //123
 267 NHSTUB(get_current_nd_value                   ,0xff3d8368) //122
 268 NHSTUB(kbd_p1_f                               ,0xff032460) //109
 269 NHSTUB(kbd_p1_f_cont                          ,0xff03246c) //109
 270 NHSTUB(kbd_p2_f                               ,0xff031bfc) //109
 271 NHSTUB(kbd_read_keys                          ,0xff032410) //109
 272 NHSTUB(kbd_read_keys_r2                       ,0xff092a5c) //109
 273 NHSTUB(lseek                                  ,0xff035444) //120
 274 NHSTUB(malloc                                 ,0xff002ea4) //112
 275 NHSTUB(memcmp                                 ,0xff00b988) //120
 276 NHSTUB(memcpy                                 ,0xff03ab64) //120
 277 NHSTUB(memset                                 ,0xff0e3bf4) //120
 278 NHSTUB(mkdir                                  ,0xff0356c4) //121
 279 NHSTUB(mktime_ext                             ,0xff0e309c) //  1
 280 NHSTUB(open                                   ,0xff005b2c) //109
 281 NHSTUB(OpenFastDir                            ,0xff3c43cc) //115
 282 NHSTUB(closedir                               ,0xff3c437c) //121
 283 NHSTUB(get_fstype                             ,0xff0ac080) //122
 284 NHSTUB(qsort                                  ,0xff2de0a8) //  6
 285 NHSTUB(rand                                   ,0xff0e3af8) //121
 286 NHSTUB(realloc                                ,0xff2de108) //115
 287 NHSTUB(reboot_fw_update                       ,0xff3eefb4) //106
 288 NHSTUB(set_control_event                      ,0xff0cf050) //111
 289 NHSTUB(srand                                  ,0xff0e3aec) //122
 290 NHSTUB(stat                                   ,0xff03548c) //109
 291 NHSTUB(strcat                                 ,0xff0e3b28) //  1
 292 NHSTUB(strchr                                 ,0xff002d70) //  1
 293 NHSTUB(strcmp                                 ,0xff00ba84) //120
 294 NHSTUB(strcpy                                 ,0xff00b970) //120
 295 NHSTUB(strftime                               ,0xff0e30e8) //113
 296 NHSTUB(strlen                                 ,0xff002dbc) //120
 297 NHSTUB(strncmp                                ,0xff002d24) //  1
 298 NHSTUB(strncpy                                ,0xff002ce8) //  1
 299 NHSTUB(strrchr                                ,0xff002d94) //  1
 300 NHSTUB(strtol                                 ,0xff03ab50) //101
 301 NHSTUB(strtolx                                ,0xff03a954) //109
 302    DEF(task_CaptSeq                           ,0xff0b82ec) //120
 303    DEF(task_DvlpSeqTask                       ,0xff240e34) //120
 304    DEF(task_ExpDrv                            ,0xff12a2f4) //120
 305    DEF(task_FileWrite                         ,0xff3c0680) //120
 306    DEF(task_InitFileModules                   ,0xff0834f8) //120
 307    DEF(task_MovieRecord                       ,0xff23b098) //120
 308    DEF(task_PhySw                             ,0xff031f60) //120
 309    DEF(task_TouchPanel                        ,0xff0974a4) //120
 310    DEF(hook_CreateTask                        ,0x0068ab8c) //105
 311 NHSTUB(time                                   ,0x00693c94) //119
 312 NHSTUB(vsprintf                               ,0xff00b820) //115
 313 NHSTUB(EngDrvRead                             ,0xff033330) //102
 314 NHSTUB(PTM_GetCurrentItem                     ,0xff0d0008) //105
 315 NHSTUB(DisableISDriveError                    ,0xff3ec508) //120
 316 NHSTUB(CancelHPTimer                          ,0xff0c7b70) //119
 317 NHSTUB(SetHPTimerAfterNow                     ,0xff0c7a68) //119
 318 NHSTUB(SS_MFOn                                ,0xff23d66c) //120
 319 NHSTUB(SS_MFOff                               ,0xff23d67c) //120
 320 NHSTUB(GetAdChValue                           ,0xff08eb50) //120
 321 NHSTUB(get_ptp_buf_size                       ,0xff1847c4) //122
 322 NHSTUB(get_ptp_file_buf                       ,0xff34c004) //121
 323 NHSTUB(SetVideoOutType                        ,0xff4b72c4) //109
 324 NHSTUB(GetVideoOutType                        ,0xff4b7214) //120

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