root/platform/a3100/sub/100a/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 R43 (DRYOS version 2.3, release #0043)
   6 //   Firmware Ver GM1.00A   // Found @ 0xff87d0b8, "GM1.00A" @ 0xff87d0c5
   7 //   Firmware build timestamp: Dec 10 2009 13:34:47
   8 //   Canon PowerShot A3100 IS
   9 
  10 // Values for makefile.inc
  11 //   DIGIC = 30# DIGIC III
  12 //   PLATFORMOSVER = 43
  13 //   PLATFORMID = 12785# (0x31f1) Found @ 0xfffe0130
  14 //   MAXRAMADDR = 0x03ffffff
  15 //   MEMISOSTART = 0x001488e0
  16 //   KEYSYS = d4a# Found @ 0xffff33e0
  17 //   NEED_ENCODED_DISKBOOT = 4# Found @ 0xffff33f0
  18 //   ARAM_HEAP_START = 0x34e000# Found @ 0xff93a484
  19 //   ARAM_HEAP_SIZE  = 0x32000# Found @ 0xff93a444
  20 
  21 // Detected address ranges:
  22 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  23 // RAM data 0x00001900 - 0x0000c4c8 copied from 0xffb65644 (  43976 bytes)
  24 
  25 // Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S'
  26 //    Name                                     Address      Rule  %  Comp to stubs_entry_2.S
  27 //NHSTUB(kbd_pwr_off                          ,0xff85471c) //  2 64%    *** != 0xff85472c
  28 NHSTUB(kbd_pwr_on                             ,0xff8546dc) //  2 82%
  29 
  30 // Check of modemap from 'platform/CAMERA/shooting.c':
  31 // Firmware modemap table found @ffa57c40 -> ffb44890
  32 // No problems found with modemap table.
  33 
  34 // Values below can be overridden in 'stubs_min.S':
  35 DEF(physw_status                            ,0x00030114) // Found @0xff833cd4
  36 DEF(physw_run                               ,0x00001bf0) // Found @0xff833938
  37 DEF(physw_sleep_delay                       ,0x00001bf8) // Found @0xff833938
  38 DEF(levent_table                            ,0xffafa7e0) // Found @0xffafa7e0
  39 DEF(FlashParamsTable                        ,0xffb44a88) // Found @0xffb44a88
  40 DEF(movie_status                            ,0x00005908) // Found @0xff92d8e8
  41 DEF(full_screen_refresh                     ,0x00007e5c) // Found @0xff9b2870
  42 DEF(canon_menu_active                       ,0x00002ba8) // Found @0xff87ec34
  43 DEF(canon_shoot_menu_active                 ,0x00006c15) // Found @0xff967e48
  44 DEF(playrec_mode                            ,0x000028f0) // Found @0xff871ea4
  45 DEF(zoom_status                             ,0x0000a9b0) // Found @0xffa5b12c
  46 DEF(some_flag_for_af_scan                   ,0x00005cb8) // Found @0xff9306e0
  47 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  48 // each entry contains 3 int value(s), the first is the zoom focus length.
  49 // there are 8 entries in the table - set NUM_FL to 8
  50 DEF(focus_len_table                         ,0xfffe29b0) // Found @0xfffe29b0
  51 DEF(zoom_busy                               ,0x0000585c) // Found @0xff9299f4
  52 DEF(focus_busy                              ,0x00005700) // Found @0xff925420
  53 DEF(recreview_hold                          ,0x000031e0) // Found @0xff88bb24
  54 DEF(viewport_buffers                        ,0xffae1370) // Found @0xff8cec74
  55 DEF(active_viewport_buffer                  ,0x0000437c) // Found @0xff8ceabc
  56 // Camera appears to have only 1 RAW buffer @ 0x110b7260 (Found @0xffaadc34)
  57 DEF(fileio_semaphore                        ,0x000025dc) // Found @0xff86162c
  58 DEF(exmem_alloc_table                       ,0x00035da0) // Found @0xff878704
  59 DEF(exmem_types_table                       ,0xffb6673c) // Found @0x000029f8
  60 DEF_CONST(exmem_type_count                  ,0x00000012)
  61 DEF(imager_active                           ,0x00001ecc) // Found @0xff8487ec (0x1ec8 + 4)
  62 DEF_CONST(uiprop_count                      ,0x00000074) // Found @0xff955d6c
  63 
  64 // Values below go in 'lib.c':
  65 //void *vid_get_bitmap_fb()        { return (void*)0x103e1000; }             // Found @0xff84fdfc
  66 //void *vid_get_viewport_fb()      { return (void*)0x106f3bc0; }             // Found @0xffaaa904
  67 DEF(viewport_fb_d                           ,0x00002684) // Found 0x2630 (@0xff86475c) + 0x54 (@0xff864788)
  68 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2630+0x54)); } // Found @0xff86475c & 0xff864788
  69 DEF(jpeg_count_str                          ,0x00076b3c) // Found @0xff9a9074
  70 //char *camera_jpeg_count_str()    { return (char*)0x00076b3c; }             // Found @0xff9a9074
  71 //int get_flash_params_count(void) { return 0x94; }                          // Found @0xff9567b0
  72 
  73 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  74 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffad98fc, levent 0x90a
  75 //#define SD_READONLY_IDX     2
  76 //#define USB_MASK            0x00040000 // Found @0xffad9908, levent 0x902
  77 //#define USB_IDX             2
  78 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffad98e4, levent 0x905
  79 //#define BATTCOVER_IDX       2
  80 //#define ANALOG_AV_FLAG      0x10000000 // Found @0xffad9800, levent 0x900 (non-inverted logic)
  81 //#define ANALOG_AV_IDX       1
  82 
  83 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  84 //static KeyMap keymap[] = {
  85 //    { 1, KEY_POWER           ,0x00000400 }, // Found @0xffad97f4, levent 0x600
  86 //    { 1, KEY_PLAYBACK        ,0x20000000 }, // Found @0xffad980c, levent 0x601
  87 //    { 2, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffad983c, levent 0x01
  88 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffad983c, levent 0x01
  89 //    { 2, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffad9830, levent 0x00
  90 //    { 2, KEY_ZOOM_IN         ,0x00000004 }, // Found @0xffad9848, levent 0x02
  91 //    { 2, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffad9854, levent 0x03
  92 //    { 2, KEY_UP              ,0x00000010 }, // Found @0xffad9860, levent 0x04
  93 //    { 2, KEY_DOWN            ,0x00000020 }, // Found @0xffad986c, levent 0x05
  94 //    { 2, KEY_RIGHT           ,0x00000040 }, // Found @0xffad9878, levent 0x07
  95 //    { 2, KEY_LEFT            ,0x00000080 }, // Found @0xffad9884, levent 0x06
  96 //    { 2, KEY_SET             ,0x00000100 }, // Found @0xffad9890, levent 0x08
  97 //    { 2, KEY_MENU            ,0x00000200 }, // Found @0xffad989c, levent 0x09
  98 //    { 2, KEY_DISPLAY         ,0x00000400 }, // Found @0xffad98a8, levent 0x0a
  99 //    { 0, 0, 0 }
 100 //};
 101 
 102 // Values below go in 'platform_camera.h':
 103 //#define CAM_DRYOS         1
 104 //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
 105 //#define CAM_RAW_ROWPIX    4080 // Found @0xff9054e0
 106 //#define CAM_RAW_ROWS      3048 // Found @0xff9054e8
 107 //#undef  CAM_UNCACHED_BIT
 108 //#define CAM_UNCACHED_BIT  0x10000000 // Found @0xff8397e8
 109 //#define CAM_DATE_FOLDER_NAMING 0x100 // Found @0xffa171ec (pass as 3rd param to GetImageFolder)
 110 //#define PARAM_CAMERA_NAME 4 // Found @0xffb46cec
 111 
 112 // Known propcases
 113 // //      PROPCASE_AFSTEP 13
 114 // #define PROPCASE_FOCUS_STATE 18
 115 // #define PROPCASE_AV 23
 116 // #define PROPCASE_BV 34
 117 // //      PROPCASE_DELTA_DIGITALGAIN 77
 118 // #define PROPCASE_DELTA_SV 79
 119 // //      PROPCASE_DELTA_ND 80
 120 // #define PROPCASE_EV_CORRECTION_2 209
 121 // #define PROPCASE_ORIENTATION_SENSOR 221
 122 // #define PROPCASE_SV_MARKET 248
 123 // //      PROPCASE_SVFIX 249
 124 // #define PROPCASE_TV 264
 125 // Guessed propset: 3
 126 
 127 // Misc stuff
 128 DEF(ctypes, 0xffad9112)
 129 
 130 // EXMEM types:
 131 // EXMEM_RAMDISK        0
 132 // EXMEM_COM            1
 133 // EXMEM_FORMATTER      2
 134 // EXMEM_SHADING        3
 135 // EXMEM_FAMODE         4
 136 // EXMEM_FIRMUP         5
 137 // EXMEM_FIRMUP_VRAM    6
 138 // EXMEM_FIRMUP_INFLATE 7
 139 // EXMEM_DVLPWORK       8
 140 // EXMEM_EVF            9
 141 // EXMEM_SCRIPT         10
 142 // EXMEM_FILESTORE      11
 143 // EXMEM_MOVIE_REC      12
 144 // EXMEM_MOVIE_PLY      13
 145 // EXMEM_WIDE           14
 146 // EXMEM_NARROW         15
 147 // EXMEM_CRAW_REC       16
 148 // EXMEM_PCEVF          17
 149 
 150 // ISR flag: 0x1964, pointer to current task's control block: 0x1960
 151 // pointer to TCB area: 0x19f4, found @ 0xff816efc
 152 
 153 // LED table init @ 0xff8eca80
 154 // LED #1: 0xc0220010, offset 0x170
 155 // LED #2: 0xc0220008, offset 0x1d8
 156 
 157 // For capt_seq.c
 158 DEF(_nrflag,0x5c98) // Found @ ff93266c (0x5ca0) & ff93268c (-0x08)
 159 //static long *nrflag = (long*)(0x5ca0-0x08);  // Found @ ff93266c & ff932688
 160 
 161 // Stubs below matched 100%.
 162 //    Name                                     Address                Comp to stubs_entry_2.S
 163 NHSTUB(AllocateUncacheableMemory              ,0xff8397a4) //112
 164 NHSTUB(Close                                  ,0xff8362b8) //120
 165 NHSTUB(CreateBinarySemaphore                  ,0xff81ee30) //115
 166 NHSTUB(CreateTask                             ,0xff81f110) //120
 167 NHSTUB(DebugAssert                            ,0xff81f5e8) //107
 168 NHSTUB(DeleteDirectory_Fut                    ,0xff835d14) //116
 169 NHSTUB(DeleteFile_Fut                         ,0xff835c30) //112
 170 NHSTUB(DoAELock                               ,0xff83788c) //120
 171 NHSTUB(DoAFLock                               ,0xff837744) //120
 172 NHSTUB(EnterToCompensationEVF                 ,0xff8377f4) //104
 173 NHSTUB(ExecuteEventProcedure                  ,0xff87a350) //104
 174 NHSTUB(ExitFromCompensationEVF                ,0xff837838) //104
 175 NHSTUB(ExitTask                               ,0xff81f3a0) //120
 176 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff8452e8) //104
 177 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff8453c0) //104
 178 NHSTUB(Fclose_Fut                             ,0xff835dac) //120
 179 NHSTUB(Feof_Fut                               ,0xff835f98) //  1
 180 NHSTUB(Fflush_Fut                             ,0xff835fd4) //  1
 181 NHSTUB(Fgets_Fut                              ,0xff835f00) //  1
 182 NHSTUB(Fopen_Fut                              ,0xff835d6c) //120
 183 NHSTUB(Fread_Fut                              ,0xff835e58) //120
 184 NHSTUB(FreeUncacheableMemory                  ,0xff8397e4) //112
 185 NHSTUB(Fseek_Fut                              ,0xff835f4c) //120
 186 NHSTUB(Fwrite_Fut                             ,0xff835eac) //120
 187 NHSTUB(GetBatteryTemperature                  ,0xff8567fc) //102
 188 NHSTUB(GetCCDTemperature                      ,0xff856788) //102
 189 NHSTUB(GetCurrentAvValue                      ,0xff926ca0) //120
 190 NHSTUB(GetCurrentShutterSpeed                 ,0xff899e80) //120
 191 NHSTUB(GetDrive_ClusterSize                   ,0xff863130) //122
 192 NHSTUB(GetDrive_FreeClusters                  ,0xff863190) //  4
 193 NHSTUB(GetDrive_TotalClusters                 ,0xff863164) //  3
 194 NHSTUB(GetFocusLensSubjectDistance            ,0xff925f98) //102
 195 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff9263f0) //  3
 196 NHSTUB(GetImageFolder                         ,0xff90c464) //122
 197 NHSTUB(GetKbdState                            ,0xff8546a8) //109
 198 NHSTUB(GetMemInfo                             ,0xff81a760) //115
 199 NHSTUB(GetOpticalTemperature                  ,0xff856870) //120
 200 NHSTUB(GetParameterData                       ,0xff956770) //101
 201 NHSTUB(GetPropertyCase                        ,0xff87e05c) //102
 202 NHSTUB(GetSystemTime                          ,0xffa47174) //120
 203 NHSTUB(GetVRAMHPixelsSize                     ,0xff8d010c) //120
 204 NHSTUB(GetVRAMVPixelsSize                     ,0xff8d0118) //120
 205 NHSTUB(GetZoomLensCurrentPoint                ,0xff929d6c) //120
 206 NHSTUB(GetZoomLensCurrentPosition             ,0xffa37b14) //102
 207 NHSTUB(GiveSemaphore                          ,0xff81f06c) //120
 208 NHSTUB(IsStrobeChargeCompleted                ,0xff8c04a8) //102
 209 NHSTUB(LEDDrive                               ,0xff853b80) //120
 210 NHSTUB(LocalTime                              ,0xff877dc0) //115
 211 NHSTUB(LockMainPower                          ,0xff882a2c) //120
 212 NHSTUB(MakeDirectory_Fut                      ,0xff835ca4) //116
 213 NHSTUB(MoveFocusLensToDistance                ,0xffaa7378) //102
 214 NHSTUB(MoveIrisWithAv                         ,0xffa4380c) //120
 215 NHSTUB(MoveZoomLensWithPoint                  ,0xffa43d9c) //120
 216 NHSTUB(MoveOpticalZoomAt                      ,0xff837304) //109
 217 NHSTUB(Open                                   ,0xff83624c) //120
 218 NHSTUB(PB2Rec                                 ,0xff885aa4) //104
 219 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff86b1dc) //120
 220 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff86b1b4) //120
 221 NHSTUB(PT_PlaySound                           ,0xff873aa0) //122
 222 NHSTUB(PostLogicalEventForNotPowerType        ,0xff88225c) //120
 223 NHSTUB(PostLogicalEventToUI                   ,0xff8822a8) //120
 224 NHSTUB(PutInNdFilter                          ,0xffa43c00) //102
 225 NHSTUB(PutOutNdFilter                         ,0xffa43c24) //102
 226 NHSTUB(Read                                   ,0xff81b270) //120
 227 NHSTUB(ReadFastDir                            ,0xffa2d14c) //  4
 228 NHSTUB(Rec2PB                                 ,0xff885ae4) //104
 229 NHSTUB(RefreshPhysicalScreen                  ,0xff9b3254) //104
 230 NHSTUB(RenameFile_Fut                         ,0xff835b9c) //116
 231 NHSTUB(Restart                                ,0xff83af88) //122
 232 NHSTUB(ScreenLock                             ,0xff9b4414) //117
 233 NHSTUB(ScreenUnlock                           ,0xff9b4458) //117
 234 NHSTUB(SetAE_ShutterSpeed                     ,0xffaa9b14) //102
 235 NHSTUB(SetAutoShutdownTime                    ,0xff882aa0) //120
 236 NHSTUB(SetCurrentCaptureModeType              ,0xff88943c) //120
 237 NHSTUB(SetFileAttributes                      ,0xff8365b0) //  3
 238 NHSTUB(SetFileTimeStamp                       ,0xff836554) //  4
 239 NHSTUB(SetLogicalEventActive                  ,0xff8827a4) //120
 240 NHSTUB(SetParameterData                       ,0xff9566e0) //101
 241 NHSTUB(SetPropertyCase                        ,0xff87df2c) //102
 242 NHSTUB(SetScriptMode                          ,0xff8827f4) //120
 243 NHSTUB(SleepTask                              ,0xff839628) //120
 244 NHSTUB(TakeSemaphore                          ,0xff81ef9c) //120
 245 NHSTUB(TurnOffBackLight                       ,0xff88e2a8) //104
 246 NHSTUB(TurnOnBackLight                        ,0xff88e290) //104
 247 NHSTUB(TurnOnDisplay                          ,0xff8500d8) //120
 248 NHSTUB(TurnOffDisplay                         ,0xff850104) //120
 249 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff944bfc) //120
 250 NHSTUB(UnlockAE                               ,0xff8378b0) //120
 251 NHSTUB(UnlockAF                               ,0xff83777c) //120
 252 NHSTUB(UnlockMainPower                        ,0xff882980) //120
 253 NHSTUB(UnsetZoomForMovie                      ,0xff95c6c8) //104
 254 NHSTUB(UpdateMBROnFlash                       ,0xff862fb0) //105
 255 NHSTUB(VbattGet                               ,0xff832cf0) //120
 256 NHSTUB(Write                                  ,0xff836348) //120
 257 NHSTUB(WriteSDCard                            ,0xff9196d8) //108
 258 NHSTUB(_log                                   ,0xffad6bd4) //111
 259 NHSTUB(_log10                                 ,0xffad5b18) //112
 260 NHSTUB(_pow                                   ,0xffad5c88) //121
 261 NHSTUB(_sqrt                                  ,0xffad7f3c) //  1
 262 NHSTUB(add_ptp_handler                        ,0xff9f665c) //121
 263 NHSTUB(apex2us                                ,0xff9b577c) //121
 264 NHSTUB(close                                  ,0xff81b088) //109
 265 NHSTUB(err_init_task                          ,0xff815f50) //111
 266 NHSTUB(exmem_alloc                            ,0xff878d00) //103
 267 NHSTUB(exmem_ualloc                           ,0xff878b54) //103
 268 NHSTUB(exmem_ufree                            ,0xff878ca0) //103
 269 NHSTUB(free                                   ,0xff814160) //112
 270 NHSTUB(get_nd_value                           ,0xffa35de8) //123
 271 NHSTUB(get_current_nd_value                   ,0xffa35da4) //122
 272 NHSTUB(kbd_p1_f                               ,0xff833d54) //109
 273 NHSTUB(kbd_p1_f_cont                          ,0xff833d60) //109
 274 NHSTUB(kbd_p2_f                               ,0xff833604) //109
 275 NHSTUB(kbd_read_keys                          ,0xff833cd4) //109
 276 NHSTUB(kbd_read_keys_r2                       ,0xff854028) //109
 277 NHSTUB(lseek                                  ,0xff8363d4) //120
 278 NHSTUB(malloc                                 ,0xff814104) //112
 279 NHSTUB(memcmp                                 ,0xff821280) //120
 280 NHSTUB(memcpy                                 ,0xff83ee14) //120
 281 NHSTUB(memset                                 ,0xff9b47b4) //120
 282 NHSTUB(mkdir                                  ,0xff836754) //109
 283 NHSTUB(mktime_ext                             ,0xff8959e0) //  1
 284 NHSTUB(open                                   ,0xff81afd8) //109
 285 NHSTUB(OpenFastDir                            ,0xffa2cff8) //  4
 286 NHSTUB(closedir                               ,0xffa2cfa8) //121
 287 NHSTUB(get_fstype                             ,0xff8631b4) //122
 288 NHSTUB(qsort                                  ,0xffa8dea0) //  4
 289 NHSTUB(rand                                   ,0xff821388) //121
 290 NHSTUB(realloc                                ,0xff9b4830) //115
 291 NHSTUB(reboot_fw_update                       ,0xffa2e9c0) //106
 292 NHSTUB(set_control_event                      ,0xff8824c4) //111
 293 NHSTUB(srand                                  ,0xff82137c) //122
 294 NHSTUB(stat                                   ,0xff83641c) //109
 295 NHSTUB(strcat                                 ,0xff89519c) //  1
 296 NHSTUB(strchr                                 ,0xff813fe8) //  1
 297 NHSTUB(strcmp                                 ,0xff82123c) //120
 298 NHSTUB(strcpy                                 ,0xff821224) //120
 299 NHSTUB(strftime                               ,0xff8953e8) //113
 300 NHSTUB(strlen                                 ,0xff814034) //120
 301 NHSTUB(strncmp                                ,0xff813f9c) //  1
 302 NHSTUB(strncpy                                ,0xff813f60) //  1
 303 NHSTUB(strrchr                                ,0xff81400c) //  1
 304 NHSTUB(strtol                                 ,0xff83f0f4) //101
 305 NHSTUB(strtolx                                ,0xff83eef8) //109
 306    DEF(task_CaptSeq                           ,0xff86d6a0) //120
 307    DEF(task_DvlpSeqTask                       ,0xff9332a8) //120
 308    DEF(task_ExpDrv                            ,0xff8aa748) //120
 309    DEF(task_FileWrite                         ,0xffa27c24) //120
 310    DEF(task_InitFileModules                   ,0xff886470) //120
 311    DEF(task_MovieRecord                       ,0xff92db3c) //120
 312    DEF(task_PhySw                             ,0xff833934) //120
 313 NHSTUB(time                                   ,0xff8783a0) //109
 314 NHSTUB(vsprintf                               ,0xff8211e8) //115
 315 NHSTUB(EngDrvRead                             ,0xff834ba8) //102
 316 NHSTUB(PTM_GetCurrentItem                     ,0xff883460) //105
 317 NHSTUB(DisableISDriveError                    ,0xffa445d0) //120
 318 NHSTUB(CancelHPTimer                          ,0xff879a38) //119
 319 NHSTUB(SetHPTimerAfterNow                     ,0xff879930) //119
 320 NHSTUB(PT_MFOn                                ,0xff86b26c) //120
 321 NHSTUB(PT_MFOff                               ,0xff86b27c) //120
 322 NHSTUB(GetAdChValue                           ,0xff85180c) //120
 323 NHSTUB(get_ptp_buf_size                       ,0xff8d32a0) //122
 324 NHSTUB(get_ptp_file_buf                       ,0xff9f7ff4) //121
 325 NHSTUB(SetVideoOutType                        ,0xffaaa300) //109
 326 NHSTUB(GetVideoOutType                        ,0xffaaa264) //120

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