root/platform/ixus860_sd870/sub/100c/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.00C   // Found @ 0xff868588, "GM1.00C" @ 0xff868595
   7 //   Firmware build timestamp: Jul 20 2007 18:32:15
   8 //   Canon DIGITAL IXUS 860 IS
   9 
  10 // Values for makefile.inc
  11 //   DIGIC = 30# DIGIC III
  12 //   PLATFORMOSVER = 23
  13 //   PLATFORMID = 12640# (0x3160) Found @ 0xfffe0130
  14 //   MAXRAMADDR = 0x01ffffff
  15 //   MEMISOSTART = 0x0009fe50
  16 //   KEYSYS = d3# Found @ 0xffff3184
  17 
  18 // Detected address ranges:
  19 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  20 // RAM data 0x00001900 - 0x0000febc copied from 0xffaf47ec (  58812 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(NewTaskShell                         ,0xff868ef4) //120        *** != 0xffc596b0
  25 //NHSTUB(PutInNdFilter                        ,0xff9262dc) //102        *** != 0xff9e448c
  26 //NHSTUB(PutOutNdFilter                       ,0xff926300) //102        *** != 0xff9e44c4
  27 //NHSTUB(UIFS_WriteFirmInfoToFile             ,0xff981760) //120        *** != 0xffd4a934
  28 //NHSTUB(kbd_pwr_off                          ,0xff84447c) //  2 67%    *** != 0xff84448c
  29 NHSTUB(kbd_pwr_on                             ,0xff84443c) //  2 86%
  30 
  31 // Check of modemap from 'platform/CAMERA/shooting.c':
  32 // Firmware modemap table found @ffa20600 -> ffacfef8
  33 // No problems found with modemap table.
  34 
  35 // Values below can be overridden in 'stubs_min.S':
  36 DEF(physw_status                            ,0x000113fc) // Found @0xff8230cc
  37 DEF(physw_run                               ,0x00001ca4) // Found @0xff822d7c
  38 DEF(physw_sleep_delay                       ,0x00001ca2) // Found @0xff822d7c
  39 DEF(levent_table                            ,0xffaac8b8) // Found @0xffaac8b8
  40 DEF(FlashParamsTable                        ,0xffad00b4) // Found @0xffad00b4
  41 DEF(movie_status                            ,0x0000551c) // Found @0xff857f90
  42 DEF(canon_menu_active                       ,0x0000c04c) // Found @0xff98090c
  43 DEF(canon_shoot_menu_active                 ,0x0000b65d) // Found @0xff951f90
  44 DEF(playrec_mode                            ,0x000056c8) // Found @0xff85eed0
  45 DEF(zoom_status                             ,0x0000e560) // Found @0xffa21df8
  46 DEF(some_flag_for_af_scan                   ,0x0000e498) // Found @0xffa1a914
  47 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  48 // each entry contains 3 int value(s), the first is the zoom focus length.
  49 // there are 8 entries in the table - set NUM_FL to 8
  50 DEF(focus_len_table                         ,0xfffe2990) // Found @0xfffe2990
  51 DEF(zoom_busy                               ,0x0000a75c) // Found @0xff927cd4
  52 DEF(focus_busy                              ,0x0000a658) // Found @0xff922ac0
  53 DEF(recreview_hold                          ,0x00006188) // Found @0xff8771cc
  54 // Camera appears to have only 1 RAW buffer @ 0x10f3e0e0 (Found @0xff9eae38)
  55 DEF(fileio_semaphore                        ,0x00002b70) // Found @0xff84f0f4
  56 DEF(exmem_alloc_table                       ,0x0001a494) // Found @0xff865aa0
  57 DEF(exmem_types_table                       ,0xffaf8684) // Found @0x00005798
  58 DEF_CONST(exmem_type_count                  ,0x00000012)
  59 DEF(imager_active                           ,0x00001f7c) // Found @0xff8375f4 (0x1f78 + 4)
  60 DEF_CONST(uiprop_count                      ,0x00000063) // Found @0xff942ce8
  61 
  62 // Values below go in 'lib.c':
  63 //void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xff84034c
  64 //void *vid_get_viewport_fb()      { return (void*)0x1065b4b0; }             // Found @0xff9e8fb0
  65 DEF(viewport_fb_d                           ,0x000053b0) // Found 0x5360 (@0xff8513b4) + 0x50 (@0xff8513ec)
  66 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x5360+0x50)); } // Found @0xff8513b4 & 0xff8513ec
  67 DEF(jpeg_count_str                          ,0x0005a668) // Found @0xff9921b4
  68 //char *camera_jpeg_count_str()    { return (char*)0x0005a668; }             // Found @0xff9921b4
  69 //int get_flash_params_count(void) { return 0x72; }                          // Found @0xff94372c
  70 
  71 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  72 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffa8fd64, levent 0x90a
  73 //#define SD_READONLY_IDX     2
  74 //#define USB_MASK            0x00040000 // Found @0xffa8fd70, levent 0x902
  75 //#define USB_IDX             2
  76 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffa8fd4c, levent 0x905
  77 //#define BATTCOVER_IDX       2
  78 //#define ANALOG_AV_FLAG      0x00200000 // Found @0xffa8fc80, levent 0x900 (non-inverted logic)
  79 //#define ANALOG_AV_IDX       0
  80 
  81 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  82 //static KeyMap keymap[] = {
  83 //    { 0, KEY_POWER           ,0x40000000 }, // Found @0xffa8fca4, levent 0x600
  84 //    { 0, KEY_PLAYBACK        ,0x80000000 }, // Found @0xffa8fcb0, levent 0x601
  85 //    { 2, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffa8fcc8, levent 0x01
  86 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffa8fcc8, levent 0x01
  87 //    { 2, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffa8fcbc, levent 0x00
  88 //    { 2, KEY_ZOOM_IN         ,0x00000004 }, // Found @0xffa8fcd4, levent 0x02
  89 //    { 2, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffa8fce0, levent 0x03
  90 //    { 2, KEY_DISPLAY         ,0x00000200 }, // Found @0xffa8fd28, levent 0x0a
  91 //    { 2, KEY_MENU            ,0x00000400 }, // Found @0xffa8fd34, levent 0x09
  92 //    { 0, 0, 0 }
  93 //};
  94 
  95 // Values below go in 'platform_camera.h':
  96 //#define CAM_DRYOS         1
  97 //#define CAM_RAW_ROWPIX    3336 // Found @0xff9e3310
  98 //#define CAM_RAW_ROWS      2480 // Found @0xff9e3318
  99 //#undef  CAM_UNCACHED_BIT
 100 //#define CAM_UNCACHED_BIT  0x10000000 // Found @0xff829944
 101 //#define PARAM_CAMERA_NAME 4 // Found @0xffad210c
 102 
 103 // Known propcases
 104 // //      PROPCASE_AFSTEP 13
 105 // #define PROPCASE_FOCUS_STATE 18
 106 // #define PROPCASE_AV 23
 107 // #define PROPCASE_BV 34
 108 // //      PROPCASE_DELTA_DIGITALGAIN 77
 109 // #define PROPCASE_DELTA_SV 79
 110 // //      PROPCASE_DELTA_ND 80
 111 // #define PROPCASE_EV_CORRECTION_2 207
 112 // #define PROPCASE_ORIENTATION_SENSOR 219
 113 // #define PROPCASE_SV_MARKET 246
 114 // //      PROPCASE_SVFIX 247
 115 // #define PROPCASE_TV 262
 116 // Guessed propset: 2
 117 
 118 // Misc stuff
 119 DEF(ctypes, 0xffa8f7a6)
 120 
 121 // EXMEM types:
 122 // EXMEM_RAMDISK     0
 123 // EXMEM_COM         1
 124 // EXMEM_COMTMP      2
 125 // EXMEM_FORMATTER   3
 126 // EXMEM_SHADING     4
 127 // EXMEM_FAMODE      5
 128 // EXMEM_FIRMUP      6
 129 // EXMEM_FIRMUP_VRAM 7
 130 // EXMEM_DVLPWORK    8
 131 // EXMEM_EVF         9
 132 // EXMEM_SCRIPT      10
 133 // EXMEM_FILESTORE   11
 134 // EXMEM_MOVIE_REC   12
 135 // EXMEM_MOVIE_PLY   13
 136 // EXMEM_WIDE        14
 137 // EXMEM_NARROW      15
 138 // EXMEM_CRAW_REC    16
 139 // EXMEM_PCEVF       17
 140 
 141 // ISR flag: 0x195c, pointer to current task's control block: 0x1958
 142 // pointer to TCB area: 0x1a14, found @ 0xff8161c8
 143 
 144 // LED table init @ 0xff8e6b94
 145 // LED #1: 0xc02200cc, offset 0x204
 146 // LED #2: 0xc0220134, offset 0x4
 147 // LED #3: 0xc0220130, offset 0x44
 148 
 149 // For capt_seq.c
 150 DEF(_nrflag,0xaafc) // Found @ ff9315bc (0xaafc)
 151 //static long *nrflag = (long*)(0xaafc);       // Found @ ff9315bc
 152 
 153 // Stubs below matched 100%.
 154 //    Name                                     Address                Comp to stubs_entry_2.S
 155 NHSTUB(AllocateUncacheableMemory              ,0xff829908) //112
 156 NHSTUB(Close                                  ,0xff82502c) //120
 157 NHSTUB(CreateBinarySemaphore                  ,0xff81b8e8) //115
 158 NHSTUB(CreateTask                             ,0xff81bbb8) //120
 159 NHSTUB(DebugAssert                            ,0xff81c090) //107
 160 NHSTUB(DeleteDirectory_Fut                    ,0xff824978) //116
 161 NHSTUB(DeleteFile_Fut                         ,0xff824894) //112
 162 NHSTUB(DoAELock                               ,0xff8270cc) //120
 163 NHSTUB(DoAFLock                               ,0xff826bb8) //120
 164 NHSTUB(EnterToCompensationEVF                 ,0xff826f2c) //104
 165 NHSTUB(ExecuteEventProcedure                  ,0xff81c270) //104
 166 NHSTUB(ExitFromCompensationEVF                ,0xff826f7c) //104
 167 NHSTUB(ExitTask                               ,0xff81be48) //120
 168 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff834214) //104
 169 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff8343d4) //104
 170 NHSTUB(Fclose_Fut                             ,0xff824a10) //120
 171 NHSTUB(Feof_Fut                               ,0xff824bfc) //  1
 172 NHSTUB(Fflush_Fut                             ,0xff824c38) //  1
 173 NHSTUB(Fgets_Fut                              ,0xff824b64) //  1
 174 NHSTUB(Fopen_Fut                              ,0xff8249d0) //120
 175 NHSTUB(Fread_Fut                              ,0xff824abc) //120
 176 NHSTUB(FreeUncacheableMemory                  ,0xff82993c) //112
 177 NHSTUB(Fseek_Fut                              ,0xff824bb0) //120
 178 NHSTUB(Fwrite_Fut                             ,0xff824b10) //120
 179 NHSTUB(GetBatteryTemperature                  ,0xff846b30) //102
 180 NHSTUB(GetCCDTemperature                      ,0xff846ac0) //102
 181 NHSTUB(GetCurrentAvValue                      ,0xff924f7c) //120
 182 NHSTUB(GetCurrentShutterSpeed                 ,0xff891008) //120
 183 NHSTUB(GetDrive_ClusterSize                   ,0xff84d8a0) //  1
 184 NHSTUB(GetDrive_FreeClusters                  ,0xff84d940) //  1
 185 NHSTUB(GetDrive_TotalClusters                 ,0xff84d8d4) //  1
 186 NHSTUB(GetFocusLensSubjectDistance            ,0xff923634) //102
 187 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff923940) //  1
 188 NHSTUB(GetKbdState                            ,0xff844408) //109
 189 NHSTUB(GetMemInfo                             ,0xff813c58) //115
 190 NHSTUB(GetOpticalTemperature                  ,0xff846ba0) //120
 191 NHSTUB(GetParameterData                       ,0xff9436ec) //  1
 192 NHSTUB(GetPropertyCase                        ,0xff869470) //101
 193 NHSTUB(GetSystemTime                          ,0xffa1d890) //120
 194 NHSTUB(GetVRAMHPixelsSize                     ,0xff8c0e50) //120
 195 NHSTUB(GetVRAMVPixelsSize                     ,0xff8c0e5c) //120
 196 NHSTUB(GetZoomLensCurrentPoint                ,0xff928038) //120
 197 NHSTUB(GetZoomLensCurrentPosition             ,0xffa14b84) //102
 198 NHSTUB(GiveSemaphore                          ,0xff81bb24) //120
 199 NHSTUB(IsStrobeChargeCompleted                ,0xff8b4cbc) //102
 200 NHSTUB(LEDDrive                               ,0xff8439fc) //120
 201 NHSTUB(LocalTime                              ,0xff865240) //115
 202 NHSTUB(LockMainPower                          ,0xff86d04c) //120
 203 NHSTUB(MakeDirectory_Fut                      ,0xff824908) //116
 204 NHSTUB(MoveFocusLensToDistance                ,0xff9e5f64) //102
 205 NHSTUB(MoveIrisWithAv                         ,0xff925208) //120
 206 NHSTUB(MoveZoomLensWithPoint                  ,0xff928ae4) //120
 207 NHSTUB(MoveOpticalZoomAt                      ,0xff826330) //109
 208 NHSTUB(Open                                   ,0xff825004) //120
 209 NHSTUB(PB2Rec                                 ,0xff870204) //104
 210 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff8605e8) //120
 211 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff8605b0) //120
 212 NHSTUB(PT_PlaySound                           ,0xff86015c) //103
 213 NHSTUB(PostLogicalEventForNotPowerType        ,0xff86ae94) //120
 214 NHSTUB(PostLogicalEventToUI                   ,0xff86aee0) //120
 215 NHSTUB(Read                                   ,0xff81a440) //120
 216 NHSTUB(ReadFastDir                            ,0xffa040d4) //  1
 217 NHSTUB(Rec2PB                                 ,0xff86ebfc) //104
 218 NHSTUB(RefreshPhysicalScreen                  ,0xff99e624) //104
 219 NHSTUB(RenameFile_Fut                         ,0xff824840) //  1
 220 NHSTUB(Restart                                ,0xff82b964) //122
 221 NHSTUB(SetAE_ShutterSpeed                     ,0xff9e81ac) //102
 222 NHSTUB(SetAutoShutdownTime                    ,0xff86d0c0) //120
 223 NHSTUB(SetCurrentCaptureModeType              ,0xff874b44) //120
 224 NHSTUB(SetFileAttributes                      ,0xff825358) //  1
 225 NHSTUB(SetFileTimeStamp                       ,0xff825308) //  1
 226 NHSTUB(SetLogicalEventActive                  ,0xff86cc7c) //  1
 227 NHSTUB(SetParameterData                       ,0xff94365c) //101
 228 NHSTUB(SetPropertyCase                        ,0xff869368) //103
 229 NHSTUB(SetScriptMode                          ,0xff86cccc) //120
 230 NHSTUB(SleepTask                              ,0xff829790) //120
 231 NHSTUB(TakeSemaphore                          ,0xff81ba54) //120
 232 NHSTUB(TurnOffBackLight                       ,0xff87a148) //104
 233 NHSTUB(TurnOnBackLight                        ,0xff87a130) //104
 234 NHSTUB(TurnOnDisplay                          ,0xff8403fc) //120
 235 NHSTUB(TurnOffDisplay                         ,0xff84040c) //120
 236 NHSTUB(UnlockAE                               ,0xff827108) //120
 237 NHSTUB(UnlockAF                               ,0xff826c08) //120
 238 NHSTUB(UnlockMainPower                        ,0xff86cfa0) //120
 239 NHSTUB(UnsetZoomForMovie                      ,0xff94a2c4) //104
 240 NHSTUB(UpdateMBROnFlash                       ,0xff84d668) //105
 241 NHSTUB(VbattGet                               ,0xff8219a8) //120
 242 NHSTUB(Write                                  ,0xff8250d8) //120
 243 NHSTUB(WriteSDCard                            ,0xff9182fc) //108
 244 NHSTUB(_log                                   ,0xffa8d318) //111
 245 NHSTUB(_log10                                 ,0xffa8c25c) //112
 246 NHSTUB(_pow                                   ,0xffa8c3cc) //121
 247 NHSTUB(_sqrt                                  ,0xffa8e680) //  1
 248 NHSTUB(add_ptp_handler                        ,0xff8caa9c) //121
 249 NHSTUB(apex2us                                ,0xff99fadc) //121
 250 NHSTUB(close                                  ,0xff81a258) //109
 251 NHSTUB(err_init_task                          ,0xff814eb0) //111
 252 NHSTUB(exmem_alloc                            ,0xff866388) //102
 253 NHSTUB(exmem_ualloc                           ,0xff8661d8) //102
 254 NHSTUB(exmem_ufree                            ,0xff866318) //102
 255 NHSTUB(free                                   ,0xff813ab0) //112
 256 NHSTUB(get_nd_value                           ,0xffa122dc) //123
 257 NHSTUB(get_current_nd_value                   ,0xffa12298) //122
 258 NHSTUB(kbd_p1_f                               ,0xff8231d0) //109
 259 NHSTUB(kbd_p1_f_cont                          ,0xff8231dc) //109
 260 NHSTUB(kbd_p2_f                               ,0xff822a1c) //109
 261 NHSTUB(kbd_read_keys                          ,0xff8230cc) //109
 262 NHSTUB(kbd_read_keys_r2                       ,0xff843fa8) //109
 263 NHSTUB(lseek                                  ,0xff82516c) //120
 264 NHSTUB(malloc                                 ,0xff8139dc) //112
 265 NHSTUB(memcmp                                 ,0xff81e8f4) //120
 266 NHSTUB(memcpy                                 ,0xff88fb00) //120
 267 NHSTUB(memset                                 ,0xffa5b468) //120
 268 NHSTUB(mkdir                                  ,0xff8253d0) //109
 269 NHSTUB(mktime_ext                             ,0xff89036c) //  1
 270 NHSTUB(open                                   ,0xff81a1a8) //109
 271 NHSTUB(OpenFastDir                            ,0xffa04040) //  1
 272 NHSTUB(closedir                               ,0xffa041a4) //  1
 273 NHSTUB(qsort                                  ,0xff99eeb4) //  1
 274 NHSTUB(rand                                   ,0xff81e9fc) //121
 275 NHSTUB(realloc                                ,0xff813b90) //115
 276 NHSTUB(reboot_fw_update                       ,0xffa0ba98) //106
 277 NHSTUB(set_control_event                      ,0xff86c968) //  1
 278 NHSTUB(srand                                  ,0xff81e9f0) //122
 279 NHSTUB(stat                                   ,0xff825238) //  1
 280 NHSTUB(strcat                                 ,0xff88fa2c) //  1
 281 NHSTUB(strchr                                 ,0xff88fab4) //  1
 282 NHSTUB(strcmp                                 ,0xff81e88c) //120
 283 NHSTUB(strcpy                                 ,0xff81e838) //120
 284 NHSTUB(strftime                               ,0xff88fd74) //  1
 285 NHSTUB(strlen                                 ,0xff81e8d0) //120
 286 NHSTUB(strncmp                                ,0xff88fa68) //  1
 287 NHSTUB(strncpy                                ,0xff81e850) //  1
 288 NHSTUB(strrchr                                ,0xff88fad8) //  1
 289 NHSTUB(strtol                                 ,0xff82ff78) //101
 290 NHSTUB(strtolx                                ,0xff82fd7c) //109
 291    DEF(task_CaptSeq                           ,0xff85bd10) //120
 292    DEF(task_DvlpSeqTask                       ,0xff9320d0) //120
 293    DEF(task_ExpDrv                            ,0xff8aebf4) //120
 294    DEF(task_FileWrite                         ,0xffa021bc) //120
 295    DEF(task_InitFileModules                   ,0xff870ce8) //120
 296    DEF(task_MovieRecord                       ,0xff85821c) //120
 297    DEF(task_PhySw                             ,0xff822d78) //120
 298 NHSTUB(time                                   ,0xff865744) //109
 299 NHSTUB(vsprintf                               ,0xff81e7b8) //115
 300 NHSTUB(EngDrvRead                             ,0xff823fd4) //102
 301 //NHSTUB(PTM_GetCurrentItem                   ,0xff86db08) //105            == 0xff86db08
 302 NHSTUB(CancelHPTimer                          ,0xff8670d4) //119
 303 NHSTUB(SetHPTimerAfterNow                     ,0xff866fcc) //119
 304 NHSTUB(MFOn                                   ,0xff860cf4) //120
 305 NHSTUB(MFOff                                  ,0xff860d04) //120
 306 NHSTUB(PT_MFOn                                ,0xff860648) //120
 307 NHSTUB(PT_MFOff                               ,0xff860658) //120
 308 NHSTUB(GetAdChValue                           ,0xff841998) //120
 309 NHSTUB(get_ptp_buf_size                       ,0xff8c4244) //122
 310 NHSTUB(get_ptp_file_buf                       ,0xff9cc074) //121
 311 NHSTUB(SetVideoOutType                        ,0xff9e89ac) //109
 312 NHSTUB(GetVideoOutType                        ,0xff9e8910) //120

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