root/platform/ixus200_sd980/sub/101d/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.01D   // Found @ 0xff887c8c, "GM1.01D" @ 0xff887c99
   7 //   Firmware build timestamp: Jan  7 2010 13:46:41
   8 //   Canon PowerShot SD980 IS
   9 
  10 // Values for makefile.inc
  11 //   PLATFORMOSVER = 39
  12 //   PLATFORMID = 12773 (0x31e5) // Found @ 0xfffe0130
  13 //   MAXRAMADDR = 0x03ffffff
  14 //   MEMISOSTART = 0x00153e84
  15 //   KEYSYS = d4                 // Found @ 0xffff3564
  16 //   NEED_ENCODED_DISKBOOT = 3   // Found @ 0xffff3574
  17 //   ARAM_HEAP_START = 0x38e000  // Found @ 0xff958f0c
  18 //   ARAM_HEAP_SIZE  = 0x32000   // Found @ 0xff958ecc
  19 
  20 // Detected address ranges:
  21 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  22 // RAM data 0x00001900 - 0x000208f0 copied from 0xffc029e4 ( 126960 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                            ,0xff85ae98) //  2 64%
  27 
  28 // Check of modemap from 'platform/CAMERA/shooting.c':
  29 // Firmware modemap table found @ffaab40c -> ffbdab64
  30 // No problems found with modemap table.
  31 
  32 // Values below can be overridden in 'stubs_min.S':
  33 DEF(physw_status                            ,0x00044558) // Found @0xff8335a8
  34 DEF(physw_run                               ,0x00001c44) // Found @0xff833200
  35 DEF(physw_sleep_delay                       ,0x00001c42) // Found @0xff833200
  36 DEF(levent_table                            ,0xffb7a458) // Found @0xffb7a458
  37 DEF(FlashParamsTable                        ,0xffbdad4c) // Found @0xffbdad4c
  38 DEF(movie_status                            ,0x000067e0) // Found @0xff94addc
  39 DEF(video_compression_rate                  ,0x0000680c) // Found @0xff94b048
  40 DEF(full_screen_refresh                     ,0x0001b2dc) // Found @0xff9f76d8
  41 DEF(canon_menu_active                       ,0x00002ec8) // Found @0xff889754
  42 DEF(canon_shoot_menu_active                 ,0x00007b09) // Found @0xff98db68
  43 DEF(playrec_mode                            ,0x00002bfc) // Found @0xff87bc2c
  44 DEF(zoom_status                             ,0x0001e3d4) // Found @0xffaade98
  45 DEF(some_flag_for_af_scan                   ,0x00006cd4) // Found @0xff94ddf8
  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 12 entries in the table - set NUM_FL to 12
  49 DEF(focus_len_table                         ,0xfffe2ac8) // Found @0xfffe2ac8
  50 DEF(zoom_busy                               ,0x0000670c) // Found @0xff946fbc
  51 DEF(focus_busy                              ,0x00006608) // Found @0xff9420e4
  52 DEF(recreview_hold                          ,0x00003818) // Found @0xff89a7c8
  53 // Palette colour tables  found @ 0xffb9403c
  54 DEF(active_palette_buffer                   ,0x0001b2e4) // Found @0xff9f7614
  55 DEF(palette_buffer_ptr                      ,0x0001b2f0) // Found @0xff9f72e8
  56 // Offset from start of palette_buffer to color data = 8 (Found @0xffae54e8)
  57 // Camera appears to have only 1 RAW buffer @ 0x421e1120 (Found @0xffb0e870)
  58 DEF(fileio_semaphore                        ,0x000028a0) // Found @0xff86a11c
  59 DEF(exmem_alloc_table                       ,0x0004aa48) // Found @0xff883068
  60 DEF(exmem_types_table                       ,0xffc03dfc) // Found @0x00002d18
  61 DEF_CONST(exmem_type_count                  ,0x00000012)
  62 DEF(imager_active                           ,0x00001f74) // Found @0xff848c28 (0x1f70 + 4)
  63 DEF_CONST(uiprop_count                      ,0x0000006e) // Found @0xff9792d4
  64 
  65 // Values below go in 'lib.c':
  66 //void *vid_get_bitmap_fb()        { return (void*)0x40431000; }             // Found @0xff853588
  67 //void *vid_get_viewport_fb()      { return (void*)0x408cb700; }             // Found @0xffb0ba3c
  68 DEF(viewport_fb_d                           ,0x00002948) // Found 0x28f0 (@0xff86d3a4) + 0x58 (@0xff86d3dc)
  69 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x28f0+0x58)); } // Found @0xff86d3a4 & 0xff86d3dc
  70 DEF(jpeg_count_str                          ,0x00084ca4) // Found @0xff9e8c64
  71 //char *camera_jpeg_count_str()    { return (char*)0x00084ca4; }             // Found @0xff9e8c64
  72 //int get_flash_params_count(void) { return 0x84; }                          // Found @0xff979d18
  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 @0xffb406a4, levent 0x90a
  76 //#define SD_READONLY_IDX     2
  77 //#define USB_MASK            0x00100000 // Found @0xffb406bc, levent 0x902
  78 //#define USB_IDX             2
  79 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffb4068c, levent 0x905
  80 //#define BATTCOVER_IDX       2
  81 //#define ANALOG_AV_FLAG      0x00080000 // Found @0xffb406b0, 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 //    { 2, KEY_MENU            ,0x00000001 }, // Found @0xffb405fc, levent 0x09
  87 //    { 2, KEY_SET             ,0x00000002 }, // Found @0xffb40608, levent 0x08
  88 //    { 2, KEY_ZOOM_IN         ,0x00000004 }, // Found @0xffb40614, levent 0x02
  89 //    { 2, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffb40620, levent 0x03
  90 //    { 2, KEY_LEFT            ,0x00000010 }, // Found @0xffb4062c, levent 0x06
  91 //    { 2, KEY_RIGHT           ,0x00000020 }, // Found @0xffb40638, levent 0x07
  92 //    { 2, KEY_DOWN            ,0x00000040 }, // Found @0xffb40644, levent 0x05
  93 //    { 2, KEY_UP              ,0x00000080 }, // Found @0xffb40650, levent 0x04
  94 //    { 2, KEY_SHOOT_FULL      ,0x00000300 }, // Found @0xffb40668, levent 0x01
  95 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000200 }, // Found @0xffb40668, levent 0x01
  96 //    { 2, KEY_SHOOT_HALF      ,0x00000100 }, // Found @0xffb4065c, levent 0x00
  97 //    { 2, KEY_POWER           ,0x00000400 }, // Found @0xffb40674, levent 0x600
  98 //    { 2, KEY_PLAYBACK        ,0x00000800 }, // Found @0xffb40680, levent 0x601
  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 @0xff91c00c
 106 //#define CAM_RAW_ROWS      3048 // Found @0xff91c014
 107 //#undef  CAM_UNCACHED_BIT
 108 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff838a1c
 109 //#define CAM_DATE_FOLDER_NAMING 0x100 // Found @0xffa65b10 (pass as 3rd param to GetImageFolder)
 110 //#define PARAM_CAMERA_NAME 4 // Found @0xffbdd0f8
 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, 0xffb3ecfa)
 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: 0x19f0, found @ 0xff81683c
 152 
 153 // LED table init @ 0xff8fc208
 154 // LED #1: 0xc0220130, offset 0x4
 155 // LED #2: 0xc0220134, offset 0x44
 156 
 157 // For capt_seq.c
 158 DEF(_nrflag,0x6cb0) // Found @ ff9500c0 (0x6cb8) & ff9500e0 (-0x08)
 159 //static long *nrflag = (long*)(0x6cb8-0x08);  // Found @ ff9500c0 & ff9500dc
 160 
 161 // Stubs below matched 100%.
 162 //    Name                                     Address                Comp to stubs_entry_2.S
 163 NHSTUB(AllocateUncacheableMemory              ,0xff8389d8) //112
 164 NHSTUB(Close                                  ,0xff835408) //120
 165 NHSTUB(CreateBinarySemaphore                  ,0xff8381b8) //115
 166 NHSTUB(CreateTask                             ,0xff81e5b4) //120
 167 NHSTUB(DebugAssert                            ,0xff81e88c) //107
 168 NHSTUB(DeleteDirectory_Fut                    ,0xff834e78) //116
 169 NHSTUB(DeleteFile_Fut                         ,0xff834d94) //112
 170 NHSTUB(DoAELock                               ,0xff836b78) //120
 171 NHSTUB(DoAFLock                               ,0xff8368f0) //120
 172 NHSTUB(EnterToCompensationEVF                 ,0xff836ae0) //104
 173 NHSTUB(ExecuteEventProcedure                  ,0xff884e30) //104
 174 NHSTUB(ExitFromCompensationEVF                ,0xff836b24) //104
 175 NHSTUB(ExitTask                               ,0xff81e844) //120
 176 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff844254) //104
 177 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff84432c) //104
 178 NHSTUB(Fclose_Fut                             ,0xff834f10) //120
 179 NHSTUB(Feof_Fut                               ,0xff8350fc) //  1
 180 NHSTUB(Fflush_Fut                             ,0xff835138) //  1
 181 NHSTUB(Fgets_Fut                              ,0xff835064) //  1
 182 NHSTUB(Fopen_Fut                              ,0xff834ed0) //120
 183 NHSTUB(Fread_Fut                              ,0xff834fbc) //120
 184 NHSTUB(FreeUncacheableMemory                  ,0xff838a18) //112
 185 NHSTUB(Fseek_Fut                              ,0xff8350b0) //120
 186 NHSTUB(Fwrite_Fut                             ,0xff835010) //120
 187 NHSTUB(GetBatteryTemperature                  ,0xff85e2ac) //102
 188 NHSTUB(GetCCDTemperature                      ,0xff85e238) //102
 189 NHSTUB(GetCurrentAvValue                      ,0xff944888) //120
 190 NHSTUB(GetCurrentShutterSpeed                 ,0xff8aa08c) //120
 191 NHSTUB(GetUsableMaxAv                         ,0xffb06018) //120
 192 NHSTUB(GetUsableMinAv                         ,0xffb06000) //120
 193 NHSTUB(GetDrive_ClusterSize                   ,0xff86bb04) //122
 194 NHSTUB(GetDrive_FreeClusters                  ,0xff86bb64) //  3
 195 NHSTUB(GetDrive_TotalClusters                 ,0xff86bb38) //  3
 196 NHSTUB(GetFocusLensSubjectDistance            ,0xff942e5c) //102
 197 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff9432a4) //  3
 198 NHSTUB(GetImageFolder                         ,0xff923e38) //122
 199 NHSTUB(GetKbdState                            ,0xff85ae80) //109
 200 NHSTUB(GetMemInfo                             ,0xff81a070) //115
 201 NHSTUB(GetOpticalTemperature                  ,0xff85e320) //120
 202 NHSTUB(GetParameterData                       ,0xff979cd8) //101
 203 NHSTUB(GetPropertyCase                        ,0xff888b98) //102
 204 NHSTUB(GetSystemTime                          ,0xffa9efc4) //120
 205 NHSTUB(GetVRAMHPixelsSize                     ,0xff8e1e64) //120
 206 NHSTUB(GetVRAMVPixelsSize                     ,0xff8e1e70) //120
 207 NHSTUB(GetZoomLensCurrentPoint                ,0xff947330) //120
 208 NHSTUB(GetZoomLensCurrentPosition             ,0xffa906b4) //102
 209 NHSTUB(GiveSemaphore                          ,0xff8383f4) //120
 210 NHSTUB(IsStrobeChargeCompleted                ,0xff8c3a74) //102
 211 NHSTUB(LEDDrive                               ,0xff85a31c) //120
 212 NHSTUB(LocalTime                              ,0xff8827a4) //115
 213 NHSTUB(LockMainPower                          ,0xff890a00) //120
 214 NHSTUB(MakeDirectory_Fut                      ,0xff834e08) //116
 215 NHSTUB(MoveFocusLensToDistance                ,0xffb08424) //102
 216 NHSTUB(MoveIrisWithAv                         ,0xffa9c500) //120
 217 NHSTUB(MoveZoomLensWithPoint                  ,0xffa9cb4c) //120
 218 NHSTUB(Open                                   ,0xff8353b0) //120
 219 NHSTUB(PB2Rec                                 ,0xff893a2c) //104
 220 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff87481c) //120
 221 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff8747f4) //120
 222 NHSTUB(PT_PlaySound                           ,0xff87d8f8) //102
 223 NHSTUB(PostLogicalEventForNotPowerType        ,0xff88e808) //120
 224 NHSTUB(PostLogicalEventToUI                   ,0xff88e854) //120
 225 NHSTUB(PutInNdFilter                          ,0xffb06084) //102
 226 NHSTUB(PutOutNdFilter                         ,0xffb060bc) //102
 227 NHSTUB(Read                                   ,0xff81ab78) //120
 228 NHSTUB(ReadFastDir                            ,0xffa7e3b0) //  3
 229 NHSTUB(Rec2PB                                 ,0xff893a6c) //104
 230 NHSTUB(RefreshPhysicalScreen                  ,0xff9f8850) //104
 231 NHSTUB(RenameFile_Fut                         ,0xff834d00) //116
 232 NHSTUB(Restart                                ,0xff83a130) //122
 233 NHSTUB(ScreenLock                             ,0xff9f9a70) //117
 234 NHSTUB(ScreenUnlock                           ,0xff9f9a98) //117
 235 NHSTUB(SetAE_ShutterSpeed                     ,0xffb0abb4) //102
 236 NHSTUB(SetAutoShutdownTime                    ,0xff890a74) //120
 237 NHSTUB(SetCurrentCaptureModeType              ,0xff897d54) //120
 238 NHSTUB(SetFileAttributes                      ,0xff8356d8) //  3
 239 NHSTUB(SetFileTimeStamp                       ,0xff835694) //  3
 240 NHSTUB(SetLogicalEventActive                  ,0xff89074c) //120
 241 NHSTUB(SetParameterData                       ,0xff979c48) //101
 242 NHSTUB(SetPropertyCase                        ,0xff888a94) //102
 243 NHSTUB(SetScriptMode                          ,0xff89079c) //120
 244 NHSTUB(SleepTask                              ,0xff83865c) //120
 245 NHSTUB(TakeSemaphore                          ,0xff838324) //120
 246 NHSTUB(TurnOffBackLight                       ,0xff89e308) //104
 247 NHSTUB(TurnOnBackLight                        ,0xff89e2f0) //104
 248 NHSTUB(TurnOnDisplay                          ,0xff8537d0) //120
 249 NHSTUB(TurnOffDisplay                         ,0xff8537e0) //120
 250 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff964484) //120
 251 NHSTUB(UnlockAE                               ,0xff836b9c) //120
 252 NHSTUB(UnlockAF                               ,0xff836928) //120
 253 NHSTUB(UnlockMainPower                        ,0xff890954) //120
 254 NHSTUB(UnsetZoomForMovie                      ,0xff97ff94) //104
 255 NHSTUB(UpdateMBROnFlash                       ,0xff86b984) //105
 256 NHSTUB(VbattGet                               ,0xff831e04) //120
 257 NHSTUB(Write                                  ,0xff835498) //120
 258 NHSTUB(WriteSDCard                            ,0xff933a1c) //108
 259 NHSTUB(_log                                   ,0xffb3be28) //111
 260 NHSTUB(_log10                                 ,0xffb3aab4) //112
 261 NHSTUB(_pow                                   ,0xffb3ac24) //121
 262 NHSTUB(_sqrt                                  ,0xffb3daac) //  1
 263 NHSTUB(add_ptp_handler                        ,0xffa3fb48) //121
 264 NHSTUB(apex2us                                ,0xff9fd5e8) //121
 265 NHSTUB(close                                  ,0xff81a990) //109
 266 NHSTUB(err_init_task                          ,0xff815f28) //111
 267 NHSTUB(exmem_alloc                            ,0xff883664) //103
 268 NHSTUB(exmem_free                             ,0xff8836dc) //103
 269 NHSTUB(free                                   ,0xff814138) //112
 270 NHSTUB(kbd_p1_f                               ,0xff833624) //109
 271 NHSTUB(kbd_p1_f_cont                          ,0xff833630) //109
 272 NHSTUB(kbd_p2_f                               ,0xff832ecc) //109
 273 NHSTUB(kbd_read_keys                          ,0xff8335a8) //109
 274 NHSTUB(kbd_read_keys_r2                       ,0xff85a83c) //109
 275 NHSTUB(lseek                                  ,0xff835524) //120
 276 NHSTUB(malloc                                 ,0xff8140dc) //112
 277 NHSTUB(memcmp                                 ,0xff8203e8) //120
 278 NHSTUB(memcpy                                 ,0xff83df94) //120
 279 NHSTUB(memset                                 ,0xff9fc15c) //120
 280 NHSTUB(mkdir                                  ,0xff83587c) //109
 281 NHSTUB(mktime_ext                             ,0xff8a5db8) //  1
 282 NHSTUB(open                                   ,0xff81a8e0) //109
 283 NHSTUB(OpenFastDir                            ,0xffa7e27c) //  3
 284 NHSTUB(closedir                               ,0xffa7e238) //  3
 285 NHSTUB(get_fstype                             ,0xff86bb88) //122
 286 NHSTUB(qsort                                  ,0xff9fc71c) //  1
 287 NHSTUB(rand                                   ,0xff8204f0) //121
 288 NHSTUB(realloc                                ,0xff9fc1d8) //115
 289 NHSTUB(reboot_fw_update                       ,0xffa838c0) //106
 290 NHSTUB(set_control_event                      ,0xff89037c) //111
 291 NHSTUB(srand                                  ,0xff8204e4) //122
 292 NHSTUB(stat                                   ,0xff835560) //109
 293 NHSTUB(strcat                                 ,0xff8a5574) //  1
 294 NHSTUB(strchr                                 ,0xff813fc0) //  1
 295 NHSTUB(strcmp                                 ,0xff8203a4) //120
 296 NHSTUB(strcpy                                 ,0xff82038c) //120
 297 NHSTUB(strftime                               ,0xff8a57c0) //  1
 298 NHSTUB(strlen                                 ,0xff81400c) //120
 299 NHSTUB(strncmp                                ,0xff813f74) //  1
 300 NHSTUB(strncpy                                ,0xff813f38) //  1
 301 NHSTUB(strrchr                                ,0xff813fe4) //  1
 302 NHSTUB(strtol                                 ,0xff83e274) //101
 303 NHSTUB(strtolx                                ,0xff83e078) //109
 304    DEF(task_CaptSeq                           ,0xff876ec0) //120
 305    DEF(task_DvlpSeqTask                       ,0xff8783fc) //120
 306    DEF(task_ExpDrv                            ,0xff8ba324) //120
 307    DEF(task_FileWrite                         ,0xffa79c0c) //120
 308    DEF(task_InitFileModules                   ,0xff894550) //120
 309    DEF(task_MovieRecord                       ,0xff94b0c4) //120
 310    DEF(task_PhySw                             ,0xff8331fc) //120
 311    DEF(task_RotaryEncoder                     ,0xff85afb0) //120
 312    DEF(task_TouchPanel                        ,0xff85e89c) //120
 313 NHSTUB(time                                   ,0xff882d1c) //109
 314 NHSTUB(vsprintf                               ,0xff820350) //115
 315 NHSTUB(EngDrvRead                             ,0xff83446c) //102
 316 NHSTUB(PTM_GetCurrentItem                     ,0xff89141c) //105
 317 NHSTUB(DisableISDriveError                    ,0xffa9d368) //120
 318 NHSTUB(CancelHPTimer                          ,0xff884518) //119
 319 NHSTUB(SetHPTimerAfterNow                     ,0xff884410) //119
 320 NHSTUB(PT_MFOn                                ,0xff8748ac) //120
 321 NHSTUB(PT_MFOff                               ,0xff8748bc) //120
 322 NHSTUB(GetAdChValue                           ,0xff854f50) //120
 323 NHSTUB(get_ptp_buf_size                       ,0xff8e4ca8) //122
 324 NHSTUB(get_ptp_file_buf                       ,0xffa41530) //121

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