root/platform/a2500/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 @ 0xff88ebe0, "GM1.00A" @ 0xff88ebed
   7 //   Firmware build timestamp: Feb 14 2013 09:06:14
   8 //   Canon PowerShot A2500 
   9 
  10 // Values for makefile.inc
  11 //   PLATFORMOSVER = 52
  12 //   PLATFORMID = 12913 (0x3271) // Found @ 0xfffe0040
  13 //   MAXRAMADDR = 0x03ffffff
  14 //   MEMISOSTART = 0x0015afe8
  15 //   KEYSYS = d4d                // Found @ 0xffff1d30
  16 //   NEED_ENCODED_DISKBOOT = 10   // Found @ 0xffff1d40
  17 //   ARAM_HEAP_START = 0x34e000  // Found @ 0xff981728
  18 //   ARAM_HEAP_SIZE  = 0x22000   // Found @ 0xff9816ec
  19 
  20 // Detected address ranges:
  21 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  22 // RAM code 0x003f1000 - 0x0040099c copied from 0xffc57118 (  63900 bytes)
  23 // RAM data 0x00001900 - 0x0000e6c8 copied from 0xffc4a350 (  52680 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                       ,0xff82d058) //  1 90%        == 0xff82d058
  28 // ERROR: MakeDirectory_Fut is not found.                  //--- ---    *** != 0xff82db68
  29 // ERROR: RefreshPhysicalScreen is not found.              //--- ---    *** != 0x00000000
  30 
  31 // Check of modemap from 'platform/CAMERA/shooting.c':
  32 // Firmware modemap table found @ffa9d028 -> ffbef3b0
  33 // No problems found with modemap table.
  34 
  35 // Values below can be overridden in 'stubs_min.S':
  36 DEF(physw_status                            ,0x00032764) // Found @0xff82af1c
  37 DEF(physw_run                               ,0x00001c90) // Found @0xff82aa6c
  38 DEF(physw_sleep_delay                       ,0x00001c98) // Found @0xff82aa6c
  39 DEF(levent_table                            ,0xffb9c7dc) // Found @0xffb9c7dc
  40 DEF(FlashParamsTable                        ,0xffbef5e0) // Found @0xffbef5e0
  41 DEF(movie_status                            ,0x00006b5c) // Found @0xff972a18
  42 DEF(video_compression_rate                  ,0x00006b8c) // Found @0xff97317c
  43 DEF(full_screen_refresh                     ,0x0000759c) // Found @0xff98f280
  44 DEF(canon_menu_active                       ,0x000038c0) // Found @0xff897220
  45 DEF(canon_shoot_menu_active                 ,0x00008b65) // Found @0xff9e76d4
  46 DEF(playrec_mode                            ,0x00003304) // Found @0xff884720
  47 DEF(zoom_status                             ,0x0000a02c) // Found @0xffa39e48
  48 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  49 // each entry contains 2 int value(s), the first is the zoom focus length.
  50 // there are 64 entries in the table - set NUM_FL to 64
  51 DEF(focus_len_table                         ,0xfffea3e0) // Found @0xfffea3e0
  52 DEF(zoom_busy                               ,0x00006a64) // Found @0xff96f054
  53 DEF(focus_busy                              ,0x00006930) // Found @0xff96baf0
  54 DEF(recreview_hold                          ,0x00002718) // Found @0xff859f48
  55 // Palette colour tables  found @ 0xffba3418
  56 DEF(active_palette_buffer                   ,0x000075a4) // Found @0xff98f204
  57 DEF(palette_buffer_ptr                      ,0x000075a8) // Found @0xff98f594
  58 // Offset from start of palette_buffer to color data = 4 (Found @0xffabdacc)
  59 // Camera appears to have only 1 RAW buffer @ 0x420e5c30 (Found @0xffb18918)
  60 DEF(fileio_semaphore                        ,0x00003064) // Found @0xff8756c4
  61 DEF(exmem_alloc_table                       ,0x00039110) // Found @0xff88a010
  62 DEF(exmem_types_table                       ,0xffc4be20) // Found @0x000033d0
  63 DEF_CONST(exmem_type_count                  ,0x0000001b)
  64 DEF(imager_active                           ,0x00001f04) // Found @0xff84545c (0x1f00 + 4)
  65 DEF_CONST(uiprop_count                      ,0x00000083) // Found @0xff9868e0
  66 
  67 // Values below go in 'lib.c':
  68 //void *vid_get_bitmap_fb()        { return (void*)0x40431000; }             // Found @0xff85cf34
  69 //void *vid_get_viewport_fb()      { return (void*)0x40586b80; }             // Found @0xffb17000
  70 DEF(viewport_fb_d                           ,0x00003110) // Found 0x30bc (@0xff878d44) + 0x54 (@0xff878d7c)
  71 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x30bc+0x54)); } // Found @0xff878d44 & 0xff878d7c
  72 DEF(jpeg_count_str                          ,0x000c86fc) // Found @0xff9d5fc0
  73 //char *camera_jpeg_count_str()    { return (char*)0x000c86fc; }             // Found @0xff9d5fc0
  74 //int get_flash_params_count(void) { return 0x91; }                          // Found @0xff9872c4
  75 
  76 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  77 //#define SD_READONLY_FLAG    0x02000000 // Found @0xffb491cc, levent 0x20a
  78 //#define SD_READONLY_IDX     2
  79 //#define USB_MASK            0x10000000 // Found @0xffb491dc, levent 0x202
  80 //#define USB_IDX             2
  81 //#define BATTCOVER_FLAG      0x04000000 // Found @0xffb491d4, levent 0x205
  82 //#define BATTCOVER_IDX       2
  83 //#define ANALOG_AV_FLAG      0x02000000 // Found @0xffb49134, levent 0x200 (non-inverted logic)
  84 //#define ANALOG_AV_IDX       1
  85 
  86 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  87 //static KeyMap keymap[] = {
  88 //    { 2, KEY_POWER           ,0x00000001 }, // Found @0xffb4913c, levent 0x100
  89 //    { 2, KEY_PLAYBACK        ,0x00000002 }, // Found @0xffb49144, levent 0x101
  90 //    { 2, KEY_SHOOT_FULL      ,0x0000000c }, // Found @0xffb49154, levent 0x01
  91 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000008 }, // Found @0xffb49154, levent 0x01
  92 //    { 2, KEY_SHOOT_HALF      ,0x00000004 }, // Found @0xffb4914c, levent 0x00
  93 //    { 2, KEY_ZOOM_IN         ,0x00000010 }, // Found @0xffb4915c, levent 0x03
  94 //    { 2, KEY_ZOOM_OUT        ,0x00000040 }, // Found @0xffb49164, levent 0x04
  95 //    { 2, KEY_UP              ,0x00000080 }, // Found @0xffb4916c, levent 0x06
  96 //    { 2, KEY_DOWN            ,0x00000100 }, // Found @0xffb49174, levent 0x07
  97 //    { 2, KEY_RIGHT           ,0x00000200 }, // Found @0xffb4917c, levent 0x09
  98 //    { 2, KEY_LEFT            ,0x00000400 }, // Found @0xffb49184, levent 0x08
  99 //    { 2, KEY_SET             ,0x00001000 }, // Found @0xffb4918c, levent 0x0a
 100 //    { 2, KEY_MENU            ,0x00002000 }, // Found @0xffb49194, levent 0x0b
 101 //    { 2, KEY_VIDEO           ,0x00004000 }, // Found @0xffb4919c, levent 0x02
 102 //    { 2, KEY_HELP            ,0x00008000 }, // Found @0xffb491a4, levent 0x12
 103 //    { 0, 0, 0 }
 104 //};
 105 
 106 // Values below go in 'platform_camera.h':
 107 //#define CAM_DRYOS         1
 108 //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
 109 //#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher
 110 //#define CAM_RAW_ROWPIX    4704 // Found @0xff945828
 111 //#define CAM_RAW_ROWS      3504 // Found @0xff945834
 112 //#undef  CAM_UNCACHED_BIT
 113 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff83200c
 114 //#define CAM_DATE_FOLDER_NAMING 0x080 // Found @0xffa693dc (pass as 3rd param to GetImageFolder)
 115 //#define PARAM_CAMERA_NAME 3 // Found @0xffbee8a4
 116 
 117 // Known propcases
 118 // //      PROPCASE_AFSTEP 13
 119 // #define PROPCASE_FOCUS_STATE 18
 120 // #define PROPCASE_AV 23
 121 // #define PROPCASE_BV 34
 122 // //      PROPCASE_DELTA_DIGITALGAIN 77
 123 // #define PROPCASE_DELTA_SV 79
 124 // //      PROPCASE_DELTA_ND 80
 125 // #define PROPCASE_EV_CORRECTION_2 210
 126 // #define PROPCASE_ORIENTATION_SENSOR 222
 127 // #define PROPCASE_SV_MARKET 249
 128 // //      PROPCASE_SVFIX 250
 129 // #define PROPCASE_TV 265
 130 // Guessed propset: 6
 131 
 132 // Misc stuff
 133 DEF(ctypes, 0xffb48634)
 134 
 135 // EXMEM types:
 136 // EXMEM_RAMDISK        0
 137 // EXMEM_COM            1
 138 // EXMEM_FORMATTER      2
 139 // EXMEM_SHADING        3
 140 // EXMEM_FAMODE         4
 141 // EXMEM_FIRMUP         5
 142 // EXMEM_FIRMUP_VRAM    6
 143 // EXMEM_FIRMUP_INFLATE 7
 144 // EXMEM_DVLPWORK       8
 145 // EXMEM_EVF            9
 146 // EXMEM_SCRIPT         10
 147 // EXMEM_GPS            11
 148 // EXMEM_FACEAUTH       12
 149 // EXMEM_OHYEARLOG      13
 150 // EXMEM_WIFI           14
 151 // EXMEM_FILESTORE      15
 152 // EXMEM_MOVIE_REC      16
 153 // EXMEM_MOVIE_PLY      17
 154 // EXMEM_WIDE           18
 155 // EXMEM_NARROW         19
 156 // EXMEM_AUTO_GIS_MODE  20
 157 // EXMEM_NP_GIS_MODE    21
 158 // EXMEM_TRIPODHDR_MODE 22
 159 // EXMEM_HSHQ_MODE      23
 160 // EXMEM_CRAW_REC       24
 161 // EXMEM_PCEVF          25
 162 // EXMEM_WIFI_RESIZE    26
 163 
 164 // ISR flag: 0x1958, pointer to current task's control block: 0x1954
 165 // pointer to TCB area: 0x19e8, found @ 0xffc5933c
 166 
 167 // LED table init @ 0xff92608c
 168 // LED #1: 0xc0223030, offset 0x104
 169 // LED #2: 0xc0220094, offset 0x4
 170 
 171 // For capt_seq.c
 172 DEF(_nrflag,0x9870) // Found @ ff9f635c (0x9870) & ff9f6398 (+0x00)
 173 //static long *nrflag = (long*)(0x9870+0x00);  // Found @ ff9f635c & ff9f6398
 174 //#define NR_AUTO (0)                          // have to explictly reset value back to 0 to enable auto
 175 
 176 // Stubs below matched 100%.
 177 //    Name                                     Address                Comp to stubs_entry_2.S
 178 NHSTUB(AllocateUncacheableMemory              ,0xff831fc4) //112
 179 NHSTUB(Close                                  ,0xff82d6cc) //120
 180 NHSTUB(CreateBinarySemaphore                  ,0x003f76c8) //115
 181 NHSTUB(CreateTask                             ,0x003f68b0) //120
 182 NHSTUB(DebugAssert                            ,0x003f6c28) //107
 183 NHSTUB(DeleteDirectory_Fut                    ,0xff82d0cc) //116
 184 NHSTUB(DoAELock                               ,0xff82f198) //120
 185 NHSTUB(DoAFLock                               ,0xff82eeb8) //120
 186 NHSTUB(EnterToCompensationEVF                 ,0xff82f100) //104
 187 NHSTUB(ExecuteEventProcedure                  ,0xff88bc40) //104
 188 NHSTUB(ExitFromCompensationEVF                ,0xff82f144) //104
 189 NHSTUB(ExitTask                               ,0x003f6b40) //120
 190 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff83e914) //104
 191 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff83ea7c) //104
 192 NHSTUB(Fclose_Fut                             ,0xff82d164) //120
 193 NHSTUB(Feof_Fut                               ,0xff82d350) //  1
 194 NHSTUB(Fflush_Fut                             ,0xff82d38c) //  1
 195 NHSTUB(Fgets_Fut                              ,0xff82d2b8) //  6
 196 NHSTUB(Fopen_Fut                              ,0xff82d124) //120
 197 NHSTUB(Fread_Fut                              ,0xff82d210) //120
 198 NHSTUB(FreeUncacheableMemory                  ,0xff832004) //112
 199 NHSTUB(Fseek_Fut                              ,0xff82d304) //120
 200 NHSTUB(Fwrite_Fut                             ,0xff82d264) //120
 201 NHSTUB(GetBatteryTemperature                  ,0xff864ea8) //102
 202 NHSTUB(GetCCDTemperature                      ,0xff864e34) //102
 203 NHSTUB(GetCurrentAvValue                      ,0xff96d954) //120
 204 NHSTUB(GetCurrentShutterSpeed                 ,0xff8a6170) //120
 205 NHSTUB(GetDrive_ClusterSize                   ,0xff876d34) //122
 206 NHSTUB(GetDrive_FreeClusters                  ,0xff877548) //119
 207 NHSTUB(GetDrive_TotalClusters                 ,0xff877520) //122
 208 NHSTUB(GetFocusLensSubjectDistance            ,0xff96cc20) //102
 209 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff96cfb4) //  3
 210 NHSTUB(GetImageFolder                         ,0xff94cf54) //122
 211 NHSTUB(GetKbdState                            ,0xff862054) //109
 212 NHSTUB(GetMemInfo                             ,0xff814fcc) //115
 213 NHSTUB(GetOpticalTemperature                  ,0xff864f1c) //120
 214 NHSTUB(GetParameterData                       ,0xff987284) //101
 215 NHSTUB(GetPropertyCase                        ,0xff88fff4) //101
 216 NHSTUB(GetSystemTime                          ,0xffa9a120) //120
 217 NHSTUB(GetVRAMHPixelsSize                     ,0xff84abe8) //120
 218 NHSTUB(GetVRAMVPixelsSize                     ,0xff84abf4) //120
 219 NHSTUB(GetZoomLensCurrentPoint                ,0xff96f4d0) //120
 220 NHSTUB(GetZoomLensCurrentPosition             ,0xffa8acc8) //102
 221 NHSTUB(GiveSemaphore                          ,0x003f7904) //120
 222 NHSTUB(IsStrobeChargeCompleted                ,0xff8d64d0) //102
 223 NHSTUB(LEDDrive                               ,0xff974708) //120
 224 NHSTUB(LocalTime                              ,0x003fb2e8) //115
 225 NHSTUB(LockMainPower                          ,0xff892468) //120
 226 NHSTUB(MakeSDCardBootable                     ,0xff8779cc) //105
 227 NHSTUB(MoveFocusLensToDistance                ,0xffb12b68) //102
 228 NHSTUB(MoveIrisWithAv                         ,0xffa9568c) //120
 229 NHSTUB(MoveZoomLensWithPoint                  ,0xffa95dbc) //120
 230 NHSTUB(MoveOpticalZoomAt                      ,0xff82e9ac) //109
 231 NHSTUB(Open                                   ,0xff82d604) //120
 232 NHSTUB(PB2Rec                                 ,0xff852fec) //104
 233 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff97580c) //102
 234 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff9757dc) //102
 235 NHSTUB(PT_PlaySound                           ,0xff89eba0) //122
 236 NHSTUB(PostLogicalEventForNotPowerType        ,0xff891b58) //120
 237 NHSTUB(PostLogicalEventToUI                   ,0xff891ba4) //120
 238 NHSTUB(PutInNdFilter                          ,0xffa95b94) //102
 239 NHSTUB(PutOutNdFilter                         ,0xffa95bb8) //102
 240 NHSTUB(Read                                   ,0xff815a88) //120
 241 NHSTUB(ReadFastDir                            ,0xffa79d04) //115
 242 NHSTUB(Rec2PB                                 ,0xff85302c) //104
 243 NHSTUB(RenameFile_Fut                         ,0xff82cfc4) //116
 244 //NHSTUB(Restart                              ,0xff83146c) //122            == 0xff83146c
 245 NHSTUB(ScreenLock                             ,0xff896d18) //117
 246 NHSTUB(ScreenUnlock                           ,0xff896d6c) //117
 247 NHSTUB(SetAE_ShutterSpeed                     ,0xffb15ed8) //102
 248 NHSTUB(SetAutoShutdownTime                    ,0xff8924dc) //120
 249 NHSTUB(SetCurrentCaptureModeType              ,0xff89cfa4) //120
 250 NHSTUB(SetFileAttributes                      ,0xff82dad0) //  6
 251 NHSTUB(SetFileTimeStamp                       ,0xff82da58) //  6
 252 NHSTUB(SetLogicalEventActive                  ,0xff8921e0) //120
 253 NHSTUB(SetParameterData                       ,0xff9871f0) //101
 254 NHSTUB(SetPropertyCase                        ,0xff88fe64) //101
 255 NHSTUB(SetScriptMode                          ,0xff892230) //120
 256 NHSTUB(SleepTask                              ,0x003f7bb0) //120
 257 NHSTUB(TakeSemaphore                          ,0x003f7834) //120
 258 NHSTUB(TurnOffBackLight                       ,0xff89e46c) //104
 259 NHSTUB(TurnOnBackLight                        ,0xff89e454) //104
 260 NHSTUB(TurnOnDisplay                          ,0xff85d33c) //120
 261 NHSTUB(TurnOffDisplay                         ,0xff85d34c) //120
 262 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff9a29a0) //120
 263 NHSTUB(UnlockAE                               ,0xff82f1bc) //120
 264 NHSTUB(UnlockAF                               ,0xff82eee8) //120
 265 NHSTUB(UnlockMainPower                        ,0xff8923bc) //120
 266 NHSTUB(VbattGet                               ,0xff829cb0) //120
 267 NHSTUB(Write                                  ,0xff82d720) //120
 268 NHSTUB(WriteSDCard                            ,0xff95e764) //108
 269 NHSTUB(_log                                   ,0x003fd0b0) //111
 270 NHSTUB(_log10                                 ,0x003fd5f0) //112
 271 NHSTUB(_pow                                   ,0x003fd768) //121
 272 NHSTUB(_sqrt                                  ,0x003ff38c) //  6
 273 NHSTUB(add_ptp_handler                        ,0xffa33764) //121
 274 NHSTUB(apex2us                                ,0xff9ef428) //121
 275 NHSTUB(close                                  ,0xff8158e4) //109
 276 NHSTUB(err_init_task                          ,0xff8142ac) //111
 277 NHSTUB(exmem_alloc                            ,0xff88a608) //101
 278 NHSTUB(exmem_free                             ,0xff88a680) //101
 279 NHSTUB(free                                   ,0xff812ea8) //112
 280 NHSTUB(get_nd_value                           ,0xffa88804) //123
 281 NHSTUB(get_current_nd_value                   ,0xffa887a4) //122
 282 NHSTUB(kbd_p1_f                               ,0xff82af6c) //109
 283 NHSTUB(kbd_p1_f_cont                          ,0xff82af78) //109
 284 NHSTUB(kbd_p2_f                               ,0xff82a704) //109
 285 NHSTUB(kbd_read_keys                          ,0xff82af1c) //109
 286 NHSTUB(kbd_read_keys_r2                       ,0xff861b64) //109
 287 NHSTUB(lseek                                  ,0xff82d8e8) //120
 288 NHSTUB(malloc                                 ,0xff812e50) //112
 289 NHSTUB(memcmp                                 ,0xff81a938) //120
 290 NHSTUB(memcpy                                 ,0xff832398) //120
 291 NHSTUB(memset                                 ,0xff8a210c) //120
 292 NHSTUB(mkdir                                  ,0xff82db68) //121
 293 NHSTUB(mktime_ext                             ,0xff8a1914) //  1
 294 NHSTUB(open                                   ,0xff815834) //109
 295 NHSTUB(OpenFastDir                            ,0xffa79bb0) //115
 296 NHSTUB(closedir                               ,0xffa79b60) //121
 297 NHSTUB(get_fstype                             ,0xff876cb0) //122
 298 NHSTUB(qsort                                  ,0xffaeb840) //  6
 299 NHSTUB(rand                                   ,0xffaeb314) //121
 300 NHSTUB(realloc                                ,0xff9ecff8) //115
 301 NHSTUB(reboot_fw_update                       ,0xffa99790) //106
 302 NHSTUB(set_control_event                      ,0xff891ea0) //111
 303 NHSTUB(srand                                  ,0xffaeb308) //122
 304 NHSTUB(stat                                   ,0xff82d930) //109
 305 NHSTUB(strcat                                 ,0xff8a1f94) //  1
 306 NHSTUB(strchr                                 ,0xff812d1c) //  1
 307 NHSTUB(strcmp                                 ,0xff81aa34) //120
 308 NHSTUB(strcpy                                 ,0xff81a920) //120
 309 NHSTUB(strftime                               ,0xff8a1960) //113
 310 NHSTUB(strlen                                 ,0xff812d68) //120
 311 NHSTUB(strncmp                                ,0xff812cd0) //  1
 312 NHSTUB(strncpy                                ,0xff812c94) //  1
 313 NHSTUB(strrchr                                ,0xff812d40) //  1
 314 NHSTUB(strtol                                 ,0xff832384) //101
 315 NHSTUB(strtolx                                ,0xff832188) //109
 316    DEF(task_CaptSeq                           ,0xff87f1f4) //120
 317    DEF(task_DvlpSeqTask                       ,0xff978aac) //120
 318    DEF(task_ExpDrv                            ,0xff8bbb70) //120
 319    DEF(task_FileWrite                         ,0xffa75e64) //120
 320    DEF(task_InitFileModules                   ,0xff853908) //120
 321    DEF(task_MovieRecord                       ,0xff973650) //120
 322    DEF(task_PhySw                             ,0xff82aa68) //120
 323    DEF(hook_CreateTask                        ,0x003f68b0) //105
 324 NHSTUB(time                                   ,0x003fb790) //119
 325 NHSTUB(vsprintf                               ,0xff81a7d0) //115
 326 NHSTUB(EngDrvRead                             ,0xff82bdac) //102
 327 NHSTUB(PTM_GetCurrentItem                     ,0xff892f18) //105
 328 NHSTUB(CancelHPTimer                          ,0xff88b328) //119
 329 NHSTUB(SetHPTimerAfterNow                     ,0xff88b220) //119
 330 NHSTUB(SS_MFOn                                ,0xff9758a0) //120
 331 NHSTUB(SS_MFOff                               ,0xff9758b0) //120
 332 NHSTUB(GetAdChValue                           ,0xff85e4a4) //120
 333 NHSTUB(get_ptp_buf_size                       ,0xff9049f0) //122
 334 NHSTUB(get_ptp_file_buf                       ,0xffa352d4) //121

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