root/platform/sx100is/sub/100b/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.00B   // Found @ 0xffc5ada4, "GM1.00B" @ 0xffc5adb1
   7 //   Firmware build timestamp: Jul 31 2007 19:07:47
   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 0xffebe418 (  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(GetZoomLensCurrentPosition           ,0xffdeac68) //102        *** != 0xffd0e36c
  24 //NHSTUB(MoveFocusLensToDistance              ,0xffdc0d2c) //102        *** != 0xffdc0c60
  25 //NHSTUB(kbd_pwr_off                          ,0xffc37f10) //  2 67%    *** != 0x00000000
  26 
  27 // Check of modemap from 'platform/CAMERA/shooting.c':
  28 // Firmware modemap table found @ffdf5da4 -> ffe9e7ec
  29 // Mode  2598 in firmware but not in current modemap
  30 
  31 // Values below can be overridden in 'stubs_min.S':
  32 DEF(physw_status                            ,0x00010c1c) // Found @0xffc130f4
  33 DEF(physw_run                               ,0x00001ca4) // Found @0xffc12da0
  34 DEF(physw_sleep_delay                       ,0x00001ca2) // Found @0xffc12da0
  35 DEF(levent_table                            ,0xffe7cb2c) // Found @0xffe7cb2c
  36 DEF(FlashParamsTable                        ,0xffe9e9a4) // Found @0xffe9e9a4
  37 DEF(movie_status                            ,0x00005588) // Found @0xffc4abb0
  38 DEF(canon_menu_active                       ,0x0000bafc) // Found @0xffd60bac
  39 DEF(canon_shoot_menu_active                 ,0x0000b1fd) // Found @0xffd38074
  40 DEF(playrec_mode                            ,0x00005724) // Found @0xffc51650
  41 DEF(zoom_status                             ,0x0000de14) // Found @0xffdf759c
  42 DEF(some_flag_for_af_scan                   ,0x0000dd08) // Found @0xffdef954
  43 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  44 // each entry contains 3 int value(s), the first is the zoom focus length.
  45 // there are 23 entries in the table - set NUM_FL to 23
  46 DEF(focus_len_table                         ,0xfffe31ac) // Found @0xfffe31ac
  47 DEF(zoom_busy                               ,0x0000a424) // Found @0xffd0e030
  48 DEF(focus_busy                              ,0x0000a318) // Found @0xffd08328
  49 //DEF(recreview_hold                          ,0x000061d8) // Found @0xffc68cc0, ** != ** stubs_min = 0x0000af6c (0xAF6C)
  50 // Camera appears to have only 1 RAW buffer @ 0x10f6c860 (Found @0xffdc5d2c)
  51 DEF(fileio_semaphore                        ,0x00002be8) // Found @0xffc41ec0
  52 DEF(exmem_alloc_table                       ,0x00019c80) // Found @0xffc582bc
  53 DEF(exmem_types_table                       ,0xffec2310) // Found @0x000057f8
  54 DEF_CONST(exmem_type_count                  ,0x00000012)
  55 DEF(imager_active                           ,0x00001f90) // Found @0xffc27de8 (0x1f8c + 4)
  56 DEF_CONST(uiprop_count                      ,0x00000063) // Found @0xffd25e64
  57 
  58 // Values below go in 'lib.c':
  59 //void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xffc33cb8
  60 //void *vid_get_viewport_fb()      { return (void*)0x1065a4d0; }             // Found @0xffdc3e8c
  61 DEF(viewport_fb_d                           ,0x00005424) // Found 0x53d8 (@0xffc44160) + 0x4c (@0xffc44198)
  62 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x53d8+0x4c)); } // Found @0xffc44160 & 0xffc44198
  63 DEF(jpeg_count_str                          ,0x00059a1c) // Found @0xffd6d324
  64 //char *camera_jpeg_count_str()    { return (char*)0x00059a1c; }             // Found @0xffd6d324
  65 //int get_flash_params_count(void) { return 0x72; }                          // Found @0xffd268a8
  66 
  67 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  68 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffe5f9c8, levent 0x90a
  69 //#define SD_READONLY_IDX     2
  70 //#define USB_MASK            0x00040000 // Found @0xffe5f9d0, levent 0x902
  71 //#define USB_IDX             2
  72 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffe5f918, levent 0x905
  73 //#define BATTCOVER_IDX       0
  74 //#define ANALOG_AV_FLAG      0x00400000 // Found @0xffe5f920, levent 0x900 (non-inverted logic)
  75 //#define ANALOG_AV_IDX       0
  76 
  77 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  78 //static KeyMap keymap[] = {
  79 //    { 0, KEY_SHOOT_FULL      ,0x0000000c }, // Found @0xffe5f908, levent 0x01
  80 //    { 0, KEY_SHOOT_FULL_ONLY ,0x00000008 }, // Found @0xffe5f908, levent 0x01
  81 //    { 0, KEY_SHOOT_HALF      ,0x00000004 }, // Found @0xffe5f900, levent 0x00
  82 //    { 0, KEY_POWER           ,0x00004000 }, // Found @0xffe5f910, levent 0x600 (uses inverted logic in physw_status)
  83 //    { 0, KEY_PLAYBACK        ,0x00800000 }, // Found @0xffe5f928, levent 0x601 (uses inverted logic in physw_status)
  84 //    { 1, KEY_ZOOM_IN         ,0x00000100 }, // Found @0xffe5f958, levent 0x02
  85 //    { 1, KEY_ZOOM_OUT        ,0x00000200 }, // Found @0xffe5f960, levent 0x03
  86 //    { 1, KEY_SET             ,0x00010000 }, // Found @0xffe5f968, levent 0x08
  87 //    { 1, KEY_UP              ,0x00020000 }, // Found @0xffe5f970, levent 0x04
  88 //    { 1, KEY_LEFT            ,0x00040000 }, // Found @0xffe5f978, levent 0x06
  89 //    { 1, KEY_DOWN            ,0x00080000 }, // Found @0xffe5f980, levent 0x05
  90 //    { 1, KEY_RIGHT           ,0x00100000 }, // Found @0xffe5f988, levent 0x07
  91 //    { 1, KEY_MENU            ,0x02000000 }, // Found @0xffe5f998, levent 0x09
  92 //    { 1, KEY_DISPLAY         ,0x04000000 }, // Found @0xffe5f9a0, levent 0x0a
  93 //    { 0, 0, 0 }
  94 //};
  95 
  96 // Values below go in 'platform_camera.h':
  97 //#define CAM_DRYOS         1
  98 //#define CAM_RAW_ROWPIX    3336 // Found @0xffdbdd8c
  99 //#define CAM_RAW_ROWS      2480 // Found @0xffdbdd94
 100 //#undef  CAM_UNCACHED_BIT
 101 //#define CAM_UNCACHED_BIT  0x10000000 // Found @0xffc19e6c
 102 //#define PARAM_CAMERA_NAME 4 // Found @0xffea08d4
 103 
 104 // Known propcases
 105 // //      PROPCASE_AFSTEP 13
 106 // #define PROPCASE_FOCUS_STATE 18
 107 // #define PROPCASE_AV 23
 108 // #define PROPCASE_BV 34
 109 // //      PROPCASE_DELTA_DIGITALGAIN 77
 110 // #define PROPCASE_DELTA_SV 79
 111 // //      PROPCASE_DELTA_ND 80
 112 // #define PROPCASE_EV_CORRECTION_2 207
 113 // #define PROPCASE_ORIENTATION_SENSOR 219
 114 // #define PROPCASE_SV_MARKET 246
 115 // //      PROPCASE_SVFIX 247
 116 // #define PROPCASE_TV 262
 117 // Guessed propset: 2
 118 
 119 // Misc stuff
 120 DEF(ctypes, 0xffe5a47e)
 121 
 122 // EXMEM types:
 123 // EXMEM_RAMDISK     0
 124 // EXMEM_COM         1
 125 // EXMEM_COMTMP      2
 126 // EXMEM_FORMATTER   3
 127 // EXMEM_SHADING     4
 128 // EXMEM_FAMODE      5
 129 // EXMEM_FIRMUP      6
 130 // EXMEM_FIRMUP_VRAM 7
 131 // EXMEM_DVLPWORK    8
 132 // EXMEM_EVF         9
 133 // EXMEM_SCRIPT      10
 134 // EXMEM_FILESTORE   11
 135 // EXMEM_MOVIE_REC   12
 136 // EXMEM_MOVIE_PLY   13
 137 // EXMEM_WIDE        14
 138 // EXMEM_NARROW      15
 139 // EXMEM_CRAW_REC    16
 140 // EXMEM_PCEVF       17
 141 
 142 // ISR flag: 0x195c, pointer to current task's control block: 0x1958
 143 // pointer to TCB area: 0x1a14, found @ 0xffc061c8
 144 
 145 // LED table init @ 0xffcd33fc
 146 // LED #1: 0xc02200d0, offset 0xc4
 147 // LED #2: 0xc02200c0, offset 0x244
 148 // LED #3: 0xc02200c4, offset 0x204
 149 // LED #4: 0xc02200cc, offset 0x4
 150 // LED #5: 0xc02200c8, offset 0x44
 151 
 152 // For capt_seq.c
 153 DEF(_nrflag,0xa5fc) // Found @ ffd15b90 (0xa5fc)
 154 //static long *nrflag = (long*)(0xa5fc);       // Found @ ffd15b90
 155 
 156 // Stubs below matched 100%.
 157 //    Name                                     Address                Comp to stubs_entry_2.S
 158 NHSTUB(AllocateUncacheableMemory              ,0xffc19e30) //112
 159 NHSTUB(Close                                  ,0xffc1504c) //120
 160 NHSTUB(CreateBinarySemaphore                  ,0xffc0b8e8) //115
 161 NHSTUB(CreateTask                             ,0xffc0bbb8) //120
 162 NHSTUB(DebugAssert                            ,0xffc0c090) //107
 163 NHSTUB(DeleteDirectory_Fut                    ,0xffc14998) //116
 164 NHSTUB(DeleteFile_Fut                         ,0xffc148b4) //112
 165 NHSTUB(DoAELock                               ,0xffc17480) //120
 166 NHSTUB(DoAFLock                               ,0xffc16f5c) //120
 167 NHSTUB(EnterToCompensationEVF                 ,0xffc172d4) //104
 168 NHSTUB(ExecuteEventProcedure                  ,0xffc0c270) //104
 169 NHSTUB(ExitFromCompensationEVF                ,0xffc17324) //104
 170 NHSTUB(ExitTask                               ,0xffc0be48) //120
 171 NHSTUB(ExpCtrlTool_StartContiAE               ,0xffc249b8) //104
 172 NHSTUB(ExpCtrlTool_StopContiAE                ,0xffc24b78) //104
 173 NHSTUB(Fclose_Fut                             ,0xffc14a30) //120
 174 NHSTUB(Feof_Fut                               ,0xffc14c1c) //  1
 175 NHSTUB(Fflush_Fut                             ,0xffc14c58) //  1
 176 NHSTUB(Fgets_Fut                              ,0xffc14b84) //  1
 177 NHSTUB(Fopen_Fut                              ,0xffc149f0) //120
 178 NHSTUB(Fread_Fut                              ,0xffc14adc) //120
 179 NHSTUB(FreeUncacheableMemory                  ,0xffc19e64) //112
 180 NHSTUB(Fseek_Fut                              ,0xffc14bd0) //120
 181 NHSTUB(Fwrite_Fut                             ,0xffc14b30) //120
 182 NHSTUB(GetBatteryTemperature                  ,0xffc3a31c) //102
 183 NHSTUB(GetCCDTemperature                      ,0xffc3a2ac) //102
 184 NHSTUB(GetCurrentAvValue                      ,0xffd0afd4) //120
 185 NHSTUB(GetCurrentShutterSpeed                 ,0xffc77b4c) //120
 186 NHSTUB(GetUsableMaxAv                         ,0xffdbf0b8) //120
 187 NHSTUB(GetUsableMinAv                         ,0xffdbf0a0) //120
 188 NHSTUB(GetDrive_ClusterSize                   ,0xffc4066c) //  1
 189 NHSTUB(GetDrive_FreeClusters                  ,0xffc4070c) //  1
 190 NHSTUB(GetDrive_TotalClusters                 ,0xffc406a0) //  1
 191 NHSTUB(GetFocusLensSubjectDistance            ,0xffd08e68) //102
 192 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xffd09174) //  1
 193 NHSTUB(GetKbdState                            ,0xffc37dc0) //109
 194 NHSTUB(GetMemInfo                             ,0xffc03c58) //115
 195 NHSTUB(GetOpticalTemperature                  ,0xffc3a38c) //120
 196 NHSTUB(GetParameterData                       ,0xffd26868) //101
 197 NHSTUB(GetPropertyCase                        ,0xffc5bc8c) //101
 198 NHSTUB(GetSystemTime                          ,0xffdf2fc8) //120
 199 NHSTUB(GetVRAMHPixelsSize                     ,0xffc2cd38) //120
 200 NHSTUB(GetVRAMVPixelsSize                     ,0xffc2cd44) //120
 201 NHSTUB(GetZoomLensCurrentPoint                ,0xffd0e394) //120
 202 NHSTUB(GiveSemaphore                          ,0xffc0bb24) //120
 203 NHSTUB(IsStrobeChargeCompleted                ,0xffc9ef68) //102
 204 NHSTUB(LEDDrive                               ,0xffc373b4) //120
 205 NHSTUB(LocalTime                              ,0xffc580b8) //115
 206 NHSTUB(LockMainPower                          ,0xffc5f714) //120
 207 NHSTUB(MakeDirectory_Fut                      ,0xffc14928) //116
 208 NHSTUB(MoveIrisWithAv                         ,0xffd0b3b4) //120
 209 NHSTUB(MoveZoomLensWithPoint                  ,0xffd0ee40) //120
 210 NHSTUB(Open                                   ,0xffc15024) //120
 211 NHSTUB(PB2Rec                                 ,0xffc62938) //104
 212 NHSTUB(PT_MoveDigitalZoomToWide               ,0xffc5342c) //120
 213 NHSTUB(PT_MoveOpticalZoomAt                   ,0xffc533f4) //120
 214 NHSTUB(PT_PlaySound                           ,0xffc52fa0) //103
 215 NHSTUB(PostLogicalEventForNotPowerType        ,0xffc5d6b0) //120
 216 NHSTUB(PostLogicalEventToUI                   ,0xffc5d6fc) //120
 217 NHSTUB(PutInNdFilter                          ,0xffdbf138) //102
 218 NHSTUB(PutOutNdFilter                         ,0xffdbf170) //102
 219 NHSTUB(Read                                   ,0xffc0a440) //120
 220 NHSTUB(ReadFastDir                            ,0xffddc67c) //  1
 221 NHSTUB(Rec2PB                                 ,0xffc61564) //104
 222 NHSTUB(RefreshPhysicalScreen                  ,0xffd79fa0) //104
 223 NHSTUB(RenameFile_Fut                         ,0xffc14860) //  1
 224 NHSTUB(Restart                                ,0xffc1be8c) //122
 225 NHSTUB(SetAE_ShutterSpeed                     ,0xffdc3088) //102
 226 NHSTUB(SetAutoShutdownTime                    ,0xffc5f788) //120
 227 NHSTUB(SetCurrentCaptureModeType              ,0xffc66210) //120
 228 NHSTUB(SetFileAttributes                      ,0xffc15378) //  1
 229 NHSTUB(SetFileTimeStamp                       ,0xffc15328) //  1
 230 NHSTUB(SetLogicalEventActive                  ,0xffc5f44c) //  1
 231 NHSTUB(SetParameterData                       ,0xffd267d8) //101
 232 NHSTUB(SetPropertyCase                        ,0xffc5bb84) //103
 233 NHSTUB(SetScriptMode                          ,0xffc5f49c) //120
 234 NHSTUB(SleepTask                              ,0xffc19cb8) //120
 235 NHSTUB(TakeSemaphore                          ,0xffc0ba54) //120
 236 NHSTUB(TurnOffBackLight                       ,0xffc6bd54) //104
 237 NHSTUB(TurnOnBackLight                        ,0xffc6bd3c) //104
 238 NHSTUB(TurnOnDisplay                          ,0xffc33d68) //120
 239 NHSTUB(TurnOffDisplay                         ,0xffc33d78) //120
 240 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xffd61640) //120
 241 NHSTUB(UnlockAE                               ,0xffc174bc) //120
 242 NHSTUB(UnlockAF                               ,0xffc16fc8) //120
 243 NHSTUB(UnlockMainPower                        ,0xffc5f668) //120
 244 NHSTUB(UnsetZoomForMovie                      ,0xffd2cf98) //104
 245 NHSTUB(UpdateMBROnFlash                       ,0xffc40434) //105
 246 NHSTUB(VbattGet                               ,0xffc119cc) //120
 247 NHSTUB(Write                                  ,0xffc150f8) //120
 248 NHSTUB(WriteSDCard                            ,0xffcff4e8) //108
 249 NHSTUB(_log                                   ,0xffe57ff0) //111
 250 NHSTUB(_log10                                 ,0xffe56f34) //112
 251 NHSTUB(_pow                                   ,0xffe570a4) //121
 252 NHSTUB(_sqrt                                  ,0xffe59358) //  1
 253 NHSTUB(add_ptp_handler                        ,0xffcb53a4) //121
 254 NHSTUB(apex2us                                ,0xffd7b458) //121
 255 NHSTUB(close                                  ,0xffc0a258) //109
 256 NHSTUB(err_init_task                          ,0xffc04eb0) //111
 257 NHSTUB(exmem_alloc                            ,0xffc58ba4) //102
 258 NHSTUB(exmem_free                             ,0xffc58c1c) //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                       ,0xffc378cc) //109
 265 NHSTUB(lseek                                  ,0xffc1518c) //120
 266 NHSTUB(malloc                                 ,0xffc039dc) //112
 267 NHSTUB(memcmp                                 ,0xffc0e8f0) //120
 268 NHSTUB(memcpy                                 ,0xffc76644) //120
 269 NHSTUB(memset                                 ,0xffe2aa8c) //120
 270 NHSTUB(mkdir                                  ,0xffc153f0) //109
 271 NHSTUB(mktime_ext                             ,0xffc76eb0) //  1
 272 NHSTUB(open                                   ,0xffc0a1a8) //109
 273 NHSTUB(OpenFastDir                            ,0xffddc5e8) //  1
 274 NHSTUB(closedir                               ,0xffddc74c) //  1
 275 NHSTUB(qsort                                  ,0xffd7a830) //  1
 276 NHSTUB(rand                                   ,0xffc0e9f8) //121
 277 NHSTUB(realloc                                ,0xffc03b90) //115
 278 NHSTUB(reboot_fw_update                       ,0xffde101c) //106
 279 NHSTUB(set_control_event                      ,0xffc5f150) //  1
 280 NHSTUB(srand                                  ,0xffc0e9ec) //122
 281 NHSTUB(stat                                   ,0xffc15258) //  1
 282 NHSTUB(strcat                                 ,0xffc76570) //  1
 283 NHSTUB(strchr                                 ,0xffc765f8) //  1
 284 NHSTUB(strcmp                                 ,0xffc0e888) //120
 285 NHSTUB(strcpy                                 ,0xffc0e834) //120
 286 NHSTUB(strftime                               ,0xffc768b8) //  1
 287 NHSTUB(strlen                                 ,0xffc0e8cc) //120
 288 NHSTUB(strncmp                                ,0xffc765ac) //  1
 289 NHSTUB(strncpy                                ,0xffc0e84c) //  1
 290 NHSTUB(strrchr                                ,0xffc7661c) //  1
 291 NHSTUB(strtol                                 ,0xffc20338) //101
 292 NHSTUB(strtolx                                ,0xffc2013c) //109
 293    DEF(task_CaptSeq                           ,0xffc4e2ac) //120
 294    DEF(task_DvlpSeqTask                       ,0xffd16710) //120
 295    DEF(task_ExpDrv                            ,0xffc98ee4) //120
 296    DEF(task_FileWrite                         ,0xffdda764) //120
 297    DEF(task_InitFileModules                   ,0xffc63558) //120
 298    DEF(task_MovieRecord                       ,0xffc4ae14) //120
 299    DEF(task_PhySw                             ,0xffc12d9c) //120
 300    DEF(task_RotaryEncoder                     ,0xffc37ff8) //120
 301 NHSTUB(time                                   ,0xffc57f6c) //109
 302 NHSTUB(vsprintf                               ,0xffc0e7b4) //115
 303 NHSTUB(EngDrvRead                             ,0xffc13ff4) //102
 304 NHSTUB(PTM_GetCurrentItem                     ,0xffc60288) //105
 305 NHSTUB(CancelHPTimer                          ,0xffc598f0) //119
 306 NHSTUB(SetHPTimerAfterNow                     ,0xffc597e8) //119
 307 NHSTUB(MFOn                                   ,0xffc53b38) //120
 308 NHSTUB(MFOff                                  ,0xffc53b48) //120
 309 NHSTUB(PT_MFOn                                ,0xffc5348c) //120
 310 NHSTUB(PT_MFOff                               ,0xffc5349c) //120
 311 NHSTUB(GetAdChValue                           ,0xffc35334) //120
 312 NHSTUB(get_ptp_buf_size                       ,0xffcae9d0) //122
 313 NHSTUB(get_ptp_file_buf                       ,0xffda6da8) //121

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