root/platform/s80/sub/100g/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.00G   // Found @ 0xff81a484, "GM1.00G" @ 0xff81a491
   6 //   Firmware build timestamp: Dec 19 2005 17:03:55
   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 0xffb1a3f0 (  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                 ,0xff953378) //  1 87%
  22 NHSTUB(ExitFromCompensationEVF                ,0xff954c84) //  2 90%
  23 NHSTUB(GetFocusLensSubjectDistance            ,0xffaaab38) //  1 96%
  24 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xffaab0d8) //  3 52%
  25 NHSTUB(GetSystemTime                          ,0xff814de8) //  1 96%
  26 //NHSTUB(LEDDrive                             ,0xff82d8c4) //120        *** != 0xff82dbb8
  27 //NHSTUB(PutInNdFilter                        ,0xffab63b4) //  1 92%    *** != 0xffab67c0
  28 // ALT: NHSTUB(PutInNdFilter, 0xffab63fc) // 1 25/2
  29 // ALT: NHSTUB(PutInNdFilter, 0xffab67c0) // 1 25/2
  30 // ALT: NHSTUB(PutInNdFilter, 0xffab834c) // 1 25/2
  31 // ALT: NHSTUB(PutInNdFilter, 0xffab8394) // 1 25/2
  32 // ALT: NHSTUB(PutInNdFilter, 0xffab63fc) // 2 25/2
  33 // ALT: NHSTUB(PutInNdFilter, 0xffab67c0) // 2 25/2
  34 // ALT: NHSTUB(PutInNdFilter, 0xffab834c) // 2 25/2
  35 // ALT: NHSTUB(PutInNdFilter, 0xffab8394) // 2 25/2
  36 NHSTUB(PutOutNdFilter                         ,0xffab6808) //  1 94%
  37 //NHSTUB(Remove                               ,0xff8c6724) //  3 52%
  38 NHSTUB(UnsetZoomForMovie                      ,0xff9a40c0) //  1 89%
  39 NHSTUB(add_ptp_handler                        ,0xffa610a8) //  1 96%
  40 // ERROR: free is not found.                               //--- ---    *** != 0xffb05b78
  41 // ERROR: kbd_read_keys_r2 is not found.                   //--- ---    *** != 0xff82737c
  42 //NHSTUB(kbd_pwr_off                          ,0xff829344) //  1 83%    *** != 0xff828fec
  43 // ALT: NHSTUB(kbd_pwr_off, 0xff829360) // 1 5/1
  44 // ALT: NHSTUB(kbd_pwr_off, 0xff828fec) // 3 5/1
  45 // ALT: NHSTUB(kbd_pwr_off, 0xff829008) // 3 5/1
  46 // ALT: NHSTUB(kbd_pwr_off, 0xff8290f4) // 3 5/1
  47 // ALT: NHSTUB(kbd_pwr_off, 0xff829110) // 3 5/1
  48 // ALT: NHSTUB(kbd_pwr_off, 0xff8291e0) // 3 5/1
  49 // ALT: NHSTUB(kbd_pwr_off, 0xff8291fc) // 3 5/1
  50 NHSTUB(kbd_pwr_on                             ,0xff928b28) //  1 55%
  51 // ALT: NHSTUB(kbd_pwr_on, 0xff928b54) // 1 5/4
  52 // ALT: NHSTUB(kbd_pwr_on, 0xff928c90) // 1 5/4
  53 // ALT: NHSTUB(kbd_pwr_on, 0xff92b544) // 1 5/4
  54 // ALT: NHSTUB(kbd_pwr_on, 0xff92b570) // 1 5/4
  55 NHSTUB(malloc                                 ,0xffb05b6c) //  1 53%
  56 NHSTUB(taskIdListGet                          ,0xffb137b0) //  1 82%
  57 NHSTUB(localtime                              ,0xffafd2c0) //  1 93%
  58 NHSTUB(Mount_FileSystem                       ,0xff86f2bc) //  1 73%
  59 
  60 // Check of modemap from 'platform/CAMERA/shooting.c':
  61 // Firmware modemap table found @ff968528 -> ff968528
  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                            ,0xff96122c) // Found @0xff96122c,          stubs_min = 0xff96122c (0xFF96122C)
  71 //DEF(FlashParamsTable                        ,0xff96abdc) // Found @0xff96abdc,          stubs_min = 0xff96abdc (0xFF96ABDC)
  72 DEF(fileio_semaphore                        ,0x00002870) // Found @0xff86d6e0
  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 @0xff8c9e48 (0x553c + 0)
  77 DEF_CONST(uiprop_count                      ,0x00000057) // Found @0xff96cacc
  78 
  79 // Values below go in 'lib.c':
  80 //int get_flash_params_count(void) { return 0x5e; }                          // Found @0xff96db3c
  81 
  82 // Values below go in 'platform_camera.h':
  83 //#define PARAM_CAMERA_NAME 3 // Found @0xff96a4b0
  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 @ 0xff82dd64
 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 @ ff9580b8 (0x6e10)
 114 //static long *nrflag = (long*)(0x6e10);       // Found @ ff9580b8
 115 
 116 // Stubs below matched 100%.
 117 //    Name                                     Address                Comp to stubs_entry_2.S
 118 NHSTUB(AllocateUncacheableMemory              ,0xff814bb0) //  1
 119 NHSTUB(Close                                  ,0xff870568) //120
 120 NHSTUB(CreateBinarySemaphore                  ,0xff820b74) //115
 121 NHSTUB(CreateTask                             ,0xff821564) //120
 122 NHSTUB(DebugAssert                            ,0xff813a80) //1100
 123 NHSTUB(DeleteFile_Fut                         ,0xff869328) //  1
 124 NHSTUB(DoAELock                               ,0xff9513c4) //120
 125 NHSTUB(DoAFLock                               ,0xff95124c) //120
 126 NHSTUB(ExecuteEventProcedure                  ,0xff816ac8) //  1
 127 NHSTUB(ExitTask                               ,0xff821924) //120
 128 NHSTUB(Fclose_Fut                             ,0xff869468) //120
 129 NHSTUB(Feof_Fut                               ,0xff86967c) //  1
 130 NHSTUB(Fflush_Fut                             ,0xff8696b4) //  1
 131 NHSTUB(Fgets_Fut                              ,0xff8695ec) //  1
 132 NHSTUB(Fopen_Fut                              ,0xff86942c) //120
 133 NHSTUB(Fread_Fut                              ,0xff86954c) //120
 134 NHSTUB(FreeUncacheableMemory                  ,0xff814be4) //  1
 135 NHSTUB(Fseek_Fut                              ,0xff869634) //120
 136 NHSTUB(Fwrite_Fut                             ,0xff86959c) //120
 137 NHSTUB(GetBatteryTemperature                  ,0xff82d36c) //102
 138 NHSTUB(GetCCDTemperature                      ,0xff82d358) //102
 139 NHSTUB(GetCurrentAvValue                      ,0xffab63a0) //120
 140 NHSTUB(GetCurrentShutterSpeed                 ,0xffab5fe4) //120
 141 NHSTUB(GetUsableMaxAv                         ,0xffab65cc) //120
 142 NHSTUB(GetUsableMinAv                         ,0xffab65a8) //120
 143 NHSTUB(GetDrive_ClusterSize                   ,0xff86f8a4) //119
 144 NHSTUB(GetDrive_FreeClusters                  ,0xff86f93c) //1103
 145 NHSTUB(GetDrive_TotalClusters                 ,0xff86f900) //119
 146 NHSTUB(GetOpticalTemperature                  ,0xff82d344) //120
 147 NHSTUB(GetParameterData                       ,0xff96dad0) //  1
 148 NHSTUB(GetPropertyCase                        ,0xff824554) //  1
 149 NHSTUB(GetZoomLensCurrentPoint                ,0xffa973d4) //120
 150 NHSTUB(GetZoomLensCurrentPosition             ,0xffa973e8) //102
 151 NHSTUB(GiveSemaphore                          ,0xff82115c) //120
 152 NHSTUB(IsStrobeChargeCompleted                ,0xff904154) //  1
 153 NHSTUB(LocalTime                              ,0xff814108) //115
 154 NHSTUB(LockMainPower                          ,0xff9682a0) //120
 155 NHSTUB(MakeDirectory_Fut                      ,0xff8693b4) //  1
 156 //NHSTUB(MoveFocusLensToDistance              ,0xffab89d8) //102            Overridden
 157 NHSTUB(MoveZoomLensWithPoint                  ,0xffa97264) //120
 158 NHSTUB(Open                                   ,0xff870540) //120
 159 NHSTUB(PT_PlaySound                           ,0xff95f6e8) //  1
 160 NHSTUB(PostLogicalEventForNotPowerType        ,0xff963ef0) //120
 161 NHSTUB(PostLogicalEventToUI                   ,0xff963f7c) //120
 162 NHSTUB(Read                                   ,0xff8705fc) //120
 163 NHSTUB(RefreshPhysicalScreen                  ,0xff97eea8) //120
 164 NHSTUB(RenameFile_Fut                         ,0xff8692a8) //  1
 165 NHSTUB(Restart                                ,0xff822bac) //  1
 166 NHSTUB(SetAE_ShutterSpeed                     ,0xffabba8c) //102
 167 NHSTUB(SetAutoShutdownTime                    ,0xff968198) //120
 168 NHSTUB(SetCurrentCaptureModeType              ,0xff99855c) //120
 169 NHSTUB(SetFileAttributes                      ,0xff870720) //  1
 170 NHSTUB(SetLogicalEventActive                  ,0xff9660f8) //1104
 171 NHSTUB(SetParameterData                       ,0xff96d9f0) //  1
 172 NHSTUB(SetPropertyCase                        ,0xff824438) //  1
 173 NHSTUB(SetScriptMode                          ,0xff966160) //120
 174 NHSTUB(SleepTask                              ,0xff821478) //120
 175 NHSTUB(TakeSemaphore                          ,0xff820f74) //1101
 176 NHSTUB(TurnOffBackLight                       ,0xff9b93a8) //  1
 177 NHSTUB(TurnOnBackLight                        ,0xff9b937c) //  1
 178 NHSTUB(TurnOnDisplay                          ,0xff9289c0) //120
 179 NHSTUB(TurnOffDisplay                         ,0xff9289d0) //120
 180 NHSTUB(UnlockAE                               ,0xff9513e4) //120
 181 NHSTUB(UnlockAF                               ,0xff9512b4) //120
 182 NHSTUB(UnlockMainPower                        ,0xff968354) //120
 183 NHSTUB(UpdateMBROnFlash                       ,0xff86f580) //  1
 184 NHSTUB(VbattGet                               ,0xff82c2b4) //120
 185 NHSTUB(Write                                  ,0xff870608) //120
 186 NHSTUB(WriteSDCard                            ,0xff87ee40) //  1
 187 NHSTUB(_log                                   ,0xffaef0ac) //121
 188 NHSTUB(_log10                                 ,0xffaef754) //121
 189 NHSTUB(_pow                                   ,0xffaefc44) //121
 190 NHSTUB(_sqrt                                  ,0xffaf3f90) //  1
 191 NHSTUB(apex2us                                ,0xff8aef88) //  1
 192 NHSTUB(close                                  ,0xffb02b2c) //109
 193 NHSTUB(exmem_ualloc                           ,0xff8127e0) //122
 194 NHSTUB(exmem_ufree                            ,0xff81282c) //122
 195 NHSTUB(kbd_p1_f                               ,0xff826558) //  1
 196 NHSTUB(kbd_p1_f_cont                          ,0xff826564) //109
 197 NHSTUB(kbd_p2_f                               ,0xff826934) //  1
 198 NHSTUB(lseek                                  ,0xffb02c70) //  1
 199 NHSTUB(memcmp                                 ,0xffafc6a0) //120
 200 NHSTUB(memcpy                                 ,0xffafc6dc) //120
 201 NHSTUB(memset                                 ,0xffafc754) //120
 202 NHSTUB(mkdir                                  ,0xff870750) //  1
 203 NHSTUB(open                                   ,0xffb03170) //109
 204 NHSTUB(closedir                               ,0xffafeacc) //  1
 205 NHSTUB(qsort                                  ,0xffafbf00) //  1
 206 NHSTUB(rand                                   ,0xffafbf24) //  1
 207 NHSTUB(realloc                                ,0xffae5f78) //115
 208 NHSTUB(srand                                  ,0xffafbf48) //  1
 209 NHSTUB(stat                                   ,0xffafeb94) //  1
 210 NHSTUB(strcat                                 ,0xffafc774) //  1
 211 NHSTUB(strchr                                 ,0xffafc7a0) //  1
 212 NHSTUB(strcmp                                 ,0xffafc7c4) //120
 213 NHSTUB(strcpy                                 ,0xffafc958) //120
 214 NHSTUB(strftime                               ,0xffafdfe0) //  1
 215 NHSTUB(strlen                                 ,0xffafcabc) //120
 216 NHSTUB(strncmp                                ,0xffafcb20) //  1
 217 NHSTUB(strncpy                                ,0xffafcb64) //  1
 218 NHSTUB(strrchr                                ,0xffafcbe8) //  1
 219 NHSTUB(strtol                                 ,0xffafc33c) //  1
 220 NHSTUB(isdigit                                ,0xffaf8a70) //  1
 221 NHSTUB(isspace                                ,0xffaf8ae8) //  1
 222 NHSTUB(isalpha                                ,0xffaf8a40) //  1
 223 NHSTUB(isupper                                ,0xffaf8b00) //  1
 224 NHSTUB(islower                                ,0xffaf8aa0) //  1
 225 NHSTUB(ispunct                                ,0xffaf8ad0) //  1
 226 NHSTUB(isxdigit                               ,0xffaf8b18) //  1
 227 NHSTUB(toupper                                ,0xffaf8b40) //  1
 228 NHSTUB(tolower                                ,0xffaf8b30) //  1
 229 NHSTUB(taskLock                               ,0xffb13e6c) //  1
 230 NHSTUB(taskUnlock                             ,0xffb13f14) //  1
 231 NHSTUB(taskName                               ,0xffb136a8) //  1
 232 NHSTUB(errnoOfTaskGet                         ,0xffaff298) //  1
 233 NHSTUB(readdir                                ,0xffafea98) //  1
 234 NHSTUB(strtoul                                ,0xffafc4e4) //  1
 235 NHSTUB(strpbrk                                ,0xffafcbac) //  1
 236 NHSTUB(utime                                  ,0xffafec28) //  1
 237 NHSTUB(mktime                                 ,0xffafd488) //  1
 238 NHSTUB(opendir                                ,0xffafeb00) //  1
 239 NHSTUB(memchr                                 ,0xffafc66c) //  1
 240 NHSTUB(memPartInfoGet                         ,0xffb05f8c) //  1
 241 NHSTUB(iosDrvInstall                          ,0xffb04010) //  1
 242 NHSTUB(iosDevAdd                              ,0xffb03d4c) //  1
 243 NHSTUB(iosDevDelete                           ,0xffb03d24) //  1
 244 NHSTUB(GetCurrentTargetDistance               ,0xffab8748) //  1
 245 NHSTUB(taskCreateHookAdd                      ,0xffb091ec) //  1
 246 NHSTUB(taskDeleteHookAdd                      ,0xffb09128) //  1
 247 NHSTUB(Unmount_FileSystem                     ,0xff86f3d4) //  1
 248 NHSTUB(MakeAFScan                             ,0xff955dd8) //  1
 249 NHSTUB(taskSuspend                            ,0xffb138b8) //  1
 250 NHSTUB(taskResume                             ,0xffb13a8c) //  1
 251 NHSTUB(time                                   ,0xffafe00c) //  1
 252 NHSTUB(vsprintf                               ,0xffb003ec) //115
 253 NHSTUB(EngDrvRead                             ,0xff8810a0) //102
 254 NHSTUB(PTM_GetCurrentItem                     ,0xff96b394) //102
 255 NHSTUB(CancelHPTimer                          ,0xff815cac) //119
 256 NHSTUB(SetHPTimerAfterNow                     ,0xff815838) //119
 257 NHSTUB(MFOn                                   ,0xff951f1c) //120
 258 NHSTUB(MFOff                                  ,0xff951f4c) //120
 259 NHSTUB(GetAdChValue                           ,0xff829aa0) //120
 260 NHSTUB(get_ptp_buf_size                       ,0xffa52518) //122
 261 NHSTUB(get_ptp_file_buf                       ,0xffa716c0) //121

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