root/platform/sx100is/sub/100c/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 //   DRYOS R23 (DRYOS version 2.3, release #0023)
   6 //   Firmware Ver GM1.00C   // Found @ 0xffc5add8, "GM1.00C" @ 0xffc5ade5
   7 //   Firmware build timestamp: Aug 29 2007 15:27:50
   8 //   Canon PowerShot SX100 IS
   9 
  10 // Values for makefile.inc
  11 //   PLATFORMOSVER = 23
  12 //   PLATFORMID = 12638 (0x315e) // Found @ 0xfffe0130
  13 //   MAXRAMADDR = 0x01ffffff
  14 //   MEMISOSTART = 0x0009f498
  15 //   KEYSYS = d3                 // Found @ 0xffff1a04
  16 
  17 // Detected address ranges:
  18 // ROM      0xffc00000 - 0xffffffff (4194304 bytes)
  19 // RAM data 0x00001900 - 0x0000f6c4 copied from 0xffebe450 (  56772 bytes)
  20 
  21 // Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S'
  22 //    Name                                     Address      Rule  %  Comp to stubs_entry_2.S
  23 //NHSTUB(GetCCDTemperature                    ,0xffc3a2e0) //102        *** != 0xffc3a474
  24 //NHSTUB(GetOpticalTemperature                ,0xffc3a3c0) //120        *** != 0xffdc4fc4
  25 //NHSTUB(GetZoomLensCurrentPosition           ,0xffdeac9c) //102        *** != 0xffd0e3a0
  26 //NHSTUB(kbd_pwr_off                          ,0xffc37f44) //  2 67%    *** != 0x00000000
  27 
  28 // Check of modemap from 'platform/CAMERA/shooting.c':
  29 // Firmware modemap table found @ffdf5dd8 -> ffe9e824
  30 // Mode  2598 in firmware but not in current modemap
  31 
  32 // Values below can be overridden in 'stubs_min.S':
  33 DEF(physw_status                            ,0x00010c1c) // Found @0xffc130f4
  34 DEF(physw_run                               ,0x00001ca4) // Found @0xffc12da0
  35 DEF(physw_sleep_delay                       ,0x00001ca2) // Found @0xffc12da0
  36 DEF(levent_table                            ,0xffe7cb64) // Found @0xffe7cb64
  37 DEF(FlashParamsTable                        ,0xffe9e9dc) // Found @0xffe9e9dc
  38 DEF(movie_status                            ,0x00005588) // Found @0xffc4abe4
  39 DEF(canon_menu_active                       ,0x0000bafc) // Found @0xffd60be0
  40 DEF(canon_shoot_menu_active                 ,0x0000b1fd) // Found @0xffd380a8
  41 DEF(playrec_mode                            ,0x00005724) // Found @0xffc51684
  42 DEF(zoom_status                             ,0x0000de14) // Found @0xffdf75d0
  43 DEF(some_flag_for_af_scan                   ,0x0000dd08) // Found @0xffdef988
  44 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  45 // each entry contains 3 int value(s), the first is the zoom focus length.
  46 // there are 23 entries in the table - set NUM_FL to 23
  47 DEF(focus_len_table                         ,0xfffe31ac) // Found @0xfffe31ac
  48 DEF(zoom_busy                               ,0x0000a424) // Found @0xffd0e064
  49 DEF(focus_busy                              ,0x0000a318) // Found @0xffd0835c
  50 //DEF(recreview_hold                          ,0x000061d8) // Found @0xffc68cf4, ** != ** stubs_min = 0x0000af6c (0xAF6C)
  51 // Camera appears to have only 1 RAW buffer @ 0x10f6c860 (Found @0xffdc5d60)
  52 DEF(fileio_semaphore                        ,0x00002be8) // Found @0xffc41ef4
  53 DEF(exmem_alloc_table                       ,0x00019c80) // Found @0xffc582f0
  54 DEF(exmem_types_table                       ,0xffec2348) // Found @0x000057f8
  55 DEF_CONST(exmem_type_count                  ,0x00000012)
  56 DEF(imager_active                           ,0x00001f90) // Found @0xffc27de8 (0x1f8c + 4)
  57 DEF_CONST(uiprop_count                      ,0x00000063) // Found @0xffd25e98
  58 
  59 // Values below go in 'lib.c':
  60 //void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xffc33cb8
  61 //void *vid_get_viewport_fb()      { return (void*)0x1065a4d0; }             // Found @0xffdc3ec0
  62 DEF(viewport_fb_d                           ,0x00005424) // Found 0x53d8 (@0xffc44194) + 0x4c (@0xffc441cc)
  63 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x53d8+0x4c)); } // Found @0xffc44194 & 0xffc441cc
  64 DEF(jpeg_count_str                          ,0x00059a1c) // Found @0xffd6d358
  65 //char *camera_jpeg_count_str()    { return (char*)0x00059a1c; }             // Found @0xffd6d358
  66 //int get_flash_params_count(void) { return 0x72; }                          // Found @0xffd268dc
  67 
  68 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  69 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffe5f9fc, levent 0x90a
  70 //#define SD_READONLY_IDX     2
  71 //#define USB_MASK            0x00040000 // Found @0xffe5fa04, levent 0x902
  72 //#define USB_IDX             2
  73 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffe5f94c, levent 0x905
  74 //#define BATTCOVER_IDX       0
  75 //#define ANALOG_AV_FLAG      0x00400000 // Found @0xffe5f954, levent 0x900 (non-inverted logic)
  76 //#define ANALOG_AV_IDX       0
  77 
  78 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  79 //static KeyMap keymap[] = {
  80 //    { 0, KEY_SHOOT_FULL      ,0x0000000c }, // Found @0xffe5f93c, levent 0x01
  81 //    { 0, KEY_SHOOT_FULL_ONLY ,0x00000008 }, // Found @0xffe5f93c, levent 0x01
  82 //    { 0, KEY_SHOOT_HALF      ,0x00000004 }, // Found @0xffe5f934, levent 0x00
  83 //    { 0, KEY_POWER           ,0x00004000 }, // Found @0xffe5f944, levent 0x600 (uses inverted logic in physw_status)
  84 //    { 0, KEY_PLAYBACK        ,0x00800000 }, // Found @0xffe5f95c, levent 0x601 (uses inverted logic in physw_status)
  85 //    { 1, KEY_ZOOM_IN         ,0x00000100 }, // Found @0xffe5f98c, levent 0x02
  86 //    { 1, KEY_ZOOM_OUT        ,0x00000200 }, // Found @0xffe5f994, levent 0x03
  87 //    { 1, KEY_SET             ,0x00010000 }, // Found @0xffe5f99c, levent 0x08
  88 //    { 1, KEY_UP              ,0x00020000 }, // Found @0xffe5f9a4, levent 0x04
  89 //    { 1, KEY_LEFT            ,0x00040000 }, // Found @0xffe5f9ac, levent 0x06
  90 //    { 1, KEY_DOWN            ,0x00080000 }, // Found @0xffe5f9b4, levent 0x05
  91 //    { 1, KEY_RIGHT           ,0x00100000 }, // Found @0xffe5f9bc, levent 0x07
  92 //    { 1, KEY_MENU            ,0x02000000 }, // Found @0xffe5f9cc, levent 0x09
  93 //    { 1, KEY_DISPLAY         ,0x04000000 }, // Found @0xffe5f9d4, levent 0x0a
  94 //    { 0, 0, 0 }
  95 //};
  96 
  97 // Values below go in 'platform_camera.h':
  98 //#define CAM_DRYOS         1
  99 //#define CAM_RAW_ROWPIX    3336 // Found @0xffdbddc0
 100 //#define CAM_RAW_ROWS      2480 // Found @0xffdbddc8
 101 //#undef  CAM_UNCACHED_BIT
 102 //#define CAM_UNCACHED_BIT  0x10000000 // Found @0xffc19e6c
 103 //#define PARAM_CAMERA_NAME 4 // Found @0xffea090c
 104 
 105 // Known propcases
 106 // //      PROPCASE_AFSTEP 13
 107 // #define PROPCASE_FOCUS_STATE 18
 108 // #define PROPCASE_AV 23
 109 // #define PROPCASE_BV 34
 110 // //      PROPCASE_DELTA_DIGITALGAIN 77
 111 // #define PROPCASE_DELTA_SV 79
 112 // //      PROPCASE_DELTA_ND 80
 113 // #define PROPCASE_EV_CORRECTION_2 207
 114 // #define PROPCASE_ORIENTATION_SENSOR 219
 115 // #define PROPCASE_SV_MARKET 246
 116 // //      PROPCASE_SVFIX 247
 117 // #define PROPCASE_TV 262
 118 // Guessed propset: 2
 119 
 120 // Misc stuff
 121 DEF(ctypes, 0xffe5a4b2)
 122 
 123 // EXMEM types:
 124 // EXMEM_RAMDISK     0
 125 // EXMEM_COM         1
 126 // EXMEM_COMTMP      2
 127 // EXMEM_FORMATTER   3
 128 // EXMEM_SHADING     4
 129 // EXMEM_FAMODE      5
 130 // EXMEM_FIRMUP      6
 131 // EXMEM_FIRMUP_VRAM 7
 132 // EXMEM_DVLPWORK    8
 133 // EXMEM_EVF         9
 134 // EXMEM_SCRIPT      10
 135 // EXMEM_FILESTORE   11
 136 // EXMEM_MOVIE_REC   12
 137 // EXMEM_MOVIE_PLY   13
 138 // EXMEM_WIDE        14
 139 // EXMEM_NARROW      15
 140 // EXMEM_CRAW_REC    16
 141 // EXMEM_PCEVF       17
 142 
 143 // ISR flag: 0x195c, pointer to current task's control block: 0x1958
 144 // pointer to TCB area: 0x1a14, found @ 0xffc061c8
 145 
 146 // LED table init @ 0xffcd3430
 147 // LED #1: 0xc02200d0, offset 0xc4
 148 // LED #2: 0xc02200c0, offset 0x244
 149 // LED #3: 0xc02200c4, offset 0x204
 150 // LED #4: 0xc02200cc, offset 0x4
 151 // LED #5: 0xc02200c8, offset 0x44
 152 
 153 // For capt_seq.c
 154 DEF(_nrflag,0xa5fc) // Found @ ffd15bc4 (0xa5fc)
 155 //static long *nrflag = (long*)(0xa5fc);       // Found @ ffd15bc4
 156 
 157 // Stubs below matched 100%.
 158 //    Name                                     Address                Comp to stubs_entry_2.S
 159 NHSTUB(AllocateUncacheableMemory              ,0xffc19e30) //112
 160 NHSTUB(Close                                  ,0xffc1504c) //120
 161 NHSTUB(CreateBinarySemaphore                  ,0xffc0b8e8) //115
 162 NHSTUB(CreateTask                             ,0xffc0bbb8) //120
 163 NHSTUB(DebugAssert                            ,0xffc0c090) //107
 164 NHSTUB(DeleteDirectory_Fut                    ,0xffc14998) //116
 165 NHSTUB(DeleteFile_Fut                         ,0xffc148b4) //112
 166 NHSTUB(DoAELock                               ,0xffc17480) //120
 167 NHSTUB(DoAFLock                               ,0xffc16f5c) //120
 168 NHSTUB(EnterToCompensationEVF                 ,0xffc172d4) //104
 169 NHSTUB(ExecuteEventProcedure                  ,0xffc0c270) //104
 170 NHSTUB(ExitFromCompensationEVF                ,0xffc17324) //104
 171 NHSTUB(ExitTask                               ,0xffc0be48) //120
 172 NHSTUB(ExpCtrlTool_StartContiAE               ,0xffc249b8) //104
 173 NHSTUB(ExpCtrlTool_StopContiAE                ,0xffc24b78) //104
 174 NHSTUB(Fclose_Fut                             ,0xffc14a30) //120
 175 NHSTUB(Feof_Fut                               ,0xffc14c1c) //  1
 176 NHSTUB(Fflush_Fut                             ,0xffc14c58) //  1
 177 NHSTUB(Fgets_Fut                              ,0xffc14b84) //  1
 178 NHSTUB(Fopen_Fut                              ,0xffc149f0) //120
 179 NHSTUB(Fread_Fut                              ,0xffc14adc) //120
 180 NHSTUB(FreeUncacheableMemory                  ,0xffc19e64) //112
 181 NHSTUB(Fseek_Fut                              ,0xffc14bd0) //120
 182 NHSTUB(Fwrite_Fut                             ,0xffc14b30) //120
 183 NHSTUB(GetBatteryTemperature                  ,0xffc3a350) //102
 184 NHSTUB(GetCurrentAvValue                      ,0xffd0b008) //120
 185 NHSTUB(GetCurrentShutterSpeed                 ,0xffc77b80) //120
 186 NHSTUB(GetUsableMaxAv                         ,0xffdbf0ec) //120
 187 NHSTUB(GetUsableMinAv                         ,0xffdbf0d4) //120
 188 NHSTUB(GetDrive_ClusterSize                   ,0xffc406a0) //  1
 189 NHSTUB(GetDrive_FreeClusters                  ,0xffc40740) //  1
 190 NHSTUB(GetDrive_TotalClusters                 ,0xffc406d4) //  1
 191 NHSTUB(GetFocusLensSubjectDistance            ,0xffd08e9c) //102
 192 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xffd091a8) //  1
 193 NHSTUB(GetKbdState                            ,0xffc37df4) //109
 194 NHSTUB(GetMemInfo                             ,0xffc03c58) //115
 195 NHSTUB(GetParameterData                       ,0xffd2689c) //101
 196 NHSTUB(GetPropertyCase                        ,0xffc5bcc0) //101
 197 NHSTUB(GetSystemTime                          ,0xffdf2ffc) //120
 198 NHSTUB(GetVRAMHPixelsSize                     ,0xffc2cd38) //120
 199 NHSTUB(GetVRAMVPixelsSize                     ,0xffc2cd44) //120
 200 NHSTUB(GetZoomLensCurrentPoint                ,0xffd0e3c8) //120
 201 NHSTUB(GiveSemaphore                          ,0xffc0bb24) //120
 202 NHSTUB(IsStrobeChargeCompleted                ,0xffc9ef9c) //102
 203 NHSTUB(LEDDrive                               ,0xffc373e8) //120
 204 NHSTUB(LocalTime                              ,0xffc580ec) //115
 205 NHSTUB(LockMainPower                          ,0xffc5f748) //120
 206 NHSTUB(MakeDirectory_Fut                      ,0xffc14928) //116
 207 NHSTUB(MoveFocusLensToDistance                ,0xffdc0d60) //102
 208 NHSTUB(MoveIrisWithAv                         ,0xffd0b3e8) //120
 209 NHSTUB(MoveZoomLensWithPoint                  ,0xffd0ee74) //120
 210 NHSTUB(Open                                   ,0xffc15024) //120
 211 NHSTUB(PB2Rec                                 ,0xffc6296c) //104
 212 NHSTUB(PT_MoveDigitalZoomToWide               ,0xffc53460) //120
 213 NHSTUB(PT_MoveOpticalZoomAt                   ,0xffc53428) //120
 214 NHSTUB(PT_PlaySound                           ,0xffc52fd4) //103
 215 NHSTUB(PostLogicalEventForNotPowerType        ,0xffc5d6e4) //120
 216 NHSTUB(PostLogicalEventToUI                   ,0xffc5d730) //120
 217 NHSTUB(PutInNdFilter                          ,0xffdbf16c) //102
 218 NHSTUB(PutOutNdFilter                         ,0xffdbf1a4) //102
 219 NHSTUB(Read                                   ,0xffc0a440) //120
 220 NHSTUB(ReadFastDir                            ,0xffddc6b0) //  1
 221 NHSTUB(Rec2PB                                 ,0xffc61598) //104
 222 NHSTUB(RefreshPhysicalScreen                  ,0xffd79fd4) //104
 223 NHSTUB(RenameFile_Fut                         ,0xffc14860) //  1
 224 NHSTUB(Restart                                ,0xffc1be8c) //122
 225 NHSTUB(SetAE_ShutterSpeed                     ,0xffdc30bc) //102
 226 NHSTUB(SetAutoShutdownTime                    ,0xffc5f7bc) //120
 227 NHSTUB(SetCurrentCaptureModeType              ,0xffc66244) //120
 228 NHSTUB(SetFileAttributes                      ,0xffc15378) //  1
 229 NHSTUB(SetFileTimeStamp                       ,0xffc15328) //  1
 230 NHSTUB(SetLogicalEventActive                  ,0xffc5f480) //  1
 231 NHSTUB(SetParameterData                       ,0xffd2680c) //101
 232 NHSTUB(SetPropertyCase                        ,0xffc5bbb8) //103
 233 NHSTUB(SetScriptMode                          ,0xffc5f4d0) //120
 234 NHSTUB(SleepTask                              ,0xffc19cb8) //120
 235 NHSTUB(TakeSemaphore                          ,0xffc0ba54) //120
 236 NHSTUB(TurnOffBackLight                       ,0xffc6bd88) //104
 237 NHSTUB(TurnOnBackLight                        ,0xffc6bd70) //104
 238 NHSTUB(TurnOnDisplay                          ,0xffc33d68) //120
 239 NHSTUB(TurnOffDisplay                         ,0xffc33d78) //120
 240 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xffd61674) //120
 241 NHSTUB(UnlockAE                               ,0xffc174bc) //120
 242 NHSTUB(UnlockAF                               ,0xffc16fc8) //120
 243 NHSTUB(UnlockMainPower                        ,0xffc5f69c) //120
 244 NHSTUB(UnsetZoomForMovie                      ,0xffd2cfcc) //104
 245 NHSTUB(UpdateMBROnFlash                       ,0xffc40468) //105
 246 NHSTUB(VbattGet                               ,0xffc119cc) //120
 247 NHSTUB(Write                                  ,0xffc150f8) //120
 248 NHSTUB(WriteSDCard                            ,0xffcff51c) //108
 249 NHSTUB(_log                                   ,0xffe58024) //111
 250 NHSTUB(_log10                                 ,0xffe56f68) //112
 251 NHSTUB(_pow                                   ,0xffe570d8) //121
 252 NHSTUB(_sqrt                                  ,0xffe5938c) //  1
 253 NHSTUB(add_ptp_handler                        ,0xffcb53d8) //121
 254 NHSTUB(apex2us                                ,0xffd7b48c) //121
 255 NHSTUB(close                                  ,0xffc0a258) //109
 256 NHSTUB(err_init_task                          ,0xffc04eb0) //111
 257 NHSTUB(exmem_alloc                            ,0xffc58bd8) //102
 258 NHSTUB(exmem_free                             ,0xffc58c50) //102
 259 NHSTUB(free                                   ,0xffc03ab0) //112
 260 NHSTUB(kbd_p1_f                               ,0xffc131f0) //109
 261 NHSTUB(kbd_p1_f_cont                          ,0xffc131fc) //109
 262 NHSTUB(kbd_p2_f                               ,0xffc12a40) //109
 263 NHSTUB(kbd_read_keys                          ,0xffc130f4) //109
 264 NHSTUB(kbd_read_keys_r2                       ,0xffc37900) //109
 265 NHSTUB(lseek                                  ,0xffc1518c) //120
 266 NHSTUB(malloc                                 ,0xffc039dc) //112
 267 NHSTUB(memcmp                                 ,0xffc0e8f0) //120
 268 NHSTUB(memcpy                                 ,0xffc76678) //120
 269 NHSTUB(memset                                 ,0xffe2aac0) //120
 270 NHSTUB(mkdir                                  ,0xffc153f0) //109
 271 NHSTUB(mktime_ext                             ,0xffc76ee4) //  1
 272 NHSTUB(open                                   ,0xffc0a1a8) //109
 273 NHSTUB(OpenFastDir                            ,0xffddc61c) //  1
 274 NHSTUB(closedir                               ,0xffddc780) //  1
 275 NHSTUB(qsort                                  ,0xffd7a864) //  1
 276 NHSTUB(rand                                   ,0xffc0e9f8) //121
 277 NHSTUB(realloc                                ,0xffc03b90) //115
 278 NHSTUB(reboot_fw_update                       ,0xffde1050) //106
 279 NHSTUB(set_control_event                      ,0xffc5f184) //  1
 280 NHSTUB(srand                                  ,0xffc0e9ec) //122
 281 NHSTUB(stat                                   ,0xffc15258) //  1
 282 NHSTUB(strcat                                 ,0xffc765a4) //  1
 283 NHSTUB(strchr                                 ,0xffc7662c) //  1
 284 NHSTUB(strcmp                                 ,0xffc0e888) //120
 285 NHSTUB(strcpy                                 ,0xffc0e834) //120
 286 NHSTUB(strftime                               ,0xffc768ec) //  1
 287 NHSTUB(strlen                                 ,0xffc0e8cc) //120
 288 NHSTUB(strncmp                                ,0xffc765e0) //  1
 289 NHSTUB(strncpy                                ,0xffc0e84c) //  1
 290 NHSTUB(strrchr                                ,0xffc76650) //  1
 291 NHSTUB(strtol                                 ,0xffc20338) //101
 292 NHSTUB(strtolx                                ,0xffc2013c) //109
 293    DEF(task_CaptSeq                           ,0xffc4e2e0) //120
 294    DEF(task_DvlpSeqTask                       ,0xffd16744) //120
 295    DEF(task_ExpDrv                            ,0xffc98f18) //120
 296    DEF(task_FileWrite                         ,0xffdda798) //120
 297    DEF(task_InitFileModules                   ,0xffc6358c) //120
 298    DEF(task_MovieRecord                       ,0xffc4ae48) //120
 299    DEF(task_PhySw                             ,0xffc12d9c) //120
 300    DEF(task_RotaryEncoder                     ,0xffc3802c) //120
 301 NHSTUB(time                                   ,0xffc57fa0) //109
 302 NHSTUB(vsprintf                               ,0xffc0e7b4) //115
 303 NHSTUB(EngDrvRead                             ,0xffc13ff4) //102
 304 NHSTUB(PTM_GetCurrentItem                     ,0xffc602bc) //105
 305 NHSTUB(CancelHPTimer                          ,0xffc59924) //119
 306 NHSTUB(SetHPTimerAfterNow                     ,0xffc5981c) //119
 307 NHSTUB(MFOn                                   ,0xffc53b6c) //120
 308 NHSTUB(MFOff                                  ,0xffc53b7c) //120
 309 NHSTUB(PT_MFOn                                ,0xffc534c0) //120
 310 NHSTUB(PT_MFOff                               ,0xffc534d0) //120
 311 NHSTUB(GetAdChValue                           ,0xffc35334) //120
 312 NHSTUB(get_ptp_buf_size                       ,0xffcaea04) //122
 313 NHSTUB(get_ptp_file_buf                       ,0xffda6ddc) //121

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