root/platform/a495/sub/100f/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 R43 (DRYOS version 2.3, release #0043)
   6 //   Firmware Ver GM1.00F   // Found @ 0xffc685d8, "GM1.00F" @ 0xffc685e5
   7 //   Firmware build timestamp: Mar 26 2010 15:04:27
   8 //   Canon PowerShot A495
   9 
  10 // Values for makefile.inc
  11 //   DIGIC = 30# DIGIC III
  12 //   PLATFORMOSVER = 43
  13 //   PLATFORMID = 12783# (0x31ef) Found @ 0xfffe0130
  14 //   MAXRAMADDR = 0x01ffffff
  15 //   MEMISOSTART = 0x00128e90
  16 //   KEYSYS = d4a# Found @ 0xffff1a2c
  17 //   NEED_ENCODED_DISKBOOT = 4# Found @ 0xffff1a3c
  18 //   ARAM_HEAP_START = 0x2ce000# Found @ 0xffd1834c
  19 //   ARAM_HEAP_SIZE  = 0x32000# Found @ 0xffd1830c
  20 
  21 // Detected address ranges:
  22 // ROM      0xffc00000 - 0xffffffff (4194304 bytes)
  23 // RAM data 0x00001900 - 0x0000aba4 copied from 0xffeeb810 (  37540 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(SetScriptMode                        ,0xffc6cc58) //120        *** != 0xffc00f70
  28 NHSTUB(kbd_pwr_off                            ,0xffc435e4) //  2 64%
  29 
  30 // Check of modemap from 'platform/CAMERA/shooting.c':
  31 // Firmware modemap table found @ffe0aa64 -> ffecf6a0
  32 // No problems found with modemap table.
  33 
  34 // Values below can be overridden in 'stubs_min.S':
  35 DEF(physw_status                            ,0x0002e7f4) // Found @0xffc23b2c
  36 DEF(physw_run                               ,0x00001bf0) // Found @0xffc23790
  37 DEF(physw_sleep_delay                       ,0x00001bf8) // Found @0xffc23790
  38 DEF(levent_table                            ,0xffea2d14) // Found @0xffea2d14
  39 DEF(FlashParamsTable                        ,0xffecf894) // Found @0xffecf894
  40 DEF(movie_status                            ,0x000054a0) // Found @0xffd0c7d8
  41 DEF(full_screen_refresh                     ,0x00007370) // Found @0xffd7aa20
  42 DEF(canon_menu_active                       ,0x00002a3c) // Found @0xffc6a11c
  43 DEF(canon_shoot_menu_active                 ,0x000065b5) // Found @0xffd40144
  44 DEF(playrec_mode                            ,0x00002798) // Found @0xffc5d900
  45 DEF(zoom_status                             ,0x00009648) // Found @0xffe0d940
  46 DEF(some_flag_for_af_scan                   ,0x00005848) // Found @0xffd0f144
  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                         ,0xfffe2990) // Found @0xfffe2990
  51 DEF(zoom_busy                               ,0x00005424) // Found @0xffd09a08
  52 DEF(focus_busy                              ,0x00005334) // Found @0xffd07040
  53 //DEF(recreview_hold                          ,0x00003034) // Found @0xffc75924, ** != ** stubs_min = 0x0000630a (0x6308+2)
  54 DEF(viewport_buffers                        ,0xffe8bd3c) // Found @0xffcb586c
  55 DEF(active_viewport_buffer                  ,0x00004110) // Found @0xffcb56b4
  56 // Camera appears to have only 1 RAW buffer @ 0x10e52420 (Found @0xffe59d04)
  57 DEF(fileio_semaphore                        ,0x000024f0) // Found @0xffc4f7bc
  58 DEF(exmem_alloc_table                       ,0x00033780) // Found @0xffc63c24
  59 DEF(exmem_types_table                       ,0xffeec79c) // Found @0x0000288c
  60 DEF_CONST(exmem_type_count                  ,0x00000012)
  61 DEF(imager_active                           ,0x00001e5c) // Found @0xffc381d8 (0x1e58 + 4)
  62 DEF_CONST(uiprop_count                      ,0x00000074) // Found @0xffd2e85c
  63 
  64 // Values below go in 'lib.c':
  65 //void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xffc3f020
  66 //void *vid_get_viewport_fb()      { return (void*)0x10648cc0; }             // Found @0xffe569d8
  67 DEF(viewport_fb_d                           ,0x00002594) // Found 0x2540 (@0xffc52918) + 0x54 (@0xffc52950)
  68 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2540+0x54)); } // Found @0xffc52918 & 0xffc52950
  69 DEF(jpeg_count_str                          ,0x0007486c) // Found @0xffd72050
  70 //char *camera_jpeg_count_str()    { return (char*)0x0007486c; }             // Found @0xffd72050
  71 //int get_flash_params_count(void) { return 0x94; }                          // Found @0xffd2f2a0
  72 
  73 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  74 //#define SD_READONLY_FLAG    0x00040000 // Found @0xffe84f40, levent 0x90a
  75 //#define SD_READONLY_IDX     2
  76 //#define USB_MASK            0x00080000 // Found @0xffe84f4c, levent 0x902
  77 //#define USB_IDX             2
  78 //#define BATTCOVER_FLAG      0x00010000 // Found @0xffe84f28, levent 0x905
  79 //#define BATTCOVER_IDX       2
  80 //#define ANALOG_AV_FLAG      0x00100000 // Found @0xffe84ec8, 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 @0xffe84ebc, levent 0x601
  86 //    { 0, KEY_POWER           ,0x00800000 }, // Found @0xffe84ed4, levent 0x600
  87 //    { 2, KEY_RIGHT           ,0x00000004 }, // Found @0xffe84ee0, levent 0x07
  88 //    { 2, KEY_SHOOT_FULL      ,0x00000030 }, // Found @0xffe84ef8, levent 0x01
  89 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000020 }, // Found @0xffe84ef8, levent 0x01
  90 //    { 2, KEY_SHOOT_HALF      ,0x00000010 }, // Found @0xffe84eec, levent 0x00
  91 //    { 2, KEY_ZOOM_OUT        ,0x00000040 }, // Found @0xffe84f04, levent 0x03
  92 //    { 2, KEY_ZOOM_IN         ,0x00000080 }, // Found @0xffe84f10, levent 0x02
  93 //    { 2, KEY_SET             ,0x00000100 }, // Found @0xffe84f1c, levent 0x08
  94 //    { 2, KEY_UP              ,0x00100000 }, // Found @0xffe84f58, levent 0x04 (uses inverted logic in physw_status)
  95 //    { 2, KEY_DOWN            ,0x00200000 }, // Found @0xffe84f64, levent 0x05 (uses inverted logic in physw_status)
  96 //    { 2, KEY_LEFT            ,0x00400000 }, // Found @0xffe84f70, levent 0x06 (uses inverted logic in physw_status)
  97 //    { 2, KEY_MENU            ,0x01000000 }, // Found @0xffe84f88, 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_RAW_ROWPIX    3720 // Found @0xffcea4b8
 105 //#define CAM_RAW_ROWS      2772 // Found @0xffcea4c4
 106 //#undef  CAM_UNCACHED_BIT
 107 //#define CAM_UNCACHED_BIT  0x10000000 // Found @0xffc2931c
 108 //#define CAM_DATE_FOLDER_NAMING 0x100 // Found @0xffddb700 (pass as 3rd param to GetImageFolder)
 109 //#define PARAM_CAMERA_NAME 4 // Found @0xffed1850
 110 
 111 // Below goes in 'filewrite.c' or 'platform_camera.h':
 112 //#define MAX_CHUNKS_FOR_FWT 4 // Found @0xffde6738
 113 
 114 // Known propcases
 115 // //      PROPCASE_AFSTEP 13
 116 // #define PROPCASE_FOCUS_STATE 18
 117 // #define PROPCASE_AV 23
 118 // #define PROPCASE_BV 34
 119 // //      PROPCASE_DELTA_DIGITALGAIN 77
 120 // #define PROPCASE_DELTA_SV 79
 121 // //      PROPCASE_DELTA_ND 80
 122 // #define PROPCASE_EV_CORRECTION_2 209
 123 // #define PROPCASE_ORIENTATION_SENSOR 221
 124 // #define PROPCASE_SV_MARKET 248
 125 // //      PROPCASE_SVFIX 249
 126 // #define PROPCASE_TV 264
 127 // Guessed propset: 3
 128 
 129 // Misc stuff
 130 DEF(ctypes, 0xffe847da)
 131 
 132 // EXMEM types:
 133 // EXMEM_RAMDISK        0
 134 // EXMEM_COM            1
 135 // EXMEM_FORMATTER      2
 136 // EXMEM_SHADING        3
 137 // EXMEM_FAMODE         4
 138 // EXMEM_FIRMUP         5
 139 // EXMEM_FIRMUP_VRAM    6
 140 // EXMEM_FIRMUP_INFLATE 7
 141 // EXMEM_DVLPWORK       8
 142 // EXMEM_EVF            9
 143 // EXMEM_SCRIPT         10
 144 // EXMEM_FILESTORE      11
 145 // EXMEM_MOVIE_REC      12
 146 // EXMEM_MOVIE_PLY      13
 147 // EXMEM_WIDE           14
 148 // EXMEM_NARROW         15
 149 // EXMEM_CRAW_REC       16
 150 // EXMEM_PCEVF          17
 151 
 152 // ISR flag: 0x1964, pointer to current task's control block: 0x1960
 153 // pointer to TCB area: 0x19f4, found @ 0xffc06f94
 154 
 155 // LED table init @ 0xffcd29d4
 156 // LED #1: 0xc0220088, offset 0x170
 157 // LED #2: 0xc0220080, offset 0x1d8
 158 
 159 // For capt_seq.c
 160 DEF(_nrflag,0x5828) // Found @ ffd10f5c (0x5830) & ffd10f7c (-0x08)
 161 //static long *nrflag = (long*)(0x5830-0x08);  // Found @ ffd10f5c & ffd10f78
 162 
 163 // Stubs below matched 100%.
 164 //    Name                                     Address                Comp to stubs_entry_2.S
 165 NHSTUB(AllocateUncacheableMemory              ,0xffc292d8) //112
 166 NHSTUB(Close                                  ,0xffc26108) //120
 167 NHSTUB(CreateBinarySemaphore                  ,0xffc0eec8) //115
 168 NHSTUB(CreateTask                             ,0xffc0f1a8) //120
 169 NHSTUB(DebugAssert                            ,0xffc0f680) //107
 170 NHSTUB(DeleteDirectory_Fut                    ,0xffc25b64) //116
 171 NHSTUB(DeleteFile_Fut                         ,0xffc25a80) //112
 172 NHSTUB(DoAELock                               ,0xffc2769c) //120
 173 NHSTUB(DoAFLock                               ,0xffc27554) //120
 174 NHSTUB(EnterToCompensationEVF                 ,0xffc27604) //104
 175 NHSTUB(ExecuteEventProcedure                  ,0xffc65870) //104
 176 NHSTUB(ExitFromCompensationEVF                ,0xffc27648) //104
 177 NHSTUB(ExitTask                               ,0xffc0f438) //120
 178 NHSTUB(ExpCtrlTool_StartContiAE               ,0xffc34ce4) //104
 179 NHSTUB(ExpCtrlTool_StopContiAE                ,0xffc34dbc) //104
 180 NHSTUB(Fclose_Fut                             ,0xffc25bfc) //120
 181 NHSTUB(Feof_Fut                               ,0xffc25de8) //  1
 182 NHSTUB(Fflush_Fut                             ,0xffc25e24) //  1
 183 NHSTUB(Fgets_Fut                              ,0xffc25d50) //  1
 184 NHSTUB(Fopen_Fut                              ,0xffc25bbc) //120
 185 NHSTUB(Fread_Fut                              ,0xffc25ca8) //120
 186 NHSTUB(FreeUncacheableMemory                  ,0xffc29318) //112
 187 NHSTUB(Fseek_Fut                              ,0xffc25d9c) //120
 188 NHSTUB(Fwrite_Fut                             ,0xffc25cfc) //120
 189 NHSTUB(GetBatteryTemperature                  ,0xffc4561c) //102
 190 NHSTUB(GetCCDTemperature                      ,0xffc455a8) //102
 191 NHSTUB(GetCurrentAvValue                      ,0xffd088c0) //120
 192 NHSTUB(GetCurrentShutterSpeed                 ,0xffc80d98) //120
 193 NHSTUB(GetDrive_ClusterSize                   ,0xffc512c0) //122
 194 NHSTUB(GetDrive_FreeClusters                  ,0xffc51320) //  4
 195 NHSTUB(GetDrive_TotalClusters                 ,0xffc512f4) //  3
 196 NHSTUB(GetFocusLensSubjectDistance            ,0xffd07bb8) //102
 197 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xffd08010) //  3
 198 NHSTUB(GetImageFolder                         ,0xffcf1478) //122
 199 NHSTUB(GetKbdState                            ,0xffc435cc) //109
 200 NHSTUB(GetMemInfo                             ,0xffc0a7f8) //115
 201 NHSTUB(GetOpticalTemperature                  ,0xffc45694) //120
 202 NHSTUB(GetParameterData                       ,0xffd2f260) //101
 203 NHSTUB(GetPropertyCase                        ,0xffc6957c) //102
 204 NHSTUB(GetSystemTime                          ,0xffdfd1c4) //120
 205 NHSTUB(GetVRAMHPixelsSize                     ,0xffcb6ca4) //120
 206 NHSTUB(GetVRAMVPixelsSize                     ,0xffcb6cb0) //120
 207 NHSTUB(GetZoomLensCurrentPoint                ,0xffd09d80) //120
 208 NHSTUB(GetZoomLensCurrentPosition             ,0xffdf5210) //102
 209 NHSTUB(GiveSemaphore                          ,0xffc0f104) //120
 210 NHSTUB(IsStrobeChargeCompleted                ,0xffca72b0) //102
 211 NHSTUB(LEDDrive                               ,0xffc42bc4) //120
 212 NHSTUB(LocalTime                              ,0xffc63580) //115
 213 NHSTUB(LockMainPower                          ,0xffc6ce90) //120
 214 NHSTUB(MakeDirectory_Fut                      ,0xffc25af4) //116
 215 NHSTUB(MoveFocusLensToDistance                ,0xffe53458) //102
 216 NHSTUB(MoveIrisWithAv                         ,0xffdfa8b4) //120
 217 NHSTUB(MoveZoomLensWithPoint                  ,0xffdfae44) //120
 218 NHSTUB(MoveOpticalZoomAt                      ,0xffc27144) //109
 219 NHSTUB(Open                                   ,0xffc2609c) //120
 220 NHSTUB(PB2Rec                                 ,0xffc6fae4) //104
 221 NHSTUB(PT_MoveDigitalZoomToWide               ,0xffc571c0) //120
 222 NHSTUB(PT_MoveOpticalZoomAt                   ,0xffc57198) //120
 223 NHSTUB(PT_PlaySound                           ,0xffc5f400) //122
 224 NHSTUB(PostLogicalEventForNotPowerType        ,0xffc6c6c0) //120
 225 NHSTUB(PostLogicalEventToUI                   ,0xffc6c70c) //120
 226 NHSTUB(PutInNdFilter                          ,0xffdfaca8) //102
 227 NHSTUB(PutOutNdFilter                         ,0xffdfaccc) //102
 228 NHSTUB(Read                                   ,0xffc0b308) //120
 229 NHSTUB(ReadFastDir                            ,0xffdebbf8) //  4
 230 NHSTUB(Rec2PB                                 ,0xffc6fb24) //104
 231 NHSTUB(RefreshPhysicalScreen                  ,0xffd7b3fc) //104
 232 NHSTUB(RenameFile_Fut                         ,0xffc259ec) //116
 233 NHSTUB(Restart                                ,0xffc2aab0) //122
 234 NHSTUB(ScreenLock                             ,0xffd7c5a8) //117
 235 NHSTUB(ScreenUnlock                           ,0xffd7c5ec) //117
 236 NHSTUB(SetAE_ShutterSpeed                     ,0xffe55be8) //102
 237 NHSTUB(SetAutoShutdownTime                    ,0xffc6cf04) //120
 238 NHSTUB(SetCurrentCaptureModeType              ,0xffc7323c) //120
 239 NHSTUB(SetDate                                ,0xffe57624) //120
 240 NHSTUB(SetFileAttributes                      ,0xffc26400) //  3
 241 NHSTUB(SetFileTimeStamp                       ,0xffc263a4) //  4
 242 NHSTUB(SetLogicalEventActive                  ,0xffc6cc08) //120
 243 NHSTUB(SetParameterData                       ,0xffd2f1d0) //101
 244 NHSTUB(SetPropertyCase                        ,0xffc6944c) //102
 245 NHSTUB(SleepTask                              ,0xffc2915c) //120
 246 NHSTUB(TakeSemaphore                          ,0xffc0f034) //120
 247 NHSTUB(TurnOffBackLight                       ,0xffc77f9c) //104
 248 NHSTUB(TurnOnBackLight                        ,0xffc77f84) //104
 249 NHSTUB(TurnOnDisplay                          ,0xffc3f2fc) //120
 250 NHSTUB(TurnOffDisplay                         ,0xffc3f328) //120
 251 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xffd1f9d4) //120
 252 NHSTUB(UnlockAE                               ,0xffc276c0) //120
 253 NHSTUB(UnlockAF                               ,0xffc2758c) //120
 254 NHSTUB(UnlockMainPower                        ,0xffc6cde4) //120
 255 NHSTUB(UnsetZoomForMovie                      ,0xffd3594c) //104
 256 NHSTUB(UpdateMBROnFlash                       ,0xffc51140) //105
 257 NHSTUB(VbattGet                               ,0xffc22be4) //120
 258 NHSTUB(Write                                  ,0xffc26198) //120
 259 NHSTUB(WriteSDCard                            ,0xffcfcbcc) //108
 260 NHSTUB(_log                                   ,0xffe8233c) //111
 261 NHSTUB(_log10                                 ,0xffe81280) //112
 262 NHSTUB(_pow                                   ,0xffe813f0) //121
 263 NHSTUB(_sqrt                                  ,0xffe836a4) //  1
 264 NHSTUB(add_ptp_handler                        ,0xffdbeb58) //121
 265 NHSTUB(apex2us                                ,0xffd7d8f8) //121
 266 NHSTUB(close                                  ,0xffc0b120) //109
 267 NHSTUB(err_init_task                          ,0xffc05f50) //111
 268 NHSTUB(exmem_alloc                            ,0xffc64220) //103
 269 NHSTUB(exmem_ualloc                           ,0xffc64074) //103
 270 NHSTUB(exmem_ufree                            ,0xffc641c0) //103
 271 NHSTUB(free                                   ,0xffc04160) //112
 272 NHSTUB(get_nd_value                           ,0xffdf3538) //123
 273 NHSTUB(get_current_nd_value                   ,0xffdf34f4) //122
 274 NHSTUB(kbd_p1_f                               ,0xffc23ba4) //109
 275 NHSTUB(kbd_p1_f_cont                          ,0xffc23bb0) //109
 276 NHSTUB(kbd_p2_f                               ,0xffc2345c) //109
 277 NHSTUB(kbd_read_keys                          ,0xffc23b2c) //109
 278 NHSTUB(kbd_read_keys_r2                       ,0xffc42fb0) //109
 279 NHSTUB(lseek                                  ,0xffc26224) //120
 280 NHSTUB(malloc                                 ,0xffc04104) //112
 281 NHSTUB(memcmp                                 ,0xffc11318) //120
 282 NHSTUB(memcpy                                 ,0xffc2e860) //120
 283 NHSTUB(memset                                 ,0xffd7c930) //120
 284 NHSTUB(mkdir                                  ,0xffc265a4) //109
 285 NHSTUB(mktime_ext                             ,0xffc7cdbc) //  1
 286 NHSTUB(open                                   ,0xffc0b070) //109
 287 NHSTUB(OpenFastDir                            ,0xffdebaa4) //  4
 288 NHSTUB(closedir                               ,0xffdeba54) //121
 289 NHSTUB(get_fstype                             ,0xffc51344) //122
 290 NHSTUB(qsort                                  ,0xffe3c194) //  4
 291 NHSTUB(rand                                   ,0xffc11420) //121
 292 NHSTUB(realloc                                ,0xffd7c9ac) //115
 293 NHSTUB(reboot_fw_update                       ,0xffded46c) //106
 294 NHSTUB(set_control_event                      ,0xffc6c928) //111
 295 NHSTUB(srand                                  ,0xffc11414) //122
 296 NHSTUB(stat                                   ,0xffc2626c) //109
 297 NHSTUB(strcat                                 ,0xffc7c578) //  1
 298 NHSTUB(strchr                                 ,0xffc03fe8) //  1
 299 NHSTUB(strcmp                                 ,0xffc112d4) //120
 300 NHSTUB(strcpy                                 ,0xffc112bc) //120
 301 NHSTUB(strftime                               ,0xffc7c7c4) //113
 302 NHSTUB(strlen                                 ,0xffc04034) //120
 303 NHSTUB(strncmp                                ,0xffc03f9c) //  1
 304 NHSTUB(strncpy                                ,0xffc03f60) //  1
 305 NHSTUB(strrchr                                ,0xffc0400c) //  1
 306 NHSTUB(strtol                                 ,0xffc2eb40) //101
 307 NHSTUB(strtolx                                ,0xffc2e944) //109
 308    DEF(task_CaptSeq                           ,0xffc59274) //120
 309    DEF(task_DvlpSeqTask                       ,0xffd11b88) //120
 310    DEF(task_ExpDrv                            ,0xffc91654) //120
 311    DEF(task_FileWrite                         ,0xffde66d0) //120
 312    DEF(task_InitFileModules                   ,0xffc705ac) //120
 313    DEF(task_MovieRecord                       ,0xffd0ca2c) //120
 314    DEF(task_PhySw                             ,0xffc2378c) //120
 315 NHSTUB(time                                   ,0xffc63434) //109
 316 NHSTUB(vsprintf                               ,0xffc11280) //115
 317 NHSTUB(EngDrvRead                             ,0xffc249f8) //102
 318 NHSTUB(PTM_GetCurrentItem                     ,0xffc6d8c4) //105
 319 NHSTUB(CancelHPTimer                          ,0xffc64f58) //119
 320 NHSTUB(SetHPTimerAfterNow                     ,0xffc64e50) //119
 321 NHSTUB(PT_MFOn                                ,0xffc57250) //120
 322 NHSTUB(PT_MFOff                               ,0xffc57260) //120
 323 NHSTUB(GetAdChValue                           ,0xffc409ac) //120
 324 NHSTUB(get_ptp_buf_size                       ,0xffcb9b5c) //122
 325 NHSTUB(get_ptp_file_buf                       ,0xffdc04f0) //121
 326 NHSTUB(SetVideoOutType                        ,0xffe563d4) //109
 327 NHSTUB(GetVideoOutType                        ,0xffe56338) //120

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