root/platform/sx10/sub/101b/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.01B   // Found @ 0xff878868, "GM1.01B" @ 0xff878875
   7 //   Firmware build timestamp: Nov 13 2008 09:03:39
   8 //   Canon PowerShot SX10 IS
   9 
  10 // Values for makefile.inc
  11 //   PLATFORMOSVER = 31
  12 //   PLATFORMID = 12685 (0x318d) // Found @ 0xfffe0130
  13 //   MAXRAMADDR = 0x03ffffff
  14 //   MEMISOSTART = 0x000acb74
  15 //   KEYSYS = d4                 // Found @ 0xffff3570
  16 //   NEED_ENCODED_DISKBOOT = 1   // Found @ 0xffff3580
  17 //   ARAM_HEAP_START = 0x30e000  // Found @ 0xff956434
  18 //   ARAM_HEAP_SIZE  = 0x32000   // Found @ 0xff9563f4
  19 
  20 // Detected address ranges:
  21 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  22 // RAM data 0x00001900 - 0x00010a58 copied from 0xffb9b3a4 (  61784 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                          ,0xff84b810) //  2 60%    *** != 0x00000000
  27 
  28 // Check of modemap from 'platform/CAMERA/shooting.c':
  29 // Firmware modemap table found @ffa79ab4 -> ffb744b0
  30 // No problems found with modemap table.
  31 
  32 // Values below can be overridden in 'stubs_min.S':
  33 DEF(physw_status                            ,0x00011ec4) // Found @0xff821b14
  34 DEF(physw_run                               ,0x00001c30) // Found @0xff821788
  35 DEF(physw_sleep_delay                       ,0x00001c2e) // Found @0xff821788
  36 DEF(levent_table                            ,0xffb4adf4) // Found @0xffb4adf4
  37 DEF(FlashParamsTable                        ,0xffb74684) // Found @0xffb74684
  38 DEF(movie_status                            ,0x00005430) // Found @0xff8643a8
  39 DEF(video_compression_rate                  ,0x0000545c) // Found @0xff8645b4
  40 DEF(canon_menu_active                       ,0x000058d8) // Found @0xff87a28c
  41 DEF(canon_shoot_menu_active                 ,0x0000ac29) // Found @0xff98cbc4
  42 DEF(playrec_mode                            ,0x00005640) // Found @0xff86d2b8
  43 DEF(zoom_status                             ,0x0000e3ec) // Found @0xffa7b780
  44 DEF(some_flag_for_af_scan                   ,0x00009b58) // Found @0xff94a35c
  45 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  46 // each entry contains 1 int value, which is the the zoom focus length.
  47 // there are 6 entries in the table - set NUM_FL to 6
  48 DEF(focus_len_table                         ,0xffb77e08) // Found @0xffb77e08
  49 DEF(zoom_busy                               ,0x00009100) // Found @0xff940890
  50 DEF(focus_busy                              ,0x00008f8c) // Found @0xff9398a4
  51 //DEF(recreview_hold                          ,0x0000645c) // Found @0xff88b600, ** != ** stubs_min = 0x0000a868 (0xA78C+0xDC)
  52 // Camera has 2 RAW buffers @ 0x40f65b18 & 0x424f1948
  53 //  Note: active buffer --> raw_buffers[ active_raw_buffer   *3]
  54 //        other buffer  --> raw_buffers[(active_raw_buffer^1)*3]
  55 DEF(raw_buffers                             ,0xffb0b638) // Found @0xffb0b638
  56 DEF(active_raw_buffer                       ,0x000055e4) // Found @0xff86a60c
  57 DEF(fileio_semaphore                        ,0x00002a58) // Found @0xff8596b8
  58 DEF(exmem_alloc_table                       ,0x0001c298) // Found @0xff873b70
  59 DEF(exmem_types_table                       ,0xffb9f1d4) // Found @0x00005730
  60 DEF_CONST(exmem_type_count                  ,0x00000012)
  61 DEF(imager_active                           ,0x00001fb4) // Found @0xff837768 (0x1fb0 + 4)
  62 DEF_CONST(uiprop_count                      ,0x00000069) // Found @0xff9748c0
  63 
  64 // Values below go in 'lib.c':
  65 //void *vid_get_bitmap_fb()        { return (void*)0x403b1000; }             // Found @0xff846c28
  66 //void *vid_get_viewport_fb()      { return (void*)0x4070d9d0; }             // Found @0xffad16d8
  67 DEF(viewport_fb_d                           ,0x000052b8) // Found 0x5260 (@0xff85c76c) + 0x58 (@0xff85c7a4)
  68 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x5260+0x58)); } // Found @0xff85c76c & 0xff85c7a4
  69 DEF(jpeg_count_str                          ,0x0004c138) // Found @0xff9d28ec
  70 //char *camera_jpeg_count_str()    { return (char*)0x0004c138; }             // Found @0xff9d28ec
  71 //int get_flash_params_count(void) { return 0x78; }                          // Found @0xff975514
  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 @0xffb0ae88, levent 0x90a
  75 //#define SD_READONLY_IDX     2
  76 //#define USB_MASK            0x00040000 // Found @0xffb0ae94, levent 0x902
  77 //#define USB_IDX             2
  78 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffb0ad38, levent 0x905
  79 //#define BATTCOVER_IDX       0
  80 //#define HOTSHOE_FLAG        0x10000000 // Found @0xffb0aec4, levent 0x904
  81 //#define HOTSHOE_IDX         2
  82 //#define ANALOG_AV_FLAG      0x02000000 // Found @0xffb0ad44, levent 0x900 (non-inverted logic)
  83 //#define ANALOG_AV_IDX       0
  84 
  85 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  86 //static KeyMap keymap[] = {
  87 //    { 0, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffb0ad14, levent 0x01
  88 //    { 0, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffb0ad14, levent 0x01
  89 //    { 0, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffb0ad08, levent 0x00
  90 //    { 0, KEY_POWER           ,0x00002000 }, // Found @0xffb0ad20, levent 0x600
  91 //    { 0, KEY_PLAYBACK        ,0x00004000 }, // Found @0xffb0ad2c, levent 0x601
  92 //    { 1, KEY_VIDEO           ,0x00000020 }, // Found @0xffb0ad8c, levent 0x12
  93 //    { 1, KEY_SET             ,0x00000100 }, // Found @0xffb0adb0, levent 0x08
  94 //    { 1, KEY_DISPLAY         ,0x00000200 }, // Found @0xffb0adbc, levent 0x0a
  95 //    { 1, KEY_UP              ,0x00000400 }, // Found @0xffb0adc8, levent 0x04
  96 //    { 1, KEY_DOWN            ,0x00000800 }, // Found @0xffb0add4, levent 0x05
  97 //    { 1, KEY_RIGHT           ,0x00001000 }, // Found @0xffb0ade0, levent 0x07
  98 //    { 1, KEY_LEFT            ,0x00002000 }, // Found @0xffb0adec, levent 0x06
  99 //    { 1, KEY_MENU            ,0x00004000 }, // Found @0xffb0adf8, levent 0x09
 100 //    { 0, 0, 0 }
 101 //};
 102 
 103 // Values below go in 'platform_camera.h':
 104 //#define CAM_DRYOS         1
 105 //#define CAM_RAW_ROWPIX    3720 // Found @0xffaca29c
 106 //#define CAM_RAW_ROWS      2772 // Found @0xffaca2a4
 107 //#undef  CAM_UNCACHED_BIT
 108 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff828010
 109 //#define PARAM_CAMERA_NAME 4 // Found @0xffb76a9c
 110 
 111 // Known propcases
 112 // //      PROPCASE_AFSTEP 13
 113 // #define PROPCASE_FOCUS_STATE 18
 114 // #define PROPCASE_AV 23
 115 // #define PROPCASE_BV 34
 116 // //      PROPCASE_DELTA_DIGITALGAIN 77
 117 // #define PROPCASE_DELTA_SV 79
 118 // //      PROPCASE_DELTA_ND 80
 119 // #define PROPCASE_EV_CORRECTION_2 207
 120 // #define PROPCASE_ORIENTATION_SENSOR 219
 121 // #define PROPCASE_SV_MARKET 246
 122 // //      PROPCASE_SVFIX 247
 123 // #define PROPCASE_TV 262
 124 // Guessed propset: 2
 125 
 126 // Misc stuff
 127 DEF(ctypes, 0xffb04792)
 128 
 129 // EXMEM types:
 130 // EXMEM_RAMDISK        0
 131 // EXMEM_COM            1
 132 // EXMEM_FORMATTER      2
 133 // EXMEM_SHADING        3
 134 // EXMEM_FAMODE         4
 135 // EXMEM_FIRMUP         5
 136 // EXMEM_FIRMUP_VRAM    6
 137 // EXMEM_FIRMUP_INFLATE 7
 138 // EXMEM_DVLPWORK       8
 139 // EXMEM_EVF            9
 140 // EXMEM_SCRIPT         10
 141 // EXMEM_FILESTORE      11
 142 // EXMEM_MOVIE_REC      12
 143 // EXMEM_MOVIE_PLY      13
 144 // EXMEM_WIDE           14
 145 // EXMEM_NARROW         15
 146 // EXMEM_CRAW_REC       16
 147 // EXMEM_PCEVF          17
 148 
 149 // ISR flag: 0x195c, pointer to current task's control block: 0x1958
 150 // pointer to TCB area: 0x19e8, found @ 0xff815724
 151 
 152 // LED table init @ 0xff8f4d34
 153 // LED #1: 0xc02200b4, offset 0x244
 154 // LED #2: 0xc02200b8, offset 0x144
 155 // LED #3: 0xc0220060, offset 0x204
 156 // LED #4: 0xc022005c, offset 0x1c4
 157 
 158 // For capt_seq.c
 159 DEF(_nrflag,0x9b40) // Found @ ff94ca50 (0x9b44) & ff94ca6c (-0x04)
 160 //static long *nrflag = (long*)(0x9b44-0x04);  // Found @ ff94ca50 & ff94ca68
 161 
 162 // Stubs below matched 100%.
 163 //    Name                                     Address                Comp to stubs_entry_2.S
 164 NHSTUB(AllocateUncacheableMemory              ,0xff827fcc) //112
 165 NHSTUB(Close                                  ,0xff823a64) //120
 166 NHSTUB(CreateBinarySemaphore                  ,0xff8277ac) //115
 167 NHSTUB(CreateTask                             ,0xff81aef4) //120
 168 NHSTUB(DebugAssert                            ,0xff81b1cc) //107
 169 NHSTUB(DeleteDirectory_Fut                    ,0xff8233f4) //116
 170 NHSTUB(DeleteFile_Fut                         ,0xff823310) //112
 171 NHSTUB(DoAELock                               ,0xff825bb4) //120
 172 NHSTUB(DoAFLock                               ,0xff825864) //120
 173 NHSTUB(EnterToCompensationEVF                 ,0xff825b10) //104
 174 NHSTUB(ExecuteEventProcedure                  ,0xff875a90) //104
 175 NHSTUB(ExitFromCompensationEVF                ,0xff825b54) //104
 176 NHSTUB(ExitTask                               ,0xff81b184) //120
 177 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff8311d8) //104
 178 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff83131c) //104
 179 NHSTUB(Fclose_Fut                             ,0xff82348c) //120
 180 NHSTUB(Feof_Fut                               ,0xff823678) //  1
 181 NHSTUB(Fflush_Fut                             ,0xff8236b4) //  1
 182 NHSTUB(Fgets_Fut                              ,0xff8235e0) //  1
 183 NHSTUB(Fopen_Fut                              ,0xff82344c) //120
 184 NHSTUB(Fread_Fut                              ,0xff823538) //120
 185 NHSTUB(FreeUncacheableMemory                  ,0xff82800c) //112
 186 NHSTUB(Fseek_Fut                              ,0xff82362c) //120
 187 NHSTUB(Fwrite_Fut                             ,0xff82358c) //120
 188 NHSTUB(GetBatteryTemperature                  ,0xff84e660) //102
 189 NHSTUB(GetCCDTemperature                      ,0xff84e5f0) //102
 190 NHSTUB(GetCurrentAvValue                      ,0xff93bf24) //120
 191 NHSTUB(GetCurrentShutterSpeed                 ,0xff89cf98) //120
 192 NHSTUB(GetUsableMaxAv                         ,0xffacb980) //120
 193 NHSTUB(GetUsableMinAv                         ,0xffacb968) //120
 194 NHSTUB(GetDrive_ClusterSize                   ,0xff85ae98) //  1
 195 NHSTUB(GetDrive_FreeClusters                  ,0xff85af00) //  1
 196 NHSTUB(GetDrive_TotalClusters                 ,0xff85aecc) //  1
 197 NHSTUB(GetFocusLensSubjectDistance            ,0xff93a3ac) //102
 198 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff93a6b8) //  3
 199 NHSTUB(GetKbdState                            ,0xff84b660) //109
 200 NHSTUB(GetMemInfo                             ,0xff813c24) //115
 201 NHSTUB(GetOpticalTemperature                  ,0xff84e6d0) //120
 202 NHSTUB(GetParameterData                       ,0xff9754d4) //101
 203 NHSTUB(GetPropertyCase                        ,0xff879778) //102
 204 NHSTUB(GetSystemTime                          ,0xffa67c78) //120
 205 NHSTUB(GetVRAMHPixelsSize                     ,0xff83ccb4) //120
 206 NHSTUB(GetVRAMVPixelsSize                     ,0xff83ccc0) //120
 207 NHSTUB(GetZoomLensCurrentPoint                ,0xff9411d0) //120
 208 NHSTUB(GetZoomLensCurrentPosition             ,0xffa5b350) //102
 209 NHSTUB(GiveSemaphore                          ,0xff8279e8) //120
 210 NHSTUB(IsStrobeChargeCompleted                ,0xff8b6aa0) //102
 211 NHSTUB(LEDDrive                               ,0xff84ab48) //120
 212 NHSTUB(LocalTime                              ,0xff87322c) //115
 213 NHSTUB(LockMainPower                          ,0xff881010) //120
 214 NHSTUB(MakeDirectory_Fut                      ,0xff823384) //116
 215 NHSTUB(MoveFocusLensToDistance                ,0xffacda58) //102
 216 NHSTUB(MoveIrisWithAv                         ,0xffa6324c) //120
 217 NHSTUB(MoveZoomLensWithPoint                  ,0xffa63974) //120
 218 NHSTUB(Open                                   ,0xff823a3c) //120
 219 NHSTUB(PB2Rec                                 ,0xff884078) //104
 220 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff86612c) //120
 221 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff866104) //120
 222 NHSTUB(PT_PlaySound                           ,0xff865a7c) //102
 223 NHSTUB(PostLogicalEventForNotPowerType        ,0xff87ed3c) //120
 224 NHSTUB(PostLogicalEventToUI                   ,0xff87ed88) //120
 225 NHSTUB(PutInNdFilter                          ,0xffa637f8) //102
 226 NHSTUB(PutOutNdFilter                         ,0xffa6381c) //102
 227 NHSTUB(Read                                   ,0xff819a4c) //120
 228 NHSTUB(ReadFastDir                            ,0xffa491c4) //  1
 229 NHSTUB(Rec2PB                                 ,0xff882a00) //104
 230 NHSTUB(RefreshPhysicalScreen                  ,0xff9df0e0) //104
 231 NHSTUB(RenameFile_Fut                         ,0xff8232bc) //  1
 232 NHSTUB(Restart                                ,0xff829848) //122
 233 NHSTUB(SetAE_ShutterSpeed                     ,0xffad08e8) //102
 234 NHSTUB(SetAutoShutdownTime                    ,0xff881084) //120
 235 NHSTUB(SetCurrentCaptureModeType              ,0xff888754) //120
 236 NHSTUB(SetFileAttributes                      ,0xff823d90) //  1
 237 NHSTUB(SetFileTimeStamp                       ,0xff823d40) //  1
 238 NHSTUB(SetLogicalEventActive                  ,0xff880cd0) //120
 239 NHSTUB(SetParameterData                       ,0xff9753b0) //101
 240 NHSTUB(SetPropertyCase                        ,0xff879670) //102
 241 NHSTUB(SetScriptMode                          ,0xff880d20) //120
 242 NHSTUB(SleepTask                              ,0xff827c50) //120
 243 NHSTUB(TakeSemaphore                          ,0xff827918) //120
 244 NHSTUB(TurnOffBackLight                       ,0xff88f32c) //104
 245 NHSTUB(TurnOnBackLight                        ,0xff88f314) //104
 246 NHSTUB(TurnOnDisplay                          ,0xff846cf0) //120
 247 NHSTUB(TurnOffDisplay                         ,0xff846d00) //120
 248 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff9637e4) //120
 249 NHSTUB(UnlockAE                               ,0xff825bd8) //120
 250 NHSTUB(UnlockAF                               ,0xff82589c) //120
 251 NHSTUB(UnlockMainPower                        ,0xff880f64) //120
 252 NHSTUB(UpdateMBROnFlash                       ,0xff85acd8) //105
 253 NHSTUB(VbattGet                               ,0xff82046c) //120
 254 NHSTUB(Write                                  ,0xff823b10) //120
 255 NHSTUB(WriteSDCard                            ,0xff92aa44) //108
 256 NHSTUB(_log                                   ,0xffb01a10) //111
 257 NHSTUB(_log10                                 ,0xffb0069c) //112
 258 NHSTUB(_pow                                   ,0xffb0080c) //121
 259 NHSTUB(_sqrt                                  ,0xffb0366c) //  1
 260 NHSTUB(add_ptp_handler                        ,0xffa1731c) //121
 261 NHSTUB(apex2us                                ,0xff9e01c8) //121
 262 NHSTUB(close                                  ,0xff819864) //109
 263 NHSTUB(err_init_task                          ,0xff814e80) //111
 264 NHSTUB(exmem_alloc                            ,0xff87416c) //103
 265 NHSTUB(exmem_free                             ,0xff8741e4) //103
 266 NHSTUB(free                                   ,0xff813a7c) //112
 267 NHSTUB(get_current_nd_value                   ,0xffa59888) //122
 268 NHSTUB(kbd_p1_f                               ,0xff821c10) //109
 269 NHSTUB(kbd_p1_f_cont                          ,0xff821c1c) //109
 270 NHSTUB(kbd_p2_f                               ,0xff821428) //109
 271 NHSTUB(kbd_read_keys                          ,0xff821b14) //109
 272 NHSTUB(kbd_read_keys_r2                       ,0xff84af6c) //109
 273 NHSTUB(lseek                                  ,0xff823ba4) //120
 274 NHSTUB(malloc                                 ,0xff8139a8) //112
 275 NHSTUB(memcmp                                 ,0xff81cba4) //120
 276 NHSTUB(memcpy                                 ,0xff89bb28) //120
 277 NHSTUB(memset                                 ,0xff9df500) //120
 278 NHSTUB(mkdir                                  ,0xff823e08) //109
 279 NHSTUB(mktime_ext                             ,0xff89c394) //  1
 280 NHSTUB(open                                   ,0xff8197b4) //109
 281 NHSTUB(OpenFastDir                            ,0xffa49130) //  1
 282 NHSTUB(closedir                               ,0xffa49294) //  1
 283 NHSTUB(qsort                                  ,0xffab8288) //  1
 284 NHSTUB(rand                                   ,0xff81ccac) //121
 285 NHSTUB(realloc                                ,0xff813b5c) //115
 286 NHSTUB(reboot_fw_update                       ,0xffa50bc4) //106
 287 NHSTUB(set_control_event                      ,0xff88092c) //111
 288 NHSTUB(srand                                  ,0xff81cca0) //122
 289 NHSTUB(stat                                   ,0xff823c70) //  1
 290 NHSTUB(strcat                                 ,0xff89b93c) //  1
 291 NHSTUB(strchr                                 ,0xff89b9c4) //  1
 292 NHSTUB(strcmp                                 ,0xff81cb3c) //120
 293 NHSTUB(strcpy                                 ,0xff81cb24) //120
 294 NHSTUB(strftime                               ,0xff89bd9c) //  1
 295 NHSTUB(strlen                                 ,0xff81cb80) //120
 296 NHSTUB(strncmp                                ,0xff89b978) //  1
 297 NHSTUB(strncpy                                ,0xff82db14) //  1
 298 NHSTUB(strrchr                                ,0xff9df4d8) //  1
 299 NHSTUB(strtol                                 ,0xff82dd4c) //101
 300 NHSTUB(strtolx                                ,0xff82db50) //109
 301    DEF(task_CaptSeq                           ,0xff868c38) //120
 302    DEF(task_DvlpSeqTask                       ,0xff94d808) //120
 303    DEF(task_ExpDrv                            ,0xff8ad86c) //120
 304    DEF(task_FileWrite                         ,0xffa45ae4) //120
 305    DEF(task_InitFileModules                   ,0xff884af4) //120
 306    DEF(task_MovieRecord                       ,0xff864630) //120
 307    DEF(task_PhySw                             ,0xff821784) //120
 308    DEF(task_RotaryEncoder                     ,0xff84b8d8) //120
 309 NHSTUB(time                                   ,0xff87380c) //109
 310 NHSTUB(vsprintf                               ,0xff81cae8) //115
 311 NHSTUB(EngDrvRead                             ,0xff822a50) //102
 312 NHSTUB(PTM_GetCurrentItem                     ,0xff881890) //105
 313 NHSTUB(CancelHPTimer                          ,0xff874fcc) //119
 314 NHSTUB(SetHPTimerAfterNow                     ,0xff874ec4) //119
 315 NHSTUB(PT_MFOn                                ,0xff8661a4) //120
 316 NHSTUB(PT_MFOff                               ,0xff8661b4) //120
 317 NHSTUB(GetAdChValue                           ,0xff848c64) //120
 318 NHSTUB(get_ptp_buf_size                       ,0xff8d7c24) //122
 319 NHSTUB(get_ptp_file_buf                       ,0xffa18ca0) //121

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