root/platform/a800/sub/100c/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 R47 (DRYOS version 2.3, release #0047)
   6 //   Firmware Ver GM1.00C   // Found @ 0xffc6ab10, "GM1.00C" @ 0xffc6ab1d
   7 //   Firmware build timestamp: Jun  8 2011 12:06:11
   8 //   Canon PowerShot A800
   9 
  10 // Values for makefile.inc
  11 //   PLATFORMOSVER = 47
  12 //   PLATFORMID = 12838 (0x3226) // Found @ 0xfffe0040
  13 //   MAXRAMADDR = 0x01ffffff
  14 //   MEMISOSTART = 0x0013a700
  15 //   KEYSYS = d4c                // Found @ 0xffff1a20
  16 //   NEED_ENCODED_DISKBOOT = 6   // Found @ 0xffff1a30
  17 //   ARAM_HEAP_START = 0x2ce000  // Found @ 0xffd23d54
  18 //   ARAM_HEAP_SIZE  = 0x32000   // Found @ 0xffd23d14
  19 
  20 // Detected address ranges:
  21 // ROM      0xffc00000 - 0xffffffff (4194304 bytes)
  22 // RAM data 0x00001900 - 0x0000b3c8 copied from 0xfff0e280 (  39624 bytes)
  23 
  24 // Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S'
  25 //    Name                                     Address      Rule  %  Comp to stubs_entry_2.S
  26 //NHSTUB(GetBatteryTemperature                ,0xffc45dec) //102        *** != 0x00000000
  27 // ERROR: rand is not found.                               //--- ---    *** != 0x00000000
  28 // ERROR: srand is not found.                              //--- ---    *** != 0x00000000
  29 
  30 // Check of modemap from 'platform/CAMERA/shooting.c':
  31 // Firmware modemap table found @ffe267b8 -> ffee9f18
  32 // No problems found with modemap table.
  33 
  34 // Values below can be overridden in 'stubs_min.S':
  35 DEF(physw_status                            ,0x0002f048) // Found @0xffc23c3c
  36 DEF(physw_run                               ,0x00001bf8) // Found @0xffc237fc
  37 DEF(physw_sleep_delay                       ,0x00001c00) // Found @0xffc237fc
  38 DEF(levent_table                            ,0xffeba314) // Found @0xffeba314
  39 DEF(FlashParamsTable                        ,0xffeea13c) // Found @0xffeea13c
  40 DEF(movie_status                            ,0x000056b8) // Found @0xffd18138
  41 DEF(full_screen_refresh                     ,0x00007810) // Found @0xffd88cc8
  42 DEF(canon_menu_active                       ,0x00002a98) // Found @0xffc6c4e8
  43 DEF(canon_shoot_menu_active                 ,0x000068a9) // Found @0xffd4c494
  44 DEF(playrec_mode                            ,0x000027e4) // Found @0xffc5f96c
  45 DEF(zoom_status                             ,0x0000a050) // Found @0xffe2a418
  46 DEF(some_flag_for_af_scan                   ,0x00005a70) // Found @0xffd1b170
  47 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  48 // each entry contains 3 int value(s), the first is the zoom focus length.
  49 // there are 7 entries in the table - set NUM_FL to 7
  50 DEF(focus_len_table                         ,0xfffe2ee8) // Found @0xfffe2ee8
  51 DEF(zoom_busy                               ,0x0000560c) // Found @0xffd14e64
  52 DEF(focus_busy                              ,0x0000551c) // Found @0xffd125c4
  53 DEF(recreview_hold                          ,0x000030d4) // Found @0xffc78de0
  54 DEF(viewport_buffers                        ,0xffeaaa18) // Found @0xffcbe40c
  55 DEF(active_viewport_buffer                  ,0x0000424c) // Found @0xffcbe284
  56 // Camera appears to have only 1 RAW buffer @ 0x10e59860 (Found @0xffe72fa8)
  57 DEF(fileio_semaphore                        ,0x00002534) // Found @0xffc51204
  58 DEF(exmem_alloc_table                       ,0x000341f8) // Found @0xffc660d8
  59 DEF(exmem_types_table                       ,0xfff0f25c) // Found @0x000028dc
  60 DEF_CONST(exmem_type_count                  ,0x00000014)
  61 DEF(imager_active                           ,0x00001e70) // Found @0xffc38b74 (0x1e6c + 4)
  62 DEF_CONST(uiprop_count                      ,0x00000080) // Found @0xffd3a55c
  63 
  64 // Values below go in 'lib.c':
  65 //void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xffc3fafc
  66 //void *vid_get_viewport_fb()      { return (void*)0x1068c2e0; }             // Found @0xffe6fb60
  67 DEF(viewport_fb_d                           ,0x000025dc) // Found 0x2588 (@0xffc543b8) + 0x54 (@0xffc543f0)
  68 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2588+0x54)); } // Found @0xffc543b8 & 0xffc543f0
  69 DEF(jpeg_count_str                          ,0x00088994) // Found @0xffd810bc
  70 //char *camera_jpeg_count_str()    { return (char*)0x00088994; }             // Found @0xffd810bc
  71 //int get_flash_params_count(void) { return 0xa0; }                          // Found @0xffd3af20
  72 
  73 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  74 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffe9db68, levent 0x90a
  75 //#define SD_READONLY_IDX     2
  76 //#define USB_MASK            0x01000000 // Found @0xffe9db88, levent 0x902
  77 //#define USB_IDX             2
  78 //#define BATTCOVER_FLAG      0x00040000 // Found @0xffe9db70, levent 0x905
  79 //#define BATTCOVER_IDX       2
  80 //#define ANALOG_AV_FLAG      0x00100000 // Found @0xffe9db20, levent 0x900 (non-inverted logic)
  81 //#define ANALOG_AV_IDX       0
  82 
  83 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  84 //static KeyMap keymap[] = {
  85 //    { 0, KEY_PLAYBACK        ,0x00020000 }, // Found @0xffe9db18, levent 0x601
  86 //    { 0, KEY_POWER           ,0x00800000 }, // Found @0xffe9db28, levent 0x600
  87 //    { 2, KEY_SHOOT_FULL      ,0x00000030 }, // Found @0xffe9db38, levent 0x01
  88 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000020 }, // Found @0xffe9db38, levent 0x01
  89 //    { 2, KEY_SHOOT_HALF      ,0x00000010 }, // Found @0xffe9db30, levent 0x00
  90 //    { 2, KEY_ZOOM_OUT        ,0x00000040 }, // Found @0xffe9db40, levent 0x03
  91 //    { 2, KEY_ZOOM_IN         ,0x00000080 }, // Found @0xffe9db48, levent 0x02
  92 //    { 2, KEY_SET             ,0x00000100 }, // Found @0xffe9db50, levent 0x08
  93 //    { 2, KEY_RIGHT           ,0x00000200 }, // Found @0xffe9db58, levent 0x07
  94 //    { 2, KEY_UP              ,0x02000000 }, // Found @0xffe9db90, levent 0x04 (uses inverted logic in physw_status)
  95 //    { 2, KEY_DOWN            ,0x04000000 }, // Found @0xffe9db98, levent 0x05 (uses inverted logic in physw_status)
  96 //    { 2, KEY_LEFT            ,0x08000000 }, // Found @0xffe9dba0, levent 0x06 (uses inverted logic in physw_status)
  97 //    { 2, KEY_MENU            ,0x20000000 }, // Found @0xffe9dbb0, levent 0x09 (uses inverted logic in physw_status)
  98 //    { 0, 0, 0 }
  99 //};
 100 
 101 // Values below go in 'platform_camera.h':
 102 //#define CAM_DRYOS         1
 103 //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
 104 //#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher
 105 //#define CAM_RAW_ROWPIX    3720 // Found @0xffcf3210
 106 //#define CAM_RAW_ROWS      2772 // Found @0xffcf321c
 107 //#undef  CAM_UNCACHED_BIT
 108 //#define CAM_UNCACHED_BIT  0x10000000 // Found @0xffc29904
 109 //#define CAM_DATE_FOLDER_NAMING 0x400 // Found @0xffdf2334 (pass as 3rd param to GetImageFolder)
 110 //#define PARAM_CAMERA_NAME 4 // Found @0xffee92ec
 111 
 112 // Known propcases
 113 // //      PROPCASE_AFSTEP 13
 114 // #define PROPCASE_FOCUS_STATE 18
 115 // #define PROPCASE_AV 23
 116 // #define PROPCASE_BV 34
 117 // //      PROPCASE_DELTA_DIGITALGAIN 77
 118 // #define PROPCASE_DELTA_SV 79
 119 // //      PROPCASE_DELTA_ND 80
 120 // #define PROPCASE_EV_CORRECTION_2 211
 121 // #define PROPCASE_ORIENTATION_SENSOR 223
 122 // #define PROPCASE_SV_MARKET 250
 123 // //      PROPCASE_SVFIX 251
 124 // #define PROPCASE_TV 266
 125 // Guessed propset: 4, 5
 126 
 127 // Misc stuff
 128 DEF(ctypes, 0xffe9d276)
 129 
 130 // EXMEM types:
 131 // EXMEM_RAMDISK        0
 132 // EXMEM_COM            1
 133 // EXMEM_FORMATTER      2
 134 // EXMEM_SHADING        3
 135 // EXMEM_FAMODE         4
 136 // EXMEM_FIRMUP         5
 137 // EXMEM_FIRMUP_VRAM    6
 138 // EXMEM_FIRMUP_INFLATE 7
 139 // EXMEM_DVLPWORK       8
 140 // EXMEM_EVF            9
 141 // EXMEM_SCRIPT         10
 142 // EXMEM_GPS            11
 143 // EXMEM_FILESTORE      12
 144 // EXMEM_MOVIE_REC      13
 145 // EXMEM_MOVIE_PLY      14
 146 // EXMEM_WIDE           15
 147 // EXMEM_NARROW         16
 148 // EXMEM_SUPER_NARROW   17
 149 // EXMEM_CRAW_REC       18
 150 // EXMEM_PCEVF          19
 151 
 152 // ISR flag: 0x1968, pointer to current task's control block: 0x1964
 153 // pointer to TCB area: 0x19f8, found @ 0xffc06f88
 154 
 155 // LED table init @ 0xffcdaf80
 156 // LED #1: 0xc0220088, offset 0x170
 157 // LED #2: 0xc0220080, offset 0x1d8
 158 
 159 // For capt_seq.c
 160 DEF(_nrflag,0x5a94) // Found @ ffd1d9c8 (0x5a8c) & ffd1da04 (+0x08)
 161 //static long *nrflag = (long*)(0x5a8c+0x08);  // Found @ ffd1d9c8 & ffd1da04
 162 //#define NR_AUTO (0)                          // have to explictly reset value back to 0 to enable auto
 163 
 164 // Stubs below matched 100%.
 165 //    Name                                     Address                Comp to stubs_entry_2.S
 166 NHSTUB(AllocateUncacheableMemory              ,0xffc298bc) //112
 167 NHSTUB(Close                                  ,0xffc26360) //120
 168 NHSTUB(CreateBinarySemaphore                  ,0xffc0efb4) //115
 169 NHSTUB(CreateTask                             ,0xffc0f290) //120
 170 NHSTUB(DebugAssert                            ,0xffc0f768) //107
 171 NHSTUB(DeleteDirectory_Fut                    ,0xffc25d5c) //116
 172 NHSTUB(DeleteFile_Fut                         ,0xffc25c78) //112
 173 NHSTUB(DoAELock                               ,0xffc27b6c) //120
 174 NHSTUB(DoAFLock                               ,0xffc27a24) //120
 175 NHSTUB(EnterToCompensationEVF                 ,0xffc27ad4) //104
 176 NHSTUB(ExecuteEventProcedure                  ,0xffc67d18) //104
 177 NHSTUB(ExitFromCompensationEVF                ,0xffc27b18) //104
 178 NHSTUB(ExitTask                               ,0xffc0f520) //120
 179 NHSTUB(ExpCtrlTool_StartContiAE               ,0xffc358f8) //104
 180 NHSTUB(ExpCtrlTool_StopContiAE                ,0xffc35a78) //104
 181 NHSTUB(Fclose_Fut                             ,0xffc25df4) //120
 182 NHSTUB(Feof_Fut                               ,0xffc25fe0) //  1
 183 NHSTUB(Fflush_Fut                             ,0xffc2601c) //  1
 184 NHSTUB(Fgets_Fut                              ,0xffc25f48) //  6
 185 NHSTUB(Fopen_Fut                              ,0xffc25db4) //120
 186 NHSTUB(Fread_Fut                              ,0xffc25ea0) //120
 187 NHSTUB(FreeUncacheableMemory                  ,0xffc298fc) //112
 188 NHSTUB(Fseek_Fut                              ,0xffc25f94) //120
 189 NHSTUB(Fwrite_Fut                             ,0xffc25ef4) //120
 190 NHSTUB(GetCCDTemperature                      ,0xffc45d78) //102
 191 NHSTUB(GetCurrentAvValue                      ,0xffd13ed4) //120
 192 NHSTUB(GetCurrentShutterSpeed                 ,0xffc86080) //120
 193 NHSTUB(GetDrive_ClusterSize                   ,0xffc52da4) //122
 194 NHSTUB(GetDrive_FreeClusters                  ,0xffc52dfc) //119
 195 NHSTUB(GetDrive_TotalClusters                 ,0xffc52dd4) //119
 196 NHSTUB(GetFocusLensSubjectDistance            ,0xffd1313c) //102
 197 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xffd13598) //  3
 198 NHSTUB(GetImageFolder                         ,0xffcfa088) //122
 199 NHSTUB(GetKbdState                            ,0xffc43e6c) //109
 200 NHSTUB(GetMemInfo                             ,0xffc0a8a0) //115
 201 NHSTUB(GetOpticalTemperature                  ,0xffc45e64) //120
 202 NHSTUB(GetParameterData                       ,0xffd3aee0) //101
 203 NHSTUB(GetPropertyCase                        ,0xffc6ba84) //102
 204 NHSTUB(GetSystemTime                          ,0xffe19408) //120
 205 NHSTUB(GetVRAMHPixelsSize                     ,0xffcbf898) //120
 206 NHSTUB(GetVRAMVPixelsSize                     ,0xffcbf8a4) //120
 207 NHSTUB(GetZoomLensCurrentPoint                ,0xffd151e8) //120
 208 NHSTUB(GetZoomLensCurrentPosition             ,0xffe09db4) //102
 209 NHSTUB(GiveSemaphore                          ,0xffc0f1f0) //120
 210 NHSTUB(IsStrobeChargeCompleted                ,0xffcaf2c8) //102
 211 NHSTUB(LEDDrive                               ,0xffc43538) //120
 212 NHSTUB(LocalTime                              ,0xffc65708) //115
 213 NHSTUB(LockMainPower                          ,0xffc70290) //120
 214 NHSTUB(MakeDirectory_Fut                      ,0xffc25cec) //116
 215 NHSTUB(MakeSDCardBootable                     ,0xffc53034) //105
 216 NHSTUB(MoveFocusLensToDistance                ,0xffe6befc) //102
 217 NHSTUB(MoveIrisWithAv                         ,0xffe15be0) //120
 218 NHSTUB(MoveZoomLensWithPoint                  ,0xffe16284) //120
 219 NHSTUB(Open                                   ,0xffc26298) //120
 220 NHSTUB(PB2Rec                                 ,0xffc72f50) //104
 221 NHSTUB(PT_MoveDigitalZoomToWide               ,0xffc58dec) //120
 222 NHSTUB(PT_MoveOpticalZoomAt                   ,0xffc58dc4) //120
 223 NHSTUB(PT_PlaySound                           ,0xffc61544) //122
 224 NHSTUB(PostLogicalEventForNotPowerType        ,0xffc6fabc) //120
 225 NHSTUB(PostLogicalEventToUI                   ,0xffc6fb08) //120
 226 NHSTUB(PutInNdFilter                          ,0xffe160cc) //102
 227 NHSTUB(PutOutNdFilter                         ,0xffe160f0) //102
 228 NHSTUB(Read                                   ,0xffc0b35c) //120
 229 NHSTUB(ReadFastDir                            ,0xffdff8d0) //  6
 230 NHSTUB(Rec2PB                                 ,0xffc72f90) //104
 231 NHSTUB(RefreshPhysicalScreen                  ,0xffc80098) //104
 232 NHSTUB(RenameFile_Fut                         ,0xffc25be4) //116
 233 NHSTUB(Restart                                ,0xffc2b0d8) //122
 234 NHSTUB(ScreenLock                             ,0xffc81278) //117
 235 NHSTUB(ScreenUnlock                           ,0xffc812dc) //117
 236 NHSTUB(SetAE_ShutterSpeed                     ,0xffe6ed78) //102
 237 NHSTUB(SetAutoShutdownTime                    ,0xffc70304) //120
 238 NHSTUB(SetCurrentCaptureModeType              ,0xffc76628) //120
 239 NHSTUB(SetFileAttributes                      ,0xffc26764) //  6
 240 NHSTUB(SetFileTimeStamp                       ,0xffc266ec) //  6
 241 NHSTUB(SetLogicalEventActive                  ,0xffc70008) //120
 242 NHSTUB(SetParameterData                       ,0xffd3ae50) //101
 243 NHSTUB(SetPropertyCase                        ,0xffc6b968) //102
 244 NHSTUB(SetScriptMode                          ,0xffc70058) //120
 245 NHSTUB(SleepTask                              ,0xffc29760) //120
 246 NHSTUB(TakeSemaphore                          ,0xffc0f120) //120
 247 NHSTUB(TurnOffBackLight                       ,0xffc7b568) //104
 248 NHSTUB(TurnOnBackLight                        ,0xffc7b550) //104
 249 NHSTUB(TurnOnDisplay                          ,0xffc3ff34) //120
 250 NHSTUB(TurnOffDisplay                         ,0xffc3ff44) //120
 251 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xffd2db9c) //120
 252 NHSTUB(UnlockAE                               ,0xffc27b90) //120
 253 NHSTUB(UnlockAF                               ,0xffc27a5c) //120
 254 NHSTUB(UnlockMainPower                        ,0xffc701e4) //120
 255 NHSTUB(UnsetZoomForMovie                      ,0xffd41454) //104
 256 NHSTUB(VbattGet                               ,0xffc22b4c) //120
 257 NHSTUB(Write                                  ,0xffc263b4) //120
 258 NHSTUB(WriteSDCard                            ,0xffd07b28) //108
 259 NHSTUB(_log                                   ,0xffe99ea0) //111
 260 NHSTUB(_log10                                 ,0xffe9a3e0) //112
 261 NHSTUB(_pow                                   ,0xffe9a558) //121
 262 NHSTUB(_sqrt                                  ,0xffe9c17c) //  6
 263 NHSTUB(add_ptp_handler                        ,0xffdd53ac) //121
 264 NHSTUB(apex2us                                ,0xffd8dfd0) //121
 265 NHSTUB(close                                  ,0xffc0b1b8) //109
 266 NHSTUB(err_init_task                          ,0xffc05fd8) //111
 267 NHSTUB(exmem_alloc                            ,0xffc666d0) //101
 268 NHSTUB(exmem_free                             ,0xffc66748) //101
 269 NHSTUB(free                                   ,0xffc04248) //112
 270 NHSTUB(get_nd_value                           ,0xffe078f0) //123
 271 NHSTUB(get_current_nd_value                   ,0xffe0787c) //122
 272 NHSTUB(kbd_p1_f                               ,0xffc23cb8) //109
 273 NHSTUB(kbd_p1_f_cont                          ,0xffc23cc4) //109
 274 NHSTUB(kbd_p2_f                               ,0xffc234cc) //109
 275 NHSTUB(kbd_read_keys                          ,0xffc23c3c) //109
 276 NHSTUB(kbd_read_keys_r2                       ,0xffc43878) //109
 277 NHSTUB(lseek                                  ,0xffc2657c) //120
 278 NHSTUB(malloc                                 ,0xffc041f0) //112
 279 NHSTUB(memcmp                                 ,0xffc114d8) //120
 280 NHSTUB(memcpy                                 ,0xffc2ee6c) //120
 281 NHSTUB(memset                                 ,0xffd8d00c) //120
 282 NHSTUB(mkdir                                  ,0xffc267fc) //109
 283 NHSTUB(mktime_ext                             ,0xffc82008) //  1
 284 NHSTUB(open                                   ,0xffc0b108) //109
 285 NHSTUB(OpenFastDir                            ,0xffdff77c) //  6
 286 NHSTUB(closedir                               ,0xffdff72c) //121
 287 NHSTUB(get_fstype                             ,0xffc52e1c) //122
 288 NHSTUB(qsort                                  ,0xffe527f0) //  6
 289 NHSTUB(realloc                                ,0xffd8d088) //115
 290 NHSTUB(reboot_fw_update                       ,0xffe01178) //106
 291 NHSTUB(set_control_event                      ,0xffc6fd2c) //111
 292 NHSTUB(stat                                   ,0xffc265c4) //109
 293 NHSTUB(strcat                                 ,0xffc817c0) //  1
 294 NHSTUB(strchr                                 ,0xffc040bc) //  1
 295 NHSTUB(strcmp                                 ,0xffc11494) //120
 296 NHSTUB(strcpy                                 ,0xffc1147c) //120
 297 NHSTUB(strftime                               ,0xffc81a08) //113
 298 NHSTUB(strlen                                 ,0xffc04108) //120
 299 NHSTUB(strncmp                                ,0xffc04070) //  1
 300 NHSTUB(strncpy                                ,0xffc04034) //  1
 301 NHSTUB(strrchr                                ,0xffc040e0) //  1
 302 NHSTUB(strtol                                 ,0xffc2f16c) //101
 303 NHSTUB(strtolx                                ,0xffc2ef70) //109
 304    DEF(task_CaptSeq                           ,0xffc5b06c) //120
 305    DEF(task_DvlpSeqTask                       ,0xffd1d3ac) //120
 306    DEF(task_ExpDrv                            ,0xffc98190) //120
 307    DEF(task_FileWrite                         ,0xffdfd780) //120
 308    DEF(task_InitFileModules                   ,0xffc7387c) //120
 309    DEF(task_MovieRecord                       ,0xffd18384) //120
 310    DEF(task_PhySw                             ,0xffc237f8) //120
 311 NHSTUB(time                                   ,0xffc65ce4) //109
 312 NHSTUB(vsprintf                               ,0xffc1143c) //115
 313 NHSTUB(EngDrvRead                             ,0xffc24b04) //102
 314 NHSTUB(PTM_GetCurrentItem                     ,0xffc70bfc) //105
 315 NHSTUB(CancelHPTimer                          ,0xffc67400) //119
 316 NHSTUB(SetHPTimerAfterNow                     ,0xffc672f8) //119
 317 NHSTUB(PT_MFOn                                ,0xffc58e7c) //120
 318 NHSTUB(PT_MFOff                               ,0xffc58e8c) //120
 319 NHSTUB(GetAdChValue                           ,0xffc412f4) //120
 320 NHSTUB(get_ptp_buf_size                       ,0xffcc2b88) //122
 321 NHSTUB(get_ptp_file_buf                       ,0xffdd6ed8) //121

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