root/platform/s5is/sub/101a/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.01A   // Found @ 0xff8739b0, "GM1.01A" @ 0xff8739bd
   7 //   Firmware build timestamp: May 29 2007 18:17:20
   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 0xffb07fa8 (  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              ,0xff95783c) //120        *** != 0xff957d84
  24 //NHSTUB(GetZoomLensCurrentPosition           ,0xff9576b8) //102        *** != 0xff957d88
  25 //NHSTUB(Lseek                                ,0xff825ecc) //120        *** != 0xff825f94
  26 //NHSTUB(Read                                 ,0xff81a2c8) //120        *** != 0xff825e34
  27 //NHSTUB(SetParameterData                     ,0xff972f14) //  1 59%    *** != 0xff972f9c
  28 // ERROR: UIFS_WriteFirmInfoToFile is not found.           //--- ---    *** != 0x00000000
  29 //NHSTUB(kbd_pwr_off                          ,0xff84dc38) //  2 67%    *** != 0x00000000
  30 //NHSTUB(srand                                ,0xff81e828) //122        *** != 0xff81bdb4
  31 
  32 // Check of modemap from 'platform/CAMERA/shooting.c':
  33 // Firmware modemap table found @ffa450e8 -> ffaefee8
  34 // No problems found with modemap table.
  35 
  36 // Values below can be overridden in 'stubs_min.S':
  37 DEF(physw_status                            ,0x00011abc) // Found @0xff823990
  38 DEF(physw_run                               ,0x00001cd8) // Found @0xff82366c
  39 DEF(physw_sleep_delay                       ,0x00001cda) // Found @0xff82366c
  40 DEF(levent_table                            ,0xffac65dc) // Found @0xffac65dc
  41 DEF(FlashParamsTable                        ,0xffaf0088) // Found @0xffaf0088
  42 DEF(movie_status                            ,0x000058a0) // Found @0xff862c60
  43 DEF(canon_menu_active                       ,0x00006e3c) // Found @0xff8970dc
  44 DEF(canon_shoot_menu_active                 ,0x0000c05d) // Found @0xff982648
  45 DEF(playrec_mode                            ,0x00005aa0) // Found @0xff869d1c
  46 DEF(zoom_status                             ,0x000068f8) // Found @0xff886424
  47 DEF(some_flag_for_af_scan                   ,0x0000ecbc) // Found @0xffa3e2bc
  48 DEF(focus_busy                              ,0x0000b27c) // Found @0xff9507e0
  49 //DEF(recreview_hold                          ,0x000067c4) // Found @0xff882ac8, ** != ** stubs_min = 0x0000be2c (0xBE2C)
  50 // Camera appears to have only 1 RAW buffer @ 0x1163b8e0 (Found @0xffa11f4c)
  51 DEF(exmem_alloc_table                       ,0x0001b094) // Found @0xff87117c
  52 DEF(exmem_types_table                       ,0xffa9d910) // Found @0xffa9d910
  53 DEF_CONST(exmem_type_count                  ,0x00000012)
  54 DEF(imager_active                           ,0x00002080) // Found @0xff83bf80 (0x207c + 4)
  55 DEF_CONST(uiprop_count                      ,0x0000005d) // Found @0xff9724e0
  56 
  57 // Values below go in 'lib.c':
  58 //void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xff84a0b4
  59 //void *vid_get_viewport_fb()      { return (void*)0x10d29360; }             // Found @0xffa104a0
  60 DEF(jpeg_count_str                          ,0x00058304) // Found @0xff9be610
  61 //char *camera_jpeg_count_str()    { return (char*)0x00058304; }             // Found @0xff9be610
  62 //int get_flash_params_count(void) { return 0x6f; }                          // Found @0xff973064
  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 @0xffa9ceb8, levent 0x90a
  66 //#define SD_READONLY_IDX     2
  67 //#define USB_MASK            0x00200000 // Found @0xffa9ced8, levent 0x902
  68 //#define USB_IDX             2
  69 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffa9cdc8, levent 0x905
  70 //#define BATTCOVER_IDX       0
  71 //#define HOTSHOE_FLAG        0x00080000 // Found @0xffa9cec8, levent 0x904
  72 //#define HOTSHOE_IDX         2
  73 //#define ANALOG_AV_FLAG      0x00040000 // Found @0xffa9cec0, 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 @0xffa9cdb0, levent 0x01
  79 //    { 0, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffa9cdb0, levent 0x01
  80 //    { 0, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffa9cda8, levent 0x00
  81 //    { 0, KEY_PLAYBACK        ,0x00000004 }, // Found @0xffa9cdb8, levent 0x601 (uses inverted logic in physw_status)
  82 //    { 1, KEY_LEFT            ,0x00001000 }, // Found @0xffa9ce28, levent 0x06
  83 //    { 1, KEY_VIDEO           ,0x00002000 }, // Found @0xffa9ce30, levent 0x12
  84 //    { 1, KEY_SET             ,0x00010000 }, // Found @0xffa9ce40, levent 0x08
  85 //    { 1, KEY_DISPLAY         ,0x00020000 }, // Found @0xffa9ce48, levent 0x0a
  86 //    { 1, KEY_MENU            ,0x00040000 }, // Found @0xffa9ce50, levent 0x09
  87 //    { 1, KEY_DOWN            ,0x00080000 }, // Found @0xffa9ce58, levent 0x05
  88 //    { 1, KEY_UP              ,0x00100000 }, // Found @0xffa9ce60, levent 0x04
  89 //    { 1, KEY_RIGHT           ,0x00200000 }, // Found @0xffa9ce68, 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 @0xff82add8
  99 //#define PARAM_CAMERA_NAME 4 // Found @0xffaf1ec4
 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, 0xffa9644e)
 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 @ 0xff8161bc
 141 
 142 // LED table init @ 0xff913cbc
 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 @ ff9610bc (0xb704)
 150 //static long *nrflag = (long*)(0xb704);       // Found @ ff9610bc
 151 
 152 // Stubs below matched 100%.
 153 //    Name                                     Address                Comp to stubs_entry_2.S
 154 NHSTUB(AllocateUncacheableMemory              ,0xff82ad9c) //112
 155 NHSTUB(Close                                  ,0xff825d8c) //120
 156 NHSTUB(CreateBinarySemaphore                  ,0xff81b6f4) //115
 157 NHSTUB(CreateTask                             ,0xff81b9c4) //120
 158 NHSTUB(DebugAssert                            ,0xff81bd94) //107
 159 NHSTUB(DeleteDirectory_Fut                    ,0xff8256d8) //116
 160 NHSTUB(DeleteFile_Fut                         ,0xff8255f4) //112
 161 NHSTUB(DoAELock                               ,0xff828214) //120
 162 NHSTUB(DoAFLock                               ,0xff827c90) //120
 163 NHSTUB(EnterToCompensationEVF                 ,0xff828070) //104
 164 NHSTUB(ExecuteEventProcedure                  ,0xff81bf64) //104
 165 NHSTUB(ExitFromCompensationEVF                ,0xff828164) //104
 166 NHSTUB(ExitTask                               ,0xff81bc54) //120
 167 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff838ea0) //104
 168 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff838f48) //104
 169 NHSTUB(Fclose_Fut                             ,0xff825770) //120
 170 NHSTUB(Feof_Fut                               ,0xff82595c) //  1
 171 NHSTUB(Fflush_Fut                             ,0xff825998) //  1
 172 NHSTUB(Fgets_Fut                              ,0xff8258c4) //  1
 173 NHSTUB(Fopen_Fut                              ,0xff825730) //120
 174 NHSTUB(Fread_Fut                              ,0xff82581c) //120
 175 NHSTUB(FreeUncacheableMemory                  ,0xff82add0) //112
 176 NHSTUB(Fseek_Fut                              ,0xff825910) //120
 177 NHSTUB(Fwrite_Fut                             ,0xff825870) //120
 178 NHSTUB(GetBatteryTemperature                  ,0xff85062c) //102
 179 NHSTUB(GetCCDTemperature                      ,0xff8505bc) //102
 180 NHSTUB(GetCurrentAvValue                      ,0xff952e5c) //120
 181 NHSTUB(GetCurrentShutterSpeed                 ,0xff8b4748) //120
 182 NHSTUB(GetUsableMaxAv                         ,0xffa0bd48) //120
 183 NHSTUB(GetUsableMinAv                         ,0xffa0bd30) //120
 184 NHSTUB(GetDrive_ClusterSize                   ,0xff856dd0) //  1
 185 NHSTUB(GetDrive_FreeClusters                  ,0xff856e70) //  1
 186 NHSTUB(GetDrive_TotalClusters                 ,0xff856e04) //  1
 187 NHSTUB(GetFocusLensSubjectDistance            ,0xff95126c) //102
 188 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff951568) //  1
 189 NHSTUB(GetKbdState                            ,0xff84daec) //109
 190 NHSTUB(GetMemInfo                             ,0xff813ca8) //115
 191 NHSTUB(GetOpticalTemperature                  ,0xff85069c) //120
 192 NHSTUB(GetParameterData                       ,0xff973028) //101
 193 NHSTUB(GetPropertyCase                        ,0xff874864) //101
 194 NHSTUB(GetSystemTime                          ,0xffa4126c) //120
 195 NHSTUB(GetVRAMHPixelsSize                     ,0xff8412f0) //120
 196 NHSTUB(GetVRAMVPixelsSize                     ,0xff8412fc) //120
 197 NHSTUB(GiveSemaphore                          ,0xff81b930) //120
 198 NHSTUB(IsStrobeChargeCompleted                ,0xff8db5fc) //102
 199 NHSTUB(LEDDrive                               ,0xff84cfec) //120
 200 NHSTUB(LocalTime                              ,0xff8706cc) //115
 201 NHSTUB(LockMainPower                          ,0xff877df8) //120
 202 NHSTUB(MakeDirectory_Fut                      ,0xff825668) //116
 203 NHSTUB(MoveFocusLensToDistance                ,0xffa0d4e4) //102
 204 NHSTUB(MoveIrisWithAv                         ,0xff9537b8) //120
 205 NHSTUB(MoveZoomLensWithPoint                  ,0xff957bfc) //120
 206 NHSTUB(Open                                   ,0xff825d64) //120
 207 NHSTUB(PB2Rec                                 ,0xff87b3e0) //104
 208 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff86ba2c) //120
 209 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff86b9f8) //120
 210 NHSTUB(PT_PlaySound                           ,0xff86b5a4) //103
 211 NHSTUB(PostLogicalEventForNotPowerType        ,0xff87617c) //120
 212 NHSTUB(PostLogicalEventToUI                   ,0xff8761c8) //120
 213 NHSTUB(PutInNdFilter                          ,0xffa0bdc8) //102
 214 NHSTUB(PutOutNdFilter                         ,0xffa0be00) //102
 215 NHSTUB(ReadFastDir                            ,0xffa279c8) //  1
 216 NHSTUB(Rec2PB                                 ,0xff87b420) //104
 217 NHSTUB(RefreshPhysicalScreen                  ,0xff8b2e58) //120
 218 NHSTUB(RenameFile_Fut                         ,0xff8255a0) //  1
 219 NHSTUB(Restart                                ,0xff82cde4) //122
 220 NHSTUB(SetAE_ShutterSpeed                     ,0xffa0f680) //102
 221 NHSTUB(SetAutoShutdownTime                    ,0xff877f58) //120
 222 NHSTUB(SetCurrentCaptureModeType              ,0xff87f94c) //120
 223 NHSTUB(SetFileAttributes                      ,0xff8260b8) //  1
 224 NHSTUB(SetFileTimeStamp                       ,0xff826068) //  1
 225 NHSTUB(SetLogicalEventActive                  ,0xff877bb4) //  1
 226 NHSTUB(SetPropertyCase                        ,0xff874774) //101
 227 NHSTUB(SetScriptMode                          ,0xff877c04) //120
 228 NHSTUB(SleepTask                              ,0xff82ac20) //120
 229 NHSTUB(TakeSemaphore                          ,0xff81b860) //120
 230 NHSTUB(TurnOffBackLight                       ,0xff888468) //104
 231 NHSTUB(TurnOnBackLight                        ,0xff888450) //104
 232 NHSTUB(TurnOnDisplay                          ,0xff84a164) //120
 233 NHSTUB(TurnOffDisplay                         ,0xff84a174) //120
 234 NHSTUB(UnlockAE                               ,0xff828250) //120
 235 NHSTUB(UnlockAF                               ,0xff827cfc) //120
 236 NHSTUB(UnlockMainPower                        ,0xff877d54) //120
 237 NHSTUB(UpdateMBROnFlash                       ,0xff856b98) //105
 238 NHSTUB(VbattGet                               ,0xff8222cc) //120
 239 NHSTUB(Write                                  ,0xff825e38) //120
 240 NHSTUB(WriteSDCard                            ,0xff9441ec) //108
 241 NHSTUB(_log                                   ,0xffa93fc0) //111
 242 NHSTUB(_log10                                 ,0xffa92f04) //112
 243 NHSTUB(_pow                                   ,0xffa93074) //121
 244 NHSTUB(_sqrt                                  ,0xffa95328) //  1
 245 NHSTUB(add_ptp_handler                        ,0xff8f048c) //121
 246 NHSTUB(apex2us                                ,0xff9caf14) //121
 247 NHSTUB(close                                  ,0xff81a0e0) //109
 248 NHSTUB(err_init_task                          ,0xff814f00) //111
 249 NHSTUB(exmem_alloc                            ,0xff8714ec) //101
 250 NHSTUB(exmem_free                             ,0xff871460) //101
 251 NHSTUB(free                                   ,0xff813b00) //112
 252 NHSTUB(kbd_p1_f                               ,0xff823a6c) //109
 253 NHSTUB(kbd_p1_f_cont                          ,0xff823a78) //109
 254 NHSTUB(kbd_p2_f                               ,0xff82330c) //109
 255 NHSTUB(kbd_read_keys                          ,0xff823990) //109
 256 NHSTUB(kbd_read_keys_r2                       ,0xff84d4ac) //109
 257 NHSTUB(lseek                                  ,0xff825ecc) //120
 258 NHSTUB(malloc                                 ,0xff813a2c) //112
 259 NHSTUB(memcmp                                 ,0xff81e72c) //120
 260 NHSTUB(memcpy                                 ,0xff8b32c8) //120
 261 NHSTUB(memset                                 ,0xffa64c5c) //120
 262 NHSTUB(mkdir                                  ,0xff826130) //109
 263 NHSTUB(mktime_ext                             ,0xff8b3b34) //  1
 264 NHSTUB(open                                   ,0xff81a030) //109
 265 NHSTUB(OpenFastDir                            ,0xffa27934) //  1
 266 NHSTUB(closedir                               ,0xffa27a98) //  1
 267 NHSTUB(qsort                                  ,0xff9ca2ec) //  1
 268 NHSTUB(rand                                   ,0xff81e834) //121
 269 NHSTUB(realloc                                ,0xff813be0) //115
 270 NHSTUB(reboot_fw_update                       ,0xffa2f824) //106
 271 NHSTUB(set_control_event                      ,0xff877988) //  1
 272 NHSTUB(stat                                   ,0xff825f98) //  1
 273 NHSTUB(strcat                                 ,0xff8b31f4) //  1
 274 NHSTUB(strchr                                 ,0xff8b327c) //  1
 275 NHSTUB(strcmp                                 ,0xff81e6c4) //120
 276 NHSTUB(strcpy                                 ,0xff81e670) //120
 277 NHSTUB(strftime                               ,0xff8b353c) //  1
 278 NHSTUB(strlen                                 ,0xff81e708) //120
 279 NHSTUB(strncmp                                ,0xff8b3230) //  1
 280 NHSTUB(strncpy                                ,0xff81e688) //  1
 281 NHSTUB(strrchr                                ,0xff8b32a0) //  1
 282 NHSTUB(strtol                                 ,0xff831dac) //101
 283 NHSTUB(strtolx                                ,0xff831bb0) //109
 284    DEF(task_CaptSeq                           ,0xff866d48) //120
 285    DEF(task_DvlpSeqTask                       ,0xff961a48) //120
 286    DEF(task_ExpDrv                            ,0xff8d3888) //120
 287    DEF(task_FileWrite                         ,0xffa25bd8) //120
 288    DEF(task_InitFileModules                   ,0xff87bff0) //120
 289    DEF(task_MovieRecord                       ,0xff862f10) //120
 290    DEF(task_PhySw                             ,0xff823668) //120
 291 NHSTUB(time                                   ,0xff870bd0) //109
 292 NHSTUB(vsprintf                               ,0xff81e5f0) //115
 293 NHSTUB(EngDrvRead                             ,0xff82486c) //102
 294 NHSTUB(PTM_GetCurrentItem                     ,0xff878aa8) //102
 295 NHSTUB(CancelHPTimer                          ,0xff8724ec) //119
 296 NHSTUB(SetHPTimerAfterNow                     ,0xff8723e4) //119
 297 NHSTUB(MFOn                                   ,0xff86c150) //120
 298 NHSTUB(MFOff                                  ,0xff86c160) //120
 299 NHSTUB(PT_MFOn                                ,0xff86ba8c) //120
 300 NHSTUB(PT_MFOff                               ,0xff86ba9c) //120
 301 NHSTUB(GetAdChValue                           ,0xff821354) //120
 302 NHSTUB(get_ptp_buf_size                       ,0xff8ea37c) //122
 303 NHSTUB(get_ptp_file_buf                       ,0xff9f8a84) //121

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