root/platform/sx10/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 @ 0xff8787c0, "GM1.00C" @ 0xff8787cd
   7 //   Firmware build timestamp: Sep 14 2008 14:57:56
   8 //   Canon PowerShot SX10 IS
   9 
  10 // Values for makefile.inc
  11 //   DIGIC = 40# DIGIC 4
  12 //   PLATFORMOSVER = 31
  13 //   PLATFORMID = 12685# (0x318d) Found @ 0xfffe0130
  14 //   MAXRAMADDR = 0x03ffffff
  15 //   MEMISOSTART = 0x000acb74
  16 //   KEYSYS = d4# Found @ 0xffff3570
  17 //   NEED_ENCODED_DISKBOOT = 1# Found @ 0xffff3580
  18 //   ARAM_HEAP_START = 0x30e000# Found @ 0xff956384
  19 //   ARAM_HEAP_SIZE  = 0x32000# Found @ 0xff956344
  20 
  21 // Detected address ranges:
  22 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  23 // RAM data 0x00001900 - 0x00010a50 copied from 0xffb9b26c (  61776 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                          ,0xff84b810) //  2 60%    *** != 0x00000000
  28 
  29 // Check of modemap from 'platform/CAMERA/shooting.c':
  30 // Firmware modemap table found @ffa79978 -> ffb74378
  31 // No problems found with modemap table.
  32 
  33 // Values below can be overridden in 'stubs_min.S':
  34 DEF(physw_status                            ,0x00011ec4) // Found @0xff821b14
  35 DEF(physw_run                               ,0x00001c30) // Found @0xff821788
  36 DEF(physw_sleep_delay                       ,0x00001c2e) // Found @0xff821788
  37 DEF(levent_table                            ,0xffb4acb8) // Found @0xffb4acb8
  38 DEF(FlashParamsTable                        ,0xffb7454c) // Found @0xffb7454c
  39 DEF(movie_status                            ,0x00005430) // Found @0xff8642fc
  40 DEF(video_compression_rate                  ,0x0000545c) // Found @0xff864508
  41 DEF(canon_menu_active                       ,0x000058d8) // Found @0xff87a1e4
  42 DEF(canon_shoot_menu_active                 ,0x0000ac29) // Found @0xff98cb14
  43 DEF(playrec_mode                            ,0x00005640) // Found @0xff86d210
  44 DEF(zoom_status                             ,0x0000e3e0) // Found @0xffa7b644
  45 DEF(some_flag_for_af_scan                   ,0x00009b58) // Found @0xff94a2ac
  46 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  47 // each entry contains 1 int value, which is the the zoom focus length.
  48 // there are 6 entries in the table - set NUM_FL to 6
  49 DEF(focus_len_table                         ,0xffb77cd0) // Found @0xffb77cd0
  50 DEF(zoom_busy                               ,0x00009100) // Found @0xff9407e8
  51 DEF(focus_busy                              ,0x00008f8c) // Found @0xff9397fc
  52 //DEF(recreview_hold                          ,0x0000645c) // Found @0xff88b558, ** != ** stubs_min = 0x0000a868 (0xA78C+0xDC)
  53 // Camera has 2 RAW buffers @ 0x40f65b18 & 0x424f1948
  54 //  Note: active buffer --> raw_buffers[ active_raw_buffer   *3]
  55 //        other buffer  --> raw_buffers[(active_raw_buffer^1)*3]
  56 DEF(raw_buffers                             ,0xffb0b4fc) // Found @0xffb0b4fc
  57 DEF(active_raw_buffer                       ,0x000055e4) // Found @0xff86a564
  58 DEF(fileio_semaphore                        ,0x00002a58) // Found @0xff8596b0
  59 DEF(exmem_alloc_table                       ,0x0001c298) // Found @0xff873ac8
  60 DEF(exmem_types_table                       ,0xffb9f09c) // Found @0x00005730
  61 DEF_CONST(exmem_type_count                  ,0x00000012)
  62 DEF(imager_active                           ,0x00001fb4) // Found @0xff837768 (0x1fb0 + 4)
  63 DEF_CONST(uiprop_count                      ,0x00000069) // Found @0xff974810
  64 DEF(cameracon_state                         ,0x00005f20) // Found @0xff8823a4
  65 
  66 // Values below go in 'lib.c':
  67 //void *vid_get_bitmap_fb()        { return (void*)0x403b1000; }             // Found @0xff846c28
  68 //void *vid_get_viewport_fb()      { return (void*)0x4070d9d0; }             // Found @0xffad159c
  69 DEF(viewport_fb_d                           ,0x000052b8) // Found 0x5260 (@0xff85c764) + 0x58 (@0xff85c79c)
  70 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x5260+0x58)); } // Found @0xff85c764 & 0xff85c79c
  71 DEF(jpeg_count_str                          ,0x0004c138) // Found @0xff9d283c
  72 //char *camera_jpeg_count_str()    { return (char*)0x0004c138; }             // Found @0xff9d283c
  73 //int get_flash_params_count(void) { return 0x78; }                          // Found @0xff975464
  74 
  75 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  76 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffb0ad4c, levent 0x90a
  77 //#define SD_READONLY_IDX     2
  78 //#define USB_MASK            0x00040000 // Found @0xffb0ad58, levent 0x902
  79 //#define USB_IDX             2
  80 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffb0abfc, levent 0x905
  81 //#define BATTCOVER_IDX       0
  82 //#define HOTSHOE_FLAG        0x10000000 // Found @0xffb0ad88, levent 0x904
  83 //#define HOTSHOE_IDX         2
  84 //#define ANALOG_AV_FLAG      0x02000000 // Found @0xffb0ac08, levent 0x900 (non-inverted logic)
  85 //#define ANALOG_AV_IDX       0
  86 
  87 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  88 //static KeyMap keymap[] = {
  89 //    { 0, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffb0abd8, levent 0x01
  90 //    { 0, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffb0abd8, levent 0x01
  91 //    { 0, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffb0abcc, levent 0x00
  92 //    { 0, KEY_POWER           ,0x00002000 }, // Found @0xffb0abe4, levent 0x600
  93 //    { 0, KEY_PLAYBACK        ,0x00004000 }, // Found @0xffb0abf0, levent 0x601
  94 //    { 1, KEY_VIDEO           ,0x00000020 }, // Found @0xffb0ac50, levent 0x12
  95 //    { 1, KEY_SET             ,0x00000100 }, // Found @0xffb0ac74, levent 0x08
  96 //    { 1, KEY_DISPLAY         ,0x00000200 }, // Found @0xffb0ac80, levent 0x0a
  97 //    { 1, KEY_UP              ,0x00000400 }, // Found @0xffb0ac8c, levent 0x04
  98 //    { 1, KEY_DOWN            ,0x00000800 }, // Found @0xffb0ac98, levent 0x05
  99 //    { 1, KEY_RIGHT           ,0x00001000 }, // Found @0xffb0aca4, levent 0x07
 100 //    { 1, KEY_LEFT            ,0x00002000 }, // Found @0xffb0acb0, levent 0x06
 101 //    { 1, KEY_MENU            ,0x00004000 }, // Found @0xffb0acbc, levent 0x09
 102 //    { 0, 0, 0 }
 103 //};
 104 
 105 // Values below go in 'platform_camera.h':
 106 //#define CAM_DRYOS         1
 107 //#define CAM_RAW_ROWPIX    3720 // Found @0xffaca160
 108 //#define CAM_RAW_ROWS      2772 // Found @0xffaca168
 109 //#undef  CAM_UNCACHED_BIT
 110 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff828010
 111 //#define PARAM_CAMERA_NAME 4 // Found @0xffb76964
 112 
 113 // Below goes in 'filewrite.c' or 'platform_camera.h':
 114 //#define MAX_CHUNKS_FOR_FWT 3 // Found @0xffa45a98
 115 
 116 // Known propcases
 117 // //      PROPCASE_AFSTEP 13
 118 // #define PROPCASE_FOCUS_STATE 18
 119 // #define PROPCASE_AV 23
 120 // #define PROPCASE_BV 34
 121 // //      PROPCASE_DELTA_DIGITALGAIN 77
 122 // #define PROPCASE_DELTA_SV 79
 123 // //      PROPCASE_DELTA_ND 80
 124 // #define PROPCASE_EV_CORRECTION_2 207
 125 // #define PROPCASE_ORIENTATION_SENSOR 219
 126 // #define PROPCASE_SV_MARKET 246
 127 // //      PROPCASE_SVFIX 247
 128 // #define PROPCASE_TV 262
 129 // Guessed propset: 2
 130 
 131 // Misc stuff
 132 DEF(ctypes, 0xffb04656)
 133 
 134 // EXMEM types:
 135 // EXMEM_RAMDISK        0
 136 // EXMEM_COM            1
 137 // EXMEM_FORMATTER      2
 138 // EXMEM_SHADING        3
 139 // EXMEM_FAMODE         4
 140 // EXMEM_FIRMUP         5
 141 // EXMEM_FIRMUP_VRAM    6
 142 // EXMEM_FIRMUP_INFLATE 7
 143 // EXMEM_DVLPWORK       8
 144 // EXMEM_EVF            9
 145 // EXMEM_SCRIPT         10
 146 // EXMEM_FILESTORE      11
 147 // EXMEM_MOVIE_REC      12
 148 // EXMEM_MOVIE_PLY      13
 149 // EXMEM_WIDE           14
 150 // EXMEM_NARROW         15
 151 // EXMEM_CRAW_REC       16
 152 // EXMEM_PCEVF          17
 153 
 154 // ISR flag: 0x195c, pointer to current task's control block: 0x1958
 155 // pointer to TCB area: 0x19e8, found @ 0xff815724
 156 
 157 // LED table init @ 0xff8f4c8c
 158 // LED #1: 0xc02200b4, offset 0x244
 159 // LED #2: 0xc02200b8, offset 0x144
 160 // LED #3: 0xc0220060, offset 0x204
 161 // LED #4: 0xc022005c, offset 0x1c4
 162 
 163 // For capt_seq.c
 164 DEF(_nrflag,0x9b40) // Found @ ff94c9a0 (0x9b44) & ff94c9bc (-0x04)
 165 //static long *nrflag = (long*)(0x9b44-0x04);  // Found @ ff94c9a0 & ff94c9b8
 166 
 167 // Stubs below matched 100%.
 168 //    Name                                     Address                Comp to stubs_entry_2.S
 169 NHSTUB(AllocateUncacheableMemory              ,0xff827fcc) //112
 170 NHSTUB(Close                                  ,0xff823a64) //120
 171 NHSTUB(CreateBinarySemaphore                  ,0xff8277ac) //115
 172 NHSTUB(CreateTask                             ,0xff81aef4) //120
 173 NHSTUB(DebugAssert                            ,0xff81b1cc) //107
 174 NHSTUB(DeleteDirectory_Fut                    ,0xff8233f4) //116
 175 NHSTUB(DeleteFile_Fut                         ,0xff823310) //112
 176 NHSTUB(DeleteSemaphore                        ,0xff82786c) //120
 177 NHSTUB(DoAELock                               ,0xff825bb4) //120
 178 NHSTUB(DoAFLock                               ,0xff825864) //120
 179 NHSTUB(EnterToCompensationEVF                 ,0xff825b10) //104
 180 NHSTUB(ExecuteEventProcedure                  ,0xff8759e8) //104
 181 NHSTUB(ExitFromCompensationEVF                ,0xff825b54) //104
 182 NHSTUB(ExitTask                               ,0xff81b184) //120
 183 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff8311d8) //104
 184 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff83131c) //104
 185 NHSTUB(Fclose_Fut                             ,0xff82348c) //120
 186 NHSTUB(Feof_Fut                               ,0xff823678) //  1
 187 NHSTUB(Fflush_Fut                             ,0xff8236b4) //  1
 188 NHSTUB(Fgets_Fut                              ,0xff8235e0) //  1
 189 NHSTUB(Fopen_Fut                              ,0xff82344c) //120
 190 NHSTUB(Fread_Fut                              ,0xff823538) //120
 191 NHSTUB(FreeUncacheableMemory                  ,0xff82800c) //112
 192 NHSTUB(Fseek_Fut                              ,0xff82362c) //120
 193 NHSTUB(Fwrite_Fut                             ,0xff82358c) //120
 194 NHSTUB(GetBatteryTemperature                  ,0xff84e658) //102
 195 NHSTUB(GetCCDTemperature                      ,0xff84e5e8) //102
 196 NHSTUB(GetCurrentAvValue                      ,0xff93be7c) //120
 197 NHSTUB(GetCurrentShutterSpeed                 ,0xff89cef0) //120
 198 NHSTUB(GetUsableMaxAv                         ,0xffacb844) //120
 199 NHSTUB(GetUsableMinAv                         ,0xffacb82c) //120
 200 NHSTUB(GetDrive_ClusterSize                   ,0xff85ae90) //  1
 201 NHSTUB(GetDrive_FreeClusters                  ,0xff85aef8) //  1
 202 NHSTUB(GetDrive_TotalClusters                 ,0xff85aec4) //  1
 203 NHSTUB(GetFocusLensSubjectDistance            ,0xff93a304) //102
 204 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff93a610) //  3
 205 NHSTUB(GetKbdState                            ,0xff84b660) //109
 206 NHSTUB(GetMemInfo                             ,0xff813c24) //115
 207 NHSTUB(GetOpticalTemperature                  ,0xff84e6c8) //120
 208 NHSTUB(GetParameterData                       ,0xff975424) //101
 209 NHSTUB(GetPropertyCase                        ,0xff8796d0) //102
 210 NHSTUB(GetSystemTime                          ,0xffa67b3c) //120
 211 NHSTUB(GetVRAMHPixelsSize                     ,0xff83ccb4) //120
 212 NHSTUB(GetVRAMVPixelsSize                     ,0xff83ccc0) //120
 213 NHSTUB(GetZoomLensCurrentPoint                ,0xff941128) //120
 214 NHSTUB(GetZoomLensCurrentPosition             ,0xffa5b23c) //102
 215 NHSTUB(GiveSemaphore                          ,0xff8279e8) //120
 216 NHSTUB(IsStrobeChargeCompleted                ,0xff8b69f8) //102
 217 NHSTUB(LEDDrive                               ,0xff84ab48) //120
 218 NHSTUB(LocalTime                              ,0xff873184) //115
 219 NHSTUB(LockMainPower                          ,0xff880f68) //120
 220 NHSTUB(MakeDirectory_Fut                      ,0xff823384) //116
 221 NHSTUB(MoveFocusLensToDistance                ,0xffacd91c) //102
 222 NHSTUB(MoveIrisWithAv                         ,0xffa63110) //120
 223 NHSTUB(MoveZoomLensWithPoint                  ,0xffa63838) //120
 224 NHSTUB(MoveOpticalZoomAt                      ,0xff82505c) //109
 225 NHSTUB(Open                                   ,0xff823a3c) //120
 226 NHSTUB(PB2Rec                                 ,0xff883fd0) //104
 227 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff866084) //120
 228 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff86605c) //120
 229 NHSTUB(PT_PlaySound                           ,0xff8659d4) //102
 230 NHSTUB(PostLogicalEventForNotPowerType        ,0xff87ec94) //120
 231 NHSTUB(PostLogicalEventToUI                   ,0xff87ece0) //120
 232 NHSTUB(PutInNdFilter                          ,0xffa636bc) //102
 233 NHSTUB(PutOutNdFilter                         ,0xffa636e0) //102
 234 NHSTUB(Read                                   ,0xff819a4c) //120
 235 NHSTUB(ReadFastDir                            ,0xffa49114) //  1
 236 NHSTUB(Rec2PB                                 ,0xff882958) //104
 237 NHSTUB(RefreshPhysicalScreen                  ,0xff9df030) //104
 238 NHSTUB(RenameFile_Fut                         ,0xff8232bc) //  1
 239 NHSTUB(Restart                                ,0xff829848) //122
 240 NHSTUB(SetAE_ShutterSpeed                     ,0xffad07ac) //102
 241 NHSTUB(SetAutoShutdownTime                    ,0xff880fdc) //120
 242 NHSTUB(SetCurrentCaptureModeType              ,0xff8886ac) //120
 243 NHSTUB(SetDate                                ,0xffad21e8) //120
 244 NHSTUB(SetFileAttributes                      ,0xff823d90) //  1
 245 NHSTUB(SetFileTimeStamp                       ,0xff823d40) //  1
 246 NHSTUB(SetLogicalEventActive                  ,0xff880c28) //120
 247 NHSTUB(SetParameterData                       ,0xff975300) //101
 248 NHSTUB(SetPropertyCase                        ,0xff8795c8) //102
 249 NHSTUB(SetScriptMode                          ,0xff880c78) //120
 250 NHSTUB(SleepTask                              ,0xff827c50) //120
 251 NHSTUB(TakeSemaphore                          ,0xff827918) //120
 252 NHSTUB(TurnOffBackLight                       ,0xff88f284) //104
 253 NHSTUB(TurnOnBackLight                        ,0xff88f26c) //104
 254 NHSTUB(TurnOnDisplay                          ,0xff846cf0) //120
 255 NHSTUB(TurnOffDisplay                         ,0xff846d00) //120
 256 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff963734) //120
 257 NHSTUB(UnlockAE                               ,0xff825bd8) //120
 258 NHSTUB(UnlockAF                               ,0xff82589c) //120
 259 NHSTUB(UnlockMainPower                        ,0xff880ebc) //120
 260 NHSTUB(UpdateMBROnFlash                       ,0xff85acd0) //105
 261 NHSTUB(VbattGet                               ,0xff82046c) //120
 262 NHSTUB(Write                                  ,0xff823b10) //120
 263 NHSTUB(WriteSDCard                            ,0xff92a99c) //108
 264 NHSTUB(_log                                   ,0xffb018d4) //111
 265 NHSTUB(_log10                                 ,0xffb00560) //112
 266 NHSTUB(_pow                                   ,0xffb006d0) //121
 267 NHSTUB(_sqrt                                  ,0xffb03530) //  1
 268 NHSTUB(add_ptp_handler                        ,0xffa1726c) //121
 269 NHSTUB(apex2us                                ,0xff9e0118) //121
 270 NHSTUB(close                                  ,0xff819864) //109
 271 NHSTUB(err_init_task                          ,0xff814e80) //111
 272 NHSTUB(exmem_alloc                            ,0xff8740c4) //103
 273 NHSTUB(exmem_ualloc                           ,0xff873f18) //103
 274 NHSTUB(exmem_ufree                            ,0xff874064) //103
 275 NHSTUB(free                                   ,0xff813a7c) //112
 276 NHSTUB(get_current_nd_value                   ,0xffa597d8) //122
 277 NHSTUB(get_current_deltasv                    ,0xff89da80) //122
 278 NHSTUB(GetCurrentDriveBaseSvValue             ,0xff8a2778) //123
 279 NHSTUB(kbd_p1_f                               ,0xff821c10) //109
 280 NHSTUB(kbd_p1_f_cont                          ,0xff821c1c) //109
 281 NHSTUB(kbd_p2_f                               ,0xff821428) //109
 282 NHSTUB(kbd_read_keys                          ,0xff821b14) //109
 283 NHSTUB(kbd_read_keys_r2                       ,0xff84af6c) //109
 284 NHSTUB(lseek                                  ,0xff823ba4) //120
 285 NHSTUB(malloc                                 ,0xff8139a8) //112
 286 NHSTUB(memcmp                                 ,0xff81cba4) //120
 287 NHSTUB(memcpy                                 ,0xff89ba80) //120
 288 NHSTUB(memset                                 ,0xff9df450) //120
 289 NHSTUB(mkdir                                  ,0xff823e08) //109
 290 NHSTUB(mktime_ext                             ,0xff89c2ec) //  1
 291 NHSTUB(open                                   ,0xff8197b4) //109
 292 NHSTUB(OpenFastDir                            ,0xffa49080) //  1
 293 NHSTUB(closedir                               ,0xffa491e4) //  1
 294 NHSTUB(qsort                                  ,0xffab814c) //  1
 295 NHSTUB(rand                                   ,0xff81ccac) //121
 296 NHSTUB(realloc                                ,0xff813b5c) //115
 297 NHSTUB(reboot_fw_update                       ,0xffa50b14) //106
 298 NHSTUB(set_control_event                      ,0xff880884) //111
 299 NHSTUB(srand                                  ,0xff81cca0) //122
 300 NHSTUB(stat                                   ,0xff823c70) //  1
 301 NHSTUB(strcat                                 ,0xff89b894) //  1
 302 NHSTUB(strchr                                 ,0xff89b91c) //  1
 303 NHSTUB(strcmp                                 ,0xff81cb3c) //120
 304 NHSTUB(strcpy                                 ,0xff81cb24) //120
 305 NHSTUB(strftime                               ,0xff89bcf4) //  1
 306 NHSTUB(strlen                                 ,0xff81cb80) //120
 307 NHSTUB(strncmp                                ,0xff89b8d0) //  1
 308 NHSTUB(strncpy                                ,0xff82db14) //  1
 309 NHSTUB(strrchr                                ,0xff9df428) //  1
 310 NHSTUB(strtol                                 ,0xff82dd4c) //101
 311 NHSTUB(strtolx                                ,0xff82db50) //109
 312    DEF(task_CaptSeq                           ,0xff868b90) //120
 313    DEF(task_DvlpSeqTask                       ,0xff94d758) //120
 314    DEF(task_ExpDrv                            ,0xff8ad7c4) //120
 315    DEF(task_FileWrite                         ,0xffa45a34) //120
 316    DEF(task_InitFileModules                   ,0xff884a4c) //120
 317    DEF(task_MovieRecord                       ,0xff864584) //120
 318    DEF(task_PhySw                             ,0xff821784) //120
 319    DEF(task_RotaryEncoder                     ,0xff84b8d8) //120
 320 NHSTUB(time                                   ,0xff873764) //109
 321 NHSTUB(vsprintf                               ,0xff81cae8) //115
 322 NHSTUB(EngDrvRead                             ,0xff822a50) //102
 323 NHSTUB(PTM_GetCurrentItem                     ,0xff8817e8) //105
 324 NHSTUB(CancelHPTimer                          ,0xff874f24) //119
 325 NHSTUB(SetHPTimerAfterNow                     ,0xff874e1c) //119
 326 NHSTUB(PT_MFOn                                ,0xff8660fc) //120
 327 NHSTUB(PT_MFOff                               ,0xff86610c) //120
 328 NHSTUB(GetAdChValue                           ,0xff848c64) //120
 329 NHSTUB(get_ptp_buf_size                       ,0xff8d7b7c) //122
 330 NHSTUB(get_ptp_file_buf                       ,0xffa18bf0) //121
 331 NHSTUB(SetVideoOutType                        ,0xffad0f98) //109
 332 NHSTUB(GetVideoOutType                        ,0xffad0efc) //120

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