root/platform/s80/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 //   Firmware Ver GM1.01B   // Found @ 0xff81a488, "GM1.01B" @ 0xff81a495
   6 //   Firmware build timestamp: Jun 19 2006 19:51:31
   7 //   Canon PowerShot S80
   8 
   9 // Values for makefile.inc
  10 //   DIGIC = 20# DIGIC II
  11 //   PLATFORMID = 12538# (0x30fa) Found @ 0xfffe0130
  12 //   MAXRAMADDR = 0x01ffffff
  13 //   MEMISOSTART = 0x000a27f0
  14 
  15 // Detected address ranges:
  16 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  17 // RAM data 0x00001900 - 0x000108e0 copied from 0xffb1a490 (  61408 bytes)
  18 
  19 // Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S'
  20 //    Name                                     Address      Rule  %  Comp to stubs_entry_2.S
  21 NHSTUB(EnterToCompensationEVF                 ,0xff95337c) //  1 87%
  22 NHSTUB(ExitFromCompensationEVF                ,0xff954c88) //  2 90%
  23 NHSTUB(GetFocusLensSubjectDistance            ,0xffaaabd4) //  1 96%
  24 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xffaab174) //  3 52%
  25 NHSTUB(GetSystemTime                          ,0xff814de8) //  1 96%
  26 //NHSTUB(LEDDrive                             ,0xff82d8c8) //120        *** != 0xff82dbbc
  27 //NHSTUB(PutInNdFilter                        ,0xffab6450) //  1 92%    *** != 0xffab685c
  28 // ALT: NHSTUB(PutInNdFilter, 0xffab6498) // 1 25/2
  29 // ALT: NHSTUB(PutInNdFilter, 0xffab685c) // 1 25/2
  30 // ALT: NHSTUB(PutInNdFilter, 0xffab83e8) // 1 25/2
  31 // ALT: NHSTUB(PutInNdFilter, 0xffab8430) // 1 25/2
  32 // ALT: NHSTUB(PutInNdFilter, 0xffab6498) // 2 25/2
  33 // ALT: NHSTUB(PutInNdFilter, 0xffab685c) // 2 25/2
  34 // ALT: NHSTUB(PutInNdFilter, 0xffab83e8) // 2 25/2
  35 // ALT: NHSTUB(PutInNdFilter, 0xffab8430) // 2 25/2
  36 NHSTUB(PutOutNdFilter                         ,0xffab68a4) //  1 94%
  37 //NHSTUB(Remove                               ,0xff8c6728) //  3 52%
  38 NHSTUB(UnsetZoomForMovie                      ,0xff9a40c4) //  1 89%
  39 NHSTUB(add_ptp_handler                        ,0xffa610ac) //  1 96%
  40 // ERROR: free is not found.                               //--- ---    *** != 0xffb05c14
  41 // ERROR: kbd_read_keys_r2 is not found.                   //--- ---    *** != 0xff827380
  42 //NHSTUB(kbd_pwr_off                          ,0xff829348) //  1 83%    *** != 0xff828ff0
  43 // ALT: NHSTUB(kbd_pwr_off, 0xff829364) // 1 5/1
  44 // ALT: NHSTUB(kbd_pwr_off, 0xff828ff0) // 3 5/1
  45 // ALT: NHSTUB(kbd_pwr_off, 0xff82900c) // 3 5/1
  46 // ALT: NHSTUB(kbd_pwr_off, 0xff8290f8) // 3 5/1
  47 // ALT: NHSTUB(kbd_pwr_off, 0xff829114) // 3 5/1
  48 // ALT: NHSTUB(kbd_pwr_off, 0xff8291e4) // 3 5/1
  49 // ALT: NHSTUB(kbd_pwr_off, 0xff829200) // 3 5/1
  50 NHSTUB(kbd_pwr_on                             ,0xff928b2c) //  1 55%
  51 // ALT: NHSTUB(kbd_pwr_on, 0xff928b58) // 1 5/4
  52 // ALT: NHSTUB(kbd_pwr_on, 0xff928c94) // 1 5/4
  53 // ALT: NHSTUB(kbd_pwr_on, 0xff92b548) // 1 5/4
  54 // ALT: NHSTUB(kbd_pwr_on, 0xff92b574) // 1 5/4
  55 NHSTUB(malloc                                 ,0xffb05c08) //  1 53%
  56 NHSTUB(taskIdListGet                          ,0xffb1384c) //  1 82%
  57 NHSTUB(localtime                              ,0xffafd35c) //  1 93%
  58 NHSTUB(Mount_FileSystem                       ,0xff86f2c0) //  1 73%
  59 
  60 // Check of modemap from 'platform/CAMERA/shooting.c':
  61 // Firmware modemap table found @ff96852c -> ff96852c
  62 // Strange mode 0x00010013 in firmware, found in modemap as 19 (MODE_VIDEO_STD)
  63 // Strange mode 0x00010014 in firmware but not in current modemap
  64 // Strange mode 0x00010015 in firmware but not in current modemap
  65 // Strange mode 0x00010016 in firmware but not in current modemap
  66 // Strange mode 0x00020017 in firmware but not in current modemap
  67 // Strange mode 0x00030018 in firmware but not in current modemap
  68 
  69 // Values below can be overridden in 'stubs_min.S':
  70 //DEF(levent_table                            ,0xff961230) // Found @0xff961230,          stubs_min = 0xff961230 (0xff961230)
  71 //DEF(FlashParamsTable                        ,0xff96abe0) // Found @0xff96abe0,          stubs_min = 0xff96abe0 (0xff96abe0)
  72 DEF(fileio_semaphore                        ,0x00002870) // Found @0xff86d6e4
  73 DEF(exmem_alloc_table                       ,0x00001c30) // Found @0xff811fe4
  74 DEF(exmem_types_table                       ,0xff811d44) // Found @0xff811d44
  75 DEF_CONST(exmem_type_count                  ,0x0000000d)
  76 DEF(imager_active                           ,0x0000553c) // Found @0xff8c9e4c (0x553c + 0)
  77 DEF_CONST(uiprop_count                      ,0x00000057) // Found @0xff96cad0
  78 DEF(cameracon_state                         ,0x0000795c) // Found @0xff98fd10
  79 
  80 // Values below go in 'lib.c':
  81 //int get_flash_params_count(void) { return 0x5e; }                          // Found @0xff96db40
  82 
  83 // Values below go in 'platform_camera.h':
  84 //#define PARAM_CAMERA_NAME 3 // Found @0xff96a4b4
  85 
  86 // Misc stuff
  87 
  88 // EXMEM types:
  89 // EXMEM_RAMDISK   0
  90 // EXMEM_COM       1
  91 // EXMEM_COMTMP    2
  92 // EXMEM_FORMATTER 3
  93 // EXMEM_SHADING   4
  94 // EXMEM_FAMODE    5
  95 // EXMEM_FIRMUP    6
  96 // EXMEM_FILESTORE 7
  97 // EXMEM_MOVIE_REC 8
  98 // EXMEM_MOVIE_PLY 9
  99 // EXMEM_WIDE      10
 100 // EXMEM_NARROW    11
 101 // EXMEM_PCEVF     12
 102 
 103 // LED table init @ 0xff82dd68
 104 // LED #1: 0xc022007c, offset 0x104
 105 // LED #2: 0xc022006c, offset 0x144
 106 // LED #3: 0xc022008c, offset 0x4
 107 // LED #4: 0xc0220088, offset 0x44
 108 // LED #5: 0xc0220058, offset 0x84
 109 // LED #6: 0xc0220084, offset 0x204
 110 // LED #7: 0xc0220080, offset 0x244
 111 
 112 
 113 // For capt_seq.c
 114 DEF(_nrflag,0x6e10) // Found @ ff9580bc (0x6e10)
 115 //static long *nrflag = (long*)(0x6e10);       // Found @ ff9580bc
 116 
 117 // Stubs below matched 100%.
 118 //    Name                                     Address                Comp to stubs_entry_2.S
 119 NHSTUB(AllocateUncacheableMemory              ,0xff814bb0) //  1
 120 NHSTUB(Close                                  ,0xff87056c) //120
 121 NHSTUB(CreateBinarySemaphore                  ,0xff820b78) //115
 122 NHSTUB(CreateTask                             ,0xff821568) //120
 123 NHSTUB(DebugAssert                            ,0xff813a80) //1100
 124 NHSTUB(DeleteFile_Fut                         ,0xff86932c) //  1
 125 NHSTUB(DeleteSemaphore                        ,0xff820d6c) //120
 126 NHSTUB(DoAELock                               ,0xff9513c8) //120
 127 NHSTUB(DoAFLock                               ,0xff951250) //120
 128 NHSTUB(ExecuteEventProcedure                  ,0xff816ac8) //  1
 129 NHSTUB(ExitTask                               ,0xff821928) //120
 130 NHSTUB(Fclose_Fut                             ,0xff86946c) //120
 131 NHSTUB(Feof_Fut                               ,0xff869680) //  1
 132 NHSTUB(Fflush_Fut                             ,0xff8696b8) //  1
 133 NHSTUB(Fgets_Fut                              ,0xff8695f0) //  1
 134 NHSTUB(Fopen_Fut                              ,0xff869430) //120
 135 NHSTUB(Fread_Fut                              ,0xff869550) //120
 136 NHSTUB(FreeUncacheableMemory                  ,0xff814be4) //  1
 137 NHSTUB(Fseek_Fut                              ,0xff869638) //120
 138 NHSTUB(Fwrite_Fut                             ,0xff8695a0) //120
 139 NHSTUB(GetBatteryTemperature                  ,0xff82d370) //102
 140 NHSTUB(GetCCDTemperature                      ,0xff82d35c) //102
 141 NHSTUB(GetCurrentAvValue                      ,0xffab643c) //120
 142 NHSTUB(GetCurrentShutterSpeed                 ,0xffab6080) //120
 143 NHSTUB(GetUsableMaxAv                         ,0xffab6668) //120
 144 NHSTUB(GetUsableMinAv                         ,0xffab6644) //120
 145 NHSTUB(GetDrive_ClusterSize                   ,0xff86f8a8) //119
 146 NHSTUB(GetDrive_FreeClusters                  ,0xff86f940) //1103
 147 NHSTUB(GetDrive_TotalClusters                 ,0xff86f904) //119
 148 NHSTUB(GetOpticalTemperature                  ,0xff82d348) //120
 149 NHSTUB(GetParameterData                       ,0xff96dad4) //  1
 150 NHSTUB(GetPropertyCase                        ,0xff824558) //  1
 151 NHSTUB(GetZoomLensCurrentPoint                ,0xffa973d8) //120
 152 NHSTUB(GetZoomLensCurrentPosition             ,0xffa973ec) //102
 153 NHSTUB(GiveSemaphore                          ,0xff821160) //120
 154 NHSTUB(IsStrobeChargeCompleted                ,0xff904158) //  1
 155 NHSTUB(LocalTime                              ,0xff814108) //115
 156 NHSTUB(LockMainPower                          ,0xff9682a4) //120
 157 NHSTUB(MakeDirectory_Fut                      ,0xff8693b8) //  1
 158 //NHSTUB(MoveFocusLensToDistance              ,0xffab8a74) //102            Overridden
 159 NHSTUB(MoveZoomLensWithPoint                  ,0xffa97268) //120
 160 NHSTUB(Open                                   ,0xff870544) //120
 161 NHSTUB(PT_PlaySound                           ,0xff95f6ec) //  1
 162 NHSTUB(PostLogicalEventForNotPowerType        ,0xff963ef4) //120
 163 NHSTUB(PostLogicalEventToUI                   ,0xff963f80) //120
 164 NHSTUB(Read                                   ,0xff870600) //120
 165 NHSTUB(RefreshPhysicalScreen                  ,0xff97eeac) //120
 166 NHSTUB(RenameFile_Fut                         ,0xff8692ac) //  1
 167 NHSTUB(Restart                                ,0xff822bb0) //  1
 168 NHSTUB(SetAE_ShutterSpeed                     ,0xffabbb28) //102
 169 NHSTUB(SetAutoShutdownTime                    ,0xff96819c) //120
 170 NHSTUB(SetCurrentCaptureModeType              ,0xff998560) //120
 171 NHSTUB(SetDate                                ,0xffabd680) //120
 172 NHSTUB(SetFileAttributes                      ,0xff870724) //  1
 173 NHSTUB(SetLogicalEventActive                  ,0xff9660fc) //1104
 174 NHSTUB(SetParameterData                       ,0xff96d9f4) //  1
 175 NHSTUB(SetPropertyCase                        ,0xff82443c) //  1
 176 NHSTUB(SetScriptMode                          ,0xff966164) //120
 177 NHSTUB(SleepTask                              ,0xff82147c) //120
 178 NHSTUB(TakeSemaphore                          ,0xff820f78) //1101
 179 NHSTUB(TurnOffBackLight                       ,0xff9b93ac) //  1
 180 NHSTUB(TurnOnBackLight                        ,0xff9b9380) //  1
 181 NHSTUB(TurnOnDisplay                          ,0xff9289c4) //120
 182 NHSTUB(TurnOffDisplay                         ,0xff9289d4) //120
 183 NHSTUB(UnlockAE                               ,0xff9513e8) //120
 184 NHSTUB(UnlockAF                               ,0xff9512b8) //120
 185 NHSTUB(UnlockMainPower                        ,0xff968358) //120
 186 NHSTUB(UpdateMBROnFlash                       ,0xff86f584) //  1
 187 NHSTUB(VbattGet                               ,0xff82c2b8) //120
 188 NHSTUB(Write                                  ,0xff87060c) //120
 189 NHSTUB(WriteSDCard                            ,0xff87ee44) //  1
 190 NHSTUB(_log                                   ,0xffaef148) //121
 191 NHSTUB(_log10                                 ,0xffaef7f0) //121
 192 NHSTUB(_pow                                   ,0xffaefce0) //121
 193 NHSTUB(_sqrt                                  ,0xffaf402c) //  1
 194 NHSTUB(apex2us                                ,0xff8aef8c) //  1
 195 NHSTUB(close                                  ,0xffb02bc8) //109
 196 NHSTUB(exmem_ualloc                           ,0xff8127e0) //122
 197 NHSTUB(exmem_ufree                            ,0xff81282c) //122
 198 NHSTUB(get_current_deltasv                    ,0xff8aff84) //122
 199 NHSTUB(GetCurrentDriveBaseSvValue             ,0xff8b8848) //107
 200 NHSTUB(kbd_p1_f                               ,0xff82655c) //  1
 201 NHSTUB(kbd_p1_f_cont                          ,0xff826568) //109
 202 NHSTUB(kbd_p2_f                               ,0xff826938) //  1
 203 NHSTUB(lseek                                  ,0xffb02d0c) //  1
 204 NHSTUB(memcmp                                 ,0xffafc73c) //120
 205 NHSTUB(memcpy                                 ,0xffafc778) //120
 206 NHSTUB(memset                                 ,0xffafc7f0) //120
 207 NHSTUB(mkdir                                  ,0xff870754) //  1
 208 NHSTUB(open                                   ,0xffb0320c) //109
 209 NHSTUB(closedir                               ,0xffafeb68) //  1
 210 NHSTUB(qsort                                  ,0xffafbf9c) //  1
 211 NHSTUB(rand                                   ,0xffafbfc0) //  1
 212 NHSTUB(realloc                                ,0xffae6014) //115
 213 NHSTUB(srand                                  ,0xffafbfe4) //  1
 214 NHSTUB(stat                                   ,0xffafec30) //  1
 215 NHSTUB(strcat                                 ,0xffafc810) //  1
 216 NHSTUB(strchr                                 ,0xffafc83c) //  1
 217 NHSTUB(strcmp                                 ,0xffafc860) //120
 218 NHSTUB(strcpy                                 ,0xffafc9f4) //120
 219 NHSTUB(strftime                               ,0xffafe07c) //  1
 220 NHSTUB(strlen                                 ,0xffafcb58) //120
 221 NHSTUB(strncmp                                ,0xffafcbbc) //  1
 222 NHSTUB(strncpy                                ,0xffafcc00) //  1
 223 NHSTUB(strrchr                                ,0xffafcc84) //  1
 224 NHSTUB(strtol                                 ,0xffafc3d8) //  1
 225 NHSTUB(isdigit                                ,0xffaf8b0c) //  1
 226 NHSTUB(isspace                                ,0xffaf8b84) //  1
 227 NHSTUB(isalpha                                ,0xffaf8adc) //  1
 228 NHSTUB(isupper                                ,0xffaf8b9c) //  1
 229 NHSTUB(islower                                ,0xffaf8b3c) //  1
 230 NHSTUB(ispunct                                ,0xffaf8b6c) //  1
 231 NHSTUB(isxdigit                               ,0xffaf8bb4) //  1
 232 NHSTUB(toupper                                ,0xffaf8bdc) //  1
 233 NHSTUB(tolower                                ,0xffaf8bcc) //  1
 234 NHSTUB(taskLock                               ,0xffb13f08) //  1
 235 NHSTUB(taskUnlock                             ,0xffb13fb0) //  1
 236 NHSTUB(taskName                               ,0xffb13744) //  1
 237 NHSTUB(errnoOfTaskGet                         ,0xffaff334) //  1
 238 NHSTUB(readdir                                ,0xffafeb34) //  1
 239 NHSTUB(strtoul                                ,0xffafc580) //  1
 240 NHSTUB(strpbrk                                ,0xffafcc48) //  1
 241 NHSTUB(utime                                  ,0xffafecc4) //  1
 242 NHSTUB(mktime                                 ,0xffafd524) //  1
 243 NHSTUB(opendir                                ,0xffafeb9c) //  1
 244 NHSTUB(memchr                                 ,0xffafc708) //  1
 245 NHSTUB(memPartInfoGet                         ,0xffb06028) //  1
 246 NHSTUB(iosDrvInstall                          ,0xffb040ac) //  1
 247 NHSTUB(iosDevAdd                              ,0xffb03de8) //  1
 248 NHSTUB(iosDevDelete                           ,0xffb03dc0) //  1
 249 NHSTUB(GetCurrentTargetDistance               ,0xffab87e4) //  1
 250 NHSTUB(taskCreateHookAdd                      ,0xffb09288) //  1
 251 NHSTUB(taskDeleteHookAdd                      ,0xffb091c4) //  1
 252 NHSTUB(Unmount_FileSystem                     ,0xff86f3d8) //  1
 253 NHSTUB(MakeAFScan                             ,0xff955ddc) //  1
 254 NHSTUB(taskSuspend                            ,0xffb13954) //  1
 255 NHSTUB(taskResume                             ,0xffb13b28) //  1
 256 NHSTUB(time                                   ,0xffafe0a8) //  1
 257 NHSTUB(vsprintf                               ,0xffb00488) //115
 258 NHSTUB(EngDrvRead                             ,0xff8810a4) //102
 259 NHSTUB(PTM_GetCurrentItem                     ,0xff96b398) //102
 260 NHSTUB(CancelHPTimer                          ,0xff815cac) //119
 261 NHSTUB(SetHPTimerAfterNow                     ,0xff815838) //119
 262 NHSTUB(MFOn                                   ,0xff951f20) //120
 263 NHSTUB(MFOff                                  ,0xff951f50) //120
 264 NHSTUB(GetAdChValue                           ,0xff829aa4) //120
 265 NHSTUB(get_ptp_buf_size                       ,0xffa5251c) //122
 266 NHSTUB(get_ptp_file_buf                       ,0xffa716c4) //121

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