root/platform/sx10/sub/101a/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.01A   // Found @ 0xff8787c8, "GM1.01A" @ 0xff8787d5
   7 //   Firmware build timestamp: Oct  3 2008 10:47:12
   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 @ 0xff956394
  19 //   ARAM_HEAP_SIZE  = 0x32000# Found @ 0xff956354
  20 
  21 // Detected address ranges:
  22 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  23 // RAM data 0x00001900 - 0x00010a50 copied from 0xffb9b27c (  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 @ffa79988 -> ffb74388
  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                            ,0xffb4acc8) // Found @0xffb4acc8
  38 DEF(FlashParamsTable                        ,0xffb7455c) // Found @0xffb7455c
  39 DEF(movie_status                            ,0x00005430) // Found @0xff864304
  40 DEF(video_compression_rate                  ,0x0000545c) // Found @0xff864510
  41 DEF(canon_menu_active                       ,0x000058d8) // Found @0xff87a1ec
  42 DEF(canon_shoot_menu_active                 ,0x0000ac29) // Found @0xff98cb24
  43 DEF(playrec_mode                            ,0x00005640) // Found @0xff86d218
  44 DEF(zoom_status                             ,0x0000e3e0) // Found @0xffa7b654
  45 DEF(some_flag_for_af_scan                   ,0x00009b58) // Found @0xff94a2bc
  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                         ,0xffb77ce0) // Found @0xffb77ce0
  50 DEF(zoom_busy                               ,0x00009100) // Found @0xff9407f0
  51 DEF(focus_busy                              ,0x00008f8c) // Found @0xff939804
  52 //DEF(recreview_hold                          ,0x0000645c) // Found @0xff88b560, ** != ** 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                             ,0xffb0b50c) // Found @0xffb0b50c
  57 DEF(active_raw_buffer                       ,0x000055e4) // Found @0xff86a56c
  58 DEF(fileio_semaphore                        ,0x00002a58) // Found @0xff8596b8
  59 DEF(exmem_alloc_table                       ,0x0001c298) // Found @0xff873ad0
  60 DEF(exmem_types_table                       ,0xffb9f0ac) // 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 @0xff974820
  64 
  65 // Values below go in 'lib.c':
  66 //void *vid_get_bitmap_fb()        { return (void*)0x403b1000; }             // Found @0xff846c28
  67 //void *vid_get_viewport_fb()      { return (void*)0x4070d9d0; }             // Found @0xffad15ac
  68 DEF(viewport_fb_d                           ,0x000052b8) // Found 0x5260 (@0xff85c76c) + 0x58 (@0xff85c7a4)
  69 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x5260+0x58)); } // Found @0xff85c76c & 0xff85c7a4
  70 DEF(jpeg_count_str                          ,0x0004c138) // Found @0xff9d284c
  71 //char *camera_jpeg_count_str()    { return (char*)0x0004c138; }             // Found @0xff9d284c
  72 //int get_flash_params_count(void) { return 0x78; }                          // Found @0xff975474
  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 @0xffb0ad5c, levent 0x90a
  76 //#define SD_READONLY_IDX     2
  77 //#define USB_MASK            0x00040000 // Found @0xffb0ad68, levent 0x902
  78 //#define USB_IDX             2
  79 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffb0ac0c, levent 0x905
  80 //#define BATTCOVER_IDX       0
  81 //#define HOTSHOE_FLAG        0x10000000 // Found @0xffb0ad98, levent 0x904
  82 //#define HOTSHOE_IDX         2
  83 //#define ANALOG_AV_FLAG      0x02000000 // Found @0xffb0ac18, levent 0x900 (non-inverted logic)
  84 //#define ANALOG_AV_IDX       0
  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      ,0x00000003 }, // Found @0xffb0abe8, levent 0x01
  89 //    { 0, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffb0abe8, levent 0x01
  90 //    { 0, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffb0abdc, levent 0x00
  91 //    { 0, KEY_POWER           ,0x00002000 }, // Found @0xffb0abf4, levent 0x600
  92 //    { 0, KEY_PLAYBACK        ,0x00004000 }, // Found @0xffb0ac00, levent 0x601
  93 //    { 1, KEY_VIDEO           ,0x00000020 }, // Found @0xffb0ac60, levent 0x12
  94 //    { 1, KEY_SET             ,0x00000100 }, // Found @0xffb0ac84, levent 0x08
  95 //    { 1, KEY_DISPLAY         ,0x00000200 }, // Found @0xffb0ac90, levent 0x0a
  96 //    { 1, KEY_UP              ,0x00000400 }, // Found @0xffb0ac9c, levent 0x04
  97 //    { 1, KEY_DOWN            ,0x00000800 }, // Found @0xffb0aca8, levent 0x05
  98 //    { 1, KEY_RIGHT           ,0x00001000 }, // Found @0xffb0acb4, levent 0x07
  99 //    { 1, KEY_LEFT            ,0x00002000 }, // Found @0xffb0acc0, levent 0x06
 100 //    { 1, KEY_MENU            ,0x00004000 }, // Found @0xffb0accc, levent 0x09
 101 //    { 0, 0, 0 }
 102 //};
 103 
 104 // Values below go in 'platform_camera.h':
 105 //#define CAM_DRYOS         1
 106 //#define CAM_RAW_ROWPIX    3720 // Found @0xffaca170
 107 //#define CAM_RAW_ROWS      2772 // Found @0xffaca178
 108 //#undef  CAM_UNCACHED_BIT
 109 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff828010
 110 //#define PARAM_CAMERA_NAME 4 // Found @0xffb76974
 111 
 112 // Known propcases
 113 // //      PROPCASE_AFSTEP 13
 114 // #define PROPCASE_FOCUS_STATE 18
 115 // #define PROPCASE_AV 23
 116 // #define PROPCASE_BV 34
 117 // //      PROPCASE_DELTA_DIGITALGAIN 77
 118 // #define PROPCASE_DELTA_SV 79
 119 // //      PROPCASE_DELTA_ND 80
 120 // #define PROPCASE_EV_CORRECTION_2 207
 121 // #define PROPCASE_ORIENTATION_SENSOR 219
 122 // #define PROPCASE_SV_MARKET 246
 123 // //      PROPCASE_SVFIX 247
 124 // #define PROPCASE_TV 262
 125 // Guessed propset: 2
 126 
 127 // Misc stuff
 128 DEF(ctypes, 0xffb04666)
 129 
 130 // EXMEM types:
 131 // EXMEM_RAMDISK        0
 132 // EXMEM_COM            1
 133 // EXMEM_FORMATTER      2
 134 // EXMEM_SHADING        3
 135 // EXMEM_FAMODE         4
 136 // EXMEM_FIRMUP         5
 137 // EXMEM_FIRMUP_VRAM    6
 138 // EXMEM_FIRMUP_INFLATE 7
 139 // EXMEM_DVLPWORK       8
 140 // EXMEM_EVF            9
 141 // EXMEM_SCRIPT         10
 142 // EXMEM_FILESTORE      11
 143 // EXMEM_MOVIE_REC      12
 144 // EXMEM_MOVIE_PLY      13
 145 // EXMEM_WIDE           14
 146 // EXMEM_NARROW         15
 147 // EXMEM_CRAW_REC       16
 148 // EXMEM_PCEVF          17
 149 
 150 // ISR flag: 0x195c, pointer to current task's control block: 0x1958
 151 // pointer to TCB area: 0x19e8, found @ 0xff815724
 152 
 153 // LED table init @ 0xff8f4c94
 154 // LED #1: 0xc02200b4, offset 0x244
 155 // LED #2: 0xc02200b8, offset 0x144
 156 // LED #3: 0xc0220060, offset 0x204
 157 // LED #4: 0xc022005c, offset 0x1c4
 158 
 159 // For capt_seq.c
 160 DEF(_nrflag,0x9b40) // Found @ ff94c9b0 (0x9b44) & ff94c9cc (-0x04)
 161 //static long *nrflag = (long*)(0x9b44-0x04);  // Found @ ff94c9b0 & ff94c9c8
 162 
 163 // Stubs below matched 100%.
 164 //    Name                                     Address                Comp to stubs_entry_2.S
 165 NHSTUB(AllocateUncacheableMemory              ,0xff827fcc) //112
 166 NHSTUB(Close                                  ,0xff823a64) //120
 167 NHSTUB(CreateBinarySemaphore                  ,0xff8277ac) //115
 168 NHSTUB(CreateTask                             ,0xff81aef4) //120
 169 NHSTUB(DebugAssert                            ,0xff81b1cc) //107
 170 NHSTUB(DeleteDirectory_Fut                    ,0xff8233f4) //116
 171 NHSTUB(DeleteFile_Fut                         ,0xff823310) //112
 172 NHSTUB(DoAELock                               ,0xff825bb4) //120
 173 NHSTUB(DoAFLock                               ,0xff825864) //120
 174 NHSTUB(EnterToCompensationEVF                 ,0xff825b10) //104
 175 NHSTUB(ExecuteEventProcedure                  ,0xff8759f0) //104
 176 NHSTUB(ExitFromCompensationEVF                ,0xff825b54) //104
 177 NHSTUB(ExitTask                               ,0xff81b184) //120
 178 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff8311d8) //104
 179 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff83131c) //104
 180 NHSTUB(Fclose_Fut                             ,0xff82348c) //120
 181 NHSTUB(Feof_Fut                               ,0xff823678) //  1
 182 NHSTUB(Fflush_Fut                             ,0xff8236b4) //  1
 183 NHSTUB(Fgets_Fut                              ,0xff8235e0) //  1
 184 NHSTUB(Fopen_Fut                              ,0xff82344c) //120
 185 NHSTUB(Fread_Fut                              ,0xff823538) //120
 186 NHSTUB(FreeUncacheableMemory                  ,0xff82800c) //112
 187 NHSTUB(Fseek_Fut                              ,0xff82362c) //120
 188 NHSTUB(Fwrite_Fut                             ,0xff82358c) //120
 189 NHSTUB(GetBatteryTemperature                  ,0xff84e660) //102
 190 NHSTUB(GetCCDTemperature                      ,0xff84e5f0) //102
 191 NHSTUB(GetCurrentAvValue                      ,0xff93be84) //120
 192 NHSTUB(GetCurrentShutterSpeed                 ,0xff89cef8) //120
 193 NHSTUB(GetUsableMaxAv                         ,0xffacb854) //120
 194 NHSTUB(GetUsableMinAv                         ,0xffacb83c) //120
 195 NHSTUB(GetDrive_ClusterSize                   ,0xff85ae98) //  1
 196 NHSTUB(GetDrive_FreeClusters                  ,0xff85af00) //  1
 197 NHSTUB(GetDrive_TotalClusters                 ,0xff85aecc) //  1
 198 NHSTUB(GetFocusLensSubjectDistance            ,0xff93a30c) //102
 199 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff93a618) //  3
 200 NHSTUB(GetKbdState                            ,0xff84b660) //109
 201 NHSTUB(GetMemInfo                             ,0xff813c24) //115
 202 NHSTUB(GetOpticalTemperature                  ,0xff84e6d0) //120
 203 NHSTUB(GetParameterData                       ,0xff975434) //101
 204 NHSTUB(GetPropertyCase                        ,0xff8796d8) //102
 205 NHSTUB(GetSystemTime                          ,0xffa67b4c) //120
 206 NHSTUB(GetVRAMHPixelsSize                     ,0xff83ccb4) //120
 207 NHSTUB(GetVRAMVPixelsSize                     ,0xff83ccc0) //120
 208 NHSTUB(GetZoomLensCurrentPoint                ,0xff941130) //120
 209 NHSTUB(GetZoomLensCurrentPosition             ,0xffa5b24c) //102
 210 NHSTUB(GiveSemaphore                          ,0xff8279e8) //120
 211 NHSTUB(IsStrobeChargeCompleted                ,0xff8b6a00) //102
 212 NHSTUB(LEDDrive                               ,0xff84ab48) //120
 213 NHSTUB(LocalTime                              ,0xff87318c) //115
 214 NHSTUB(LockMainPower                          ,0xff880f70) //120
 215 NHSTUB(MakeDirectory_Fut                      ,0xff823384) //116
 216 NHSTUB(MoveFocusLensToDistance                ,0xffacd92c) //102
 217 NHSTUB(MoveIrisWithAv                         ,0xffa63120) //120
 218 NHSTUB(MoveZoomLensWithPoint                  ,0xffa63848) //120
 219 NHSTUB(MoveOpticalZoomAt                      ,0xff82505c) //109
 220 NHSTUB(Open                                   ,0xff823a3c) //120
 221 NHSTUB(PB2Rec                                 ,0xff883fd8) //104
 222 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff86608c) //120
 223 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff866064) //120
 224 NHSTUB(PT_PlaySound                           ,0xff8659dc) //102
 225 NHSTUB(PostLogicalEventForNotPowerType        ,0xff87ec9c) //120
 226 NHSTUB(PostLogicalEventToUI                   ,0xff87ece8) //120
 227 NHSTUB(PutInNdFilter                          ,0xffa636cc) //102
 228 NHSTUB(PutOutNdFilter                         ,0xffa636f0) //102
 229 NHSTUB(Read                                   ,0xff819a4c) //120
 230 NHSTUB(ReadFastDir                            ,0xffa49124) //  1
 231 NHSTUB(Rec2PB                                 ,0xff882960) //104
 232 NHSTUB(RefreshPhysicalScreen                  ,0xff9df040) //104
 233 NHSTUB(RenameFile_Fut                         ,0xff8232bc) //  1
 234 NHSTUB(Restart                                ,0xff829848) //122
 235 NHSTUB(SetAE_ShutterSpeed                     ,0xffad07bc) //102
 236 NHSTUB(SetAutoShutdownTime                    ,0xff880fe4) //120
 237 NHSTUB(SetCurrentCaptureModeType              ,0xff8886b4) //120
 238 NHSTUB(SetFileAttributes                      ,0xff823d90) //  1
 239 NHSTUB(SetFileTimeStamp                       ,0xff823d40) //  1
 240 NHSTUB(SetLogicalEventActive                  ,0xff880c30) //120
 241 NHSTUB(SetParameterData                       ,0xff975310) //101
 242 NHSTUB(SetPropertyCase                        ,0xff8795d0) //102
 243 NHSTUB(SetScriptMode                          ,0xff880c80) //120
 244 NHSTUB(SleepTask                              ,0xff827c50) //120
 245 NHSTUB(TakeSemaphore                          ,0xff827918) //120
 246 NHSTUB(TurnOffBackLight                       ,0xff88f28c) //104
 247 NHSTUB(TurnOnBackLight                        ,0xff88f274) //104
 248 NHSTUB(TurnOnDisplay                          ,0xff846cf0) //120
 249 NHSTUB(TurnOffDisplay                         ,0xff846d00) //120
 250 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff963744) //120
 251 NHSTUB(UnlockAE                               ,0xff825bd8) //120
 252 NHSTUB(UnlockAF                               ,0xff82589c) //120
 253 NHSTUB(UnlockMainPower                        ,0xff880ec4) //120
 254 NHSTUB(UpdateMBROnFlash                       ,0xff85acd8) //105
 255 NHSTUB(VbattGet                               ,0xff82046c) //120
 256 NHSTUB(Write                                  ,0xff823b10) //120
 257 NHSTUB(WriteSDCard                            ,0xff92a9a4) //108
 258 NHSTUB(_log                                   ,0xffb018e4) //111
 259 NHSTUB(_log10                                 ,0xffb00570) //112
 260 NHSTUB(_pow                                   ,0xffb006e0) //121
 261 NHSTUB(_sqrt                                  ,0xffb03540) //  1
 262 NHSTUB(add_ptp_handler                        ,0xffa1727c) //121
 263 NHSTUB(apex2us                                ,0xff9e0128) //121
 264 NHSTUB(close                                  ,0xff819864) //109
 265 NHSTUB(err_init_task                          ,0xff814e80) //111
 266 NHSTUB(exmem_alloc                            ,0xff8740cc) //103
 267 NHSTUB(exmem_ualloc                           ,0xff873f20) //103
 268 NHSTUB(exmem_ufree                            ,0xff87406c) //103
 269 NHSTUB(free                                   ,0xff813a7c) //112
 270 NHSTUB(get_current_nd_value                   ,0xffa597e8) //122
 271 NHSTUB(kbd_p1_f                               ,0xff821c10) //109
 272 NHSTUB(kbd_p1_f_cont                          ,0xff821c1c) //109
 273 NHSTUB(kbd_p2_f                               ,0xff821428) //109
 274 NHSTUB(kbd_read_keys                          ,0xff821b14) //109
 275 NHSTUB(kbd_read_keys_r2                       ,0xff84af6c) //109
 276 NHSTUB(lseek                                  ,0xff823ba4) //120
 277 NHSTUB(malloc                                 ,0xff8139a8) //112
 278 NHSTUB(memcmp                                 ,0xff81cba4) //120
 279 NHSTUB(memcpy                                 ,0xff89ba88) //120
 280 NHSTUB(memset                                 ,0xff9df460) //120
 281 NHSTUB(mkdir                                  ,0xff823e08) //109
 282 NHSTUB(mktime_ext                             ,0xff89c2f4) //  1
 283 NHSTUB(open                                   ,0xff8197b4) //109
 284 NHSTUB(OpenFastDir                            ,0xffa49090) //  1
 285 NHSTUB(closedir                               ,0xffa491f4) //  1
 286 NHSTUB(qsort                                  ,0xffab815c) //  1
 287 NHSTUB(rand                                   ,0xff81ccac) //121
 288 NHSTUB(realloc                                ,0xff813b5c) //115
 289 NHSTUB(reboot_fw_update                       ,0xffa50b24) //106
 290 NHSTUB(set_control_event                      ,0xff88088c) //111
 291 NHSTUB(srand                                  ,0xff81cca0) //122
 292 NHSTUB(stat                                   ,0xff823c70) //  1
 293 NHSTUB(strcat                                 ,0xff89b89c) //  1
 294 NHSTUB(strchr                                 ,0xff89b924) //  1
 295 NHSTUB(strcmp                                 ,0xff81cb3c) //120
 296 NHSTUB(strcpy                                 ,0xff81cb24) //120
 297 NHSTUB(strftime                               ,0xff89bcfc) //  1
 298 NHSTUB(strlen                                 ,0xff81cb80) //120
 299 NHSTUB(strncmp                                ,0xff89b8d8) //  1
 300 NHSTUB(strncpy                                ,0xff82db14) //  1
 301 NHSTUB(strrchr                                ,0xff9df438) //  1
 302 NHSTUB(strtol                                 ,0xff82dd4c) //101
 303 NHSTUB(strtolx                                ,0xff82db50) //109
 304    DEF(task_CaptSeq                           ,0xff868b98) //120
 305    DEF(task_DvlpSeqTask                       ,0xff94d768) //120
 306    DEF(task_ExpDrv                            ,0xff8ad7cc) //120
 307    DEF(task_FileWrite                         ,0xffa45a44) //120
 308    DEF(task_InitFileModules                   ,0xff884a54) //120
 309    DEF(task_MovieRecord                       ,0xff86458c) //120
 310    DEF(task_PhySw                             ,0xff821784) //120
 311    DEF(task_RotaryEncoder                     ,0xff84b8d8) //120
 312 NHSTUB(time                                   ,0xff87376c) //109
 313 NHSTUB(vsprintf                               ,0xff81cae8) //115
 314 NHSTUB(EngDrvRead                             ,0xff822a50) //102
 315 NHSTUB(PTM_GetCurrentItem                     ,0xff8817f0) //105
 316 NHSTUB(CancelHPTimer                          ,0xff874f2c) //119
 317 NHSTUB(SetHPTimerAfterNow                     ,0xff874e24) //119
 318 NHSTUB(PT_MFOn                                ,0xff866104) //120
 319 NHSTUB(PT_MFOff                               ,0xff866114) //120
 320 NHSTUB(GetAdChValue                           ,0xff848c64) //120
 321 NHSTUB(get_ptp_buf_size                       ,0xff8d7b84) //122
 322 NHSTUB(get_ptp_file_buf                       ,0xffa18c00) //121
 323 NHSTUB(SetVideoOutType                        ,0xffad0fa8) //109
 324 NHSTUB(GetVideoOutType                        ,0xffad0f0c) //120

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