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 DEF(cameracon_state                         ,0x00006234) // Found @0xff886c04
  66 
  67 // Values below go in 'lib.c':
  68 //void *vid_get_bitmap_fb()        { return (void*)0x40471000; }             // Found @0xff84807c
  69 //void *vid_get_viewport_fb()      { return (void*)0x4133bb10; }             // Found @0xffafc468
  70 DEF(viewport_fb_d                           ,0x00005420) // Found 0x53c8 (@0xff85fbb0) + 0x58 (@0xff85fbdc)
  71 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x53c8+0x58)); } // Found @0xff85fbb0 & 0xff85fbdc
  72 DEF(jpeg_count_str                          ,0x0005ced4) // Found @0xff9ed744
  73 //char *camera_jpeg_count_str()    { return (char*)0x0005ced4; }             // Found @0xff9ed744
  74 //int get_flash_params_count(void) { return 0x79; }                          // Found @0xff98d594
  75 
  76 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  77 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffb36748, levent 0x90a
  78 //#define SD_READONLY_IDX     2
  79 //#define USB_MASK            0x00040000 // Found @0xffb36754, levent 0x902
  80 //#define USB_IDX             2
  81 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffb36604, levent 0x905
  82 //#define BATTCOVER_IDX       0
  83 //#define HOTSHOE_FLAG        0x10000000 // Found @0xffb367c0, levent 0x904
  84 //#define HOTSHOE_IDX         2
  85 //#define ANALOG_AV_FLAG      0x00100000 // Found @0xffb3676c, levent 0x900 (non-inverted logic)
  86 //#define ANALOG_AV_IDX       2
  87 
  88 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  89 //static KeyMap keymap[] = {
  90 //    { 0, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffb365e0, levent 0x01
  91 //    { 0, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffb365e0, levent 0x01
  92 //    { 0, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffb365d4, levent 0x00
  93 //    { 0, KEY_POWER           ,0x00002000 }, // Found @0xffb365ec, levent 0x600
  94 //    { 0, KEY_PLAYBACK        ,0x00004000 }, // Found @0xffb365f8, levent 0x601
  95 //    { 1, KEY_VIDEO           ,0x00000020 }, // Found @0xffb3664c, levent 0x12
  96 //    { 1, KEY_SET             ,0x00000100 }, // Found @0xffb36670, levent 0x08
  97 //    { 1, KEY_DISPLAY         ,0x00000200 }, // Found @0xffb3667c, levent 0x0a
  98 //    { 1, KEY_UP              ,0x00000400 }, // Found @0xffb36688, levent 0x04
  99 //    { 1, KEY_DOWN            ,0x00000800 }, // Found @0xffb36694, levent 0x05
 100 //    { 1, KEY_RIGHT           ,0x00001000 }, // Found @0xffb366a0, levent 0x07
 101 //    { 1, KEY_LEFT            ,0x00002000 }, // Found @0xffb366ac, levent 0x06
 102 //    { 1, KEY_MENU            ,0x00004000 }, // Found @0xffb366b8, levent 0x09
 103 //    { 0, 0, 0 }
 104 //};
 105 
 106 // Values below go in 'platform_camera.h':
 107 //#define CAM_DRYOS         1
 108 //#define CAM_RAW_ROWPIX    4152 // Found @0xffaf52ec
 109 //#define CAM_RAW_ROWS      2772 // Found @0xffaf52f0
 110 //#undef  CAM_UNCACHED_BIT
 111 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff8280b0
 112 //#define PARAM_CAMERA_NAME 4 // Found @0xffbbd734
 113 
 114 // Below goes in 'filewrite.c' or 'platform_camera.h':
 115 //#define MAX_CHUNKS_FOR_FWT 4 // Found @0xffa6c764
 116 
 117 // Known propcases
 118 // //      PROPCASE_AFSTEP 13
 119 // #define PROPCASE_FOCUS_STATE 18
 120 // #define PROPCASE_AV 23
 121 // #define PROPCASE_BV 34
 122 // //      PROPCASE_DELTA_DIGITALGAIN 77
 123 // #define PROPCASE_DELTA_SV 79
 124 // //      PROPCASE_DELTA_ND 80
 125 // #define PROPCASE_EV_CORRECTION_2 207
 126 // #define PROPCASE_ORIENTATION_SENSOR 219
 127 // #define PROPCASE_SV_MARKET 246
 128 // //      PROPCASE_SVFIX 247
 129 // #define PROPCASE_TV 262
 130 // Guessed propset: 2
 131 
 132 // Misc stuff
 133 DEF(ctypes, 0xffb2b0da)
 134 
 135 // EXMEM types:
 136 // EXMEM_RAMDISK        0
 137 // EXMEM_COM            1
 138 // EXMEM_FORMATTER      2
 139 // EXMEM_SHADING        3
 140 // EXMEM_FAMODE         4
 141 // EXMEM_FIRMUP         5
 142 // EXMEM_FIRMUP_VRAM    6
 143 // EXMEM_FIRMUP_INFLATE 7
 144 // EXMEM_DVLPWORK       8
 145 // EXMEM_EVF            9
 146 // EXMEM_SCRIPT         10
 147 // EXMEM_FILESTORE      11
 148 // EXMEM_MOVIE_REC      12
 149 // EXMEM_MOVIE_PLY      13
 150 // EXMEM_WIDE           14
 151 // EXMEM_NARROW         15
 152 // EXMEM_CRAW_REC       16
 153 // EXMEM_PCEVF          17
 154 
 155 // ISR flag: 0x195c, pointer to current task's control block: 0x1958
 156 // pointer to TCB area: 0x19e8, found @ 0xff815724
 157 
 158 // LED table init @ 0xff905e5c
 159 // LED #1: 0xc02200b4, offset 0x244
 160 
 161 // For capt_seq.c
 162 DEF(_nrflag,0xa5cc) // Found @ ff960d5c (0xa5d0) & ff960d78 (-0x04)
 163 //static long *nrflag = (long*)(0xa5d0-0x04);  // Found @ ff960d5c & ff960d74
 164 
 165 // Stubs below matched 100%.
 166 //    Name                                     Address                Comp to stubs_entry_2.S
 167 NHSTUB(AllocateUncacheableMemory              ,0xff82806c) //112
 168 NHSTUB(Close                                  ,0xff823a44) //120
 169 NHSTUB(CreateBinarySemaphore                  ,0xff82784c) //115
 170 NHSTUB(CreateTask                             ,0xff81aef4) //120
 171 NHSTUB(DebugAssert                            ,0xff81b1cc) //107
 172 NHSTUB(DeleteDirectory_Fut                    ,0xff8233d4) //116
 173 NHSTUB(DeleteFile_Fut                         ,0xff8232f0) //112
 174 NHSTUB(DeleteSemaphore                        ,0xff82790c) //120
 175 NHSTUB(DoAELock                               ,0xff825be8) //120
 176 NHSTUB(DoAFLock                               ,0xff825898) //120
 177 NHSTUB(EnterToCompensationEVF                 ,0xff825b44) //104
 178 NHSTUB(ExecuteEventProcedure                  ,0xff879ea0) //104
 179 NHSTUB(ExitTask                               ,0xff81b184) //120
 180 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff8312a4) //104
 181 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff8313e8) //104
 182 NHSTUB(Fclose_Fut                             ,0xff82346c) //120
 183 NHSTUB(Feof_Fut                               ,0xff823658) //  1
 184 NHSTUB(Fflush_Fut                             ,0xff823694) //  1
 185 NHSTUB(Fgets_Fut                              ,0xff8235c0) //  1
 186 NHSTUB(Fopen_Fut                              ,0xff82342c) //120
 187 NHSTUB(Fread_Fut                              ,0xff823518) //120
 188 NHSTUB(FreeUncacheableMemory                  ,0xff8280ac) //112
 189 NHSTUB(Fseek_Fut                              ,0xff82360c) //120
 190 NHSTUB(Fwrite_Fut                             ,0xff82356c) //120
 191 NHSTUB(GetBatteryTemperature                  ,0xff850b00) //102
 192 NHSTUB(GetCCDTemperature                      ,0xff850a90) //102
 193 NHSTUB(GetCurrentAvValue                      ,0xff94f5d4) //120
 194 NHSTUB(GetCurrentShutterSpeed                 ,0xff8a1df4) //120
 195 NHSTUB(GetUsableMaxAv                         ,0xffaf66d0) //120
 196 NHSTUB(GetUsableMinAv                         ,0xffaf66b8) //120
 197 NHSTUB(GetDrive_ClusterSize                   ,0xff85e284) //  1
 198 NHSTUB(GetDrive_FreeClusters                  ,0xff85e2ec) //  1
 199 NHSTUB(GetDrive_TotalClusters                 ,0xff85e2b8) //  1
 200 NHSTUB(GetFocusLensSubjectDistance            ,0xff94da5c) //102
 201 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff94dd68) //  3
 202 NHSTUB(GetKbdState                            ,0xff84d880) //109
 203 NHSTUB(GetMemInfo                             ,0xff813c24) //115
 204 NHSTUB(GetOpticalTemperature                  ,0xff850b70) //120
 205 NHSTUB(GetParameterData                       ,0xff98d554) //101
 206 NHSTUB(GetPropertyCase                        ,0xff87dbcc) //102
 207 NHSTUB(GetSystemTime                          ,0xffa91c08) //120
 208 NHSTUB(GetVRAMHPixelsSize                     ,0xff83d4e8) //120
 209 NHSTUB(GetVRAMVPixelsSize                     ,0xff83d4f4) //120
 210 NHSTUB(GetZoomLensCurrentPoint                ,0xff9548a8) //120
 211 NHSTUB(GetZoomLensCurrentPosition             ,0xffa8210c) //102
 212 NHSTUB(GiveSemaphore                          ,0xff827a88) //120
 213 NHSTUB(IsStrobeChargeCompleted                ,0xff8bdbdc) //102
 214 NHSTUB(LEDDrive                               ,0xff84cc34) //120
 215 NHSTUB(LocalTime                              ,0xff87763c) //115
 216 NHSTUB(LockMainPower                          ,0xff885580) //120
 217 NHSTUB(MakeDirectory_Fut                      ,0xff823364) //116
 218 NHSTUB(MoveFocusLensToDistance                ,0xffaf87a8) //102
 219 NHSTUB(MoveIrisWithAv                         ,0xffa8c398) //120
 220 NHSTUB(MoveZoomLensWithPoint                  ,0xffa8cac0) //120
 221 NHSTUB(MoveOpticalZoomAt                      ,0xff82508c) //109
 222 NHSTUB(Open                                   ,0xff823a1c) //120
 223 NHSTUB(PB2Rec                                 ,0xff888840) //104
 224 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff8697c0) //120
 225 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff869798) //120
 226 NHSTUB(PT_PlaySound                           ,0xff869110) //102
 227 NHSTUB(PostLogicalEventForNotPowerType        ,0xff88328c) //120
 228 NHSTUB(PostLogicalEventToUI                   ,0xff8832d8) //120
 229 NHSTUB(PutInNdFilter                          ,0xffa8c944) //102
 230 NHSTUB(PutOutNdFilter                         ,0xffa8c968) //102
 231 NHSTUB(Read                                   ,0xff819a4c) //120
 232 NHSTUB(ReadFastDir                            ,0xffa6fe78) //  1
 233 NHSTUB(Rec2PB                                 ,0xff8871b8) //104
 234 NHSTUB(RefreshPhysicalScreen                  ,0xff9fa710) //104
 235 NHSTUB(RenameFile_Fut                         ,0xff82329c) //  1
 236 NHSTUB(Restart                                ,0xff8298f0) //122
 237 NHSTUB(SetAE_ShutterSpeed                     ,0xffafb628) //102
 238 NHSTUB(SetAutoShutdownTime                    ,0xff8855f4) //120
 239 NHSTUB(SetCurrentCaptureModeType              ,0xff88d348) //120
 240 NHSTUB(SetDate                                ,0xffafd0b4) //120
 241 NHSTUB(SetFileAttributes                      ,0xff823d70) //  1
 242 NHSTUB(SetFileTimeStamp                       ,0xff823d20) //  1
 243 NHSTUB(SetLogicalEventActive                  ,0xff885240) //120
 244 NHSTUB(SetParameterData                       ,0xff98d430) //101
 245 NHSTUB(SetPropertyCase                        ,0xff87dac4) //102
 246 NHSTUB(SetScriptMode                          ,0xff885290) //120
 247 NHSTUB(SleepTask                              ,0xff827cf0) //120
 248 NHSTUB(TakeSemaphore                          ,0xff8279b8) //120
 249 NHSTUB(TurnOffBackLight                       ,0xff893fc8) //104
 250 NHSTUB(TurnOnBackLight                        ,0xff893fb0) //104
 251 NHSTUB(TurnOnDisplay                          ,0xff8481a0) //120
 252 NHSTUB(TurnOffDisplay                         ,0xff8481b0) //120
 253 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff978be0) //120
 254 NHSTUB(UnlockAE                               ,0xff825c0c) //120
 255 NHSTUB(UnlockAF                               ,0xff8258d0) //120
 256 NHSTUB(UnlockMainPower                        ,0xff8854d4) //120
 257 NHSTUB(UpdateMBROnFlash                       ,0xff85e0c4) //105
 258 NHSTUB(VbattGet                               ,0xff82046c) //120
 259 NHSTUB(Write                                  ,0xff823af0) //120
 260 NHSTUB(WriteSDCard                            ,0xff93dd0c) //108
 261 NHSTUB(_log                                   ,0xffb28358) //111
 262 NHSTUB(_log10                                 ,0xffb26fe4) //112
 263 NHSTUB(_pow                                   ,0xffb27154) //121
 264 NHSTUB(_sqrt                                  ,0xffb29fb4) //  1
 265 NHSTUB(add_ptp_handler                        ,0xffa3afd0) //121
 266 NHSTUB(apex2us                                ,0xff9fdbdc) //121
 267 NHSTUB(close                                  ,0xff819864) //109
 268 NHSTUB(err_init_task                          ,0xff814e80) //111
 269 NHSTUB(exmem_alloc                            ,0xff87857c) //103
 270 NHSTUB(exmem_ualloc                           ,0xff8783d0) //103
 271 NHSTUB(exmem_ufree                            ,0xff87851c) //103
 272 NHSTUB(free                                   ,0xff813a7c) //112
 273 NHSTUB(get_nd_value                           ,0xffa80688) //122
 274 NHSTUB(get_current_nd_value                   ,0xffa80644) //122
 275 NHSTUB(get_current_deltasv                    ,0xff8a29b8) //122
 276 NHSTUB(GetCurrentDriveBaseSvValue             ,0xff8a79e4) //123
 277 NHSTUB(kbd_p1_f                               ,0xff821bf0) //109
 278 NHSTUB(kbd_p1_f_cont                          ,0xff821bfc) //109
 279 NHSTUB(kbd_p2_f                               ,0xff821408) //109
 280 NHSTUB(kbd_read_keys                          ,0xff821af4) //109
 281 NHSTUB(kbd_read_keys_r2                       ,0xff84d130) //109
 282 NHSTUB(lseek                                  ,0xff823b84) //120
 283 NHSTUB(malloc                                 ,0xff8139a8) //112
 284 NHSTUB(memcmp                                 ,0xff81cba4) //120
 285 NHSTUB(memcpy                                 ,0xff8a0984) //120
 286 NHSTUB(memset                                 ,0xff9fcf14) //120
 287 NHSTUB(mkdir                                  ,0xff823de8) //109
 288 NHSTUB(mktime_ext                             ,0xff8a11f0) //  1
 289 NHSTUB(open                                   ,0xff8197b4) //109
 290 NHSTUB(OpenFastDir                            ,0xffa6fde4) //  1
 291 NHSTUB(closedir                               ,0xffa6ff48) //  1
 292 NHSTUB(qsort                                  ,0xffae3d64) //  1
 293 NHSTUB(rand                                   ,0xff81ccac) //121
 294 NHSTUB(realloc                                ,0xff813b5c) //115
 295 NHSTUB(reboot_fw_update                       ,0xffa77878) //106
 296 NHSTUB(set_control_event                      ,0xff884e9c) //111
 297 NHSTUB(srand                                  ,0xff81cca0) //122
 298 NHSTUB(stat                                   ,0xff823c50) //  1
 299 NHSTUB(strcat                                 ,0xff8a0798) //  1
 300 NHSTUB(strchr                                 ,0xff8a0820) //  1
 301 NHSTUB(strcmp                                 ,0xff81cb3c) //120
 302 NHSTUB(strcpy                                 ,0xff81cb24) //120
 303 NHSTUB(strftime                               ,0xff8a0bf8) //  1
 304 NHSTUB(strlen                                 ,0xff81cb80) //120
 305 NHSTUB(strncmp                                ,0xff8a07d4) //  1
 306 NHSTUB(strncpy                                ,0xff82dbf8) //  1
 307 NHSTUB(strrchr                                ,0xff9fceec) //  1
 308 NHSTUB(strtol                                 ,0xff82de30) //101
 309 NHSTUB(strtolx                                ,0xff82dc34) //109
 310    DEF(task_CaptSeq                           ,0xff86cb80) //120
 311    DEF(task_DvlpSeqTask                       ,0xff961b44) //120
 312    DEF(task_ExpDrv                            ,0xff8b3e4c) //120
 313    DEF(task_FileWrite                         ,0xffa6c6fc) //120
 314    DEF(task_InitFileModules                   ,0xff8892bc) //120
 315    DEF(task_MovieRecord                       ,0xff867d90) //120
 316    DEF(task_PhySw                             ,0xff821764) //120
 317    DEF(task_RotaryEncoder                     ,0xff84daf0) //120
 318 NHSTUB(time                                   ,0xff877c1c) //109
 319 NHSTUB(vsprintf                               ,0xff81cae8) //115
 320 NHSTUB(EngDrvRead                             ,0xff822a30) //102
 321 NHSTUB(PTM_GetCurrentItem                     ,0xff88602c) //105
 322 NHSTUB(CancelHPTimer                          ,0xff8793dc) //119
 323 NHSTUB(SetHPTimerAfterNow                     ,0xff8792d4) //119
 324 NHSTUB(PT_MFOn                                ,0xff869838) //120
 325 NHSTUB(PT_MFOff                               ,0xff869848) //120
 326 NHSTUB(GetAdChValue                           ,0xff84a390) //120
 327 NHSTUB(get_ptp_buf_size                       ,0xff8e71d8) //122
 328 NHSTUB(get_ptp_file_buf                       ,0xffa3c954) //121
 329 NHSTUB(SetVideoOutType                        ,0xffafbe44) //109
 330 NHSTUB(GetVideoOutType                        ,0xffafbd78) //120

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