root/platform/ixus960_sd950/sub/100d/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 R23 (DRYOS version 2.3, release #0023)
   6 //   Firmware Ver GM1.00D   // Found @ 0xff86890c, "GM1.00D" @ 0xff868919
   7 //   Firmware build timestamp: Aug 23 2007 09:21:45
   8 //   Canon DIGITAL IXUS 960 IS
   9 
  10 // Values for makefile.inc
  11 //   DIGIC = 30# DIGIC III
  12 //   PLATFORMOSVER = 23
  13 //   PLATFORMID = 12639# (0x315f) Found @ 0xfffe0130
  14 //   MAXRAMADDR = 0x03ffffff
  15 //   MEMISOSTART = 0x000a6234
  16 //   KEYSYS = d3# Found @ 0xffff31c8
  17 
  18 // Detected address ranges:
  19 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  20 // RAM data 0x00001900 - 0x000137a8 copied from 0xffafb86c (  73384 bytes)
  21 
  22 // Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S'
  23 //    Name                                     Address      Rule  %  Comp to stubs_entry_2.S
  24 //NHSTUB(GetOpticalTemperature                ,0xff846d54) //120        *** != 0xff846ce4
  25 //NHSTUB(NewTaskShell                         ,0xff869278) //120        *** != 0xffc596b0
  26 //NHSTUB(PutInNdFilter                        ,0xff928924) //102        *** != 0xff9e8ac4
  27 //NHSTUB(PutOutNdFilter                       ,0xff928948) //102        *** != 0xff9e8afc
  28 //NHSTUB(UIFS_WriteFirmInfoToFile             ,0xff983f58) //120        *** != 0xffd4a934
  29 //NHSTUB(kbd_pwr_off                          ,0xff844630) //  2 67%    *** != 0xff844640
  30 NHSTUB(kbd_pwr_on                             ,0xff8445f0) //  2 86%
  31 
  32 // Check of modemap from 'platform/CAMERA/shooting.c':
  33 // Firmware modemap table found @ffa26630 -> ffad6ddc
  34 // No problems found with modemap table.
  35 
  36 // Values below can be overridden in 'stubs_min.S':
  37 DEF(physw_status                            ,0x00014cfc) // Found @0xff823068
  38 DEF(physw_run                               ,0x00001ca4) // Found @0xff822d18
  39 DEF(physw_sleep_delay                       ,0x00001ca2) // Found @0xff822d18
  40 DEF(levent_table                            ,0xffab3444) // Found @0xffab3444
  41 DEF(FlashParamsTable                        ,0xffad6f9c) // Found @0xffad6f9c
  42 DEF(movie_status                            ,0x00005524) // Found @0xff85824c
  43 DEF(canon_menu_active                       ,0x0000f7d4) // Found @0xff983100
  44 DEF(canon_shoot_menu_active                 ,0x0000ede5) // Found @0xff9546d0
  45 DEF(playrec_mode                            ,0x000056d0) // Found @0xff85f234
  46 DEF(zoom_status                             ,0x00011e48) // Found @0xffa27e28
  47 DEF(some_flag_for_af_scan                   ,0x00011d80) // Found @0xffa20824
  48 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  49 // each entry contains 3 int value(s), the first is the zoom focus length.
  50 // there are 8 entries in the table - set NUM_FL to 8
  51 DEF(focus_len_table                         ,0xfffe296c) // Found @0xfffe296c
  52 DEF(zoom_busy                               ,0x0000de7c) // Found @0xff92a31c
  53 DEF(focus_busy                              ,0x0000dd78) // Found @0xff92513c
  54 DEF(recreview_hold                          ,0x0000618c) // Found @0xff8774b4
  55 // Camera has 2 RAW buffers @ 0x108067a0 & 0x11f6c720
  56 //  Note: active buffer --> raw_buffers[ active_raw_buffer   *3]
  57 //        other buffer  --> raw_buffers[(active_raw_buffer^1)*3]
  58 DEF(raw_buffers                             ,0xffa95cc4) // Found @0xffa95cc4
  59 DEF(active_raw_buffer                       ,0x00005670) // Found @0xff85c590
  60 DEF(fileio_semaphore                        ,0x00002b78) // Found @0xff84f2a4
  61 DEF(exmem_alloc_table                       ,0x0001defc) // Found @0xff865e24
  62 DEF(exmem_types_table                       ,0xffaff70c) // Found @0x000057a0
  63 DEF_CONST(exmem_type_count                  ,0x00000012)
  64 DEF(imager_active                           ,0x00001f80) // Found @0xff8375e4 (0x1f7c + 4)
  65 DEF_CONST(uiprop_count                      ,0x00000063) // Found @0xff945460
  66 DEF(cameracon_state                         ,0x00005d68) // Found @0xff86e9d8
  67 
  68 // Values below go in 'lib.c':
  69 //void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xff8404d8
  70 //void *vid_get_viewport_fb()      { return (void*)0x1065b540; }             // Found @0xff9ed600
  71 DEF(viewport_fb_d                           ,0x000053b8) // Found 0x5368 (@0xff851564) + 0x50 (@0xff85159c)
  72 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x5368+0x50)); } // Found @0xff851564 & 0xff85159c
  73 DEF(jpeg_count_str                          ,0x0005e288) // Found @0xff994a8c
  74 //char *camera_jpeg_count_str()    { return (char*)0x0005e288; }             // Found @0xff994a8c
  75 //int get_flash_params_count(void) { return 0x72; }                          // Found @0xff945ea4
  76 
  77 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  78 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffa95924, levent 0x90a
  79 //#define SD_READONLY_IDX     2
  80 //#define USB_MASK            0x00040000 // Found @0xffa95930, levent 0x902
  81 //#define USB_IDX             2
  82 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffa9590c, levent 0x905
  83 //#define BATTCOVER_IDX       2
  84 //#define ANALOG_AV_FLAG      0x00200000 // Found @0xffa95840, 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_PLAYBACK        ,0x40000000 }, // Found @0xffa95864, levent 0x601
  90 //    { 0, KEY_POWER           ,0x80000000 }, // Found @0xffa95870, levent 0x600
  91 //    { 2, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffa95888, levent 0x01
  92 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffa95888, levent 0x01
  93 //    { 2, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffa9587c, levent 0x00
  94 //    { 2, KEY_ZOOM_IN         ,0x00000004 }, // Found @0xffa95894, levent 0x02
  95 //    { 2, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffa958a0, levent 0x03
  96 //    { 2, KEY_DISPLAY         ,0x00000200 }, // Found @0xffa958e8, levent 0x0a
  97 //    { 2, KEY_MENU            ,0x00000400 }, // Found @0xffa958f4, levent 0x09
  98 //    { 0, 0, 0 }
  99 //};
 100 
 101 // Values below go in 'platform_camera.h':
 102 //#define CAM_DRYOS         1
 103 //#define CAM_RAW_ROWPIX    4104 // Found @0xff9e79d8
 104 //#define CAM_RAW_ROWS      3048 // Found @0xff9e79e0
 105 //#undef  CAM_UNCACHED_BIT
 106 //#define CAM_UNCACHED_BIT  0x10000000 // Found @0xff8298ec
 107 //#define PARAM_CAMERA_NAME 4 // Found @0xffad906c
 108 
 109 // Below goes in 'filewrite.c' or 'platform_camera.h':
 110 //#define MAX_CHUNKS_FOR_FWT 3 // Found @0xffa08308
 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, 0xffa95366)
 129 
 130 // EXMEM types:
 131 // EXMEM_RAMDISK     0
 132 // EXMEM_COM         1
 133 // EXMEM_COMTMP      2
 134 // EXMEM_FORMATTER   3
 135 // EXMEM_SHADING     4
 136 // EXMEM_FAMODE      5
 137 // EXMEM_FIRMUP      6
 138 // EXMEM_FIRMUP_VRAM 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: 0x1a14, found @ 0xff816100
 152 
 153 // LED table init @ 0xff8e83b0
 154 // LED #1: 0xc02200c8, offset 0xc4
 155 // LED #2: 0xc0220138, offset 0x84
 156 // LED #3: 0xc02200cc, offset 0x204
 157 // LED #4: 0xc0220134, offset 0x4
 158 // LED #5: 0xc0220130, offset 0x44
 159 
 160 // For capt_seq.c
 161 DEF(_nrflag,0xe21c) // Found @ ff933c9c (0xe21c)
 162 //static long *nrflag = (long*)(0xe21c);       // Found @ ff933c9c
 163 
 164 // Stubs below matched 100%.
 165 //    Name                                     Address                Comp to stubs_entry_2.S
 166 NHSTUB(AllocateUncacheableMemory              ,0xff8298b0) //112
 167 NHSTUB(Close                                  ,0xff824fc8) //120
 168 NHSTUB(CreateBinarySemaphore                  ,0xff81b820) //115
 169 NHSTUB(CreateTask                             ,0xff81baf0) //120
 170 NHSTUB(DebugAssert                            ,0xff81bfc8) //107
 171 NHSTUB(DeleteDirectory_Fut                    ,0xff824914) //116
 172 NHSTUB(DeleteFile_Fut                         ,0xff824830) //112
 173 NHSTUB(DeleteSemaphore                        ,0xff81b8e0) //120
 174 NHSTUB(DoAELock                               ,0xff827068) //120
 175 NHSTUB(DoAFLock                               ,0xff826b54) //120
 176 NHSTUB(EnterToCompensationEVF                 ,0xff826ec8) //104
 177 NHSTUB(ExecuteEventProcedure                  ,0xff81c1a8) //104
 178 NHSTUB(ExitFromCompensationEVF                ,0xff826f18) //104
 179 NHSTUB(ExitTask                               ,0xff81bd80) //120
 180 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff834204) //104
 181 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff8343c4) //104
 182 NHSTUB(Fclose_Fut                             ,0xff8249ac) //120
 183 NHSTUB(Feof_Fut                               ,0xff824b98) //  1
 184 NHSTUB(Fflush_Fut                             ,0xff824bd4) //  1
 185 NHSTUB(Fgets_Fut                              ,0xff824b00) //  1
 186 NHSTUB(Fopen_Fut                              ,0xff82496c) //120
 187 NHSTUB(Fread_Fut                              ,0xff824a58) //120
 188 NHSTUB(FreeUncacheableMemory                  ,0xff8298e4) //112
 189 NHSTUB(Fseek_Fut                              ,0xff824b4c) //120
 190 NHSTUB(Fwrite_Fut                             ,0xff824aac) //120
 191 NHSTUB(GetBatteryTemperature                  ,0xff846ce4) //102
 192 NHSTUB(GetCCDTemperature                      ,0xff846c74) //102
 193 NHSTUB(GetCurrentAvValue                      ,0xff9275c4) //120
 194 NHSTUB(GetCurrentShutterSpeed                 ,0xff8912f4) //120
 195 NHSTUB(GetDrive_ClusterSize                   ,0xff84da50) //  1
 196 NHSTUB(GetDrive_FreeClusters                  ,0xff84daf0) //  1
 197 NHSTUB(GetDrive_TotalClusters                 ,0xff84da84) //  1
 198 NHSTUB(GetFocusLensSubjectDistance            ,0xff925c7c) //102
 199 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff925f88) //  1
 200 NHSTUB(GetKbdState                            ,0xff8445bc) //109
 201 NHSTUB(GetMemInfo                             ,0xff813c58) //115
 202 NHSTUB(GetParameterData                       ,0xff945e64) //  1
 203 NHSTUB(GetPropertyCase                        ,0xff8697f4) //101
 204 NHSTUB(GetSystemTime                          ,0xffa238c0) //120
 205 NHSTUB(GetVRAMHPixelsSize                     ,0xff8c2660) //120
 206 NHSTUB(GetVRAMVPixelsSize                     ,0xff8c266c) //120
 207 NHSTUB(GetZoomLensCurrentPoint                ,0xff92a680) //120
 208 NHSTUB(GetZoomLensCurrentPosition             ,0xffa1abc8) //102
 209 NHSTUB(GiveSemaphore                          ,0xff81ba5c) //120
 210 NHSTUB(IsStrobeChargeCompleted                ,0xff8b5978) //102
 211 NHSTUB(LEDDrive                               ,0xff843bd8) //120
 212 NHSTUB(LocalTime                              ,0xff8655c4) //115
 213 NHSTUB(LockMainPower                          ,0xff86d3d0) //120
 214 NHSTUB(MakeDirectory_Fut                      ,0xff8248a4) //116
 215 NHSTUB(MoveFocusLensToDistance                ,0xff9ea6b8) //102
 216 NHSTUB(MoveIrisWithAv                         ,0xff927850) //120
 217 NHSTUB(MoveZoomLensWithPoint                  ,0xff92b12c) //120
 218 NHSTUB(MoveOpticalZoomAt                      ,0xff8262cc) //109
 219 NHSTUB(Open                                   ,0xff824fa0) //120
 220 NHSTUB(PB2Rec                                 ,0xff87058c) //104
 221 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff86096c) //120
 222 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff860934) //120
 223 NHSTUB(PT_PlaySound                           ,0xff8604e0) //103
 224 NHSTUB(PostLogicalEventForNotPowerType        ,0xff86b218) //120
 225 NHSTUB(PostLogicalEventToUI                   ,0xff86b264) //120
 226 NHSTUB(Read                                   ,0xff81a378) //120
 227 NHSTUB(ReadFastDir                            ,0xffa0a1bc) //  1
 228 NHSTUB(Rec2PB                                 ,0xff86ef84) //104
 229 NHSTUB(RefreshPhysicalScreen                  ,0xff9a0f54) //104
 230 NHSTUB(RenameFile_Fut                         ,0xff8247dc) //  1
 231 NHSTUB(Restart                                ,0xff82b90c) //122
 232 NHSTUB(SetAE_ShutterSpeed                     ,0xff9ec7b4) //102
 233 NHSTUB(SetAutoShutdownTime                    ,0xff86d444) //120
 234 NHSTUB(SetCurrentCaptureModeType              ,0xff874e2c) //120
 235 NHSTUB(SetDate                                ,0xff9ee248) //120
 236 NHSTUB(SetFileAttributes                      ,0xff8252f4) //  1
 237 NHSTUB(SetFileTimeStamp                       ,0xff8252a4) //  1
 238 NHSTUB(SetLogicalEventActive                  ,0xff86d000) //  1
 239 NHSTUB(SetParameterData                       ,0xff945dd4) //101
 240 NHSTUB(SetPropertyCase                        ,0xff8696ec) //103
 241 NHSTUB(SetScriptMode                          ,0xff86d050) //120
 242 NHSTUB(SleepTask                              ,0xff829738) //120
 243 NHSTUB(TakeSemaphore                          ,0xff81b98c) //120
 244 NHSTUB(TurnOffBackLight                       ,0xff87a430) //104
 245 NHSTUB(TurnOnBackLight                        ,0xff87a418) //104
 246 NHSTUB(TurnOnDisplay                          ,0xff840588) //120
 247 NHSTUB(TurnOffDisplay                         ,0xff840598) //120
 248 NHSTUB(UnlockAE                               ,0xff8270a4) //120
 249 NHSTUB(UnlockAF                               ,0xff826ba4) //120
 250 NHSTUB(UnlockMainPower                        ,0xff86d324) //120
 251 NHSTUB(UnsetZoomForMovie                      ,0xff94ca38) //104
 252 NHSTUB(UpdateMBROnFlash                       ,0xff84d818) //105
 253 NHSTUB(VbattGet                               ,0xff821944) //120
 254 NHSTUB(Write                                  ,0xff825074) //120
 255 NHSTUB(WriteSDCard                            ,0xff91a968) //108
 256 NHSTUB(_log                                   ,0xffa92ed8) //111
 257 NHSTUB(_log10                                 ,0xffa91e1c) //112
 258 NHSTUB(_pow                                   ,0xffa91f8c) //121
 259 NHSTUB(_sqrt                                  ,0xffa94240) //  1
 260 NHSTUB(add_ptp_handler                        ,0xff8cc2b0) //121
 261 NHSTUB(apex2us                                ,0xff9a240c) //121
 262 NHSTUB(close                                  ,0xff81a190) //109
 263 NHSTUB(err_init_task                          ,0xff814eb0) //111
 264 NHSTUB(exmem_alloc                            ,0xff86670c) //102
 265 NHSTUB(exmem_ualloc                           ,0xff86655c) //102
 266 NHSTUB(exmem_ufree                            ,0xff86669c) //102
 267 NHSTUB(free                                   ,0xff813ab0) //112
 268 NHSTUB(get_nd_value                           ,0xffa183bc) //123
 269 NHSTUB(get_current_nd_value                   ,0xffa18378) //122
 270 NHSTUB(get_current_deltasv                    ,0xff891f28) //122
 271 NHSTUB(GetCurrentDriveBaseSvValue             ,0xff89698c) //123
 272 NHSTUB(kbd_p1_f                               ,0xff82316c) //109
 273 NHSTUB(kbd_p1_f_cont                          ,0xff823178) //109
 274 NHSTUB(kbd_p2_f                               ,0xff8229b8) //109
 275 NHSTUB(kbd_read_keys                          ,0xff823068) //109
 276 NHSTUB(kbd_read_keys_r2                       ,0xff84415c) //109
 277 NHSTUB(lseek                                  ,0xff825108) //120
 278 NHSTUB(malloc                                 ,0xff8139dc) //112
 279 NHSTUB(memcmp                                 ,0xff81e82c) //120
 280 NHSTUB(memcpy                                 ,0xff88fdec) //120
 281 NHSTUB(memset                                 ,0xffa614e4) //120
 282 NHSTUB(mkdir                                  ,0xff82536c) //109
 283 NHSTUB(mktime_ext                             ,0xff890658) //  1
 284 NHSTUB(open                                   ,0xff81a0e0) //109
 285 NHSTUB(OpenFastDir                            ,0xffa0a128) //  1
 286 NHSTUB(closedir                               ,0xffa0a28c) //  1
 287 NHSTUB(qsort                                  ,0xff9a17e4) //  1
 288 NHSTUB(rand                                   ,0xff81e934) //121
 289 NHSTUB(realloc                                ,0xff813b90) //115
 290 NHSTUB(reboot_fw_update                       ,0xffa11b80) //106
 291 NHSTUB(set_control_event                      ,0xff86ccec) //  1
 292 NHSTUB(srand                                  ,0xff81e928) //122
 293 NHSTUB(stat                                   ,0xff8251d4) //  1
 294 NHSTUB(strcat                                 ,0xff88fd18) //  1
 295 NHSTUB(strchr                                 ,0xff88fda0) //  1
 296 NHSTUB(strcmp                                 ,0xff81e7c4) //120
 297 NHSTUB(strcpy                                 ,0xff81e770) //120
 298 NHSTUB(strftime                               ,0xff890060) //  1
 299 NHSTUB(strlen                                 ,0xff81e808) //120
 300 NHSTUB(strncmp                                ,0xff88fd54) //  1
 301 NHSTUB(strncpy                                ,0xff81e788) //  1
 302 NHSTUB(strrchr                                ,0xff88fdc4) //  1
 303 NHSTUB(strtol                                 ,0xff82ff20) //101
 304 NHSTUB(strtolx                                ,0xff82fd24) //109
 305    DEF(task_CaptSeq                           ,0xff85c038) //120
 306    DEF(task_DvlpSeqTask                       ,0xff9347f4) //120
 307    DEF(task_ExpDrv                            ,0xff8af7b0) //120
 308    DEF(task_FileWrite                         ,0xffa082a4) //120
 309    DEF(task_InitFileModules                   ,0xff871070) //120
 310    DEF(task_MovieRecord                       ,0xff8584ec) //120
 311    DEF(task_PhySw                             ,0xff822d14) //120
 312 NHSTUB(time                                   ,0xff865ac8) //109
 313 NHSTUB(vsprintf                               ,0xff81e6f0) //115
 314 NHSTUB(EngDrvRead                             ,0xff823f70) //102
 315 NHSTUB(PTM_GetCurrentItem                     ,0xff86de90) //105
 316 NHSTUB(CancelHPTimer                          ,0xff867458) //119
 317 NHSTUB(SetHPTimerAfterNow                     ,0xff867350) //119
 318 NHSTUB(MFOn                                   ,0xff861078) //120
 319 NHSTUB(MFOff                                  ,0xff861088) //120
 320 NHSTUB(PT_MFOn                                ,0xff8609cc) //120
 321 NHSTUB(PT_MFOff                               ,0xff8609dc) //120
 322 NHSTUB(GetAdChValue                           ,0xff841b74) //120
 323 NHSTUB(get_ptp_buf_size                       ,0xff8c5a54) //122
 324 NHSTUB(get_ptp_file_buf                       ,0xff9d09cc) //121
 325 NHSTUB(SetVideoOutType                        ,0xff9ecfb4) //109
 326 NHSTUB(GetVideoOutType                        ,0xff9ecf18) //120

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