root/platform/a410/sub/100f/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.00F   // Found @ 0xffc0ad28, "GM1.00F" @ 0xffc0ad35
   6 //   Firmware build timestamp: Aug  3 2005 14:17:55
   7 //   Canon PowerShot A410
   8 
   9 // Values for makefile.inc
  10 //   PLATFORMID = 12537 (0x30f9) // Found @ 0xfffe0130
  11 //   MAXRAMADDR = 0x00ffffff
  12 //   MEMISOSTART = 0x0009f470
  13 
  14 // Detected address ranges:
  15 // ROM      0xffc00000 - 0xffffffff (4194304 bytes)
  16 // RAM data 0x00001900 - 0x00011010 copied from 0xffe8a3c0 (  63248 bytes)
  17 
  18 // Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S'
  19 //    Name                                     Address      Rule  %  Comp to stubs_entry_2.S
  20 //NHSTUB(EnterToCompensationEVF               ,0xffd25f98) //  1 64%    *** != 0xffd24234
  21 //NHSTUB(ExitFromCompensationEVF              ,0xffd26098) //  1 73%    *** != 0xffd24244
  22 NHSTUB(GetFocusLensSubjectDistance            ,0xffe217a0) //  1 90%
  23 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xffe21d40) //  3 52%
  24 NHSTUB(GetSystemTime                          ,0xffc04b4c) //  1 96%
  25 NHSTUB(PutInNdFilter                          ,0xffe2c0dc) //  1 92%
  26 // ALT: NHSTUB(PutInNdFilter, 0xffe2dc68) // 1 25/2
  27 // ALT: NHSTUB(PutInNdFilter, 0xffe2dcb0) // 1 25/2
  28 // ALT: NHSTUB(PutInNdFilter, 0xffe2dc68) // 2 25/2
  29 // ALT: NHSTUB(PutInNdFilter, 0xffe2dcb0) // 2 25/2
  30 NHSTUB(PutOutNdFilter                         ,0xffe2c124) //  1 94%
  31 //NHSTUB(Remove                               ,0xffca914c) //  3 52%
  32 NHSTUB(UnsetZoomForMovie                      ,0xffd6fbf4) //  1 89%
  33 NHSTUB(UpdateMBROnFlash                       ,0xffc59b2c) //  1 96%
  34 //NHSTUB(WriteSDCard                          ,0xffc6964c) //  1 93%    *** != 0xffc69824
  35 // ALT: NHSTUB(WriteSDCard, 0xffc69824) // 1 29/2
  36 NHSTUB(add_ptp_handler                        ,0xffde1470) //  1 96%
  37 // ERROR: free is not found.                               //--- ---    *** != 0xffe75b50
  38 //NHSTUB(kbd_pwr_off                          ,0xffc18eec) //  1 83%    *** != 0x00000000
  39 // ALT: NHSTUB(kbd_pwr_off, 0xffc18f08) // 1 5/1
  40 // ALT: NHSTUB(kbd_pwr_off, 0xffc18b94) // 3 5/1
  41 // ALT: NHSTUB(kbd_pwr_off, 0xffc18bb0) // 3 5/1
  42 // ALT: NHSTUB(kbd_pwr_off, 0xffc18c9c) // 3 5/1
  43 // ALT: NHSTUB(kbd_pwr_off, 0xffc18cb8) // 3 5/1
  44 // ALT: NHSTUB(kbd_pwr_off, 0xffc18d88) // 3 5/1
  45 // ALT: NHSTUB(kbd_pwr_off, 0xffc18da4) // 3 5/1
  46 // ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0x00000000
  47 NHSTUB(malloc                                 ,0xffe75b44) //  1 53%
  48 NHSTUB(taskIdListGet                          ,0xffe83788) //  1 82%
  49 NHSTUB(localtime                              ,0xffe6d298) //  1 93%
  50 NHSTUB(Mount_FileSystem                       ,0xffc598cc) //  1 90%
  51 NHSTUB(MakeAFScan                             ,0xffd285f8) //  1 89%
  52 
  53 // Check of modemap from 'platform/CAMERA/shooting.c':
  54 // Firmware modemap table found @ffd39b10 -> ffd39b10
  55 // Strange mode 0x0001000d in firmware, found in modemap as 13 (MODE_VIDEO_STD)
  56 // Strange mode 0x0001000e in firmware but not in current modemap
  57 // Strange mode 0x0001000f in firmware but not in current modemap
  58 
  59 // Values below can be overridden in 'stubs_min.S':
  60 DEF(levent_table                            ,0xffd32d98) // Found @0xffd32d98
  61 DEF(FlashParamsTable                        ,0xffd3bc1c) // Found @0xffd3bc1c
  62 DEF(fileio_semaphore                        ,0x0000251c) // Found @0xffc57cf0
  63 DEF(exmem_alloc_table                       ,0x00001c30) // Found @0xffc020bc
  64 DEF(exmem_types_table                       ,0xffc01e28) // Found @0xffc01e28
  65 DEF_CONST(exmem_type_count                  ,0x0000000c)
  66 DEF(imager_active                           ,0x00005194) // Found @0xffcac398 (0x5194 + 0)
  67 DEF_CONST(uiprop_count                      ,0x00000057) // Found @0xffd3d550
  68 
  69 // Values below go in 'lib.c':
  70 //int get_flash_params_count(void) { return 0x5e; }                          // Found @0xffd3e370
  71 
  72 // Values below go in 'platform_camera.h':
  73 //#define PARAM_CAMERA_NAME 3 // Found @0xffd3b4f0
  74 
  75 // Misc stuff
  76 
  77 // EXMEM types:
  78 // EXMEM_RAMDISK   0
  79 // EXMEM_COM       1
  80 // EXMEM_FORMATTER 2
  81 // EXMEM_SHADING   3
  82 // EXMEM_FAMODE    4
  83 // EXMEM_FIRMUP    5
  84 // EXMEM_FILESTORE 6
  85 // EXMEM_MOVIE_REC 7
  86 // EXMEM_MOVIE_PLY 8
  87 // EXMEM_WIDE      9
  88 // EXMEM_NARROW    10
  89 // EXMEM_PCEVF     11
  90 
  91 // LED table init @ 0xffc1d7e8
  92 // LED #1: 0xc022008c, offset 0x4
  93 // LED #2: 0xc0220088, offset 0x44
  94 // LED #3: 0xc0220090, offset 0x84
  95 // LED #4: 0xc0220084, offset 0x204
  96 // LED #5: 0xc0220080, offset 0x244
  97 
  98 
  99 // For capt_seq.c
 100 DEF(_nrflag,0x68d0) // Found @ ffd2a404 (0x68d0)
 101 //static long *nrflag = (long*)(0x68d0);       // Found @ ffd2a404
 102 
 103 // Stubs below matched 100%.
 104 //    Name                                     Address                Comp to stubs_entry_2.S
 105 NHSTUB(AllocateUncacheableMemory              ,0xffc047c4) //  1
 106 NHSTUB(Close                                  ,0xffc5a618) //120
 107 NHSTUB(CreateBinarySemaphore                  ,0xffc11780) //115
 108 NHSTUB(CreateTask                             ,0xffc12364) //120
 109 NHSTUB(DebugAssert                            ,0xffc03b58) //1100
 110 NHSTUB(DeleteFile_Fut                         ,0xffc534fc) //  1
 111 NHSTUB(DoAELock                               ,0xffd2426c) //120
 112 NHSTUB(DoAFLock                               ,0xffd24124) //120
 113 NHSTUB(ExecuteEventProcedure                  ,0xffc06a64) //  1
 114 NHSTUB(ExitTask                               ,0xffc12724) //120
 115 NHSTUB(Fclose_Fut                             ,0xffc5363c) //120
 116 NHSTUB(Feof_Fut                               ,0xffc53850) //  1
 117 NHSTUB(Fflush_Fut                             ,0xffc53888) //  1
 118 NHSTUB(Fgets_Fut                              ,0xffc537c0) //  1
 119 NHSTUB(Fopen_Fut                              ,0xffc53600) //120
 120 NHSTUB(Fread_Fut                              ,0xffc53720) //120
 121 NHSTUB(FreeUncacheableMemory                  ,0xffc047f8) //  1
 122 NHSTUB(Fseek_Fut                              ,0xffc53808) //120
 123 NHSTUB(Fwrite_Fut                             ,0xffc53770) //120
 124 NHSTUB(GetBatteryTemperature                  ,0xffc1cdf0) //102
 125 NHSTUB(GetCCDTemperature                      ,0xffc1cddc) //102
 126 NHSTUB(GetCurrentAvValue                      ,0xffe2bf58) //120
 127 NHSTUB(GetCurrentShutterSpeed                 ,0xffe2bbf4) //120
 128 NHSTUB(GetDrive_ClusterSize                   ,0xffc59df4) //119
 129 NHSTUB(GetDrive_FreeClusters                  ,0xffc59e6c) //1103
 130 NHSTUB(GetDrive_TotalClusters                 ,0xffc59e30) //119
 131 NHSTUB(GetOpticalTemperature                  ,0xffc1cdc8) //120
 132 NHSTUB(GetParameterData                       ,0xffd3e304) //  1
 133 NHSTUB(GetPropertyCase                        ,0xffc155d8) //  1
 134 NHSTUB(GetZoomLensCurrentPoint                ,0xffe12554) //120
 135 NHSTUB(GetZoomLensCurrentPosition             ,0xffe12568) //102
 136 NHSTUB(GiveSemaphore                          ,0xffc11d68) //120
 137 NHSTUB(IsStrobeChargeCompleted                ,0xffce3b80) //  1
 138 NHSTUB(LEDDrive                               ,0xffc1d348) //120
 139 NHSTUB(LocalTime                              ,0xffc04228) //115
 140 NHSTUB(LockMainPower                          ,0xffd39888) //120
 141 NHSTUB(MakeDirectory_Fut                      ,0xffc53588) //  1
 142 //NHSTUB(MoveFocusLensToDistance              ,0xffe2e2f4) //102            Overridden
 143 NHSTUB(MoveZoomLensWithPoint                  ,0xffe12434) //120
 144 NHSTUB(Open                                   ,0xffc5a5f0) //120
 145 NHSTUB(PT_PlaySound                           ,0xffd31254) //  1
 146 NHSTUB(PostLogicalEventForNotPowerType        ,0xffd3597c) //120
 147 NHSTUB(PostLogicalEventToUI                   ,0xffd35a08) //120
 148 NHSTUB(Read                                   ,0xffc5a6ac) //120
 149 NHSTUB(RefreshPhysicalScreen                  ,0xffd4e9f8) //120
 150 NHSTUB(RenameFile_Fut                         ,0xffc5347c) //  1
 151 NHSTUB(Restart                                ,0xffc13bb0) //  1
 152 NHSTUB(SetAE_ShutterSpeed                     ,0xffe313a8) //102
 153 NHSTUB(SetAutoShutdownTime                    ,0xffd39780) //120
 154 NHSTUB(SetCurrentCaptureModeType              ,0xffd64fa4) //120
 155 NHSTUB(SetFileAttributes                      ,0xffc5a804) //  1
 156 NHSTUB(SetLogicalEventActive                  ,0xffd37938) //1104
 157 NHSTUB(SetParameterData                       ,0xffd3e224) //  1
 158 NHSTUB(SetPropertyCase                        ,0xffc154bc) //  1
 159 NHSTUB(SetScriptMode                          ,0xffd3799c) //120
 160 NHSTUB(SleepTask                              ,0xffc121c4) //120
 161 NHSTUB(TakeSemaphore                          ,0xffc11b80) //1101
 162 NHSTUB(TurnOffBackLight                       ,0xffd7a150) //  1
 163 NHSTUB(TurnOnBackLight                        ,0xffd7a124) //  1
 164 NHSTUB(TurnOnDisplay                          ,0xffd08650) //120
 165 NHSTUB(TurnOffDisplay                         ,0xffd08660) //120
 166 NHSTUB(UnlockAE                               ,0xffd2428c) //120
 167 NHSTUB(UnlockAF                               ,0xffd24164) //120
 168 NHSTUB(UnlockMainPower                        ,0xffd3993c) //120
 169 NHSTUB(VbattGet                               ,0xffc1be54) //120
 170 NHSTUB(Write                                  ,0xffc5a6b8) //120
 171 NHSTUB(_log                                   ,0xffe5f084) //121
 172 NHSTUB(_log10                                 ,0xffe5f72c) //121
 173 NHSTUB(_pow                                   ,0xffe5fc1c) //121
 174 NHSTUB(_sqrt                                  ,0xffe63f68) //  1
 175 NHSTUB(apex2us                                ,0xffc94108) //  1
 176 NHSTUB(close                                  ,0xffe72b04) //109
 177 NHSTUB(exmem_alloc                            ,0xffc028b8) //122
 178 //NHSTUB(exmem_free                           ,0xffc02904) //122            == 0xffc02904
 179 NHSTUB(get_nd_value                           ,0xffe1abb8) //115
 180 NHSTUB(get_current_nd_value                   ,0xffe1ab3c) //122
 181 NHSTUB(kbd_p1_f                               ,0xffc17610) //  1
 182 NHSTUB(kbd_p1_f_cont                          ,0xffc1761c) //109
 183 NHSTUB(kbd_p2_f                               ,0xffc179ec) //  1
 184 NHSTUB(kbd_read_keys_r2                       ,0xffc18304) //  1
 185 NHSTUB(lseek                                  ,0xffe72c48) //  1
 186 NHSTUB(memcmp                                 ,0xffe6c678) //120
 187 NHSTUB(memcpy                                 ,0xffe6c6b4) //120
 188 NHSTUB(memset                                 ,0xffe6c72c) //120
 189 NHSTUB(mkdir                                  ,0xffc5a834) //  1
 190 NHSTUB(open                                   ,0xffe73148) //109
 191 NHSTUB(closedir                               ,0xffe6eaa4) //  1
 192 NHSTUB(qsort                                  ,0xffe6bed8) //  1
 193 NHSTUB(rand                                   ,0xffe6befc) //  1
 194 NHSTUB(realloc                                ,0xffe57214) //115
 195 NHSTUB(srand                                  ,0xffe6bf20) //  1
 196 NHSTUB(stat                                   ,0xffe6eb6c) //  1
 197 NHSTUB(strcat                                 ,0xffe6c74c) //  1
 198 NHSTUB(strchr                                 ,0xffe6c778) //  1
 199 NHSTUB(strcmp                                 ,0xffe6c79c) //120
 200 NHSTUB(strcpy                                 ,0xffe6c930) //120
 201 NHSTUB(strftime                               ,0xffe6dfb8) //  1
 202 NHSTUB(strlen                                 ,0xffe6ca94) //120
 203 NHSTUB(strncmp                                ,0xffe6caf8) //  1
 204 NHSTUB(strncpy                                ,0xffe6cb3c) //  1
 205 NHSTUB(strrchr                                ,0xffe6cbc0) //  1
 206 NHSTUB(strtol                                 ,0xffe6c314) //  1
 207 NHSTUB(isdigit                                ,0xffe68a48) //  1
 208 NHSTUB(isspace                                ,0xffe68ac0) //  1
 209 NHSTUB(isalpha                                ,0xffe68a18) //  1
 210 NHSTUB(isupper                                ,0xffe68ad8) //  1
 211 NHSTUB(islower                                ,0xffe68a78) //  1
 212 NHSTUB(ispunct                                ,0xffe68aa8) //  1
 213 NHSTUB(isxdigit                               ,0xffe68af0) //  1
 214 NHSTUB(toupper                                ,0xffe68b18) //  1
 215 NHSTUB(tolower                                ,0xffe68b08) //  1
 216 NHSTUB(taskLock                               ,0xffe83e44) //  1
 217 NHSTUB(taskUnlock                             ,0xffe83eec) //  1
 218 NHSTUB(taskName                               ,0xffe83680) //  1
 219 NHSTUB(errnoOfTaskGet                         ,0xffe6f270) //  1
 220 NHSTUB(readdir                                ,0xffe6ea70) //  1
 221 NHSTUB(strtoul                                ,0xffe6c4bc) //  1
 222 NHSTUB(strpbrk                                ,0xffe6cb84) //  1
 223 NHSTUB(utime                                  ,0xffe6ec00) //  1
 224 NHSTUB(mktime                                 ,0xffe6d460) //  1
 225 NHSTUB(opendir                                ,0xffe6ead8) //  1
 226 NHSTUB(memchr                                 ,0xffe6c644) //  1
 227 NHSTUB(memPartInfoGet                         ,0xffe75f64) //  1
 228 NHSTUB(iosDrvInstall                          ,0xffe73fe8) //  1
 229 NHSTUB(iosDevAdd                              ,0xffe73d24) //  1
 230 NHSTUB(iosDevDelete                           ,0xffe73cfc) //  1
 231 NHSTUB(GetCurrentTargetDistance               ,0xffe2e064) //  1
 232 NHSTUB(taskCreateHookAdd                      ,0xffe791c4) //  1
 233 NHSTUB(taskDeleteHookAdd                      ,0xffe79100) //  1
 234 NHSTUB(Unmount_FileSystem                     ,0xffc599d4) //  1
 235 NHSTUB(taskSuspend                            ,0xffe83890) //  1
 236 NHSTUB(taskResume                             ,0xffe83a64) //  1
 237 NHSTUB(time                                   ,0xffe6dfe4) //  1
 238 NHSTUB(vsprintf                               ,0xffe703c4) //115
 239 NHSTUB(EngDrvRead                             ,0xffc6bad4) //102
 240 NHSTUB(PTM_GetCurrentItem                     ,0xffd3c30c) //102
 241 NHSTUB(CancelHPTimer                          ,0xffc05b4c) //119
 242 NHSTUB(SetHPTimerAfterNow                     ,0xffc056d8) //119
 243 NHSTUB(MFOn                                   ,0xffd24c18) //120
 244 NHSTUB(MFOff                                  ,0xffd24c48) //120
 245 NHSTUB(GetAdChValue                           ,0xffc19648) //120
 246 NHSTUB(get_ptp_buf_size                       ,0xffdd6520) //122
 247 NHSTUB(get_ptp_file_buf                       ,0xffdf227c) //121

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