root/platform/g7/sub/100j/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.00J   // Found @ 0xff81a738, "GM1.00J" @ 0xff81a745
   6 //   Firmware build timestamp: Apr 18 2007 17:31:07
   7 //   Possible corrupt firmware dump - file size too small for start address 0xff810000
   8 //     file size = 3.68MB, should be 7.94MB
   9 //   Could not find Camera name - possible corrupt firmware dump
  10 
  11 // Values for makefile.inc
  12 //   MAXRAMADDR = 0x03ffffff
  13 //   MEMISOSTART = 0x000a7910
  14 
  15 // Detected address ranges:
  16 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  17 // RAM data 0x00001900 - 0x0000ef10 copied from 0xffbb1b50 (  54800 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                 ,0xff99b204) //  2 87%
  22 //NHSTUB(ExitFromCompensationEVF              ,0xff99f0c0) //  2 66%    *** != 0xff99b244
  23 // ALT: NHSTUB(ExitFromCompensationEVF, 0xff99f11c) // 2 20/10
  24 // ALT: NHSTUB(ExitFromCompensationEVF, 0xff99f1d8) // 2 20/10
  25 NHSTUB(GetFocusLensSubjectDistance            ,0xffb3d8c4) //  1 83%
  26 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xffb3de30) //  2 92%
  27 NHSTUB(GetPropertyCase                        ,0xff8258d4) //  2 92%
  28 NHSTUB(GetSystemTime                          ,0xff8150d8) //  1 96%
  29 NHSTUB(PutInNdFilter                          ,0xffb50660) //  1 92%
  30 NHSTUB(PutOutNdFilter                         ,0xffb506a8) //  1 94%
  31 //NHSTUB(Remove                               ,0xff8e7ac8) //  3 52%
  32 //NHSTUB(Restart                              ,0xff823ac0) //  1 92%    *** != 0xff823abc
  33 NHSTUB(UnsetZoomForMovie                      ,0xff9f6c4c) //  1 89%
  34 //NHSTUB(WriteSDCard                          ,0xff88bcd0) //  2 93%    *** != 0xff88be6c
  35 NHSTUB(add_ptp_handler                        ,0xffaef0d4) //  1 96%
  36 // ERROR: free is not found.                               //--- ---    *** != 0xffb9eccc
  37 // ERROR: kbd_read_keys_r2 is not found.                   //--- ---    *** != 0xff828e70
  38 NHSTUB(kbd_pwr_off                            ,0xff82ab3c) //  1 83%
  39 // ALT: NHSTUB(kbd_pwr_off, 0xff82ab58) // 1 5/1
  40 NHSTUB(kbd_pwr_on                             ,0xff96715c) //  1 55%
  41 // ALT: NHSTUB(kbd_pwr_on, 0xff967188) // 1 5/4
  42 NHSTUB(malloc                                 ,0xffb9ecc0) //  1 53%
  43 NHSTUB(taskIdListGet                          ,0xffbab8e8) //  1 82%
  44 NHSTUB(localtime                              ,0xffb978fc) //  1 93%
  45 NHSTUB(Mount_FileSystem                       ,0xff87be74) //  1 90%
  46 NHSTUB(MakeAFScan                             ,0xff9a0560) //  2 79%
  47 
  48 // Check of modemap from 'platform/CAMERA/shooting.c':
  49 // Firmware modemap table found @ff9b6358 -> ff9b6358
  50 // Mode  8222 in firmware but not in current modemap
  51 // Mode  8223 in firmware but not in current modemap
  52 
  53 // Values below can be overridden in 'stubs_min.S':
  54 DEF(levent_table                            ,0xff9ae87c) // Found @0xff9ae87c
  55 DEF(FlashParamsTable                        ,0xff9b8db4) // Found @0xff9b8db4
  56 DEF(fileio_semaphore                        ,0x00002984) // Found @0xff87a218
  57 DEF(exmem_alloc_table                       ,0x00001bcc) // Found @0xff811f28
  58 DEF(exmem_types_table                       ,0xff811d3c) // Found @0xff811d3c
  59 DEF_CONST(exmem_type_count                  ,0x0000000e)
  60 DEF(imager_active                           ,0x00005a60) // Found @0xff8eb40c (0x5a60 + 0)
  61 DEF_CONST(uiprop_count                      ,0x0000005b) // Found @0xff9bac64
  62 
  63 // Values below go in 'lib.c':
  64 //int get_flash_params_count(void) { return 0x6e; }                          // Found @0xff9bbe74
  65 
  66 // Values below go in 'platform_camera.h':
  67 //#define PARAM_CAMERA_NAME 4 // Found @0xff9b8554
  68 
  69 // Misc stuff
  70 
  71 // EXMEM types:
  72 // EXMEM_RAMDISK   0
  73 // EXMEM_COM       1
  74 // EXMEM_COMTMP    2
  75 // EXMEM_FORMATTER 3
  76 // EXMEM_SHADING   4
  77 // EXMEM_FAMODE    5
  78 // EXMEM_FIRMUP    6
  79 // EXMEM_DVLPWORK  7
  80 // EXMEM_FILESTORE 8
  81 // EXMEM_MOVIE_REC 9
  82 // EXMEM_MOVIE_PLY 10
  83 // EXMEM_WIDE      11
  84 // EXMEM_NARROW    12
  85 // EXMEM_PCEVF     13
  86 
  87 // LED table init @ 0xff82f464
  88 // LED #1: 0xc0220068, offset 0xc4
  89 // LED #2: 0xc022006c, offset 0x204
  90 // LED #3: 0xc0220094, offset 0x244
  91 // LED #4: 0xc02200b0, offset 0x384
  92 
  93 // Stubs below matched 100%.
  94 //    Name                                     Address                Comp to stubs_entry_2.S
  95 NHSTUB(AllocateUncacheableMemory              ,0xff814ea0) //  1
  96 NHSTUB(Close                                  ,0xff87cb4c) //120
  97 NHSTUB(CreateBinarySemaphore                  ,0xff821be4) //115
  98 NHSTUB(CreateTask                             ,0xff822594) //120
  99 NHSTUB(DebugAssert                            ,0xff813d70) //1100
 100 NHSTUB(DeleteFile_Fut                         ,0xff875a0c) //  1
 101 NHSTUB(DoAELock                               ,0xff99b2a4) //120
 102 NHSTUB(DoAFLock                               ,0xff99afd0) //120
 103 NHSTUB(ExecuteEventProcedure                  ,0xff816d3c) //  1
 104 NHSTUB(ExitTask                               ,0xff822954) //120
 105 NHSTUB(Fclose_Fut                             ,0xff875b80) //120
 106 NHSTUB(Feof_Fut                               ,0xff875d7c) //  3
 107 NHSTUB(Fflush_Fut                             ,0xff875db8) //  3
 108 NHSTUB(Fgets_Fut                              ,0xff875ce4) //  3
 109 NHSTUB(Fopen_Fut                              ,0xff875b40) //120
 110 NHSTUB(Fread_Fut                              ,0xff875c3c) //120
 111 NHSTUB(FreeUncacheableMemory                  ,0xff814ed4) //  1
 112 NHSTUB(Fseek_Fut                              ,0xff875d30) //120
 113 NHSTUB(Fwrite_Fut                             ,0xff875c90) //120
 114 NHSTUB(GetBatteryTemperature                  ,0xff82eb20) //102
 115 NHSTUB(GetCCDTemperature                      ,0xff82eb0c) //102
 116 NHSTUB(GetCurrentAvValue                      ,0xffb501d0) //120
 117 NHSTUB(GetCurrentShutterSpeed                 ,0xffb4fe24) //120
 118 NHSTUB(GetUsableMaxAv                         ,0xffb5048c) //120
 119 NHSTUB(GetUsableMinAv                         ,0xffb50468) //120
 120 NHSTUB(GetDrive_ClusterSize                   ,0xff87c338) //119
 121 NHSTUB(GetDrive_FreeClusters                  ,0xff87c3b0) //1103
 122 NHSTUB(GetDrive_TotalClusters                 ,0xff87c374) //119
 123 NHSTUB(GetOpticalTemperature                  ,0xff82eaf8) //120
 124 NHSTUB(GetParameterData                       ,0xff9bbe08) //  2
 125 NHSTUB(GetZoomLensCurrentPoint                ,0xffb29cc8) //120
 126 NHSTUB(GetZoomLensCurrentPosition             ,0xffb29cdc) //102
 127 NHSTUB(GiveSemaphore                          ,0xff82218c) //120
 128 NHSTUB(IsStrobeChargeCompleted                ,0xff939f98) //  2
 129 NHSTUB(LEDDrive                               ,0xff82f078) //120
 130 NHSTUB(LocalTime                              ,0xff8143f8) //115
 131 NHSTUB(LockMainPower                          ,0xff9b60f8) //120
 132 NHSTUB(MakeDirectory_Fut                      ,0xff875ac0) //  3
 133 NHSTUB(MoveFocusLensToDistance                ,0xffb52988) //102
 134 NHSTUB(MoveZoomLensWithPoint                  ,0xffb29ba8) //120
 135 NHSTUB(Open                                   ,0xff87cb24) //120
 136 NHSTUB(PT_PlaySound                           ,0xff9aca78) //  1
 137 NHSTUB(PostLogicalEventForNotPowerType        ,0xff9b1988) //120
 138 NHSTUB(PostLogicalEventToUI                   ,0xff9b1a04) //120
 139 NHSTUB(Read                                   ,0xff87cbe0) //120
 140 NHSTUB(RefreshPhysicalScreen                  ,0xff9ce31c) //120
 141 NHSTUB(RenameFile_Fut                         ,0xff875964) //  3
 142 NHSTUB(SetAE_ShutterSpeed                     ,0xffb5565c) //102
 143 NHSTUB(SetAutoShutdownTime                    ,0xff9b5ffc) //120
 144 NHSTUB(SetCurrentCaptureModeType              ,0xff9e9e80) //120
 145 NHSTUB(SetFileAttributes                      ,0xff87cd74) //  1
 146 NHSTUB(SetLogicalEventActive                  ,0xff9b3924) //1104
 147 NHSTUB(SetParameterData                       ,0xff9bbd28) //  2
 148 NHSTUB(SetPropertyCase                        ,0xff825784) //  2
 149 NHSTUB(SetScriptMode                          ,0xff9b398c) //120
 150 NHSTUB(SleepTask                              ,0xff8224a8) //120
 151 NHSTUB(TakeSemaphore                          ,0xff821fa4) //1101
 152 NHSTUB(TurnOffBackLight                       ,0xffa12ef4) //  2
 153 NHSTUB(TurnOnBackLight                        ,0xffa12ec4) //  2
 154 NHSTUB(TurnOnDisplay                          ,0xff9648dc) //120
 155 NHSTUB(TurnOffDisplay                         ,0xff9648ec) //120
 156 NHSTUB(UnlockAE                               ,0xff99b2c4) //120
 157 NHSTUB(UnlockAF                               ,0xff99b044) //120
 158 NHSTUB(UnlockMainPower                        ,0xff9b6190) //120
 159 NHSTUB(UpdateMBROnFlash                       ,0xff87c06c) //  1
 160 NHSTUB(VbattGet                               ,0xff82d9bc) //120
 161 NHSTUB(Write                                  ,0xff87cbec) //120
 162 NHSTUB(_log                                   ,0xffb910c4) //121
 163 NHSTUB(_log10                                 ,0xffb8cf80) //121
 164 NHSTUB(_pow                                   ,0xffb8d108) //121
 165 NHSTUB(_sqrt                                  ,0xffb8f2f8) //  1
 166 NHSTUB(apex2us                                ,0xff8c8a28) //  1
 167 NHSTUB(close                                  ,0xffb9bc80) //109
 168 NHSTUB(exmem_alloc                            ,0xff812834) //122
 169 NHSTUB(exmem_free                             ,0xff812904) //122
 170 NHSTUB(get_nd_value                           ,0xffb371d0) //122
 171 NHSTUB(get_current_nd_value                   ,0xffb37178) //122
 172 NHSTUB(kbd_p1_f                               ,0xff828014) //  1
 173 NHSTUB(kbd_p1_f_cont                          ,0xff828020) //109
 174 NHSTUB(kbd_p2_f                               ,0xff8283f0) //  1
 175 NHSTUB(lseek                                  ,0xffb9bdc4) //  1
 176 NHSTUB(memcmp                                 ,0xffb96cdc) //120
 177 NHSTUB(memcpy                                 ,0xffb96d18) //120
 178 NHSTUB(memset                                 ,0xffb96d90) //120
 179 NHSTUB(mkdir                                  ,0xff87cda4) //  1
 180 NHSTUB(open                                   ,0xffb9c2c4) //109
 181 NHSTUB(closedir                               ,0xffb99108) //  1
 182 NHSTUB(qsort                                  ,0xffb9653c) //  1
 183 NHSTUB(rand                                   ,0xffb96560) //  1
 184 NHSTUB(realloc                                ,0xffb870c0) //115
 185 NHSTUB(srand                                  ,0xffb96584) //  1
 186 NHSTUB(stat                                   ,0xffb991d0) //  1
 187 NHSTUB(strcat                                 ,0xffb96db0) //  1
 188 NHSTUB(strchr                                 ,0xffb96ddc) //  1
 189 NHSTUB(strcmp                                 ,0xffb96e00) //120
 190 NHSTUB(strcpy                                 ,0xffb96f94) //120
 191 NHSTUB(strftime                               ,0xffb9861c) //  1
 192 NHSTUB(strlen                                 ,0xffb970f8) //120
 193 NHSTUB(strncmp                                ,0xffb9715c) //  1
 194 NHSTUB(strncpy                                ,0xffb971a0) //  1
 195 NHSTUB(strrchr                                ,0xffb97224) //  1
 196 NHSTUB(strtol                                 ,0xffb96978) //  1
 197 NHSTUB(isdigit                                ,0xffb930ac) //  1
 198 NHSTUB(isspace                                ,0xffb93124) //  1
 199 NHSTUB(isalpha                                ,0xffb9307c) //  1
 200 NHSTUB(isupper                                ,0xffb9313c) //  1
 201 NHSTUB(islower                                ,0xffb930dc) //  1
 202 NHSTUB(ispunct                                ,0xffb9310c) //  1
 203 NHSTUB(isxdigit                               ,0xffb93154) //  1
 204 NHSTUB(toupper                                ,0xffb9317c) //  1
 205 NHSTUB(tolower                                ,0xffb9316c) //  1
 206 NHSTUB(taskLock                               ,0xffbabfa4) //  1
 207 NHSTUB(taskUnlock                             ,0xffbac04c) //  1
 208 NHSTUB(taskName                               ,0xffbab7e0) //  1
 209 NHSTUB(errnoOfTaskGet                         ,0xffb998d4) //  1
 210 NHSTUB(readdir                                ,0xffb990d4) //  1
 211 NHSTUB(strtoul                                ,0xffb96b20) //  1
 212 NHSTUB(strpbrk                                ,0xffb971e8) //  1
 213 NHSTUB(utime                                  ,0xffb99264) //  1
 214 NHSTUB(mktime                                 ,0xffb97ac4) //  1
 215 NHSTUB(opendir                                ,0xffb9913c) //  1
 216 NHSTUB(memchr                                 ,0xffb96ca8) //  1
 217 NHSTUB(memPartInfoGet                         ,0xffb9f0e0) //  1
 218 NHSTUB(iosDrvInstall                          ,0xffb9d164) //  1
 219 NHSTUB(iosDevAdd                              ,0xffb9cea0) //  1
 220 NHSTUB(iosDevDelete                           ,0xffb9ce78) //  1
 221 NHSTUB(GetCurrentTargetDistance               ,0xffb526e8) //  1
 222 NHSTUB(taskCreateHookAdd                      ,0xffba1920) //  1
 223 NHSTUB(taskDeleteHookAdd                      ,0xffba185c) //  1
 224 NHSTUB(Unmount_FileSystem                     ,0xff87bf18) //  1
 225 NHSTUB(taskSuspend                            ,0xffbab9f0) //  1
 226 NHSTUB(taskResume                             ,0xffbabbc4) //  1
 227 NHSTUB(time                                   ,0xffb98648) //  1
 228 NHSTUB(vsprintf                               ,0xffb9aa28) //115
 229 NHSTUB(EngDrvRead                             ,0xff88e5bc) //102
 230 NHSTUB(PTM_GetCurrentItem                     ,0xff9b936c) //102
 231 NHSTUB(CancelHPTimer                          ,0xff815f9c) //119
 232 NHSTUB(SetHPTimerAfterNow                     ,0xff815b28) //119
 233 NHSTUB(MFOn                                   ,0xff99c09c) //120
 234 NHSTUB(MFOff                                  ,0xff99c0d0) //120
 235 NHSTUB(GetAdChValue                           ,0xff82ac74) //120
 236 NHSTUB(get_ptp_buf_size                       ,0xffae2808) //122
 237 NHSTUB(get_ptp_file_buf                       ,0xffaffdb4) //121

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