root/platform/sx210is/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 R43 (DRYOS version 2.3, release #0043)
   6 //   Firmware Ver GM1.00C   // Found @ 0xff8900cc, "GM1.00C" @ 0xff8900d9
   7 //   Firmware build timestamp: Feb  5 2010 13:36:08
   8 //   Canon PowerShot SX210 IS
   9 
  10 // Values for makefile.inc
  11 //   DIGIC = 40# DIGIC 4
  12 //   PLATFORMOSVER = 43
  13 //   PLATFORMID = 12790# (0x31f6) Found @ 0xfffe0130
  14 //   MAXRAMADDR = 0x03ffffff
  15 //   MEMISOSTART = 0x00152728
  16 //   KEYSYS = d4a# Found @ 0xffff3570
  17 //   NEED_ENCODED_DISKBOOT = 4# Found @ 0xffff3580
  18 //   ARAM_HEAP_START = 0x38e000# Found @ 0xff97c6bc
  19 //   ARAM_HEAP_SIZE  = 0x32000# Found @ 0xff97c67c
  20 
  21 // Detected address ranges:
  22 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  23 // RAM data 0x00001900 - 0x0000fa80 copied from 0xffc2fa94 (  57728 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(kbd_pwr_off                            ,0xff861ed0) //  2 60%
  28 
  29 // Check of modemap from 'platform/CAMERA/shooting.c':
  30 // Firmware modemap table found @ffad1940 -> ffc093b4
  31 // Mode 33322 in firmware but not in current modemap
  32 // Mode 33321 in firmware but not in current modemap
  33 
  34 // Values below can be overridden in 'stubs_min.S':
  35 DEF(physw_status                            ,0x000336c4) // Found @0xff83466c
  36 DEF(physw_run                               ,0x00001c30) // Found @0xff8342c4
  37 DEF(physw_sleep_delay                       ,0x00001c38) // Found @0xff8342c4
  38 DEF(levent_table                            ,0xffbc1084) // Found @0xffbc1084
  39 DEF(FlashParamsTable                        ,0xffc095bc) // Found @0xffc095bc
  40 DEF(movie_status                            ,0x0000720c) // Found @0xff96de58
  41 DEF(video_compression_rate                  ,0x00007248) // Found @0xff96e098
  42 DEF(full_screen_refresh                     ,0x00009d08) // Found @0xffa1cf64
  43 DEF(canon_menu_active                       ,0x0000368c) // Found @0xff891c4c
  44 DEF(canon_shoot_menu_active                 ,0x00008511) // Found @0xff9b5a6c
  45 DEF(playrec_mode                            ,0x000033bc) // Found @0xff883e64
  46 //DEF(zoom_status                             ,0x0000d544) // Found @0xffad4e40, ** != ** stubs_min = 0x0000d524 (0xD524)
  47 DEF(some_flag_for_af_scan                   ,0x000075d8) // Found @0xff970d5c
  48 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  49 // each entry contains 3 int value(s), the first is the zoom focus length.
  50 // there are 126 entries in the table - set NUM_FL to 126
  51 DEF(focus_len_table                         ,0xfffea1cc) // Found @0xfffea1cc
  52 DEF(zoom_busy                               ,0x00007140) // Found @0xff969464
  53 DEF(focus_busy                              ,0x00006fc8) // Found @0xff9639d0
  54 //DEF(recreview_hold                          ,0x00004140) // Found @0xff8a3648, ** != ** stubs_min = 0x00008144 (0x804C+0xF8)
  55 DEF(viewport_buffers                        ,0xffb64808) // Found @0xff84fd4c
  56 DEF(active_viewport_buffer                  ,0x00002058) // Found @0xff84fae8
  57 // Camera appears to have only 1 RAW buffer @ 0x41db3b80 (Found @0xffb2fb2c)
  58 DEF(fileio_semaphore                        ,0x00003064) // Found @0xff871d64
  59 DEF(exmem_alloc_table                       ,0x0003aa38) // Found @0xff88b59c
  60 DEF(exmem_types_table                       ,0xffc31670) // Found @0x000034dc
  61 DEF_CONST(exmem_type_count                  ,0x00000012)
  62 DEF(imager_active                           ,0x00001f9c) // Found @0xff84c5c8 (0x1f98 + 4)
  63 DEF_CONST(uiprop_count                      ,0x00000074) // Found @0xff99cfa4
  64 
  65 // Values below go in 'lib.c':
  66 //void *vid_get_bitmap_fb()        { return (void*)0x40431000; }             // Found @0xff85be4c
  67 //void *vid_get_viewport_fb()      { return (void*)0x40547700; }             // Found @0xffb2c7b4
  68 DEF(viewport_fb_d                           ,0x00003110) // Found 0x30b8 (@0xff8750cc) + 0x58 (@0xff875104)
  69 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x30b8+0x58)); } // Found @0xff8750cc & 0xff875104
  70 DEF(jpeg_count_str                          ,0x000a05dc) // Found @0xffa0e708
  71 //char *camera_jpeg_count_str()    { return (char*)0x000a05dc; }             // Found @0xffa0e708
  72 //int get_flash_params_count(void) { return 0x94; }                          // Found @0xff99d9e8
  73 
  74 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  75 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffb65924, levent 0x90a
  76 //#define SD_READONLY_IDX     2
  77 //#define USB_MASK            0x00080000 // Found @0xffb6592c, levent 0x902
  78 //#define USB_IDX             2
  79 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffb65864, levent 0x905
  80 //#define BATTCOVER_IDX       0
  81 //#define ANALOG_AV_FLAG      0x08000000 // Found @0xffb65874, levent 0x900 (non-inverted logic)
  82 //#define ANALOG_AV_IDX       0
  83 
  84 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  85 //static KeyMap keymap[] = {
  86 //    { 0, KEY_SHOOT_FULL      ,0x00002002 }, // Found @0xffb65834, levent 0x01
  87 //    { 0, KEY_SHOOT_HALF      ,0x00002000 }, // Found @0xffb6585c, levent 0x00
  88 //    { 0, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffb65834, levent 0x01
  89 //    { 0, KEY_POWER           ,0x00000008 }, // Found @0xffb6583c, levent 0x600
  90 //    { 0, KEY_UP              ,0x00000080 }, // Found @0xffb6584c, levent 0x04
  91 //    { 0, KEY_DOWN            ,0x00000100 }, // Found @0xffb65854, levent 0x05
  92 //    { 0, KEY_PLAYBACK        ,0x00800000 }, // Found @0xffb6586c, levent 0x601
  93 //    { 1, KEY_RIGHT           ,0x00004000 }, // Found @0xffb658ec, levent 0x07
  94 //    { 1, KEY_LEFT            ,0x00008000 }, // Found @0xffb658f4, levent 0x06
  95 //    { 1, KEY_SET             ,0x00010000 }, // Found @0xffb658fc, levent 0x08
  96 //    { 1, KEY_DISPLAY         ,0x00020000 }, // Found @0xffb65904, levent 0x0a
  97 //    { 1, KEY_MENU            ,0x00040000 }, // Found @0xffb6590c, levent 0x09
  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    4416 // Found @0xff93e0b8
 105 //#define CAM_RAW_ROWS      3296 // Found @0xff93e0c0
 106 //#undef  CAM_UNCACHED_BIT
 107 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff83a69c
 108 //#define CAM_DATE_FOLDER_NAMING 0x100 // Found @0xffa85d58 (pass as 3rd param to GetImageFolder)
 109 //#define PARAM_CAMERA_NAME 4 // Found @0xffc0bfb8
 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, 0xffb642a6)
 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: 0x19ec, found @ 0xff816908
 151 
 152 // LED table init @ 0xff91e080
 153 // LED #1: 0xc0223030, offset 0x1d8
 154 // LED #2: 0xc0220130, offset 0x4
 155 // LED #3: 0xc0220138, offset 0x38
 156 
 157 // For capt_seq.c
 158 DEF(_nrflag,0x75b0) // Found @ ff972f8c (0x75b8) & ff972fac (-0x08)
 159 //static long *nrflag = (long*)(0x75b8-0x08);  // Found @ ff972f8c & ff972fa8
 160 
 161 // Stubs below matched 100%.
 162 //    Name                                     Address                Comp to stubs_entry_2.S
 163 NHSTUB(AllocateUncacheableMemory              ,0xff83a658) //112
 164 NHSTUB(Close                                  ,0xff836c50) //120
 165 NHSTUB(CreateBinarySemaphore                  ,0xff839e38) //115
 166 NHSTUB(CreateTask                             ,0xff81e83c) //120
 167 NHSTUB(DebugAssert                            ,0xff81eb14) //107
 168 NHSTUB(DeleteDirectory_Fut                    ,0xff8366ac) //116
 169 NHSTUB(DeleteFile_Fut                         ,0xff8365c8) //112
 170 NHSTUB(DoAELock                               ,0xff83863c) //120
 171 NHSTUB(DoAFLock                               ,0xff8383f0) //120
 172 NHSTUB(EnterToCompensationEVF                 ,0xff838598) //104
 173 NHSTUB(ExecuteEventProcedure                  ,0xff88d364) //104
 174 NHSTUB(ExitFromCompensationEVF                ,0xff8385dc) //104
 175 NHSTUB(ExitTask                               ,0xff81eacc) //120
 176 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff846458) //104
 177 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff846530) //104
 178 NHSTUB(Fclose_Fut                             ,0xff836744) //120
 179 NHSTUB(Feof_Fut                               ,0xff836930) //  1
 180 NHSTUB(Fflush_Fut                             ,0xff83696c) //  1
 181 NHSTUB(Fgets_Fut                              ,0xff836898) //  1
 182 NHSTUB(Fopen_Fut                              ,0xff836704) //120
 183 NHSTUB(Fread_Fut                              ,0xff8367f0) //120
 184 NHSTUB(FreeUncacheableMemory                  ,0xff83a698) //112
 185 NHSTUB(Fseek_Fut                              ,0xff8368e4) //120
 186 NHSTUB(Fwrite_Fut                             ,0xff836844) //120
 187 NHSTUB(GetBatteryTemperature                  ,0xff866f08) //102
 188 NHSTUB(GetCCDTemperature                      ,0xff866e94) //102
 189 NHSTUB(GetCurrentAvValue                      ,0xff9665d4) //120
 190 NHSTUB(GetCurrentShutterSpeed                 ,0xff8b3904) //120
 191 NHSTUB(GetUsableMaxAv                         ,0xffb26ddc) //120
 192 NHSTUB(GetUsableMinAv                         ,0xffb26dc4) //120
 193 NHSTUB(GetDrive_ClusterSize                   ,0xff873868) //122
 194 NHSTUB(GetDrive_FreeClusters                  ,0xff8738c8) //  4
 195 NHSTUB(GetDrive_TotalClusters                 ,0xff87389c) //  3
 196 NHSTUB(GetFocusLensSubjectDistance            ,0xff964644) //102
 197 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff9649cc) //  3
 198 NHSTUB(GetImageFolder                         ,0xff94513c) //122
 199 NHSTUB(GetKbdState                            ,0xff861d88) //109
 200 NHSTUB(GetMemInfo                             ,0xff81a16c) //115
 201 NHSTUB(GetOpticalTemperature                  ,0xff866f7c) //120
 202 NHSTUB(GetParameterData                       ,0xff99d9a8) //101
 203 NHSTUB(GetPropertyCase                        ,0xff891070) //102
 204 NHSTUB(GetSystemTime                          ,0xffac3fac) //120
 205 NHSTUB(GetVRAMHPixelsSize                     ,0xff851458) //120
 206 NHSTUB(GetVRAMVPixelsSize                     ,0xff851464) //120
 207 NHSTUB(GetZoomLensCurrentPoint                ,0xff9698ac) //120
 208 NHSTUB(GetZoomLensCurrentPosition             ,0xffab484c) //102
 209 NHSTUB(GiveSemaphore                          ,0xff83a074) //120
 210 NHSTUB(IsStrobeChargeCompleted                ,0xff8da74c) //102
 211 NHSTUB(LEDDrive                               ,0xff860ff8) //120
 212 NHSTUB(LocalTime                              ,0xff88ac58) //115
 213 NHSTUB(LockMainPower                          ,0xff8975b4) //120
 214 NHSTUB(MakeDirectory_Fut                      ,0xff83663c) //116
 215 NHSTUB(MoveFocusLensToDistance                ,0xffb2918c) //102
 216 NHSTUB(MoveIrisWithAv                         ,0xffac169c) //120
 217 NHSTUB(MoveZoomLensWithPoint                  ,0xffac1d10) //120
 218 NHSTUB(MoveOpticalZoomAt                      ,0xff837db8) //109
 219 NHSTUB(Open                                   ,0xff836be4) //120
 220 NHSTUB(PB2Rec                                 ,0xff89a7a8) //104
 221 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff87c00c) //120
 222 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff87bfe4) //120
 223 NHSTUB(PT_PlaySound                           ,0xff885cd0) //122
 224 NHSTUB(PostLogicalEventForNotPowerType        ,0xff89538c) //120
 225 NHSTUB(PostLogicalEventToUI                   ,0xff8953d8) //120
 226 NHSTUB(PutInNdFilter                          ,0xffb26e48) //102
 227 NHSTUB(PutOutNdFilter                         ,0xffb26e80) //102
 228 NHSTUB(Read                                   ,0xff81ac7c) //120
 229 NHSTUB(ReadFastDir                            ,0xffaa1d20) //  4
 230 NHSTUB(Rec2PB                                 ,0xff899080) //104
 231 NHSTUB(RefreshPhysicalScreen                  ,0xffa1db68) //104
 232 NHSTUB(RenameFile_Fut                         ,0xff836534) //116
 233 NHSTUB(Restart                                ,0xff83be34) //122
 234 NHSTUB(ScreenLock                             ,0xffa1ed98) //117
 235 NHSTUB(ScreenUnlock                           ,0xffa1eddc) //117
 236 NHSTUB(SetAE_ShutterSpeed                     ,0xffb2b928) //102
 237 NHSTUB(SetAutoShutdownTime                    ,0xff897628) //120
 238 NHSTUB(SetCurrentCaptureModeType              ,0xff8a0618) //120
 239 NHSTUB(SetFileAttributes                      ,0xff836f48) //  3
 240 NHSTUB(SetFileTimeStamp                       ,0xff836eec) //  4
 241 NHSTUB(SetLogicalEventActive                  ,0xff8972f0) //120
 242 NHSTUB(SetParameterData                       ,0xff99d918) //101
 243 NHSTUB(SetPropertyCase                        ,0xff890f40) //102
 244 NHSTUB(SetScriptMode                          ,0xff897340) //120
 245 NHSTUB(SleepTask                              ,0xff83a2dc) //120
 246 NHSTUB(TakeSemaphore                          ,0xff839fa4) //120
 247 NHSTUB(TurnOffBackLight                       ,0xff8a732c) //104
 248 NHSTUB(TurnOnBackLight                        ,0xff8a7314) //104
 249 NHSTUB(TurnOnDisplay                          ,0xff85c1e4) //120
 250 NHSTUB(TurnOffDisplay                         ,0xff85c1f4) //120
 251 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff98a11c) //120
 252 NHSTUB(UnlockAE                               ,0xff8386c8) //120
 253 NHSTUB(UnlockAF                               ,0xff838480) //120
 254 NHSTUB(UnlockMainPower                        ,0xff897508) //120
 255 NHSTUB(UpdateMBROnFlash                       ,0xff8736e8) //105
 256 NHSTUB(VbattGet                               ,0xff832ffc) //120
 257 NHSTUB(Write                                  ,0xff836ce0) //120
 258 NHSTUB(WriteSDCard                            ,0xff95416c) //108
 259 NHSTUB(_log                                   ,0xffb613b4) //111
 260 NHSTUB(_log10                                 ,0xffb60040) //112
 261 NHSTUB(_pow                                   ,0xffb601b0) //121
 262 NHSTUB(_sqrt                                  ,0xffb62fbc) //  1
 263 NHSTUB(add_ptp_handler                        ,0xffa5c93c) //121
 264 NHSTUB(apex2us                                ,0xffa2260c) //121
 265 NHSTUB(close                                  ,0xff81aa94) //109
 266 NHSTUB(err_init_task                          ,0xff815f4c) //111
 267 NHSTUB(exmem_alloc                            ,0xff88bb98) //103
 268 NHSTUB(exmem_ualloc                           ,0xff88b9ec) //103
 269 NHSTUB(exmem_ufree                            ,0xff88bb38) //103
 270 NHSTUB(free                                   ,0xff81415c) //112
 271 NHSTUB(kbd_p1_f                               ,0xff8346e4) //109
 272 NHSTUB(kbd_p1_f_cont                          ,0xff8346f0) //109
 273 NHSTUB(kbd_p2_f                               ,0xff833f90) //109
 274 NHSTUB(kbd_read_keys                          ,0xff83466c) //109
 275 NHSTUB(kbd_read_keys_r2                       ,0xff861580) //109
 276 NHSTUB(lseek                                  ,0xff836d6c) //120
 277 NHSTUB(malloc                                 ,0xff814100) //112
 278 NHSTUB(memcmp                                 ,0xff82067c) //120
 279 NHSTUB(memcpy                                 ,0xff83fdb4) //120
 280 NHSTUB(memset                                 ,0xffa21644) //120
 281 NHSTUB(mkdir                                  ,0xff8370ec) //109
 282 NHSTUB(mktime_ext                             ,0xff8af464) //  1
 283 NHSTUB(open                                   ,0xff81a9e4) //109
 284 NHSTUB(OpenFastDir                            ,0xffaa1bcc) //  4
 285 NHSTUB(closedir                               ,0xffaa1b7c) //121
 286 NHSTUB(get_fstype                             ,0xff8738ec) //122
 287 NHSTUB(qsort                                  ,0xffb17f74) //  4
 288 NHSTUB(rand                                   ,0xff820784) //121
 289 NHSTUB(realloc                                ,0xffa216c0) //115
 290 NHSTUB(reboot_fw_update                       ,0xffaa7164) //106
 291 NHSTUB(set_control_event                      ,0xff896f40) //111
 292 NHSTUB(srand                                  ,0xff820778) //122
 293 NHSTUB(stat                                   ,0xff836db4) //109
 294 NHSTUB(strcat                                 ,0xff8aec20) //  1
 295 NHSTUB(strchr                                 ,0xff813fe4) //  1
 296 NHSTUB(strcmp                                 ,0xff820638) //120
 297 NHSTUB(strcpy                                 ,0xff820620) //120
 298 NHSTUB(strftime                               ,0xff8aee6c) //113
 299 NHSTUB(strlen                                 ,0xff814030) //120
 300 NHSTUB(strncmp                                ,0xff813f98) //  1
 301 NHSTUB(strncpy                                ,0xff813f5c) //  1
 302 NHSTUB(strrchr                                ,0xff814008) //  1
 303 NHSTUB(strtol                                 ,0xff840094) //101
 304 NHSTUB(strtolx                                ,0xff83fe98) //109
 305    DEF(task_CaptSeq                           ,0xff87eb90) //120
 306    DEF(task_DvlpSeqTask                       ,0xff880308) //120
 307    DEF(task_ExpDrv                            ,0xff8c475c) //120
 308    DEF(task_FileWrite                         ,0xffa9c7f8) //120
 309    DEF(task_InitFileModules                   ,0xff89b134) //120
 310    DEF(task_MovieRecord                       ,0xff96e110) //120
 311    DEF(task_PhySw                             ,0xff8342c0) //120
 312    DEF(task_RotaryEncoder                     ,0xff862024) //120
 313 NHSTUB(time                                   ,0xff88b238) //109
 314 NHSTUB(vsprintf                               ,0xff8205e4) //115
 315 NHSTUB(EngDrvRead                             ,0xff835538) //102
 316 NHSTUB(PTM_GetCurrentItem                     ,0xff898070) //105
 317 NHSTUB(DisableISDriveError                    ,0xffac255c) //120
 318 NHSTUB(CancelHPTimer                          ,0xff88ca4c) //119
 319 NHSTUB(SetHPTimerAfterNow                     ,0xff88c944) //119
 320 NHSTUB(PT_MFOn                                ,0xff87c09c) //120
 321 NHSTUB(PT_MFOff                               ,0xff87c0ac) //120
 322 NHSTUB(GetAdChValue                           ,0xff85d7b4) //120
 323 NHSTUB(EnableHDMIPower                        ,0xff8609fc) //123
 324 NHSTUB(DisableHDMIPower                       ,0xff860a04) //123
 325 NHSTUB(get_ptp_buf_size                       ,0xff906794) //122
 326 NHSTUB(get_ptp_file_buf                       ,0xffa5e32c) //121
 327 NHSTUB(SetVideoOutType                        ,0xffb2c148) //109
 328 NHSTUB(GetVideoOutType                        ,0xffb2c078) //120

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