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 
  79 // Values below go in 'lib.c':
  80 //int get_flash_params_count(void) { return 0x5e; }                          // Found @0xff96db40
  81 
  82 // Values below go in 'platform_camera.h':
  83 //#define PARAM_CAMERA_NAME 3 // Found @0xff96a4b4
  84 
  85 // Misc stuff
  86 
  87 // EXMEM types:
  88 // EXMEM_RAMDISK   0
  89 // EXMEM_COM       1
  90 // EXMEM_COMTMP    2
  91 // EXMEM_FORMATTER 3
  92 // EXMEM_SHADING   4
  93 // EXMEM_FAMODE    5
  94 // EXMEM_FIRMUP    6
  95 // EXMEM_FILESTORE 7
  96 // EXMEM_MOVIE_REC 8
  97 // EXMEM_MOVIE_PLY 9
  98 // EXMEM_WIDE      10
  99 // EXMEM_NARROW    11
 100 // EXMEM_PCEVF     12
 101 
 102 // LED table init @ 0xff82dd68
 103 // LED #1: 0xc022007c, offset 0x104
 104 // LED #2: 0xc022006c, offset 0x144
 105 // LED #3: 0xc022008c, offset 0x4
 106 // LED #4: 0xc0220088, offset 0x44
 107 // LED #5: 0xc0220058, offset 0x84
 108 // LED #6: 0xc0220084, offset 0x204
 109 // LED #7: 0xc0220080, offset 0x244
 110 
 111 
 112 // For capt_seq.c
 113 DEF(_nrflag,0x6e10) // Found @ ff9580bc (0x6e10)
 114 //static long *nrflag = (long*)(0x6e10);       // Found @ ff9580bc
 115 
 116 // Stubs below matched 100%.
 117 //    Name                                     Address                Comp to stubs_entry_2.S
 118 NHSTUB(AllocateUncacheableMemory              ,0xff814bb0) //  1
 119 NHSTUB(Close                                  ,0xff87056c) //120
 120 NHSTUB(CreateBinarySemaphore                  ,0xff820b78) //115
 121 NHSTUB(CreateTask                             ,0xff821568) //120
 122 NHSTUB(DebugAssert                            ,0xff813a80) //1100
 123 NHSTUB(DeleteFile_Fut                         ,0xff86932c) //  1
 124 NHSTUB(DoAELock                               ,0xff9513c8) //120
 125 NHSTUB(DoAFLock                               ,0xff951250) //120
 126 NHSTUB(ExecuteEventProcedure                  ,0xff816ac8) //  1
 127 NHSTUB(ExitTask                               ,0xff821928) //120
 128 NHSTUB(Fclose_Fut                             ,0xff86946c) //120
 129 NHSTUB(Feof_Fut                               ,0xff869680) //  1
 130 NHSTUB(Fflush_Fut                             ,0xff8696b8) //  1
 131 NHSTUB(Fgets_Fut                              ,0xff8695f0) //  1
 132 NHSTUB(Fopen_Fut                              ,0xff869430) //120
 133 NHSTUB(Fread_Fut                              ,0xff869550) //120
 134 NHSTUB(FreeUncacheableMemory                  ,0xff814be4) //  1
 135 NHSTUB(Fseek_Fut                              ,0xff869638) //120
 136 NHSTUB(Fwrite_Fut                             ,0xff8695a0) //120
 137 NHSTUB(GetBatteryTemperature                  ,0xff82d370) //102
 138 NHSTUB(GetCCDTemperature                      ,0xff82d35c) //102
 139 NHSTUB(GetCurrentAvValue                      ,0xffab643c) //120
 140 NHSTUB(GetCurrentShutterSpeed                 ,0xffab6080) //120
 141 NHSTUB(GetUsableMaxAv                         ,0xffab6668) //120
 142 NHSTUB(GetUsableMinAv                         ,0xffab6644) //120
 143 NHSTUB(GetDrive_ClusterSize                   ,0xff86f8a8) //119
 144 NHSTUB(GetDrive_FreeClusters                  ,0xff86f940) //1103
 145 NHSTUB(GetDrive_TotalClusters                 ,0xff86f904) //119
 146 NHSTUB(GetOpticalTemperature                  ,0xff82d348) //120
 147 NHSTUB(GetParameterData                       ,0xff96dad4) //  1
 148 NHSTUB(GetPropertyCase                        ,0xff824558) //  1
 149 NHSTUB(GetZoomLensCurrentPoint                ,0xffa973d8) //120
 150 NHSTUB(GetZoomLensCurrentPosition             ,0xffa973ec) //102
 151 NHSTUB(GiveSemaphore                          ,0xff821160) //120
 152 NHSTUB(IsStrobeChargeCompleted                ,0xff904158) //  1
 153 NHSTUB(LocalTime                              ,0xff814108) //115
 154 NHSTUB(LockMainPower                          ,0xff9682a4) //120
 155 NHSTUB(MakeDirectory_Fut                      ,0xff8693b8) //  1
 156 //NHSTUB(MoveFocusLensToDistance              ,0xffab8a74) //102            Overridden
 157 NHSTUB(MoveZoomLensWithPoint                  ,0xffa97268) //120
 158 NHSTUB(Open                                   ,0xff870544) //120
 159 NHSTUB(PT_PlaySound                           ,0xff95f6ec) //  1
 160 NHSTUB(PostLogicalEventForNotPowerType        ,0xff963ef4) //120
 161 NHSTUB(PostLogicalEventToUI                   ,0xff963f80) //120
 162 NHSTUB(Read                                   ,0xff870600) //120
 163 NHSTUB(RefreshPhysicalScreen                  ,0xff97eeac) //120
 164 NHSTUB(RenameFile_Fut                         ,0xff8692ac) //  1
 165 NHSTUB(Restart                                ,0xff822bb0) //  1
 166 NHSTUB(SetAE_ShutterSpeed                     ,0xffabbb28) //102
 167 NHSTUB(SetAutoShutdownTime                    ,0xff96819c) //120
 168 NHSTUB(SetCurrentCaptureModeType              ,0xff998560) //120
 169 NHSTUB(SetDate                                ,0xffabd680) //120
 170 NHSTUB(SetFileAttributes                      ,0xff870724) //  1
 171 NHSTUB(SetLogicalEventActive                  ,0xff9660fc) //1104
 172 NHSTUB(SetParameterData                       ,0xff96d9f4) //  1
 173 NHSTUB(SetPropertyCase                        ,0xff82443c) //  1
 174 NHSTUB(SetScriptMode                          ,0xff966164) //120
 175 NHSTUB(SleepTask                              ,0xff82147c) //120
 176 NHSTUB(TakeSemaphore                          ,0xff820f78) //1101
 177 NHSTUB(TurnOffBackLight                       ,0xff9b93ac) //  1
 178 NHSTUB(TurnOnBackLight                        ,0xff9b9380) //  1
 179 NHSTUB(TurnOnDisplay                          ,0xff9289c4) //120
 180 NHSTUB(TurnOffDisplay                         ,0xff9289d4) //120
 181 NHSTUB(UnlockAE                               ,0xff9513e8) //120
 182 NHSTUB(UnlockAF                               ,0xff9512b8) //120
 183 NHSTUB(UnlockMainPower                        ,0xff968358) //120
 184 NHSTUB(UpdateMBROnFlash                       ,0xff86f584) //  1
 185 NHSTUB(VbattGet                               ,0xff82c2b8) //120
 186 NHSTUB(Write                                  ,0xff87060c) //120
 187 NHSTUB(WriteSDCard                            ,0xff87ee44) //  1
 188 NHSTUB(_log                                   ,0xffaef148) //121
 189 NHSTUB(_log10                                 ,0xffaef7f0) //121
 190 NHSTUB(_pow                                   ,0xffaefce0) //121
 191 NHSTUB(_sqrt                                  ,0xffaf402c) //  1
 192 NHSTUB(apex2us                                ,0xff8aef8c) //  1
 193 NHSTUB(close                                  ,0xffb02bc8) //109
 194 NHSTUB(exmem_ualloc                           ,0xff8127e0) //122
 195 NHSTUB(exmem_ufree                            ,0xff81282c) //122
 196 NHSTUB(kbd_p1_f                               ,0xff82655c) //  1
 197 NHSTUB(kbd_p1_f_cont                          ,0xff826568) //109
 198 NHSTUB(kbd_p2_f                               ,0xff826938) //  1
 199 NHSTUB(lseek                                  ,0xffb02d0c) //  1
 200 NHSTUB(memcmp                                 ,0xffafc73c) //120
 201 NHSTUB(memcpy                                 ,0xffafc778) //120
 202 NHSTUB(memset                                 ,0xffafc7f0) //120
 203 NHSTUB(mkdir                                  ,0xff870754) //  1
 204 NHSTUB(open                                   ,0xffb0320c) //109
 205 NHSTUB(closedir                               ,0xffafeb68) //  1
 206 NHSTUB(qsort                                  ,0xffafbf9c) //  1
 207 NHSTUB(rand                                   ,0xffafbfc0) //  1
 208 NHSTUB(realloc                                ,0xffae6014) //115
 209 NHSTUB(srand                                  ,0xffafbfe4) //  1
 210 NHSTUB(stat                                   ,0xffafec30) //  1
 211 NHSTUB(strcat                                 ,0xffafc810) //  1
 212 NHSTUB(strchr                                 ,0xffafc83c) //  1
 213 NHSTUB(strcmp                                 ,0xffafc860) //120
 214 NHSTUB(strcpy                                 ,0xffafc9f4) //120
 215 NHSTUB(strftime                               ,0xffafe07c) //  1
 216 NHSTUB(strlen                                 ,0xffafcb58) //120
 217 NHSTUB(strncmp                                ,0xffafcbbc) //  1
 218 NHSTUB(strncpy                                ,0xffafcc00) //  1
 219 NHSTUB(strrchr                                ,0xffafcc84) //  1
 220 NHSTUB(strtol                                 ,0xffafc3d8) //  1
 221 NHSTUB(isdigit                                ,0xffaf8b0c) //  1
 222 NHSTUB(isspace                                ,0xffaf8b84) //  1
 223 NHSTUB(isalpha                                ,0xffaf8adc) //  1
 224 NHSTUB(isupper                                ,0xffaf8b9c) //  1
 225 NHSTUB(islower                                ,0xffaf8b3c) //  1
 226 NHSTUB(ispunct                                ,0xffaf8b6c) //  1
 227 NHSTUB(isxdigit                               ,0xffaf8bb4) //  1
 228 NHSTUB(toupper                                ,0xffaf8bdc) //  1
 229 NHSTUB(tolower                                ,0xffaf8bcc) //  1
 230 NHSTUB(taskLock                               ,0xffb13f08) //  1
 231 NHSTUB(taskUnlock                             ,0xffb13fb0) //  1
 232 NHSTUB(taskName                               ,0xffb13744) //  1
 233 NHSTUB(errnoOfTaskGet                         ,0xffaff334) //  1
 234 NHSTUB(readdir                                ,0xffafeb34) //  1
 235 NHSTUB(strtoul                                ,0xffafc580) //  1
 236 NHSTUB(strpbrk                                ,0xffafcc48) //  1
 237 NHSTUB(utime                                  ,0xffafecc4) //  1
 238 NHSTUB(mktime                                 ,0xffafd524) //  1
 239 NHSTUB(opendir                                ,0xffafeb9c) //  1
 240 NHSTUB(memchr                                 ,0xffafc708) //  1
 241 NHSTUB(memPartInfoGet                         ,0xffb06028) //  1
 242 NHSTUB(iosDrvInstall                          ,0xffb040ac) //  1
 243 NHSTUB(iosDevAdd                              ,0xffb03de8) //  1
 244 NHSTUB(iosDevDelete                           ,0xffb03dc0) //  1
 245 NHSTUB(GetCurrentTargetDistance               ,0xffab87e4) //  1
 246 NHSTUB(taskCreateHookAdd                      ,0xffb09288) //  1
 247 NHSTUB(taskDeleteHookAdd                      ,0xffb091c4) //  1
 248 NHSTUB(Unmount_FileSystem                     ,0xff86f3d8) //  1
 249 NHSTUB(MakeAFScan                             ,0xff955ddc) //  1
 250 NHSTUB(taskSuspend                            ,0xffb13954) //  1
 251 NHSTUB(taskResume                             ,0xffb13b28) //  1
 252 NHSTUB(time                                   ,0xffafe0a8) //  1
 253 NHSTUB(vsprintf                               ,0xffb00488) //115
 254 NHSTUB(EngDrvRead                             ,0xff8810a4) //102
 255 NHSTUB(PTM_GetCurrentItem                     ,0xff96b398) //102
 256 NHSTUB(CancelHPTimer                          ,0xff815cac) //119
 257 NHSTUB(SetHPTimerAfterNow                     ,0xff815838) //119
 258 NHSTUB(MFOn                                   ,0xff951f20) //120
 259 NHSTUB(MFOff                                  ,0xff951f50) //120
 260 NHSTUB(GetAdChValue                           ,0xff829aa4) //120
 261 NHSTUB(get_ptp_buf_size                       ,0xffa5251c) //122
 262 NHSTUB(get_ptp_file_buf                       ,0xffa716c4) //121

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