root/platform/ixus120_sd940/sub/103c/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 R39 (DRYOS version 2.3, release #0039)
   6 //   Firmware Ver GM1.03C   // Found @ 0xff883ab0, "GM1.03C" @ 0xff883abd
   7 //   Firmware build timestamp: Jan  7 2010 13:31:50
   8 //   Canon PowerShot SD940 IS
   9 
  10 // Values for makefile.inc
  11 //   DIGIC = 40# DIGIC 4
  12 //   PLATFORMOSVER = 39
  13 //   PLATFORMID = 12774# (0x31e6) Found @ 0xfffe0130
  14 //   MAXRAMADDR = 0x03ffffff
  15 //   MEMISOSTART = 0x0013ca18
  16 //   KEYSYS = d4# Found @ 0xffff3564
  17 //   NEED_ENCODED_DISKBOOT = 3# Found @ 0xffff3574
  18 //   ARAM_HEAP_START = 0x34e000# Found @ 0xff94b420
  19 //   ARAM_HEAP_SIZE  = 0x32000# Found @ 0xff94b3e0
  20 
  21 // Detected address ranges:
  22 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  23 // RAM data 0x00001900 - 0x0000df04 copied from 0xffbbecd0 (  50692 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                          ,0xff858e10) //  2 64%    *** != 0x00000000
  28 
  29 // Check of modemap from 'platform/CAMERA/shooting.c':
  30 // Firmware modemap table found @ffa75bcc -> ffb972e0
  31 // No problems found with modemap table.
  32 
  33 // Values below can be overridden in 'stubs_min.S':
  34 DEF(physw_status                            ,0x00031b78) // Found @0xff833554
  35 DEF(physw_run                               ,0x00001c44) // Found @0xff8331c8
  36 DEF(physw_sleep_delay                       ,0x00001c42) // Found @0xff8331c8
  37 DEF(levent_table                            ,0xffb42100) // Found @0xffb42100
  38 DEF(FlashParamsTable                        ,0xffb974c8) // Found @0xffb974c8
  39 DEF(movie_status                            ,0x00006260) // Found @0xff93d528
  40 DEF(video_compression_rate                  ,0x0000628c) // Found @0xff93d794
  41 DEF(full_screen_refresh                     ,0x00008bb0) // Found @0xff9cfb9c
  42 DEF(canon_menu_active                       ,0x00002d48) // Found @0xff885530
  43 DEF(canon_shoot_menu_active                 ,0x00007751) // Found @0xff97bb7c
  44 DEF(playrec_mode                            ,0x00002a7c) // Found @0xff877b4c
  45 DEF(zoom_status                             ,0x0000b9dc) // Found @0xffa78464
  46 DEF(some_flag_for_af_scan                   ,0x0000673c) // Found @0xff940518
  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 10 entries in the table - set NUM_FL to 10
  50 DEF(focus_len_table                         ,0xfffe2a8c) // Found @0xfffe2a8c
  51 DEF(zoom_busy                               ,0x000061cc) // Found @0xff93a5fc
  52 DEF(focus_busy                              ,0x00006078) // Found @0xff934b74
  53 DEF(recreview_hold                          ,0x000033a4) // Found @0xff894324
  54 // Palette colour tables  found @ 0xffb58c38
  55 DEF(active_palette_buffer                   ,0x00008bb8) // Found @0xff9cfad8
  56 DEF(palette_buffer_ptr                      ,0x00008bc4) // Found @0xff9cf7ac
  57 // Offset from start of palette_buffer to color data = 8 (Found @0xffaafc18)
  58 // Camera appears to have only 1 RAW buffer @ 0x4219d120 (Found @0xffad704c)
  59 DEF(fileio_semaphore                        ,0x00002740) // Found @0xff866d8c
  60 DEF(exmem_alloc_table                       ,0x00037f84) // Found @0xff87ee8c
  61 DEF(exmem_types_table                       ,0xffbbff68) // Found @0x00002b98
  62 DEF_CONST(exmem_type_count                  ,0x00000012)
  63 DEF(imager_active                           ,0x00001f6c) // Found @0xff848a34 (0x1f68 + 4)
  64 DEF_CONST(uiprop_count                      ,0x0000006e) // Found @0xff96ab8c
  65 
  66 // Values below go in 'lib.c':
  67 //void *vid_get_bitmap_fb()        { return (void*)0x403f1000; }             // Found @0xff8532dc
  68 //void *vid_get_viewport_fb()      { return (void*)0x4088b700; }             // Found @0xffad4920
  69 DEF(viewport_fb_d                           ,0x000027e8) // Found 0x2790 (@0xff869e3c) + 0x58 (@0xff869e74)
  70 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2790+0x58)); } // Found @0xff869e3c & 0xff869e74
  71 DEF(jpeg_count_str                          ,0x000700b0) // Found @0xff9c42f8
  72 //char *camera_jpeg_count_str()    { return (char*)0x000700b0; }             // Found @0xff9c42f8
  73 //int get_flash_params_count(void) { return 0x84; }                          // Found @0xff96b5d0
  74 
  75 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  76 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffb0c940, levent 0x90a
  77 //#define SD_READONLY_IDX     2
  78 //#define USB_MASK            0x00080000 // Found @0xffb0c958, levent 0x902
  79 //#define USB_IDX             2
  80 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffb0c928, levent 0x905
  81 //#define BATTCOVER_IDX       2
  82 //#define ANALOG_AV_FLAG      0x00040000 // Found @0xffb0c94c, levent 0x900 (non-inverted logic)
  83 //#define ANALOG_AV_IDX       2
  84 
  85 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  86 //static KeyMap keymap[] = {
  87 //    { 0, KEY_SET             ,0x00000004 }, // Found @0xffb0c880, levent 0x08
  88 //    { 0, KEY_DISPLAY         ,0x00000008 }, // Found @0xffb0c88c, levent 0x0a
  89 //    { 2, KEY_MENU            ,0x00000001 }, // Found @0xffb0c8a4, levent 0x09
  90 //    { 2, KEY_ZOOM_IN         ,0x00000004 }, // Found @0xffb0c8b0, levent 0x02
  91 //    { 2, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffb0c8bc, levent 0x03
  92 //    { 2, KEY_LEFT            ,0x00000010 }, // Found @0xffb0c8c8, levent 0x06
  93 //    { 2, KEY_RIGHT           ,0x00000020 }, // Found @0xffb0c8d4, levent 0x07
  94 //    { 2, KEY_DOWN            ,0x00000040 }, // Found @0xffb0c8e0, levent 0x05
  95 //    { 2, KEY_UP              ,0x00000080 }, // Found @0xffb0c8ec, levent 0x04
  96 //    { 2, KEY_SHOOT_FULL      ,0x00000300 }, // Found @0xffb0c904, levent 0x01
  97 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000200 }, // Found @0xffb0c904, levent 0x01
  98 //    { 2, KEY_SHOOT_HALF      ,0x00000100 }, // Found @0xffb0c8f8, levent 0x00
  99 //    { 2, KEY_POWER           ,0x00000400 }, // Found @0xffb0c910, levent 0x600
 100 //    { 2, KEY_PLAYBACK        ,0x00000800 }, // Found @0xffb0c91c, levent 0x601
 101 //    { 0, 0, 0 }
 102 //};
 103 
 104 // Values below go in 'platform_camera.h':
 105 //#define CAM_DRYOS         1
 106 //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
 107 //#define CAM_RAW_ROWPIX    4080 // Found @0xff91124c
 108 //#define CAM_RAW_ROWS      3048 // Found @0xff911254
 109 //#undef  CAM_UNCACHED_BIT
 110 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff8388dc
 111 //#define CAM_DATE_FOLDER_NAMING 0x100 // Found @0xffa398dc (pass as 3rd param to GetImageFolder)
 112 //#define PARAM_CAMERA_NAME 4 // Found @0xffb99854
 113 
 114 // Known propcases
 115 // //      PROPCASE_AFSTEP 13
 116 // #define PROPCASE_FOCUS_STATE 18
 117 // #define PROPCASE_AV 23
 118 // #define PROPCASE_BV 34
 119 // //      PROPCASE_DELTA_DIGITALGAIN 77
 120 // #define PROPCASE_DELTA_SV 79
 121 // //      PROPCASE_DELTA_ND 80
 122 // #define PROPCASE_EV_CORRECTION_2 209
 123 // #define PROPCASE_ORIENTATION_SENSOR 221
 124 // #define PROPCASE_SV_MARKET 248
 125 // //      PROPCASE_SVFIX 249
 126 // #define PROPCASE_TV 264
 127 // Guessed propset: 3
 128 
 129 // Misc stuff
 130 DEF(ctypes, 0xffb0b3fa)
 131 
 132 // EXMEM types:
 133 // EXMEM_RAMDISK        0
 134 // EXMEM_COM            1
 135 // EXMEM_FORMATTER      2
 136 // EXMEM_SHADING        3
 137 // EXMEM_FAMODE         4
 138 // EXMEM_FIRMUP         5
 139 // EXMEM_FIRMUP_VRAM    6
 140 // EXMEM_FIRMUP_INFLATE 7
 141 // EXMEM_DVLPWORK       8
 142 // EXMEM_EVF            9
 143 // EXMEM_SCRIPT         10
 144 // EXMEM_FILESTORE      11
 145 // EXMEM_MOVIE_REC      12
 146 // EXMEM_MOVIE_PLY      13
 147 // EXMEM_WIDE           14
 148 // EXMEM_NARROW         15
 149 // EXMEM_CRAW_REC       16
 150 // EXMEM_PCEVF          17
 151 
 152 // ISR flag: 0x1964, pointer to current task's control block: 0x1960
 153 // pointer to TCB area: 0x19f0, found @ 0xff81683c
 154 
 155 // LED table init @ 0xff8f38e4
 156 // LED #1: 0xc0220130, offset 0x4
 157 // LED #2: 0xc0220134, offset 0x44
 158 
 159 // For capt_seq.c
 160 DEF(_nrflag,0x6718) // Found @ ff942680 (0x6720) & ff9426a0 (-0x08)
 161 //static long *nrflag = (long*)(0x6720-0x08);  // Found @ ff942680 & ff94269c
 162 
 163 // Stubs below matched 100%.
 164 //    Name                                     Address                Comp to stubs_entry_2.S
 165 NHSTUB(AllocateUncacheableMemory              ,0xff838898) //112
 166 NHSTUB(Close                                  ,0xff8353b4) //120
 167 NHSTUB(CreateBinarySemaphore                  ,0xff838078) //115
 168 NHSTUB(CreateTask                             ,0xff81e5b4) //120
 169 NHSTUB(DebugAssert                            ,0xff81e88c) //107
 170 NHSTUB(DeleteDirectory_Fut                    ,0xff834e24) //116
 171 NHSTUB(DeleteFile_Fut                         ,0xff834d40) //112
 172 NHSTUB(DoAELock                               ,0xff836a6c) //120
 173 NHSTUB(DoAFLock                               ,0xff83687c) //120
 174 NHSTUB(EnterToCompensationEVF                 ,0xff8369d4) //104
 175 NHSTUB(ExecuteEventProcedure                  ,0xff880c54) //104
 176 NHSTUB(ExitFromCompensationEVF                ,0xff836a18) //104
 177 NHSTUB(ExitTask                               ,0xff81e844) //120
 178 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff844034) //104
 179 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff84410c) //104
 180 NHSTUB(Fclose_Fut                             ,0xff834ebc) //120
 181 NHSTUB(Feof_Fut                               ,0xff8350a8) //  1
 182 NHSTUB(Fflush_Fut                             ,0xff8350e4) //  1
 183 NHSTUB(Fgets_Fut                              ,0xff835010) //  1
 184 NHSTUB(Fopen_Fut                              ,0xff834e7c) //120
 185 NHSTUB(Fread_Fut                              ,0xff834f68) //120
 186 NHSTUB(FreeUncacheableMemory                  ,0xff8388d8) //112
 187 NHSTUB(Fseek_Fut                              ,0xff83505c) //120
 188 NHSTUB(Fwrite_Fut                             ,0xff834fbc) //120
 189 NHSTUB(GetBatteryTemperature                  ,0xff85bd0c) //102
 190 NHSTUB(GetCCDTemperature                      ,0xff85bc98) //102
 191 NHSTUB(GetCurrentAvValue                      ,0xff936720) //120
 192 NHSTUB(GetCurrentShutterSpeed                 ,0xff8a2dac) //120
 193 NHSTUB(GetDrive_ClusterSize                   ,0xff868774) //122
 194 NHSTUB(GetDrive_FreeClusters                  ,0xff8687d4) //  3
 195 NHSTUB(GetDrive_TotalClusters                 ,0xff8687a8) //  3
 196 NHSTUB(GetFocusLensSubjectDistance            ,0xff9358ec) //102
 197 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff935d34) //  3
 198 NHSTUB(GetImageFolder                         ,0xff919078) //122
 199 NHSTUB(GetKbdState                            ,0xff858df8) //109
 200 NHSTUB(GetMemInfo                             ,0xff81a070) //115
 201 NHSTUB(GetOpticalTemperature                  ,0xff85bd80) //120
 202 NHSTUB(GetParameterData                       ,0xff96b590) //101
 203 NHSTUB(GetPropertyCase                        ,0xff8849a4) //102
 204 NHSTUB(GetSystemTime                          ,0xffa69ef8) //120
 205 NHSTUB(GetVRAMHPixelsSize                     ,0xff8da340) //120
 206 NHSTUB(GetVRAMVPixelsSize                     ,0xff8da34c) //120
 207 NHSTUB(GetZoomLensCurrentPoint                ,0xff93a970) //120
 208 NHSTUB(GetZoomLensCurrentPosition             ,0xffa5db08) //102
 209 NHSTUB(GiveSemaphore                          ,0xff8382b4) //120
 210 NHSTUB(IsStrobeChargeCompleted                ,0xff8bc2c4) //102
 211 NHSTUB(LEDDrive                               ,0xff8582f4) //120
 212 NHSTUB(LocalTime                              ,0xff87e5c8) //115
 213 NHSTUB(LockMainPower                          ,0xff88aabc) //120
 214 NHSTUB(MakeDirectory_Fut                      ,0xff834db4) //116
 215 NHSTUB(MoveFocusLensToDistance                ,0xffad12ac) //102
 216 NHSTUB(MoveIrisWithAv                         ,0xffa679e0) //120
 217 NHSTUB(MoveZoomLensWithPoint                  ,0xffa67f6c) //120
 218 NHSTUB(MoveOpticalZoomAt                      ,0xff83640c) //109
 219 NHSTUB(Open                                   ,0xff83535c) //120
 220 NHSTUB(PB2Rec                                 ,0xff88da58) //104
 221 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff870990) //120
 222 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff870968) //120
 223 NHSTUB(PT_PlaySound                           ,0xff879764) //102
 224 NHSTUB(PostLogicalEventForNotPowerType        ,0xff88a2f4) //120
 225 NHSTUB(PostLogicalEventToUI                   ,0xff88a340) //120
 226 NHSTUB(PutInNdFilter                          ,0xffa67dd0) //102
 227 NHSTUB(PutOutNdFilter                         ,0xffa67df4) //102
 228 NHSTUB(Read                                   ,0xff81ab78) //120
 229 NHSTUB(ReadFastDir                            ,0xffa4d2c0) //  3
 230 NHSTUB(Rec2PB                                 ,0xff88da98) //104
 231 NHSTUB(RefreshPhysicalScreen                  ,0xff9d206c) //104
 232 NHSTUB(RenameFile_Fut                         ,0xff834cac) //116
 233 NHSTUB(Restart                                ,0xff839ff0) //122
 234 NHSTUB(ScreenLock                             ,0xff9d1e44) //117
 235 NHSTUB(ScreenUnlock                           ,0xff9d1e84) //117
 236 NHSTUB(SetAE_ShutterSpeed                     ,0xffad3a98) //102
 237 NHSTUB(SetAutoShutdownTime                    ,0xff88ab30) //120
 238 NHSTUB(SetCurrentCaptureModeType              ,0xff891b68) //120
 239 NHSTUB(SetFileAttributes                      ,0xff835684) //  3
 240 NHSTUB(SetFileTimeStamp                       ,0xff835640) //  3
 241 NHSTUB(SetLogicalEventActive                  ,0xff88a838) //120
 242 NHSTUB(SetParameterData                       ,0xff96b500) //101
 243 NHSTUB(SetPropertyCase                        ,0xff8848a8) //102
 244 NHSTUB(SetScriptMode                          ,0xff88a888) //120
 245 NHSTUB(SleepTask                              ,0xff83851c) //120
 246 NHSTUB(TakeSemaphore                          ,0xff8381e4) //120
 247 NHSTUB(TurnOffBackLight                       ,0xff8976a8) //104
 248 NHSTUB(TurnOnBackLight                        ,0xff897690) //104
 249 NHSTUB(TurnOnDisplay                          ,0xff8534e0) //120
 250 NHSTUB(TurnOffDisplay                         ,0xff8534f0) //120
 251 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff956904) //120
 252 NHSTUB(UnlockAE                               ,0xff836a90) //120
 253 NHSTUB(UnlockAF                               ,0xff8368b4) //120
 254 NHSTUB(UnlockMainPower                        ,0xff88aa10) //120
 255 NHSTUB(UnsetZoomForMovie                      ,0xff9714ac) //104
 256 NHSTUB(UpdateMBROnFlash                       ,0xff8685f4) //105
 257 NHSTUB(VbattGet                               ,0xff831df4) //120
 258 NHSTUB(Write                                  ,0xff835444) //120
 259 NHSTUB(WriteSDCard                            ,0xff926720) //108
 260 NHSTUB(_log                                   ,0xffb08ebc) //111
 261 NHSTUB(_log10                                 ,0xffb07e00) //112
 262 NHSTUB(_pow                                   ,0xffb07f70) //121
 263 NHSTUB(_sqrt                                  ,0xffb0a224) //  1
 264 NHSTUB(add_ptp_handler                        ,0xffa1700c) //121
 265 NHSTUB(apex2us                                ,0xff9d555c) //121
 266 NHSTUB(close                                  ,0xff81a990) //109
 267 NHSTUB(err_init_task                          ,0xff815f28) //111
 268 NHSTUB(exmem_alloc                            ,0xff87f488) //103
 269 NHSTUB(exmem_ualloc                           ,0xff87f2dc) //103
 270 NHSTUB(exmem_ufree                            ,0xff87f428) //103
 271 NHSTUB(free                                   ,0xff814138) //112
 272 NHSTUB(get_nd_value                           ,0xffa5b88c) //123
 273 NHSTUB(get_current_nd_value                   ,0xffa5b848) //122
 274 NHSTUB(kbd_p1_f                               ,0xff8335d0) //109
 275 NHSTUB(kbd_p1_f_cont                          ,0xff8335dc) //109
 276 NHSTUB(kbd_p2_f                               ,0xff832e94) //109
 277 NHSTUB(kbd_read_keys                          ,0xff833554) //109
 278 NHSTUB(kbd_read_keys_r2                       ,0xff8587b8) //109
 279 NHSTUB(lseek                                  ,0xff8354d0) //120
 280 NHSTUB(malloc                                 ,0xff8140dc) //112
 281 NHSTUB(memcmp                                 ,0xff8203d8) //120
 282 NHSTUB(memcpy                                 ,0xff83de48) //120
 283 NHSTUB(memset                                 ,0xff9d45ac) //120
 284 NHSTUB(mkdir                                  ,0xff835828) //109
 285 NHSTUB(mktime_ext                             ,0xff89eaf4) //  1
 286 NHSTUB(open                                   ,0xff81a8e0) //109
 287 NHSTUB(OpenFastDir                            ,0xffa4d18c) //  3
 288 NHSTUB(closedir                               ,0xffa4d148) //  3
 289 NHSTUB(get_fstype                             ,0xff8687f8) //122
 290 NHSTUB(qsort                                  ,0xffab58d4) //  1
 291 NHSTUB(rand                                   ,0xff8204e0) //121
 292 NHSTUB(realloc                                ,0xff9d4628) //115
 293 NHSTUB(reboot_fw_update                       ,0xffa527d0) //106
 294 NHSTUB(set_control_event                      ,0xff88a55c) //111
 295 NHSTUB(srand                                  ,0xff8204d4) //122
 296 NHSTUB(stat                                   ,0xff83550c) //109
 297 NHSTUB(strcat                                 ,0xff89e2b0) //  1
 298 NHSTUB(strchr                                 ,0xff813fc0) //  1
 299 NHSTUB(strcmp                                 ,0xff820394) //120
 300 NHSTUB(strcpy                                 ,0xff82037c) //120
 301 NHSTUB(strftime                               ,0xff89e4fc) //  1
 302 NHSTUB(strlen                                 ,0xff81400c) //120
 303 NHSTUB(strncmp                                ,0xff813f74) //  1
 304 NHSTUB(strncpy                                ,0xff813f38) //  1
 305 NHSTUB(strrchr                                ,0xff813fe4) //  1
 306 NHSTUB(strtol                                 ,0xff83e128) //101
 307 NHSTUB(strtolx                                ,0xff83df2c) //109
 308    DEF(task_CaptSeq                           ,0xff872fe0) //120
 309    DEF(task_DvlpSeqTask                       ,0xff8744e4) //120
 310    DEF(task_ExpDrv                            ,0xff8b2fd0) //120
 311    DEF(task_FileWrite                         ,0xffa48b1c) //120
 312    DEF(task_InitFileModules                   ,0xff88e57c) //120
 313    DEF(task_MovieRecord                       ,0xff93d810) //120
 314    DEF(task_PhySw                             ,0xff8331c4) //120
 315 NHSTUB(time                                   ,0xff87eb40) //109
 316 NHSTUB(vsprintf                               ,0xff820340) //115
 317 NHSTUB(EngDrvRead                             ,0xff834418) //102
 318 NHSTUB(PTM_GetCurrentItem                     ,0xff88b4d8) //105
 319 NHSTUB(DisableISDriveError                    ,0xffa6878c) //120
 320 NHSTUB(CancelHPTimer                          ,0xff88033c) //119
 321 NHSTUB(SetHPTimerAfterNow                     ,0xff880234) //119
 322 NHSTUB(PT_MFOn                                ,0xff870a20) //120
 323 NHSTUB(PT_MFOff                               ,0xff870a30) //120
 324 NHSTUB(GetAdChValue                           ,0xff854b44) //120
 325 NHSTUB(get_ptp_buf_size                       ,0xff8dd16c) //122
 326 NHSTUB(get_ptp_file_buf                       ,0xffa189f4) //121
 327 NHSTUB(SetVideoOutType                        ,0xffad42b4) //109
 328 NHSTUB(GetVideoOutType                        ,0xffad41e8) //120

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