root/platform/s5is/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 R20 (DRYOS version 2.3, release #0020)
   6 //   Firmware Ver GM1.01B   // Found @ 0xff8738e8, "GM1.01B" @ 0xff8738f5
   7 //   Firmware build timestamp: Jun 14 2007 20:11:19
   8 //   Canon PowerShot S5 IS
   9 
  10 // Values for makefile.inc
  11 //   PLATFORMOSVER = 20
  12 //   PLATFORMID = 12616 (0x3148) // Found @ 0xfffe0130
  13 //   MAXRAMADDR = 0x03ffffff
  14 //   MEMISOSTART = 0x0009b610
  15 //   KEYSYS = d3                 // Found @ 0xffff31c8
  16 
  17 // Detected address ranges:
  18 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  19 // RAM data 0x00001900 - 0x0001056c copied from 0xffb07eb8 (  60524 bytes)
  20 
  21 // Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S'
  22 //    Name                                     Address      Rule  %  Comp to stubs_entry_2.S
  23 //NHSTUB(GetZoomLensCurrentPoint              ,0xff957774) //120        *** != 0xff957cbc
  24 //NHSTUB(GetZoomLensCurrentPosition           ,0xff9575f0) //102        *** != 0xff957cc0
  25 //NHSTUB(Lseek                                ,0xff825e04) //120        *** != 0xff825ecc
  26 //NHSTUB(Read                                 ,0xff81a200) //120        *** != 0xff825d6c
  27 //NHSTUB(SetParameterData                     ,0xff972e4c) //  1 59%    *** != 0xff972ed4
  28 // ERROR: UIFS_WriteFirmInfoToFile is not found.           //--- ---    *** != 0x00000000
  29 //NHSTUB(kbd_pwr_off                          ,0xff84db70) //  2 67%    *** != 0x00000000
  30 //NHSTUB(srand                                ,0xff81e760) //122        *** != 0xff81bcec
  31 
  32 // Check of modemap from 'platform/CAMERA/shooting.c':
  33 // Firmware modemap table found @ffa45020 -> ffaefdf8
  34 // No problems found with modemap table.
  35 
  36 // Values below can be overridden in 'stubs_min.S':
  37 DEF(physw_status                            ,0x00011abc) // Found @0xff8238c8
  38 DEF(physw_run                               ,0x00001cd8) // Found @0xff8235a4
  39 DEF(physw_sleep_delay                       ,0x00001cda) // Found @0xff8235a4
  40 DEF(levent_table                            ,0xffac64ec) // Found @0xffac64ec
  41 DEF(FlashParamsTable                        ,0xffaeff98) // Found @0xffaeff98
  42 DEF(movie_status                            ,0x000058a0) // Found @0xff862b98
  43 DEF(canon_menu_active                       ,0x00006e3c) // Found @0xff897014
  44 DEF(canon_shoot_menu_active                 ,0x0000c05d) // Found @0xff982580
  45 DEF(playrec_mode                            ,0x00005aa0) // Found @0xff869c54
  46 DEF(zoom_status                             ,0x000068f8) // Found @0xff88635c
  47 DEF(some_flag_for_af_scan                   ,0x0000ecbc) // Found @0xffa3e1f4
  48 DEF(focus_busy                              ,0x0000b27c) // Found @0xff950718
  49 //DEF(recreview_hold                          ,0x000067c4) // Found @0xff882a00, ** != ** stubs_min = 0x0000be2c (0xBE2C)
  50 // Camera appears to have only 1 RAW buffer @ 0x1163b8e0 (Found @0xffa11e84)
  51 DEF(exmem_alloc_table                       ,0x0001b094) // Found @0xff8710b4
  52 DEF(exmem_types_table                       ,0xffa9d81c) // Found @0xffa9d81c
  53 DEF_CONST(exmem_type_count                  ,0x00000012)
  54 DEF(imager_active                           ,0x00002080) // Found @0xff83beb8 (0x207c + 4)
  55 DEF_CONST(uiprop_count                      ,0x0000005d) // Found @0xff972418
  56 
  57 // Values below go in 'lib.c':
  58 //void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xff849fec
  59 //void *vid_get_viewport_fb()      { return (void*)0x10d29360; }             // Found @0xffa103d8
  60 DEF(jpeg_count_str                          ,0x00058304) // Found @0xff9be548
  61 //char *camera_jpeg_count_str()    { return (char*)0x00058304; }             // Found @0xff9be548
  62 //int get_flash_params_count(void) { return 0x6f; }                          // Found @0xff972f9c
  63 
  64 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  65 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffa9cdc4, levent 0x90a
  66 //#define SD_READONLY_IDX     2
  67 //#define USB_MASK            0x00200000 // Found @0xffa9cde4, levent 0x902
  68 //#define USB_IDX             2
  69 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffa9ccd4, levent 0x905
  70 //#define BATTCOVER_IDX       0
  71 //#define HOTSHOE_FLAG        0x00080000 // Found @0xffa9cdd4, levent 0x904
  72 //#define HOTSHOE_IDX         2
  73 //#define ANALOG_AV_FLAG      0x00040000 // Found @0xffa9cdcc, levent 0x900 (non-inverted logic)
  74 //#define ANALOG_AV_IDX       2
  75 
  76 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  77 //static KeyMap keymap[] = {
  78 //    { 0, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffa9ccbc, levent 0x01
  79 //    { 0, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffa9ccbc, levent 0x01
  80 //    { 0, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffa9ccb4, levent 0x00
  81 //    { 0, KEY_PLAYBACK        ,0x00000004 }, // Found @0xffa9ccc4, levent 0x601 (uses inverted logic in physw_status)
  82 //    { 1, KEY_LEFT            ,0x00001000 }, // Found @0xffa9cd34, levent 0x06
  83 //    { 1, KEY_VIDEO           ,0x00002000 }, // Found @0xffa9cd3c, levent 0x12
  84 //    { 1, KEY_SET             ,0x00010000 }, // Found @0xffa9cd4c, levent 0x08
  85 //    { 1, KEY_DISPLAY         ,0x00020000 }, // Found @0xffa9cd54, levent 0x0a
  86 //    { 1, KEY_MENU            ,0x00040000 }, // Found @0xffa9cd5c, levent 0x09
  87 //    { 1, KEY_DOWN            ,0x00080000 }, // Found @0xffa9cd64, levent 0x05
  88 //    { 1, KEY_UP              ,0x00100000 }, // Found @0xffa9cd6c, levent 0x04
  89 //    { 1, KEY_RIGHT           ,0x00200000 }, // Found @0xffa9cd74, levent 0x07
  90 //    { 0, 0, 0 }
  91 //};
  92 
  93 // Values below go in 'platform_camera.h':
  94 //#define CAM_DRYOS         1
  95 //#define CAM_RAW_ROWPIX    *** Not Found ***
  96 //#define CAM_RAW_ROWS      *** Not Found ***
  97 //#undef  CAM_UNCACHED_BIT
  98 //#define CAM_UNCACHED_BIT  0x10000000 // Found @0xff82ad10
  99 //#define PARAM_CAMERA_NAME 4 // Found @0xffaf1dd4
 100 
 101 // Known propcases
 102 // //      PROPCASE_AFSTEP 13
 103 // #define PROPCASE_FOCUS_STATE 18
 104 // #define PROPCASE_AV 23
 105 // #define PROPCASE_BV 34
 106 // //      PROPCASE_DELTA_DIGITALGAIN 77
 107 // #define PROPCASE_DELTA_SV 79
 108 // //      PROPCASE_DELTA_ND 80
 109 // #define PROPCASE_EV_CORRECTION_2 207
 110 // #define PROPCASE_ORIENTATION_SENSOR 219
 111 // #define PROPCASE_SV_MARKET 246
 112 // //      PROPCASE_SVFIX 247
 113 // #define PROPCASE_TV 262
 114 // Guessed propset: 2
 115 
 116 // Misc stuff
 117 DEF(ctypes, 0xffa9635a)
 118 
 119 // EXMEM types:
 120 // EXMEM_RAMDISK     0
 121 // EXMEM_COM         1
 122 // EXMEM_COMTMP      2
 123 // EXMEM_FORMATTER   3
 124 // EXMEM_SHADING     4
 125 // EXMEM_FAMODE      5
 126 // EXMEM_FIRMUP      6
 127 // EXMEM_FIRMUP_VRAM 7
 128 // EXMEM_DVLPWORK    8
 129 // EXMEM_EVF         9
 130 // EXMEM_SCRIPT      10
 131 // EXMEM_FILESTORE   11
 132 // EXMEM_MOVIE_REC   12
 133 // EXMEM_MOVIE_PLY   13
 134 // EXMEM_WIDE        14
 135 // EXMEM_NARROW      15
 136 // EXMEM_CRAW_REC    16
 137 // EXMEM_PCEVF       17
 138 
 139 // ISR flag: 0x1964, pointer to current task's control block: 0x1960
 140 // pointer to TCB area: 0x1a1c, found @ 0xff8160f4
 141 
 142 // LED table init @ 0xff913bf4
 143 // LED #1: 0xc02200e0, offset 0x244
 144 // LED #2: 0xc02200d4, offset 0x1c4
 145 // LED #3: 0xc02200dc, offset 0x104
 146 // LED #4: 0xc02200d8, offset 0x144
 147 
 148 // For capt_seq.c
 149 DEF(_nrflag,0xb704) // Found @ ff960ff4 (0xb704)
 150 //static long *nrflag = (long*)(0xb704);       // Found @ ff960ff4
 151 
 152 // Stubs below matched 100%.
 153 //    Name                                     Address                Comp to stubs_entry_2.S
 154 NHSTUB(AllocateUncacheableMemory              ,0xff82acd4) //112
 155 NHSTUB(Close                                  ,0xff825cc4) //120
 156 NHSTUB(CreateBinarySemaphore                  ,0xff81b62c) //115
 157 NHSTUB(CreateTask                             ,0xff81b8fc) //120
 158 NHSTUB(DebugAssert                            ,0xff81bccc) //107
 159 NHSTUB(DeleteDirectory_Fut                    ,0xff825610) //116
 160 NHSTUB(DeleteFile_Fut                         ,0xff82552c) //112
 161 NHSTUB(DoAELock                               ,0xff82814c) //120
 162 NHSTUB(DoAFLock                               ,0xff827bc8) //120
 163 NHSTUB(EnterToCompensationEVF                 ,0xff827fa8) //104
 164 NHSTUB(ExecuteEventProcedure                  ,0xff81be9c) //104
 165 NHSTUB(ExitFromCompensationEVF                ,0xff82809c) //104
 166 NHSTUB(ExitTask                               ,0xff81bb8c) //120
 167 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff838dd8) //104
 168 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff838e80) //104
 169 NHSTUB(Fclose_Fut                             ,0xff8256a8) //120
 170 NHSTUB(Feof_Fut                               ,0xff825894) //  1
 171 NHSTUB(Fflush_Fut                             ,0xff8258d0) //  1
 172 NHSTUB(Fgets_Fut                              ,0xff8257fc) //  1
 173 NHSTUB(Fopen_Fut                              ,0xff825668) //120
 174 NHSTUB(Fread_Fut                              ,0xff825754) //120
 175 NHSTUB(FreeUncacheableMemory                  ,0xff82ad08) //112
 176 NHSTUB(Fseek_Fut                              ,0xff825848) //120
 177 NHSTUB(Fwrite_Fut                             ,0xff8257a8) //120
 178 NHSTUB(GetBatteryTemperature                  ,0xff850564) //102
 179 NHSTUB(GetCCDTemperature                      ,0xff8504f4) //102
 180 NHSTUB(GetCurrentAvValue                      ,0xff952d94) //120
 181 NHSTUB(GetCurrentShutterSpeed                 ,0xff8b4680) //120
 182 NHSTUB(GetUsableMaxAv                         ,0xffa0bc80) //120
 183 NHSTUB(GetUsableMinAv                         ,0xffa0bc68) //120
 184 NHSTUB(GetDrive_ClusterSize                   ,0xff856d08) //  1
 185 NHSTUB(GetDrive_FreeClusters                  ,0xff856da8) //  1
 186 NHSTUB(GetDrive_TotalClusters                 ,0xff856d3c) //  1
 187 NHSTUB(GetFocusLensSubjectDistance            ,0xff9511a4) //102
 188 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff9514a0) //  1
 189 NHSTUB(GetKbdState                            ,0xff84da24) //109
 190 NHSTUB(GetMemInfo                             ,0xff813ca8) //115
 191 NHSTUB(GetOpticalTemperature                  ,0xff8505d4) //120
 192 NHSTUB(GetParameterData                       ,0xff972f60) //101
 193 NHSTUB(GetPropertyCase                        ,0xff87479c) //101
 194 NHSTUB(GetSystemTime                          ,0xffa411a4) //120
 195 NHSTUB(GetVRAMHPixelsSize                     ,0xff841228) //120
 196 NHSTUB(GetVRAMVPixelsSize                     ,0xff841234) //120
 197 NHSTUB(GiveSemaphore                          ,0xff81b868) //120
 198 NHSTUB(IsStrobeChargeCompleted                ,0xff8db534) //102
 199 NHSTUB(LEDDrive                               ,0xff84cf24) //120
 200 NHSTUB(LocalTime                              ,0xff870604) //115
 201 NHSTUB(LockMainPower                          ,0xff877d30) //120
 202 NHSTUB(MakeDirectory_Fut                      ,0xff8255a0) //116
 203 NHSTUB(MoveFocusLensToDistance                ,0xffa0d41c) //102
 204 NHSTUB(MoveIrisWithAv                         ,0xff9536f0) //120
 205 NHSTUB(MoveZoomLensWithPoint                  ,0xff957b34) //120
 206 NHSTUB(MoveOpticalZoomAt                      ,0xff8270a4) //109
 207 NHSTUB(Open                                   ,0xff825c9c) //120
 208 NHSTUB(PB2Rec                                 ,0xff87b318) //104
 209 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff86b964) //120
 210 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff86b930) //120
 211 NHSTUB(PT_PlaySound                           ,0xff86b4dc) //103
 212 NHSTUB(PostLogicalEventForNotPowerType        ,0xff8760b4) //120
 213 NHSTUB(PostLogicalEventToUI                   ,0xff876100) //120
 214 NHSTUB(PutInNdFilter                          ,0xffa0bd00) //102
 215 NHSTUB(PutOutNdFilter                         ,0xffa0bd38) //102
 216 NHSTUB(ReadFastDir                            ,0xffa27900) //  1
 217 NHSTUB(Rec2PB                                 ,0xff87b358) //104
 218 NHSTUB(RefreshPhysicalScreen                  ,0xff8b2d90) //120
 219 NHSTUB(RenameFile_Fut                         ,0xff8254d8) //  1
 220 NHSTUB(Restart                                ,0xff82cd1c) //122
 221 NHSTUB(SetAE_ShutterSpeed                     ,0xffa0f5b8) //102
 222 NHSTUB(SetAutoShutdownTime                    ,0xff877e90) //120
 223 NHSTUB(SetCurrentCaptureModeType              ,0xff87f884) //120
 224 NHSTUB(SetFileAttributes                      ,0xff825ff0) //  1
 225 NHSTUB(SetFileTimeStamp                       ,0xff825fa0) //  1
 226 NHSTUB(SetLogicalEventActive                  ,0xff877aec) //  1
 227 NHSTUB(SetPropertyCase                        ,0xff8746ac) //101
 228 NHSTUB(SetScriptMode                          ,0xff877b3c) //120
 229 NHSTUB(SleepTask                              ,0xff82ab58) //120
 230 NHSTUB(TakeSemaphore                          ,0xff81b798) //120
 231 NHSTUB(TurnOffBackLight                       ,0xff8883a0) //104
 232 NHSTUB(TurnOnBackLight                        ,0xff888388) //104
 233 NHSTUB(TurnOnDisplay                          ,0xff84a09c) //120
 234 NHSTUB(TurnOffDisplay                         ,0xff84a0ac) //120
 235 NHSTUB(UnlockAE                               ,0xff828188) //120
 236 NHSTUB(UnlockAF                               ,0xff827c34) //120
 237 NHSTUB(UnlockMainPower                        ,0xff877c8c) //120
 238 NHSTUB(UpdateMBROnFlash                       ,0xff856ad0) //105
 239 NHSTUB(VbattGet                               ,0xff822204) //120
 240 NHSTUB(Write                                  ,0xff825d70) //120
 241 NHSTUB(WriteSDCard                            ,0xff944124) //108
 242 NHSTUB(_log                                   ,0xffa93ecc) //111
 243 NHSTUB(_log10                                 ,0xffa92e10) //112
 244 NHSTUB(_pow                                   ,0xffa92f80) //121
 245 NHSTUB(_sqrt                                  ,0xffa95234) //  1
 246 NHSTUB(add_ptp_handler                        ,0xff8f03c4) //121
 247 NHSTUB(apex2us                                ,0xff9cae4c) //121
 248 NHSTUB(close                                  ,0xff81a018) //109
 249 NHSTUB(err_init_task                          ,0xff814f00) //111
 250 NHSTUB(exmem_alloc                            ,0xff871424) //101
 251 NHSTUB(exmem_free                             ,0xff871398) //101
 252 NHSTUB(free                                   ,0xff813b00) //112
 253 NHSTUB(kbd_p1_f                               ,0xff8239a4) //109
 254 NHSTUB(kbd_p1_f_cont                          ,0xff8239b0) //109
 255 NHSTUB(kbd_p2_f                               ,0xff823244) //109
 256 NHSTUB(kbd_read_keys                          ,0xff8238c8) //109
 257 NHSTUB(kbd_read_keys_r2                       ,0xff84d3e4) //109
 258 NHSTUB(lseek                                  ,0xff825e04) //120
 259 NHSTUB(malloc                                 ,0xff813a2c) //112
 260 NHSTUB(memcmp                                 ,0xff81e664) //120
 261 NHSTUB(memcpy                                 ,0xff8b3200) //120
 262 NHSTUB(memset                                 ,0xffa64b94) //120
 263 NHSTUB(mkdir                                  ,0xff826068) //109
 264 NHSTUB(mktime_ext                             ,0xff8b3a6c) //  1
 265 NHSTUB(open                                   ,0xff819f68) //109
 266 NHSTUB(OpenFastDir                            ,0xffa2786c) //  1
 267 NHSTUB(closedir                               ,0xffa279d0) //  1
 268 NHSTUB(qsort                                  ,0xff9ca224) //  1
 269 NHSTUB(rand                                   ,0xff81e76c) //121
 270 NHSTUB(realloc                                ,0xff813be0) //115
 271 NHSTUB(reboot_fw_update                       ,0xffa2f75c) //106
 272 NHSTUB(set_control_event                      ,0xff8778c0) //  1
 273 NHSTUB(stat                                   ,0xff825ed0) //  1
 274 NHSTUB(strcat                                 ,0xff8b312c) //  1
 275 NHSTUB(strchr                                 ,0xff8b31b4) //  1
 276 NHSTUB(strcmp                                 ,0xff81e5fc) //120
 277 NHSTUB(strcpy                                 ,0xff81e5a8) //120
 278 NHSTUB(strftime                               ,0xff8b3474) //  1
 279 NHSTUB(strlen                                 ,0xff81e640) //120
 280 NHSTUB(strncmp                                ,0xff8b3168) //  1
 281 NHSTUB(strncpy                                ,0xff81e5c0) //  1
 282 NHSTUB(strrchr                                ,0xff8b31d8) //  1
 283 NHSTUB(strtol                                 ,0xff831ce4) //101
 284 NHSTUB(strtolx                                ,0xff831ae8) //109
 285    DEF(task_CaptSeq                           ,0xff866c80) //120
 286    DEF(task_DvlpSeqTask                       ,0xff961980) //120
 287    DEF(task_ExpDrv                            ,0xff8d37c0) //120
 288    DEF(task_FileWrite                         ,0xffa25b10) //120
 289    DEF(task_InitFileModules                   ,0xff87bf28) //120
 290    DEF(task_MovieRecord                       ,0xff862e48) //120
 291    DEF(task_PhySw                             ,0xff8235a0) //120
 292 NHSTUB(time                                   ,0xff870b08) //109
 293 NHSTUB(vsprintf                               ,0xff81e528) //115
 294 NHSTUB(EngDrvRead                             ,0xff8247a4) //102
 295 NHSTUB(PTM_GetCurrentItem                     ,0xff8789e0) //102
 296 NHSTUB(CancelHPTimer                          ,0xff872424) //119
 297 NHSTUB(SetHPTimerAfterNow                     ,0xff87231c) //119
 298 NHSTUB(MFOn                                   ,0xff86c088) //120
 299 NHSTUB(MFOff                                  ,0xff86c098) //120
 300 NHSTUB(PT_MFOn                                ,0xff86b9c4) //120
 301 NHSTUB(PT_MFOff                               ,0xff86b9d4) //120
 302 NHSTUB(GetAdChValue                           ,0xff82128c) //120
 303 NHSTUB(get_ptp_buf_size                       ,0xff8ea2b4) //122
 304 NHSTUB(get_ptp_file_buf                       ,0xff9f89bc) //121

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