root/platform/a495/sub/100d/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.00D   // Found @ 0xffc68588, "GM1.00D" @ 0xffc68595
   7 //   Firmware build timestamp: Dec  4 2009 15:18:05
   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 @ 0xffd1829c
  19 //   ARAM_HEAP_SIZE  = 0x32000# Found @ 0xffd1825c
  20 
  21 // Detected address ranges:
  22 // ROM      0xffc00000 - 0xffffffff (4194304 bytes)
  23 // RAM data 0x00001900 - 0x0000aba4 copied from 0xffeeb7f8 (  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                        ,0xffc6cc08) //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 @ffe0aa60 -> ffecf688
  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                            ,0xffea2d00) // Found @0xffea2d00
  39 DEF(FlashParamsTable                        ,0xffecf87c) // Found @0xffecf87c
  40 DEF(movie_status                            ,0x000054a0) // Found @0xffd0c728
  41 DEF(full_screen_refresh                     ,0x00007370) // Found @0xffd7a970
  42 DEF(canon_menu_active                       ,0x00002a3c) // Found @0xffc6a0cc
  43 DEF(canon_shoot_menu_active                 ,0x000065b5) // Found @0xffd40094
  44 DEF(playrec_mode                            ,0x00002798) // Found @0xffc5d8b0
  45 DEF(zoom_status                             ,0x00009648) // Found @0xffe0d93c
  46 DEF(some_flag_for_af_scan                   ,0x00005848) // Found @0xffd0f094
  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 @0xffd09958
  52 DEF(focus_busy                              ,0x00005334) // Found @0xffd06f90
  53 //DEF(recreview_hold                          ,0x00003034) // Found @0xffc758d4, ** != ** stubs_min = 0x0000630a (0x6308+2)
  54 DEF(viewport_buffers                        ,0xffe8bd28) // Found @0xffcb581c
  55 DEF(active_viewport_buffer                  ,0x00004110) // Found @0xffcb5664
  56 // Camera appears to have only 1 RAW buffer @ 0x10e52420 (Found @0xffe59d00)
  57 DEF(fileio_semaphore                        ,0x000024f0) // Found @0xffc4f7bc
  58 DEF(exmem_alloc_table                       ,0x00033780) // Found @0xffc63bd4
  59 DEF(exmem_types_table                       ,0xffeec784) // 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 @0xffd2e7ac
  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 @0xffe569d4
  67 DEF(viewport_fb_d                           ,0x00002594) // Found 0x2540 (@0xffc528c8) + 0x54 (@0xffc52900)
  68 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2540+0x54)); } // Found @0xffc528c8 & 0xffc52900
  69 DEF(jpeg_count_str                          ,0x0007486c) // Found @0xffd71fa0
  70 //char *camera_jpeg_count_str()    { return (char*)0x0007486c; }             // Found @0xffd71fa0
  71 //int get_flash_params_count(void) { return 0x94; }                          // Found @0xffd2f1f0
  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 @0xffe84f2c, levent 0x90a
  75 //#define SD_READONLY_IDX     2
  76 //#define USB_MASK            0x00080000 // Found @0xffe84f38, levent 0x902
  77 //#define USB_IDX             2
  78 //#define BATTCOVER_FLAG      0x00010000 // Found @0xffe84f14, levent 0x905
  79 //#define BATTCOVER_IDX       2
  80 //#define ANALOG_AV_FLAG      0x00100000 // Found @0xffe84eb4, 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 @0xffe84ea8, levent 0x601
  86 //    { 0, KEY_POWER           ,0x00800000 }, // Found @0xffe84ec0, levent 0x600
  87 //    { 2, KEY_RIGHT           ,0x00000004 }, // Found @0xffe84ecc, levent 0x07
  88 //    { 2, KEY_SHOOT_FULL      ,0x00000030 }, // Found @0xffe84ee4, levent 0x01
  89 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000020 }, // Found @0xffe84ee4, levent 0x01
  90 //    { 2, KEY_SHOOT_HALF      ,0x00000010 }, // Found @0xffe84ed8, levent 0x00
  91 //    { 2, KEY_ZOOM_OUT        ,0x00000040 }, // Found @0xffe84ef0, levent 0x03
  92 //    { 2, KEY_ZOOM_IN         ,0x00000080 }, // Found @0xffe84efc, levent 0x02
  93 //    { 2, KEY_SET             ,0x00000100 }, // Found @0xffe84f08, levent 0x08
  94 //    { 2, KEY_UP              ,0x00100000 }, // Found @0xffe84f44, levent 0x04 (uses inverted logic in physw_status)
  95 //    { 2, KEY_DOWN            ,0x00200000 }, // Found @0xffe84f50, levent 0x05 (uses inverted logic in physw_status)
  96 //    { 2, KEY_LEFT            ,0x00400000 }, // Found @0xffe84f5c, levent 0x06 (uses inverted logic in physw_status)
  97 //    { 2, KEY_MENU            ,0x01000000 }, // Found @0xffe84f74, 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 @0xffcea468
 105 //#define CAM_RAW_ROWS      2772 // Found @0xffcea474
 106 //#undef  CAM_UNCACHED_BIT
 107 //#define CAM_UNCACHED_BIT  0x10000000 // Found @0xffc2931c
 108 //#define CAM_DATE_FOLDER_NAMING 0x100 // Found @0xffddb6fc (pass as 3rd param to GetImageFolder)
 109 //#define PARAM_CAMERA_NAME 4 // Found @0xffed1838
 110 
 111 // Known propcases
 112 // //      PROPCASE_AFSTEP 13
 113 // #define PROPCASE_FOCUS_STATE 18
 114 // #define PROPCASE_AV 23
 115 // #define PROPCASE_BV 34
 116 // //      PROPCASE_DELTA_DIGITALGAIN 77
 117 // #define PROPCASE_DELTA_SV 79
 118 // //      PROPCASE_DELTA_ND 80
 119 // #define PROPCASE_EV_CORRECTION_2 209
 120 // #define PROPCASE_ORIENTATION_SENSOR 221
 121 // #define PROPCASE_SV_MARKET 248
 122 // //      PROPCASE_SVFIX 249
 123 // #define PROPCASE_TV 264
 124 // Guessed propset: 3
 125 
 126 // Misc stuff
 127 DEF(ctypes, 0xffe847c6)
 128 
 129 // EXMEM types:
 130 // EXMEM_RAMDISK        0
 131 // EXMEM_COM            1
 132 // EXMEM_FORMATTER      2
 133 // EXMEM_SHADING        3
 134 // EXMEM_FAMODE         4
 135 // EXMEM_FIRMUP         5
 136 // EXMEM_FIRMUP_VRAM    6
 137 // EXMEM_FIRMUP_INFLATE 7
 138 // EXMEM_DVLPWORK       8
 139 // EXMEM_EVF            9
 140 // EXMEM_SCRIPT         10
 141 // EXMEM_FILESTORE      11
 142 // EXMEM_MOVIE_REC      12
 143 // EXMEM_MOVIE_PLY      13
 144 // EXMEM_WIDE           14
 145 // EXMEM_NARROW         15
 146 // EXMEM_CRAW_REC       16
 147 // EXMEM_PCEVF          17
 148 
 149 // ISR flag: 0x1964, pointer to current task's control block: 0x1960
 150 // pointer to TCB area: 0x19f4, found @ 0xffc06f94
 151 
 152 // LED table init @ 0xffcd2984
 153 // LED #1: 0xc0220088, offset 0x170
 154 // LED #2: 0xc0220080, offset 0x1d8
 155 
 156 // For capt_seq.c
 157 DEF(_nrflag,0x5828) // Found @ ffd10eac (0x5830) & ffd10ecc (-0x08)
 158 //static long *nrflag = (long*)(0x5830-0x08);  // Found @ ffd10eac & ffd10ec8
 159 
 160 // Stubs below matched 100%.
 161 //    Name                                     Address                Comp to stubs_entry_2.S
 162 NHSTUB(AllocateUncacheableMemory              ,0xffc292d8) //112
 163 NHSTUB(Close                                  ,0xffc26108) //120
 164 NHSTUB(CreateBinarySemaphore                  ,0xffc0eec8) //115
 165 NHSTUB(CreateTask                             ,0xffc0f1a8) //120
 166 NHSTUB(DebugAssert                            ,0xffc0f680) //107
 167 NHSTUB(DeleteDirectory_Fut                    ,0xffc25b64) //116
 168 NHSTUB(DeleteFile_Fut                         ,0xffc25a80) //112
 169 NHSTUB(DoAELock                               ,0xffc2769c) //120
 170 NHSTUB(DoAFLock                               ,0xffc27554) //120
 171 NHSTUB(EnterToCompensationEVF                 ,0xffc27604) //104
 172 NHSTUB(ExecuteEventProcedure                  ,0xffc65820) //104
 173 NHSTUB(ExitFromCompensationEVF                ,0xffc27648) //104
 174 NHSTUB(ExitTask                               ,0xffc0f438) //120
 175 NHSTUB(ExpCtrlTool_StartContiAE               ,0xffc34ce4) //104
 176 NHSTUB(ExpCtrlTool_StopContiAE                ,0xffc34dbc) //104
 177 NHSTUB(Fclose_Fut                             ,0xffc25bfc) //120
 178 NHSTUB(Feof_Fut                               ,0xffc25de8) //  1
 179 NHSTUB(Fflush_Fut                             ,0xffc25e24) //  1
 180 NHSTUB(Fgets_Fut                              ,0xffc25d50) //  1
 181 NHSTUB(Fopen_Fut                              ,0xffc25bbc) //120
 182 NHSTUB(Fread_Fut                              ,0xffc25ca8) //120
 183 NHSTUB(FreeUncacheableMemory                  ,0xffc29318) //112
 184 NHSTUB(Fseek_Fut                              ,0xffc25d9c) //120
 185 NHSTUB(Fwrite_Fut                             ,0xffc25cfc) //120
 186 NHSTUB(GetBatteryTemperature                  ,0xffc4561c) //102
 187 NHSTUB(GetCCDTemperature                      ,0xffc455a8) //102
 188 NHSTUB(GetCurrentAvValue                      ,0xffd08810) //120
 189 NHSTUB(GetCurrentShutterSpeed                 ,0xffc80d48) //120
 190 NHSTUB(GetDrive_ClusterSize                   ,0xffc512c0) //122
 191 NHSTUB(GetDrive_FreeClusters                  ,0xffc51320) //  4
 192 NHSTUB(GetDrive_TotalClusters                 ,0xffc512f4) //  3
 193 NHSTUB(GetFocusLensSubjectDistance            ,0xffd07b08) //102
 194 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xffd07f60) //  3
 195 NHSTUB(GetImageFolder                         ,0xffcf1428) //122
 196 NHSTUB(GetKbdState                            ,0xffc435cc) //109
 197 NHSTUB(GetMemInfo                             ,0xffc0a7f8) //115
 198 NHSTUB(GetOpticalTemperature                  ,0xffc45694) //120
 199 NHSTUB(GetParameterData                       ,0xffd2f1b0) //101
 200 NHSTUB(GetPropertyCase                        ,0xffc6952c) //102
 201 NHSTUB(GetSystemTime                          ,0xffdfd1c0) //120
 202 NHSTUB(GetVRAMHPixelsSize                     ,0xffcb6c54) //120
 203 NHSTUB(GetVRAMVPixelsSize                     ,0xffcb6c60) //120
 204 NHSTUB(GetZoomLensCurrentPoint                ,0xffd09cd0) //120
 205 NHSTUB(GetZoomLensCurrentPosition             ,0xffdf520c) //102
 206 NHSTUB(GiveSemaphore                          ,0xffc0f104) //120
 207 NHSTUB(IsStrobeChargeCompleted                ,0xffca7260) //102
 208 NHSTUB(LEDDrive                               ,0xffc42bc4) //120
 209 NHSTUB(LocalTime                              ,0xffc63530) //115
 210 NHSTUB(LockMainPower                          ,0xffc6ce40) //120
 211 NHSTUB(MakeDirectory_Fut                      ,0xffc25af4) //116
 212 NHSTUB(MoveFocusLensToDistance                ,0xffe53454) //102
 213 NHSTUB(MoveIrisWithAv                         ,0xffdfa8b0) //120
 214 NHSTUB(MoveZoomLensWithPoint                  ,0xffdfae40) //120
 215 NHSTUB(MoveOpticalZoomAt                      ,0xffc27144) //109
 216 NHSTUB(Open                                   ,0xffc2609c) //120
 217 NHSTUB(PB2Rec                                 ,0xffc6fa94) //104
 218 NHSTUB(PT_MoveDigitalZoomToWide               ,0xffc57170) //120
 219 NHSTUB(PT_MoveOpticalZoomAt                   ,0xffc57148) //120
 220 NHSTUB(PT_PlaySound                           ,0xffc5f3b0) //122
 221 NHSTUB(PostLogicalEventForNotPowerType        ,0xffc6c670) //120
 222 NHSTUB(PostLogicalEventToUI                   ,0xffc6c6bc) //120
 223 NHSTUB(PutInNdFilter                          ,0xffdfaca4) //102
 224 NHSTUB(PutOutNdFilter                         ,0xffdfacc8) //102
 225 NHSTUB(Read                                   ,0xffc0b308) //120
 226 NHSTUB(ReadFastDir                            ,0xffdebbf4) //  4
 227 NHSTUB(Rec2PB                                 ,0xffc6fad4) //104
 228 NHSTUB(RefreshPhysicalScreen                  ,0xffd7b34c) //104
 229 NHSTUB(RenameFile_Fut                         ,0xffc259ec) //116
 230 NHSTUB(Restart                                ,0xffc2aab0) //122
 231 NHSTUB(ScreenLock                             ,0xffd7c4f8) //117
 232 NHSTUB(ScreenUnlock                           ,0xffd7c53c) //117
 233 NHSTUB(SetAE_ShutterSpeed                     ,0xffe55be4) //102
 234 NHSTUB(SetAutoShutdownTime                    ,0xffc6ceb4) //120
 235 NHSTUB(SetCurrentCaptureModeType              ,0xffc731ec) //120
 236 NHSTUB(SetFileAttributes                      ,0xffc26400) //  3
 237 NHSTUB(SetFileTimeStamp                       ,0xffc263a4) //  4
 238 NHSTUB(SetLogicalEventActive                  ,0xffc6cbb8) //120
 239 NHSTUB(SetParameterData                       ,0xffd2f120) //101
 240 NHSTUB(SetPropertyCase                        ,0xffc693fc) //102
 241 NHSTUB(SleepTask                              ,0xffc2915c) //120
 242 NHSTUB(TakeSemaphore                          ,0xffc0f034) //120
 243 NHSTUB(TurnOffBackLight                       ,0xffc77f4c) //104
 244 NHSTUB(TurnOnBackLight                        ,0xffc77f34) //104
 245 NHSTUB(TurnOnDisplay                          ,0xffc3f2fc) //120
 246 NHSTUB(TurnOffDisplay                         ,0xffc3f328) //120
 247 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xffd1f924) //120
 248 NHSTUB(UnlockAE                               ,0xffc276c0) //120
 249 NHSTUB(UnlockAF                               ,0xffc2758c) //120
 250 NHSTUB(UnlockMainPower                        ,0xffc6cd94) //120
 251 NHSTUB(UnsetZoomForMovie                      ,0xffd3589c) //104
 252 NHSTUB(UpdateMBROnFlash                       ,0xffc51140) //105
 253 NHSTUB(VbattGet                               ,0xffc22be4) //120
 254 NHSTUB(Write                                  ,0xffc26198) //120
 255 NHSTUB(WriteSDCard                            ,0xffcfcb1c) //108
 256 NHSTUB(_log                                   ,0xffe82328) //111
 257 NHSTUB(_log10                                 ,0xffe8126c) //112
 258 NHSTUB(_pow                                   ,0xffe813dc) //121
 259 NHSTUB(_sqrt                                  ,0xffe83690) //  1
 260 NHSTUB(add_ptp_handler                        ,0xffdbeb54) //121
 261 NHSTUB(apex2us                                ,0xffd7d848) //121
 262 NHSTUB(close                                  ,0xffc0b120) //109
 263 NHSTUB(err_init_task                          ,0xffc05f50) //111
 264 NHSTUB(exmem_alloc                            ,0xffc641d0) //103
 265 NHSTUB(exmem_ualloc                           ,0xffc64024) //103
 266 NHSTUB(exmem_ufree                            ,0xffc64170) //103
 267 NHSTUB(free                                   ,0xffc04160) //112
 268 NHSTUB(get_nd_value                           ,0xffdf3534) //123
 269 NHSTUB(get_current_nd_value                   ,0xffdf34f0) //122
 270 NHSTUB(kbd_p1_f                               ,0xffc23ba4) //109
 271 NHSTUB(kbd_p1_f_cont                          ,0xffc23bb0) //109
 272 NHSTUB(kbd_p2_f                               ,0xffc2345c) //109
 273 NHSTUB(kbd_read_keys                          ,0xffc23b2c) //109
 274 NHSTUB(kbd_read_keys_r2                       ,0xffc42fb0) //109
 275 NHSTUB(lseek                                  ,0xffc26224) //120
 276 NHSTUB(malloc                                 ,0xffc04104) //112
 277 NHSTUB(memcmp                                 ,0xffc11318) //120
 278 NHSTUB(memcpy                                 ,0xffc2e860) //120
 279 NHSTUB(memset                                 ,0xffd7c880) //120
 280 NHSTUB(mkdir                                  ,0xffc265a4) //109
 281 NHSTUB(mktime_ext                             ,0xffc7cd6c) //  1
 282 NHSTUB(open                                   ,0xffc0b070) //109
 283 NHSTUB(OpenFastDir                            ,0xffdebaa0) //  4
 284 NHSTUB(closedir                               ,0xffdeba50) //121
 285 NHSTUB(get_fstype                             ,0xffc51344) //122
 286 NHSTUB(qsort                                  ,0xffe3c190) //  4
 287 NHSTUB(rand                                   ,0xffc11420) //121
 288 NHSTUB(realloc                                ,0xffd7c8fc) //115
 289 NHSTUB(reboot_fw_update                       ,0xffded468) //106
 290 NHSTUB(set_control_event                      ,0xffc6c8d8) //111
 291 NHSTUB(srand                                  ,0xffc11414) //122
 292 NHSTUB(stat                                   ,0xffc2626c) //109
 293 NHSTUB(strcat                                 ,0xffc7c528) //  1
 294 NHSTUB(strchr                                 ,0xffc03fe8) //  1
 295 NHSTUB(strcmp                                 ,0xffc112d4) //120
 296 NHSTUB(strcpy                                 ,0xffc112bc) //120
 297 NHSTUB(strftime                               ,0xffc7c774) //113
 298 NHSTUB(strlen                                 ,0xffc04034) //120
 299 NHSTUB(strncmp                                ,0xffc03f9c) //  1
 300 NHSTUB(strncpy                                ,0xffc03f60) //  1
 301 NHSTUB(strrchr                                ,0xffc0400c) //  1
 302 NHSTUB(strtol                                 ,0xffc2eb40) //101
 303 NHSTUB(strtolx                                ,0xffc2e944) //109
 304    DEF(task_CaptSeq                           ,0xffc59224) //120
 305    DEF(task_DvlpSeqTask                       ,0xffd11ad8) //120
 306    DEF(task_ExpDrv                            ,0xffc91604) //120
 307    DEF(task_FileWrite                         ,0xffde66cc) //120
 308    DEF(task_InitFileModules                   ,0xffc7055c) //120
 309    DEF(task_MovieRecord                       ,0xffd0c97c) //120
 310    DEF(task_PhySw                             ,0xffc2378c) //120
 311 NHSTUB(time                                   ,0xffc633e4) //109
 312 NHSTUB(vsprintf                               ,0xffc11280) //115
 313 NHSTUB(EngDrvRead                             ,0xffc249f8) //102
 314 NHSTUB(PTM_GetCurrentItem                     ,0xffc6d874) //105
 315 NHSTUB(CancelHPTimer                          ,0xffc64f08) //119
 316 NHSTUB(SetHPTimerAfterNow                     ,0xffc64e00) //119
 317 NHSTUB(PT_MFOn                                ,0xffc57200) //120
 318 NHSTUB(PT_MFOff                               ,0xffc57210) //120
 319 NHSTUB(GetAdChValue                           ,0xffc409ac) //120
 320 NHSTUB(get_ptp_buf_size                       ,0xffcb9b0c) //122
 321 NHSTUB(get_ptp_file_buf                       ,0xffdc04ec) //121
 322 NHSTUB(SetVideoOutType                        ,0xffe563d0) //109
 323 NHSTUB(GetVideoOutType                        ,0xffe56334) //120

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