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

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