root/platform/sx1/sub/201a/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 GM2.01A   // Found @ 0xff87ccb4, "GM2.01A" @ 0xff87ccc1
   7 //   Firmware build timestamp: Apr 15 2009 09:44:14
   8 //   Canon PowerShot SX1 IS
   9 
  10 // Values for makefile.inc
  11 //   DIGIC = 40# DIGIC 4
  12 //   PLATFORMOSVER = 31
  13 //   PLATFORMID = 12693# (0x3195) Found @ 0xfffe0130
  14 //   MAXRAMADDR = 0x07ffffff
  15 //   MEMISOSTART = 0x000c2d08
  16 //   KEYSYS = d4# Found @ 0xffff3674
  17 //   NEED_ENCODED_DISKBOOT = 1# Found @ 0xffff3684
  18 //   ARAM_HEAP_START = 0x3ce000# Found @ 0xff96a758
  19 //   ARAM_HEAP_SIZE  = 0x32000# Found @ 0xff96a718
  20 
  21 // Detected address ranges:
  22 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  23 // RAM data 0x00001900 - 0x00011934 copied from 0xffbe2c7c (  65588 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(ExitFromCompensationEVF              ,0xff825b88) //104        *** != 0xff825bac
  28 //NHSTUB(kbd_pwr_off                          ,0xff84da28) //  2 60%    *** != 0x00000000
  29 
  30 // Check of modemap from 'platform/CAMERA/shooting.c':
  31 // Firmware modemap table found @ffaa300c -> ffbbb0e4
  32 // No problems found with modemap table.
  33 
  34 // Values below can be overridden in 'stubs_min.S':
  35 DEF(physw_status                            ,0x00012da4) // Found @0xff821af4
  36 DEF(physw_run                               ,0x00001c30) // Found @0xff821768
  37 DEF(physw_sleep_delay                       ,0x00001c2e) // Found @0xff821768
  38 DEF(levent_table                            ,0xffb89f60) // Found @0xffb89f60
  39 DEF(FlashParamsTable                        ,0xffbbb2bc) // Found @0xffbbb2bc
  40 DEF(movie_status                            ,0x000055a8) // Found @0xff867b10
  41 DEF(video_compression_rate                  ,0x000055d4) // Found @0xff867d14
  42 DEF(canon_menu_active                       ,0x00005a5c) // Found @0xff87e710
  43 DEF(canon_shoot_menu_active                 ,0x0000b819) // Found @0xff9a68a0
  44 DEF(playrec_mode                            ,0x000057c4) // Found @0xff8716c8
  45 DEF(zoom_status                             ,0x0000f2a0) // Found @0xffaa4d38
  46 DEF(some_flag_for_af_scan                   ,0x0000a5e8) // Found @0xff95e58c
  47 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  48 // each entry contains 1 int value, which is the the zoom focus length.
  49 // there are 6 entries in the table - set NUM_FL to 6
  50 DEF(focus_len_table                         ,0xffbbebbc) // Found @0xffbbebbc
  51 DEF(zoom_busy                               ,0x00009ae8) // Found @0xff953f40
  52 DEF(focus_busy                              ,0x00009974) // Found @0xff94cf54
  53 //DEF(recreview_hold                          ,0x0000678c) // Found @0xff89020c, ** != ** stubs_min = 0x0000b400 (0xB31C+0xE4)
  54 // Camera has 2 RAW buffers @ 0x41b724c0 & 0x435627d8
  55 //  Note: active buffer --> raw_buffers[ active_raw_buffer   *3]
  56 //        other buffer  --> raw_buffers[(active_raw_buffer^1)*3]
  57 DEF(raw_buffers                             ,0xffb37054) // Found @0xffb37054
  58 DEF(active_raw_buffer                       ,0x00005764) // Found @0xff86e680
  59 DEF(fileio_semaphore                        ,0x00002bc0) // Found @0xff85caa4
  60 DEF(exmem_alloc_table                       ,0x0001d3d8) // Found @0xff877f80
  61 DEF(exmem_types_table                       ,0xffbe6c30) // Found @0x000058b4
  62 DEF_CONST(exmem_type_count                  ,0x00000012)
  63 DEF(imager_active                           ,0x00001fbc) // Found @0xff83787c (0x1fb8 + 4)
  64 DEF_CONST(uiprop_count                      ,0x00000069) // Found @0xff98c940
  65 
  66 // Values below go in 'lib.c':
  67 //void *vid_get_bitmap_fb()        { return (void*)0x40471000; }             // Found @0xff84807c
  68 //void *vid_get_viewport_fb()      { return (void*)0x4133bb10; }             // Found @0xffafc468
  69 DEF(viewport_fb_d                           ,0x00005420) // Found 0x53c8 (@0xff85fbb0) + 0x58 (@0xff85fbdc)
  70 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x53c8+0x58)); } // Found @0xff85fbb0 & 0xff85fbdc
  71 DEF(jpeg_count_str                          ,0x0005ced4) // Found @0xff9ed744
  72 //char *camera_jpeg_count_str()    { return (char*)0x0005ced4; }             // Found @0xff9ed744
  73 //int get_flash_params_count(void) { return 0x79; }                          // Found @0xff98d594
  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 @0xffb36748, levent 0x90a
  77 //#define SD_READONLY_IDX     2
  78 //#define USB_MASK            0x00040000 // Found @0xffb36754, levent 0x902
  79 //#define USB_IDX             2
  80 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffb36604, levent 0x905
  81 //#define BATTCOVER_IDX       0
  82 //#define HOTSHOE_FLAG        0x10000000 // Found @0xffb367c0, levent 0x904
  83 //#define HOTSHOE_IDX         2
  84 //#define ANALOG_AV_FLAG      0x00100000 // Found @0xffb3676c, levent 0x900 (non-inverted logic)
  85 //#define ANALOG_AV_IDX       2
  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 @0xffb365e0, levent 0x01
  90 //    { 0, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffb365e0, levent 0x01
  91 //    { 0, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffb365d4, levent 0x00
  92 //    { 0, KEY_POWER           ,0x00002000 }, // Found @0xffb365ec, levent 0x600
  93 //    { 0, KEY_PLAYBACK        ,0x00004000 }, // Found @0xffb365f8, levent 0x601
  94 //    { 1, KEY_VIDEO           ,0x00000020 }, // Found @0xffb3664c, levent 0x12
  95 //    { 1, KEY_SET             ,0x00000100 }, // Found @0xffb36670, levent 0x08
  96 //    { 1, KEY_DISPLAY         ,0x00000200 }, // Found @0xffb3667c, levent 0x0a
  97 //    { 1, KEY_UP              ,0x00000400 }, // Found @0xffb36688, levent 0x04
  98 //    { 1, KEY_DOWN            ,0x00000800 }, // Found @0xffb36694, levent 0x05
  99 //    { 1, KEY_RIGHT           ,0x00001000 }, // Found @0xffb366a0, levent 0x07
 100 //    { 1, KEY_LEFT            ,0x00002000 }, // Found @0xffb366ac, levent 0x06
 101 //    { 1, KEY_MENU            ,0x00004000 }, // Found @0xffb366b8, 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    4152 // Found @0xffaf52ec
 108 //#define CAM_RAW_ROWS      2772 // Found @0xffaf52f0
 109 //#undef  CAM_UNCACHED_BIT
 110 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff8280b0
 111 //#define PARAM_CAMERA_NAME 4 // Found @0xffbbd734
 112 
 113 // Known propcases
 114 // //      PROPCASE_AFSTEP 13
 115 // #define PROPCASE_FOCUS_STATE 18
 116 // #define PROPCASE_AV 23
 117 // #define PROPCASE_BV 34
 118 // //      PROPCASE_DELTA_DIGITALGAIN 77
 119 // #define PROPCASE_DELTA_SV 79
 120 // //      PROPCASE_DELTA_ND 80
 121 // #define PROPCASE_EV_CORRECTION_2 207
 122 // #define PROPCASE_ORIENTATION_SENSOR 219
 123 // #define PROPCASE_SV_MARKET 246
 124 // //      PROPCASE_SVFIX 247
 125 // #define PROPCASE_TV 262
 126 // Guessed propset: 2
 127 
 128 // Misc stuff
 129 DEF(ctypes, 0xffb2b0da)
 130 
 131 // EXMEM types:
 132 // EXMEM_RAMDISK        0
 133 // EXMEM_COM            1
 134 // EXMEM_FORMATTER      2
 135 // EXMEM_SHADING        3
 136 // EXMEM_FAMODE         4
 137 // EXMEM_FIRMUP         5
 138 // EXMEM_FIRMUP_VRAM    6
 139 // EXMEM_FIRMUP_INFLATE 7
 140 // EXMEM_DVLPWORK       8
 141 // EXMEM_EVF            9
 142 // EXMEM_SCRIPT         10
 143 // EXMEM_FILESTORE      11
 144 // EXMEM_MOVIE_REC      12
 145 // EXMEM_MOVIE_PLY      13
 146 // EXMEM_WIDE           14
 147 // EXMEM_NARROW         15
 148 // EXMEM_CRAW_REC       16
 149 // EXMEM_PCEVF          17
 150 
 151 // ISR flag: 0x195c, pointer to current task's control block: 0x1958
 152 // pointer to TCB area: 0x19e8, found @ 0xff815724
 153 
 154 // LED table init @ 0xff905e5c
 155 // LED #1: 0xc02200b4, offset 0x244
 156 
 157 // For capt_seq.c
 158 DEF(_nrflag,0xa5cc) // Found @ ff960d5c (0xa5d0) & ff960d78 (-0x04)
 159 //static long *nrflag = (long*)(0xa5d0-0x04);  // Found @ ff960d5c & ff960d74
 160 
 161 // Stubs below matched 100%.
 162 //    Name                                     Address                Comp to stubs_entry_2.S
 163 NHSTUB(AllocateUncacheableMemory              ,0xff82806c) //112
 164 NHSTUB(Close                                  ,0xff823a44) //120
 165 NHSTUB(CreateBinarySemaphore                  ,0xff82784c) //115
 166 NHSTUB(CreateTask                             ,0xff81aef4) //120
 167 NHSTUB(DebugAssert                            ,0xff81b1cc) //107
 168 NHSTUB(DeleteDirectory_Fut                    ,0xff8233d4) //116
 169 NHSTUB(DeleteFile_Fut                         ,0xff8232f0) //112
 170 NHSTUB(DoAELock                               ,0xff825be8) //120
 171 NHSTUB(DoAFLock                               ,0xff825898) //120
 172 NHSTUB(EnterToCompensationEVF                 ,0xff825b44) //104
 173 NHSTUB(ExecuteEventProcedure                  ,0xff879ea0) //104
 174 NHSTUB(ExitTask                               ,0xff81b184) //120
 175 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff8312a4) //104
 176 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff8313e8) //104
 177 NHSTUB(Fclose_Fut                             ,0xff82346c) //120
 178 NHSTUB(Feof_Fut                               ,0xff823658) //  1
 179 NHSTUB(Fflush_Fut                             ,0xff823694) //  1
 180 NHSTUB(Fgets_Fut                              ,0xff8235c0) //  1
 181 NHSTUB(Fopen_Fut                              ,0xff82342c) //120
 182 NHSTUB(Fread_Fut                              ,0xff823518) //120
 183 NHSTUB(FreeUncacheableMemory                  ,0xff8280ac) //112
 184 NHSTUB(Fseek_Fut                              ,0xff82360c) //120
 185 NHSTUB(Fwrite_Fut                             ,0xff82356c) //120
 186 NHSTUB(GetBatteryTemperature                  ,0xff850b00) //102
 187 NHSTUB(GetCCDTemperature                      ,0xff850a90) //102
 188 NHSTUB(GetCurrentAvValue                      ,0xff94f5d4) //120
 189 NHSTUB(GetCurrentShutterSpeed                 ,0xff8a1df4) //120
 190 NHSTUB(GetUsableMaxAv                         ,0xffaf66d0) //120
 191 NHSTUB(GetUsableMinAv                         ,0xffaf66b8) //120
 192 NHSTUB(GetDrive_ClusterSize                   ,0xff85e284) //  1
 193 NHSTUB(GetDrive_FreeClusters                  ,0xff85e2ec) //  1
 194 NHSTUB(GetDrive_TotalClusters                 ,0xff85e2b8) //  1
 195 NHSTUB(GetFocusLensSubjectDistance            ,0xff94da5c) //102
 196 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff94dd68) //  3
 197 NHSTUB(GetKbdState                            ,0xff84d880) //109
 198 NHSTUB(GetMemInfo                             ,0xff813c24) //115
 199 NHSTUB(GetOpticalTemperature                  ,0xff850b70) //120
 200 NHSTUB(GetParameterData                       ,0xff98d554) //101
 201 NHSTUB(GetPropertyCase                        ,0xff87dbcc) //102
 202 NHSTUB(GetSystemTime                          ,0xffa91c08) //120
 203 NHSTUB(GetVRAMHPixelsSize                     ,0xff83d4e8) //120
 204 NHSTUB(GetVRAMVPixelsSize                     ,0xff83d4f4) //120
 205 NHSTUB(GetZoomLensCurrentPoint                ,0xff9548a8) //120
 206 NHSTUB(GetZoomLensCurrentPosition             ,0xffa8210c) //102
 207 NHSTUB(GiveSemaphore                          ,0xff827a88) //120
 208 NHSTUB(IsStrobeChargeCompleted                ,0xff8bdbdc) //102
 209 NHSTUB(LEDDrive                               ,0xff84cc34) //120
 210 NHSTUB(LocalTime                              ,0xff87763c) //115
 211 NHSTUB(LockMainPower                          ,0xff885580) //120
 212 NHSTUB(MakeDirectory_Fut                      ,0xff823364) //116
 213 NHSTUB(MoveFocusLensToDistance                ,0xffaf87a8) //102
 214 NHSTUB(MoveIrisWithAv                         ,0xffa8c398) //120
 215 NHSTUB(MoveZoomLensWithPoint                  ,0xffa8cac0) //120
 216 NHSTUB(MoveOpticalZoomAt                      ,0xff82508c) //109
 217 NHSTUB(Open                                   ,0xff823a1c) //120
 218 NHSTUB(PB2Rec                                 ,0xff888840) //104
 219 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff8697c0) //120
 220 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff869798) //120
 221 NHSTUB(PT_PlaySound                           ,0xff869110) //102
 222 NHSTUB(PostLogicalEventForNotPowerType        ,0xff88328c) //120
 223 NHSTUB(PostLogicalEventToUI                   ,0xff8832d8) //120
 224 NHSTUB(PutInNdFilter                          ,0xffa8c944) //102
 225 NHSTUB(PutOutNdFilter                         ,0xffa8c968) //102
 226 NHSTUB(Read                                   ,0xff819a4c) //120
 227 NHSTUB(ReadFastDir                            ,0xffa6fe78) //  1
 228 NHSTUB(Rec2PB                                 ,0xff8871b8) //104
 229 NHSTUB(RefreshPhysicalScreen                  ,0xff9fa710) //104
 230 NHSTUB(RenameFile_Fut                         ,0xff82329c) //  1
 231 NHSTUB(Restart                                ,0xff8298f0) //122
 232 NHSTUB(SetAE_ShutterSpeed                     ,0xffafb628) //102
 233 NHSTUB(SetAutoShutdownTime                    ,0xff8855f4) //120
 234 NHSTUB(SetCurrentCaptureModeType              ,0xff88d348) //120
 235 NHSTUB(SetFileAttributes                      ,0xff823d70) //  1
 236 NHSTUB(SetFileTimeStamp                       ,0xff823d20) //  1
 237 NHSTUB(SetLogicalEventActive                  ,0xff885240) //120
 238 NHSTUB(SetParameterData                       ,0xff98d430) //101
 239 NHSTUB(SetPropertyCase                        ,0xff87dac4) //102
 240 NHSTUB(SetScriptMode                          ,0xff885290) //120
 241 NHSTUB(SleepTask                              ,0xff827cf0) //120
 242 NHSTUB(TakeSemaphore                          ,0xff8279b8) //120
 243 NHSTUB(TurnOffBackLight                       ,0xff893fc8) //104
 244 NHSTUB(TurnOnBackLight                        ,0xff893fb0) //104
 245 NHSTUB(TurnOnDisplay                          ,0xff8481a0) //120
 246 NHSTUB(TurnOffDisplay                         ,0xff8481b0) //120
 247 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff978be0) //120
 248 NHSTUB(UnlockAE                               ,0xff825c0c) //120
 249 NHSTUB(UnlockAF                               ,0xff8258d0) //120
 250 NHSTUB(UnlockMainPower                        ,0xff8854d4) //120
 251 NHSTUB(UpdateMBROnFlash                       ,0xff85e0c4) //105
 252 NHSTUB(VbattGet                               ,0xff82046c) //120
 253 NHSTUB(Write                                  ,0xff823af0) //120
 254 NHSTUB(WriteSDCard                            ,0xff93dd0c) //108
 255 NHSTUB(_log                                   ,0xffb28358) //111
 256 NHSTUB(_log10                                 ,0xffb26fe4) //112
 257 NHSTUB(_pow                                   ,0xffb27154) //121
 258 NHSTUB(_sqrt                                  ,0xffb29fb4) //  1
 259 NHSTUB(add_ptp_handler                        ,0xffa3afd0) //121
 260 NHSTUB(apex2us                                ,0xff9fdbdc) //121
 261 NHSTUB(close                                  ,0xff819864) //109
 262 NHSTUB(err_init_task                          ,0xff814e80) //111
 263 NHSTUB(exmem_alloc                            ,0xff87857c) //103
 264 NHSTUB(exmem_ualloc                           ,0xff8783d0) //103
 265 NHSTUB(exmem_ufree                            ,0xff87851c) //103
 266 NHSTUB(free                                   ,0xff813a7c) //112
 267 NHSTUB(get_nd_value                           ,0xffa80688) //122
 268 NHSTUB(get_current_nd_value                   ,0xffa80644) //122
 269 NHSTUB(kbd_p1_f                               ,0xff821bf0) //109
 270 NHSTUB(kbd_p1_f_cont                          ,0xff821bfc) //109
 271 NHSTUB(kbd_p2_f                               ,0xff821408) //109
 272 NHSTUB(kbd_read_keys                          ,0xff821af4) //109
 273 NHSTUB(kbd_read_keys_r2                       ,0xff84d130) //109
 274 NHSTUB(lseek                                  ,0xff823b84) //120
 275 NHSTUB(malloc                                 ,0xff8139a8) //112
 276 NHSTUB(memcmp                                 ,0xff81cba4) //120
 277 NHSTUB(memcpy                                 ,0xff8a0984) //120
 278 NHSTUB(memset                                 ,0xff9fcf14) //120
 279 NHSTUB(mkdir                                  ,0xff823de8) //109
 280 NHSTUB(mktime_ext                             ,0xff8a11f0) //  1
 281 NHSTUB(open                                   ,0xff8197b4) //109
 282 NHSTUB(OpenFastDir                            ,0xffa6fde4) //  1
 283 NHSTUB(closedir                               ,0xffa6ff48) //  1
 284 NHSTUB(qsort                                  ,0xffae3d64) //  1
 285 NHSTUB(rand                                   ,0xff81ccac) //121
 286 NHSTUB(realloc                                ,0xff813b5c) //115
 287 NHSTUB(reboot_fw_update                       ,0xffa77878) //106
 288 NHSTUB(set_control_event                      ,0xff884e9c) //111
 289 NHSTUB(srand                                  ,0xff81cca0) //122
 290 NHSTUB(stat                                   ,0xff823c50) //  1
 291 NHSTUB(strcat                                 ,0xff8a0798) //  1
 292 NHSTUB(strchr                                 ,0xff8a0820) //  1
 293 NHSTUB(strcmp                                 ,0xff81cb3c) //120
 294 NHSTUB(strcpy                                 ,0xff81cb24) //120
 295 NHSTUB(strftime                               ,0xff8a0bf8) //  1
 296 NHSTUB(strlen                                 ,0xff81cb80) //120
 297 NHSTUB(strncmp                                ,0xff8a07d4) //  1
 298 NHSTUB(strncpy                                ,0xff82dbf8) //  1
 299 NHSTUB(strrchr                                ,0xff9fceec) //  1
 300 NHSTUB(strtol                                 ,0xff82de30) //101
 301 NHSTUB(strtolx                                ,0xff82dc34) //109
 302    DEF(task_CaptSeq                           ,0xff86cb80) //120
 303    DEF(task_DvlpSeqTask                       ,0xff961b44) //120
 304    DEF(task_ExpDrv                            ,0xff8b3e4c) //120
 305    DEF(task_FileWrite                         ,0xffa6c6fc) //120
 306    DEF(task_InitFileModules                   ,0xff8892bc) //120
 307    DEF(task_MovieRecord                       ,0xff867d90) //120
 308    DEF(task_PhySw                             ,0xff821764) //120
 309    DEF(task_RotaryEncoder                     ,0xff84daf0) //120
 310 NHSTUB(time                                   ,0xff877c1c) //109
 311 NHSTUB(vsprintf                               ,0xff81cae8) //115
 312 NHSTUB(EngDrvRead                             ,0xff822a30) //102
 313 NHSTUB(PTM_GetCurrentItem                     ,0xff88602c) //105
 314 NHSTUB(CancelHPTimer                          ,0xff8793dc) //119
 315 NHSTUB(SetHPTimerAfterNow                     ,0xff8792d4) //119
 316 NHSTUB(PT_MFOn                                ,0xff869838) //120
 317 NHSTUB(PT_MFOff                               ,0xff869848) //120
 318 NHSTUB(GetAdChValue                           ,0xff84a390) //120
 319 NHSTUB(get_ptp_buf_size                       ,0xff8e71d8) //122
 320 NHSTUB(get_ptp_file_buf                       ,0xffa3c954) //121
 321 NHSTUB(SetVideoOutType                        ,0xffafbe44) //109
 322 NHSTUB(GetVideoOutType                        ,0xffafbd78) //120

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