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

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