root/platform/sx200is/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 R31 (DRYOS version 2.3, release #0031)
   6 //   Firmware Ver GM1.00C   // Found @ 0xff8733d4, "GM1.00C" @ 0xff8733e1
   7 //   Firmware build timestamp: Jan 28 2009 14:08:40
   8 //   Canon PowerShot SX200 IS
   9 
  10 // Values for makefile.inc
  11 //   DIGIC = 40# DIGIC 4
  12 //   PLATFORMOSVER = 31
  13 //   PLATFORMID = 12736# (0x31c0) Found @ 0xfffe0130
  14 //   MAXRAMADDR = 0x03ffffff
  15 //   MEMISOSTART = 0x0012351c
  16 //   KEYSYS = d4# Found @ 0xffff356c
  17 //   NEED_ENCODED_DISKBOOT = 2# Found @ 0xffff357c
  18 //   ARAM_HEAP_START = 0x34e000# Found @ 0xff94553c
  19 //   ARAM_HEAP_SIZE  = 0x32000# Found @ 0xff9454fc
  20 
  21 // Detected address ranges:
  22 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  23 // RAM data 0x00001900 - 0x0000dbcc copied from 0xffb91b18 (  49868 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(GetSystemTime                        ,0xffa695a4) //120        *** != 0xff8606ac
  28 //NHSTUB(kbd_pwr_off                          ,0xff848480) //  2 60%    *** != 0x00000000
  29 
  30 // Check of modemap from 'platform/CAMERA/shooting.c':
  31 // Firmware modemap table found @ffa751d8 -> ffb6d0a4
  32 // No problems found with modemap table.
  33 
  34 // Values below can be overridden in 'stubs_min.S':
  35 DEF(physw_status                            ,0x0000f058) // Found @0xff821e24
  36 DEF(physw_run                               ,0x00001c34) // Found @0xff821a94
  37 DEF(physw_sleep_delay                       ,0x00001c32) // Found @0xff821a94
  38 DEF(levent_table                            ,0xffb399f0) // Found @0xffb399f0
  39 DEF(FlashParamsTable                        ,0xffb6d284) // Found @0xffb6d284
  40 DEF(movie_status                            ,0x000065c0) // Found @0xff937fd0
  41 DEF(video_compression_rate                  ,0x000065ec) // Found @0xff93823c
  42 DEF(canon_menu_active                       ,0x00002f10) // Found @0xff874e3c
  43 DEF(canon_shoot_menu_active                 ,0x0000786d) // Found @0xff97761c
  44 DEF(playrec_mode                            ,0x00002c70) // Found @0xff868020
  45 DEF(zoom_status                             ,0x0000b850) // Found @0xffa775d0
  46 DEF(some_flag_for_af_scan                   ,0x00006af8) // Found @0xff93b340
  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 126 entries in the table - set NUM_FL to 126
  50 DEF(focus_len_table                         ,0xfffe8538) // Found @0xfffe8538
  51 DEF(zoom_busy                               ,0x000064f0) // Found @0xff9342b4
  52 DEF(focus_busy                              ,0x000063f8) // Found @0xff92e97c
  53 //DEF(recreview_hold                          ,0x000038dc) // Found @0xff885a10, ** != ** stubs_min = 0x00007508 (0x7434+0xD4)
  54 // Palette colour tables  found @ 0xffb55158
  55 //DEF(active_palette_buffer                   ,0x00008d8c) // Found @0xff9cff80,          stubs_min = 0x00008d8c (0x8D8C)
  56 //DEF(palette_buffer_ptr                      ,0x00008d9c) // Found @0xff9cfc44,          stubs_min = 0x00008d9c (0x8D9C)
  57 // Offset from start of palette_buffer to color data = 12 (Found @0xff9cebb0)
  58 // Camera appears to have only 1 RAW buffer @ 0x424b41c0 (Found @0xffac8d10)
  59 DEF(fileio_semaphore                        ,0x0000291c) // Found @0xff8561a8
  60 DEF(exmem_alloc_table                       ,0x000158bc) // Found @0xff86e830
  61 DEF(exmem_types_table                       ,0xffb92f78) // Found @0x00002d60
  62 DEF_CONST(exmem_type_count                  ,0x00000012)
  63 DEF(imager_active                           ,0x00001f1c) // Found @0xff834c74 (0x1f18 + 4)
  64 DEF_CONST(uiprop_count                      ,0x0000006b) // Found @0xff9628dc
  65 DEF(cameracon_state                         ,0x000034bc) // Found @0xff87d1cc
  66 
  67 // Values below go in 'lib.c':
  68 //void *vid_get_bitmap_fb()        { return (void*)0x403f1000; }             // Found @0xff842ac8
  69 //void *vid_get_viewport_fb()      { return (void*)0x415f9e20; }             // Found @0xffac67f0
  70 DEF(viewport_fb_d                           ,0x000029a8) // Found 0x2950 (@0xff859398) + 0x58 (@0xff8593d0)
  71 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2950+0x58)); } // Found @0xff859398 & 0xff8593d0
  72 DEF(jpeg_count_str                          ,0x0005408c) // Found @0xff9c1f28
  73 //char *camera_jpeg_count_str()    { return (char*)0x0005408c; }             // Found @0xff9c1f28
  74 //int get_flash_params_count(void) { return 0x7a; }                          // Found @0xff963320
  75 
  76 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  77 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffafe514, levent 0x90a
  78 //#define SD_READONLY_IDX     2
  79 //#define USB_MASK            0x00200000 // Found @0xffafe544, levent 0x902
  80 //#define USB_IDX             2
  81 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffafe43c, levent 0x905
  82 //#define BATTCOVER_IDX       0
  83 //#define ANALOG_AV_FLAG      0x00040000 // Found @0xffafe520, levent 0x900 (non-inverted logic)
  84 //#define ANALOG_AV_IDX       2
  85 
  86 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  87 //static KeyMap keymap[] = {
  88 //    { 0, KEY_SHOOT_FULL      ,0x00000300 }, // Found @0xffafe418, levent 0x01
  89 //    { 0, KEY_SHOOT_FULL_ONLY ,0x00000200 }, // Found @0xffafe418, levent 0x01
  90 //    { 0, KEY_SHOOT_HALF      ,0x00000100 }, // Found @0xffafe40c, levent 0x00
  91 //    { 0, KEY_POWER           ,0x00000400 }, // Found @0xffafe424, levent 0x600
  92 //    { 0, KEY_PLAYBACK        ,0x00000800 }, // Found @0xffafe430, levent 0x601
  93 //    { 1, KEY_UP              ,0x00000100 }, // Found @0xffafe4a8, levent 0x04
  94 //    { 1, KEY_LEFT            ,0x00000200 }, // Found @0xffafe4b4, levent 0x06
  95 //    { 1, KEY_SET             ,0x00000400 }, // Found @0xffafe4c0, levent 0x08
  96 //    { 1, KEY_MENU            ,0x00000800 }, // Found @0xffafe4cc, levent 0x09
  97 //    { 1, KEY_DOWN            ,0x00001000 }, // Found @0xffafe4d8, levent 0x05
  98 //    { 1, KEY_RIGHT           ,0x00002000 }, // Found @0xffafe4e4, levent 0x07
  99 //    { 1, KEY_DISPLAY         ,0x00008000 }, // Found @0xffafe4fc, levent 0x0a
 100 //    { 0, 0, 0 }
 101 //};
 102 
 103 // Values below go in 'platform_camera.h':
 104 //#define CAM_DRYOS         1
 105 //#define CAM_RAW_ROWPIX    4080 // Found @0xff9025b0
 106 //#define CAM_RAW_ROWS      3048 // Found @0xff9025b4
 107 //#undef  CAM_UNCACHED_BIT
 108 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff827850
 109 //#define PARAM_CAMERA_NAME 4 // Found @0xffb6f8c8
 110 
 111 // Below goes in 'filewrite.c' or 'platform_camera.h':
 112 //#define MAX_CHUNKS_FOR_FWT 3 // Found @0xffa434f0
 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 207
 123 // #define PROPCASE_ORIENTATION_SENSOR 219
 124 // #define PROPCASE_SV_MARKET 246
 125 // //      PROPCASE_SVFIX 247
 126 // #define PROPCASE_TV 262
 127 // Guessed propset: 2
 128 
 129 // Misc stuff
 130 DEF(ctypes, 0xffafd12a)
 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: 0x1960, pointer to current task's control block: 0x195c
 153 // pointer to TCB area: 0x19ec, found @ 0xff81574c
 154 
 155 // LED table init @ 0xff8e73d0
 156 // LED #1: 0xc0220138, offset 0x204
 157 // LED #2: 0xc0220134, offset 0x4
 158 // LED #3: 0xc0220130, offset 0x44
 159 
 160 // For capt_seq.c
 161 DEF(_nrflag,0x6ad8) // Found @ ff93d410 (0x6ae0) & ff93d430 (-0x08)
 162 //static long *nrflag = (long*)(0x6ae0-0x08);  // Found @ ff93d410 & ff93d42c
 163 
 164 // Stubs below matched 100%.
 165 //    Name                                     Address                Comp to stubs_entry_2.S
 166 NHSTUB(AllocateUncacheableMemory              ,0xff82780c) //112
 167 NHSTUB(Close                                  ,0xff823cf0) //120
 168 NHSTUB(CreateBinarySemaphore                  ,0xff826fec) //115
 169 NHSTUB(CreateTask                             ,0xff81afac) //120
 170 NHSTUB(DebugAssert                            ,0xff81b284) //107
 171 NHSTUB(DeleteDirectory_Fut                    ,0xff823680) //116
 172 NHSTUB(DeleteFile_Fut                         ,0xff82359c) //112
 173 NHSTUB(DeleteSemaphore                        ,0xff8270ac) //120
 174 NHSTUB(DoAELock                               ,0xff825854) //120
 175 NHSTUB(DoAFLock                               ,0xff82560c) //120
 176 NHSTUB(EnterToCompensationEVF                 ,0xff825748) //104
 177 NHSTUB(ExecuteEventProcedure                  ,0xff87057c) //104
 178 NHSTUB(ExitFromCompensationEVF                ,0xff8257f4) //104
 179 NHSTUB(ExitTask                               ,0xff81b23c) //120
 180 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff8303c0) //104
 181 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff830504) //104
 182 NHSTUB(Fclose_Fut                             ,0xff823718) //120
 183 NHSTUB(Feof_Fut                               ,0xff823904) //  1
 184 NHSTUB(Fflush_Fut                             ,0xff823940) //  1
 185 NHSTUB(Fgets_Fut                              ,0xff82386c) //  1
 186 NHSTUB(Fopen_Fut                              ,0xff8236d8) //120
 187 NHSTUB(Fread_Fut                              ,0xff8237c4) //120
 188 NHSTUB(FreeUncacheableMemory                  ,0xff82784c) //112
 189 NHSTUB(Fseek_Fut                              ,0xff8238b8) //120
 190 NHSTUB(Fwrite_Fut                             ,0xff823818) //120
 191 NHSTUB(GetBatteryTemperature                  ,0xff84b5a8) //102
 192 NHSTUB(GetCCDTemperature                      ,0xff84b534) //102
 193 NHSTUB(GetCurrentAvValue                      ,0xff931328) //120
 194 NHSTUB(GetCurrentShutterSpeed                 ,0xff891268) //120
 195 NHSTUB(GetUsableMaxAv                         ,0xffac0ef4) //120
 196 NHSTUB(GetUsableMinAv                         ,0xffac0edc) //120
 197 NHSTUB(GetDrive_ClusterSize                   ,0xff857acc) //  5
 198 NHSTUB(GetDrive_FreeClusters                  ,0xff857b24) //  5
 199 NHSTUB(GetDrive_TotalClusters                 ,0xff857af8) //  5
 200 NHSTUB(GetFocusLensSubjectDistance            ,0xff92f7e4) //102
 201 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff92fbc0) //  3
 202 NHSTUB(GetKbdState                            ,0xff848340) //109
 203 NHSTUB(GetMemInfo                             ,0xff813be4) //115
 204 NHSTUB(GetOpticalTemperature                  ,0xff84b61c) //120
 205 NHSTUB(GetParameterData                       ,0xff9632e0) //101
 206 NHSTUB(GetPropertyCase                        ,0xff8742e8) //102
 207 NHSTUB(GetVRAMHPixelsSize                     ,0xff8393a0) //120
 208 NHSTUB(GetVRAMVPixelsSize                     ,0xff8393ac) //120
 209 NHSTUB(GetZoomLensCurrentPoint                ,0xff93462c) //120
 210 NHSTUB(GetZoomLensCurrentPosition             ,0xffa5cb24) //102
 211 NHSTUB(GiveSemaphore                          ,0xff827228) //120
 212 NHSTUB(IsStrobeChargeCompleted                ,0xff8abb04) //102
 213 NHSTUB(LEDDrive                               ,0xff847614) //120
 214 NHSTUB(LocalTime                              ,0xff86df6c) //115
 215 NHSTUB(LockMainPower                          ,0xff87bce0) //120
 216 NHSTUB(MakeDirectory_Fut                      ,0xff823610) //116
 217 NHSTUB(MoveFocusLensToDistance                ,0xffac3188) //102
 218 NHSTUB(MoveIrisWithAv                         ,0xffa675d8) //120
 219 NHSTUB(MoveZoomLensWithPoint                  ,0xffa67c24) //120
 220 NHSTUB(MoveOpticalZoomAt                      ,0xff824f6c) //109
 221 NHSTUB(Open                                   ,0xff823cc8) //120
 222 NHSTUB(PB2Rec                                 ,0xff87d780) //104
 223 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff860884) //120
 224 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff86085c) //120
 225 NHSTUB(PT_PlaySound                           ,0xff86046c) //102
 226 NHSTUB(PostLogicalEventForNotPowerType        ,0xff879a08) //120
 227 NHSTUB(PostLogicalEventToUI                   ,0xff879a54) //120
 228 NHSTUB(PutInNdFilter                          ,0xffac0f60) //102
 229 NHSTUB(PutOutNdFilter                         ,0xffac0f98) //102
 230 NHSTUB(Read                                   ,0xff819ae4) //120
 231 NHSTUB(ReadFastDir                            ,0xffa4794c) //  1
 232 NHSTUB(Rec2PB                                 ,0xff87ee50) //104
 233 NHSTUB(RefreshPhysicalScreen                  ,0xff9d4f7c) //104
 234 NHSTUB(RenameFile_Fut                         ,0xff823548) //  1
 235 NHSTUB(Restart                                ,0xff828f5c) //122
 236 NHSTUB(SetAE_ShutterSpeed                     ,0xffac5968) //102
 237 NHSTUB(SetAutoShutdownTime                    ,0xff87bd54) //120
 238 NHSTUB(SetCurrentCaptureModeType              ,0xff882d6c) //120
 239 NHSTUB(SetDate                                ,0xffac744c) //120
 240 NHSTUB(SetFileAttributes                      ,0xff82401c) //  1
 241 NHSTUB(SetFileTimeStamp                       ,0xff823fcc) //  1
 242 NHSTUB(SetLogicalEventActive                  ,0xff87ba30) //120
 243 NHSTUB(SetParameterData                       ,0xff963250) //101
 244 NHSTUB(SetPropertyCase                        ,0xff8741e0) //102
 245 NHSTUB(SetScriptMode                          ,0xff87ba80) //120
 246 NHSTUB(SleepTask                              ,0xff827490) //120
 247 NHSTUB(TakeSemaphore                          ,0xff827158) //120
 248 NHSTUB(TurnOffBackLight                       ,0xff889254) //104
 249 NHSTUB(TurnOnBackLight                        ,0xff88923c) //104
 250 NHSTUB(TurnOnDisplay                          ,0xff842ba8) //120
 251 NHSTUB(TurnOffDisplay                         ,0xff842bb8) //120
 252 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff94f9d8) //120
 253 NHSTUB(UnlockAE                               ,0xff825878) //120
 254 NHSTUB(UnlockAF                               ,0xff825644) //120
 255 NHSTUB(UnlockMainPower                        ,0xff87bc34) //120
 256 NHSTUB(UnsetZoomForMovie                      ,0xff969764) //104
 257 NHSTUB(UpdateMBROnFlash                       ,0xff857924) //105
 258 NHSTUB(VbattGet                               ,0xff820644) //120
 259 NHSTUB(Write                                  ,0xff823d9c) //120
 260 NHSTUB(WriteSDCard                            ,0xff920e8c) //108
 261 NHSTUB(_log                                   ,0xffafa3c0) //111
 262 NHSTUB(_log10                                 ,0xffaf904c) //112
 263 NHSTUB(_pow                                   ,0xffaf91bc) //121
 264 NHSTUB(_sqrt                                  ,0xffafbf64) //  1
 265 NHSTUB(add_ptp_handler                        ,0xffa125d4) //121
 266 NHSTUB(apex2us                                ,0xff9d8170) //121
 267 NHSTUB(close                                  ,0xff8198fc) //109
 268 NHSTUB(err_init_task                          ,0xff814e2c) //111
 269 NHSTUB(exmem_alloc                            ,0xff86ee2c) //103
 270 NHSTUB(exmem_ualloc                           ,0xff86ec80) //103
 271 NHSTUB(exmem_ufree                            ,0xff86edcc) //103
 272 NHSTUB(free                                   ,0xff813a3c) //112
 273 NHSTUB(get_current_deltasv                    ,0xff891df8) //122
 274 NHSTUB(GetCurrentDriveBaseSvValue             ,0xff896f68) //123
 275 NHSTUB(kbd_p1_f                               ,0xff821ea0) //109
 276 NHSTUB(kbd_p1_f_cont                          ,0xff821eac) //109
 277 NHSTUB(kbd_p2_f                               ,0xff821760) //109
 278 NHSTUB(kbd_read_keys                          ,0xff821e24) //109
 279 NHSTUB(kbd_read_keys_r2                       ,0xff847b04) //109
 280 NHSTUB(lseek                                  ,0xff823e30) //120
 281 NHSTUB(malloc                                 ,0xff813968) //112
 282 NHSTUB(memcmp                                 ,0xff81cc5c) //120
 283 NHSTUB(memcpy                                 ,0xff88fe10) //120
 284 NHSTUB(memset                                 ,0xff9d7458) //120
 285 NHSTUB(mkdir                                  ,0xff824094) //109
 286 NHSTUB(mktime_ext                             ,0xff89067c) //  1
 287 NHSTUB(open                                   ,0xff81984c) //109
 288 NHSTUB(OpenFastDir                            ,0xffa478b8) //  1
 289 NHSTUB(closedir                               ,0xffa47a1c) //  1
 290 NHSTUB(qsort                                  ,0xffaaf200) //  1
 291 NHSTUB(rand                                   ,0xff81cd64) //121
 292 NHSTUB(realloc                                ,0xff813b1c) //115
 293 NHSTUB(reboot_fw_update                       ,0xffa4effc) //106
 294 NHSTUB(set_control_event                      ,0xff87b694) //111
 295 NHSTUB(srand                                  ,0xff81cd58) //122
 296 NHSTUB(stat                                   ,0xff823efc) //  1
 297 NHSTUB(strcat                                 ,0xff88fc24) //  1
 298 NHSTUB(strchr                                 ,0xff88fcac) //  1
 299 NHSTUB(strcmp                                 ,0xff81cbf4) //120
 300 NHSTUB(strcpy                                 ,0xff81cbdc) //120
 301 NHSTUB(strftime                               ,0xff890084) //  1
 302 NHSTUB(strlen                                 ,0xff81cc38) //120
 303 NHSTUB(strncmp                                ,0xff88fc60) //  1
 304 NHSTUB(strncpy                                ,0xff82d1bc) //  1
 305 NHSTUB(strrchr                                ,0xff9d7430) //  1
 306 NHSTUB(strtol                                 ,0xff82d3f4) //101
 307 NHSTUB(strtolx                                ,0xff82d1f8) //109
 308    DEF(task_CaptSeq                           ,0xff86327c) //120
 309    DEF(task_DvlpSeqTask                       ,0xff8648f0) //120
 310    DEF(task_ExpDrv                            ,0xff8a2214) //120
 311    DEF(task_FileWrite                         ,0xffa4348c) //120
 312    DEF(task_InitFileModules                   ,0xff87f81c) //120
 313    DEF(task_MovieRecord                       ,0xff9382b8) //120
 314    DEF(task_PhySw                             ,0xff821a90) //120
 315    DEF(task_RotaryEncoder                     ,0xff84856c) //120
 316 NHSTUB(time                                   ,0xff86e4e4) //109
 317 NHSTUB(vsprintf                               ,0xff81cba0) //115
 318 NHSTUB(EngDrvRead                             ,0xff822cdc) //102
 319 NHSTUB(PTM_GetCurrentItem                     ,0xff87c710) //105
 320 NHSTUB(CancelHPTimer                          ,0xff86fc64) //119
 321 NHSTUB(SetHPTimerAfterNow                     ,0xff86fb5c) //119
 322 NHSTUB(PT_MFOn                                ,0xff8608fc) //120
 323 NHSTUB(PT_MFOff                               ,0xff86090c) //120
 324 NHSTUB(GetAdChValue                           ,0xff844638) //120
 325 NHSTUB(get_ptp_buf_size                       ,0xff8d09f4) //122
 326 NHSTUB(get_ptp_file_buf                       ,0xffa141a8) //121
 327 NHSTUB(SetVideoOutType                        ,0xffac6184) //109
 328 NHSTUB(GetVideoOutType                        ,0xffac60b8) //120

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