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 DEF(cameracon_state                         ,0x0000795c) // Found @0xff98fd0c
  79 
  80 // Values below go in 'lib.c':
  81 //int get_flash_params_count(void) { return 0x5e; }                          // Found @0xff96db3c
  82 
  83 // Values below go in 'platform_camera.h':
  84 //#define PARAM_CAMERA_NAME 3 // Found @0xff96a4b0
  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 @ 0xff82dd64
 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 @ ff9580b8 (0x6e10)
 115 //static long *nrflag = (long*)(0x6e10);       // Found @ ff9580b8
 116 
 117 // Stubs below matched 100%.
 118 //    Name                                     Address                Comp to stubs_entry_2.S
 119 NHSTUB(AllocateUncacheableMemory              ,0xff814bb0) //  1
 120 NHSTUB(Close                                  ,0xff870568) //120
 121 NHSTUB(CreateBinarySemaphore                  ,0xff820b74) //115
 122 NHSTUB(CreateTask                             ,0xff821564) //120
 123 NHSTUB(DebugAssert                            ,0xff813a80) //1100
 124 NHSTUB(DeleteFile_Fut                         ,0xff869328) //  1
 125 NHSTUB(DeleteSemaphore                        ,0xff820d68) //120
 126 NHSTUB(DoAELock                               ,0xff9513c4) //120
 127 NHSTUB(DoAFLock                               ,0xff95124c) //120
 128 NHSTUB(ExecuteEventProcedure                  ,0xff816ac8) //  1
 129 NHSTUB(ExitTask                               ,0xff821924) //120
 130 NHSTUB(Fclose_Fut                             ,0xff869468) //120
 131 NHSTUB(Feof_Fut                               ,0xff86967c) //  1
 132 NHSTUB(Fflush_Fut                             ,0xff8696b4) //  1
 133 NHSTUB(Fgets_Fut                              ,0xff8695ec) //  1
 134 NHSTUB(Fopen_Fut                              ,0xff86942c) //120
 135 NHSTUB(Fread_Fut                              ,0xff86954c) //120
 136 NHSTUB(FreeUncacheableMemory                  ,0xff814be4) //  1
 137 NHSTUB(Fseek_Fut                              ,0xff869634) //120
 138 NHSTUB(Fwrite_Fut                             ,0xff86959c) //120
 139 NHSTUB(GetBatteryTemperature                  ,0xff82d36c) //102
 140 NHSTUB(GetCCDTemperature                      ,0xff82d358) //102
 141 NHSTUB(GetCurrentAvValue                      ,0xffab63a0) //120
 142 NHSTUB(GetCurrentShutterSpeed                 ,0xffab5fe4) //120
 143 NHSTUB(GetUsableMaxAv                         ,0xffab65cc) //120
 144 NHSTUB(GetUsableMinAv                         ,0xffab65a8) //120
 145 NHSTUB(GetDrive_ClusterSize                   ,0xff86f8a4) //119
 146 NHSTUB(GetDrive_FreeClusters                  ,0xff86f93c) //1103
 147 NHSTUB(GetDrive_TotalClusters                 ,0xff86f900) //119
 148 NHSTUB(GetOpticalTemperature                  ,0xff82d344) //120
 149 NHSTUB(GetParameterData                       ,0xff96dad0) //  1
 150 NHSTUB(GetPropertyCase                        ,0xff824554) //  1
 151 NHSTUB(GetZoomLensCurrentPoint                ,0xffa973d4) //120
 152 NHSTUB(GetZoomLensCurrentPosition             ,0xffa973e8) //102
 153 NHSTUB(GiveSemaphore                          ,0xff82115c) //120
 154 NHSTUB(IsStrobeChargeCompleted                ,0xff904154) //  1
 155 NHSTUB(LocalTime                              ,0xff814108) //115
 156 NHSTUB(LockMainPower                          ,0xff9682a0) //120
 157 NHSTUB(MakeDirectory_Fut                      ,0xff8693b4) //  1
 158 //NHSTUB(MoveFocusLensToDistance              ,0xffab89d8) //102            Overridden
 159 NHSTUB(MoveZoomLensWithPoint                  ,0xffa97264) //120
 160 NHSTUB(Open                                   ,0xff870540) //120
 161 NHSTUB(PT_PlaySound                           ,0xff95f6e8) //  1
 162 NHSTUB(PostLogicalEventForNotPowerType        ,0xff963ef0) //120
 163 NHSTUB(PostLogicalEventToUI                   ,0xff963f7c) //120
 164 NHSTUB(Read                                   ,0xff8705fc) //120
 165 NHSTUB(RefreshPhysicalScreen                  ,0xff97eea8) //120
 166 NHSTUB(RenameFile_Fut                         ,0xff8692a8) //  1
 167 NHSTUB(Restart                                ,0xff822bac) //  1
 168 NHSTUB(SetAE_ShutterSpeed                     ,0xffabba8c) //102
 169 NHSTUB(SetAutoShutdownTime                    ,0xff968198) //120
 170 NHSTUB(SetCurrentCaptureModeType              ,0xff99855c) //120
 171 NHSTUB(SetDate                                ,0xffabd5e4) //120
 172 NHSTUB(SetFileAttributes                      ,0xff870720) //  1
 173 NHSTUB(SetLogicalEventActive                  ,0xff9660f8) //1104
 174 NHSTUB(SetParameterData                       ,0xff96d9f0) //  1
 175 NHSTUB(SetPropertyCase                        ,0xff824438) //  1
 176 NHSTUB(SetScriptMode                          ,0xff966160) //120
 177 NHSTUB(SleepTask                              ,0xff821478) //120
 178 NHSTUB(TakeSemaphore                          ,0xff820f74) //1101
 179 NHSTUB(TurnOffBackLight                       ,0xff9b93a8) //  1
 180 NHSTUB(TurnOnBackLight                        ,0xff9b937c) //  1
 181 NHSTUB(TurnOnDisplay                          ,0xff9289c0) //120
 182 NHSTUB(TurnOffDisplay                         ,0xff9289d0) //120
 183 NHSTUB(UnlockAE                               ,0xff9513e4) //120
 184 NHSTUB(UnlockAF                               ,0xff9512b4) //120
 185 NHSTUB(UnlockMainPower                        ,0xff968354) //120
 186 NHSTUB(UpdateMBROnFlash                       ,0xff86f580) //  1
 187 NHSTUB(VbattGet                               ,0xff82c2b4) //120
 188 NHSTUB(Write                                  ,0xff870608) //120
 189 NHSTUB(WriteSDCard                            ,0xff87ee40) //  1
 190 NHSTUB(_log                                   ,0xffaef0ac) //121
 191 NHSTUB(_log10                                 ,0xffaef754) //121
 192 NHSTUB(_pow                                   ,0xffaefc44) //121
 193 NHSTUB(_sqrt                                  ,0xffaf3f90) //  1
 194 NHSTUB(apex2us                                ,0xff8aef88) //  1
 195 NHSTUB(close                                  ,0xffb02b2c) //109
 196 NHSTUB(exmem_ualloc                           ,0xff8127e0) //122
 197 NHSTUB(exmem_ufree                            ,0xff81282c) //122
 198 NHSTUB(get_current_deltasv                    ,0xff8aff80) //122
 199 NHSTUB(GetCurrentDriveBaseSvValue             ,0xff8b8844) //107
 200 NHSTUB(kbd_p1_f                               ,0xff826558) //  1
 201 NHSTUB(kbd_p1_f_cont                          ,0xff826564) //109
 202 NHSTUB(kbd_p2_f                               ,0xff826934) //  1
 203 NHSTUB(lseek                                  ,0xffb02c70) //  1
 204 NHSTUB(memcmp                                 ,0xffafc6a0) //120
 205 NHSTUB(memcpy                                 ,0xffafc6dc) //120
 206 NHSTUB(memset                                 ,0xffafc754) //120
 207 NHSTUB(mkdir                                  ,0xff870750) //  1
 208 NHSTUB(open                                   ,0xffb03170) //109
 209 NHSTUB(closedir                               ,0xffafeacc) //  1
 210 NHSTUB(qsort                                  ,0xffafbf00) //  1
 211 NHSTUB(rand                                   ,0xffafbf24) //  1
 212 NHSTUB(realloc                                ,0xffae5f78) //115
 213 NHSTUB(srand                                  ,0xffafbf48) //  1
 214 NHSTUB(stat                                   ,0xffafeb94) //  1
 215 NHSTUB(strcat                                 ,0xffafc774) //  1
 216 NHSTUB(strchr                                 ,0xffafc7a0) //  1
 217 NHSTUB(strcmp                                 ,0xffafc7c4) //120
 218 NHSTUB(strcpy                                 ,0xffafc958) //120
 219 NHSTUB(strftime                               ,0xffafdfe0) //  1
 220 NHSTUB(strlen                                 ,0xffafcabc) //120
 221 NHSTUB(strncmp                                ,0xffafcb20) //  1
 222 NHSTUB(strncpy                                ,0xffafcb64) //  1
 223 NHSTUB(strrchr                                ,0xffafcbe8) //  1
 224 NHSTUB(strtol                                 ,0xffafc33c) //  1
 225 NHSTUB(isdigit                                ,0xffaf8a70) //  1
 226 NHSTUB(isspace                                ,0xffaf8ae8) //  1
 227 NHSTUB(isalpha                                ,0xffaf8a40) //  1
 228 NHSTUB(isupper                                ,0xffaf8b00) //  1
 229 NHSTUB(islower                                ,0xffaf8aa0) //  1
 230 NHSTUB(ispunct                                ,0xffaf8ad0) //  1
 231 NHSTUB(isxdigit                               ,0xffaf8b18) //  1
 232 NHSTUB(toupper                                ,0xffaf8b40) //  1
 233 NHSTUB(tolower                                ,0xffaf8b30) //  1
 234 NHSTUB(taskLock                               ,0xffb13e6c) //  1
 235 NHSTUB(taskUnlock                             ,0xffb13f14) //  1
 236 NHSTUB(taskName                               ,0xffb136a8) //  1
 237 NHSTUB(errnoOfTaskGet                         ,0xffaff298) //  1
 238 NHSTUB(readdir                                ,0xffafea98) //  1
 239 NHSTUB(strtoul                                ,0xffafc4e4) //  1
 240 NHSTUB(strpbrk                                ,0xffafcbac) //  1
 241 NHSTUB(utime                                  ,0xffafec28) //  1
 242 NHSTUB(mktime                                 ,0xffafd488) //  1
 243 NHSTUB(opendir                                ,0xffafeb00) //  1
 244 NHSTUB(memchr                                 ,0xffafc66c) //  1
 245 NHSTUB(memPartInfoGet                         ,0xffb05f8c) //  1
 246 NHSTUB(iosDrvInstall                          ,0xffb04010) //  1
 247 NHSTUB(iosDevAdd                              ,0xffb03d4c) //  1
 248 NHSTUB(iosDevDelete                           ,0xffb03d24) //  1
 249 NHSTUB(GetCurrentTargetDistance               ,0xffab8748) //  1
 250 NHSTUB(taskCreateHookAdd                      ,0xffb091ec) //  1
 251 NHSTUB(taskDeleteHookAdd                      ,0xffb09128) //  1
 252 NHSTUB(Unmount_FileSystem                     ,0xff86f3d4) //  1
 253 NHSTUB(MakeAFScan                             ,0xff955dd8) //  1
 254 NHSTUB(taskSuspend                            ,0xffb138b8) //  1
 255 NHSTUB(taskResume                             ,0xffb13a8c) //  1
 256 NHSTUB(time                                   ,0xffafe00c) //  1
 257 NHSTUB(vsprintf                               ,0xffb003ec) //115
 258 NHSTUB(EngDrvRead                             ,0xff8810a0) //102
 259 NHSTUB(PTM_GetCurrentItem                     ,0xff96b394) //102
 260 NHSTUB(CancelHPTimer                          ,0xff815cac) //119
 261 NHSTUB(SetHPTimerAfterNow                     ,0xff815838) //119
 262 NHSTUB(MFOn                                   ,0xff951f1c) //120
 263 NHSTUB(MFOff                                  ,0xff951f4c) //120
 264 NHSTUB(GetAdChValue                           ,0xff829aa0) //120
 265 NHSTUB(get_ptp_buf_size                       ,0xffa52518) //122
 266 NHSTUB(get_ptp_file_buf                       ,0xffa716c0) //121

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