root/platform/ixus200_sd980/sub/101c/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.01C   // Found @ 0xff887c3c, "GM1.01C" @ 0xff887c49
   7 //   Firmware build timestamp: Jul 30 2009 18:58:52
   8 //   Canon DIGITAL IXUS 200 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 @ 0xff958d50
  18 //   ARAM_HEAP_SIZE  = 0x32000   // Found @ 0xff958d10
  19 
  20 // Detected address ranges:
  21 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  22 // RAM data 0x00001900 - 0x000208f0 copied from 0xffc0282c ( 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 @ffaab250 -> ffbda9ac
  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                            ,0xffb7a2a0) // Found @0xffb7a2a0
  37 DEF(FlashParamsTable                        ,0xffbdab94) // Found @0xffbdab94
  38 DEF(movie_status                            ,0x000067e0) // Found @0xff94ac20
  39 DEF(video_compression_rate                  ,0x0000680c) // Found @0xff94ae8c
  40 DEF(full_screen_refresh                     ,0x0001b2dc) // Found @0xff9f751c
  41 DEF(canon_menu_active                       ,0x00002ec8) // Found @0xff889704
  42 DEF(canon_shoot_menu_active                 ,0x00007b09) // Found @0xff98d9ac
  43 DEF(playrec_mode                            ,0x00002bfc) // Found @0xff87bbdc
  44 DEF(zoom_status                             ,0x0001e3d4) // Found @0xffaadcdc
  45 DEF(some_flag_for_af_scan                   ,0x00006cd4) // Found @0xff94dc3c
  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 @0xff946e00
  51 DEF(focus_busy                              ,0x00006608) // Found @0xff941f28
  52 DEF(recreview_hold                          ,0x00003818) // Found @0xff89a778
  53 // Palette colour tables  found @ 0xffb93e84
  54 DEF(active_palette_buffer                   ,0x0001b2e4) // Found @0xff9f7458
  55 DEF(palette_buffer_ptr                      ,0x0001b2f0) // Found @0xff9f712c
  56 // Offset from start of palette_buffer to color data = 8 (Found @0xffae532c)
  57 // Camera appears to have only 1 RAW buffer @ 0x421e1120 (Found @0xffb0e6b4)
  58 DEF(fileio_semaphore                        ,0x000028a0) // Found @0xff86a11c
  59 DEF(exmem_alloc_table                       ,0x0004aa48) // Found @0xff883018
  60 DEF(exmem_types_table                       ,0xffc03c44) // 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 @0xff979118
  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 @0xffb0b880
  68 DEF(viewport_fb_d                           ,0x00002948) // Found 0x28f0 (@0xff86d354) + 0x58 (@0xff86d38c)
  69 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x28f0+0x58)); } // Found @0xff86d354 & 0xff86d38c
  70 DEF(jpeg_count_str                          ,0x00084ca4) // Found @0xff9e8aa8
  71 //char *camera_jpeg_count_str()    { return (char*)0x00084ca4; }             // Found @0xff9e8aa8
  72 //int get_flash_params_count(void) { return 0x84; }                          // Found @0xff979b5c
  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 @0xffb404e8, levent 0x90a
  76 //#define SD_READONLY_IDX     2
  77 //#define USB_MASK            0x00100000 // Found @0xffb40500, levent 0x902
  78 //#define USB_IDX             2
  79 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffb404d0, levent 0x905
  80 //#define BATTCOVER_IDX       2
  81 //#define ANALOG_AV_FLAG      0x00080000 // Found @0xffb404f4, 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 @0xffb40440, levent 0x09
  87 //    { 2, KEY_SET             ,0x00000002 }, // Found @0xffb4044c, levent 0x08
  88 //    { 2, KEY_ZOOM_IN         ,0x00000004 }, // Found @0xffb40458, levent 0x02
  89 //    { 2, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffb40464, levent 0x03
  90 //    { 2, KEY_LEFT            ,0x00000010 }, // Found @0xffb40470, levent 0x06
  91 //    { 2, KEY_RIGHT           ,0x00000020 }, // Found @0xffb4047c, levent 0x07
  92 //    { 2, KEY_DOWN            ,0x00000040 }, // Found @0xffb40488, levent 0x05
  93 //    { 2, KEY_UP              ,0x00000080 }, // Found @0xffb40494, levent 0x04
  94 //    { 2, KEY_SHOOT_FULL      ,0x00000300 }, // Found @0xffb404ac, levent 0x01
  95 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000200 }, // Found @0xffb404ac, levent 0x01
  96 //    { 2, KEY_SHOOT_HALF      ,0x00000100 }, // Found @0xffb404a0, levent 0x00
  97 //    { 2, KEY_POWER           ,0x00000400 }, // Found @0xffb404b8, levent 0x600
  98 //    { 2, KEY_PLAYBACK        ,0x00000800 }, // Found @0xffb404c4, 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 @0xff91bfbc
 106 //#define CAM_RAW_ROWS      3048 // Found @0xff91bfc4
 107 //#undef  CAM_UNCACHED_BIT
 108 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff838a1c
 109 //#define CAM_DATE_FOLDER_NAMING 0x100 // Found @0xffa65954 (pass as 3rd param to GetImageFolder)
 110 //#define PARAM_CAMERA_NAME 4 // Found @0xffbdcf40
 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, 0xffb3eb3e)
 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 @ 0xff8fc1b8
 154 // LED #1: 0xc0220130, offset 0x4
 155 // LED #2: 0xc0220134, offset 0x44
 156 
 157 // For capt_seq.c
 158 DEF(_nrflag,0x6cb0) // Found @ ff94ff04 (0x6cb8) & ff94ff24 (-0x08)
 159 //static long *nrflag = (long*)(0x6cb8-0x08);  // Found @ ff94ff04 & ff94ff20
 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                  ,0xff884de0) //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                      ,0xff9446cc) //120
 190 NHSTUB(GetCurrentShutterSpeed                 ,0xff8aa03c) //120
 191 NHSTUB(GetUsableMaxAv                         ,0xffb05e5c) //120
 192 NHSTUB(GetUsableMinAv                         ,0xffb05e44) //120
 193 NHSTUB(GetDrive_ClusterSize                   ,0xff86bb04) //122
 194 NHSTUB(GetDrive_FreeClusters                  ,0xff86bb64) //  3
 195 NHSTUB(GetDrive_TotalClusters                 ,0xff86bb38) //  3
 196 NHSTUB(GetFocusLensSubjectDistance            ,0xff942ca0) //102
 197 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff9430e8) //  3
 198 NHSTUB(GetImageFolder                         ,0xff923de8) //122
 199 NHSTUB(GetKbdState                            ,0xff85ae80) //109
 200 NHSTUB(GetMemInfo                             ,0xff81a070) //115
 201 NHSTUB(GetOpticalTemperature                  ,0xff85e320) //120
 202 NHSTUB(GetParameterData                       ,0xff979b1c) //101
 203 NHSTUB(GetPropertyCase                        ,0xff888b48) //102
 204 NHSTUB(GetSystemTime                          ,0xffa9ee08) //120
 205 NHSTUB(GetVRAMHPixelsSize                     ,0xff8e1e14) //120
 206 NHSTUB(GetVRAMVPixelsSize                     ,0xff8e1e20) //120
 207 NHSTUB(GetZoomLensCurrentPoint                ,0xff947174) //120
 208 NHSTUB(GetZoomLensCurrentPosition             ,0xffa904f8) //102
 209 NHSTUB(GiveSemaphore                          ,0xff8383f4) //120
 210 NHSTUB(IsStrobeChargeCompleted                ,0xff8c3a24) //102
 211 NHSTUB(LEDDrive                               ,0xff85a31c) //120
 212 NHSTUB(LocalTime                              ,0xff882754) //115
 213 NHSTUB(LockMainPower                          ,0xff8909b0) //120
 214 NHSTUB(MakeDirectory_Fut                      ,0xff834e08) //116
 215 NHSTUB(MoveFocusLensToDistance                ,0xffb08268) //102
 216 NHSTUB(MoveIrisWithAv                         ,0xffa9c344) //120
 217 NHSTUB(MoveZoomLensWithPoint                  ,0xffa9c990) //120
 218 NHSTUB(Open                                   ,0xff8353b0) //120
 219 NHSTUB(PB2Rec                                 ,0xff8939dc) //104
 220 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff8747cc) //120
 221 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff8747a4) //120
 222 NHSTUB(PT_PlaySound                           ,0xff87d8a8) //102
 223 NHSTUB(PostLogicalEventForNotPowerType        ,0xff88e7b8) //120
 224 NHSTUB(PostLogicalEventToUI                   ,0xff88e804) //120
 225 NHSTUB(PutInNdFilter                          ,0xffb05ec8) //102
 226 NHSTUB(PutOutNdFilter                         ,0xffb05f00) //102
 227 NHSTUB(Read                                   ,0xff81ab78) //120
 228 NHSTUB(ReadFastDir                            ,0xffa7e1f4) //  3
 229 NHSTUB(Rec2PB                                 ,0xff893a1c) //104
 230 NHSTUB(RefreshPhysicalScreen                  ,0xff9f8694) //104
 231 NHSTUB(RenameFile_Fut                         ,0xff834d00) //116
 232 NHSTUB(Restart                                ,0xff83a130) //122
 233 NHSTUB(ScreenLock                             ,0xff9f98b4) //117
 234 NHSTUB(ScreenUnlock                           ,0xff9f98dc) //117
 235 NHSTUB(SetAE_ShutterSpeed                     ,0xffb0a9f8) //102
 236 NHSTUB(SetAutoShutdownTime                    ,0xff890a24) //120
 237 NHSTUB(SetCurrentCaptureModeType              ,0xff897d04) //120
 238 NHSTUB(SetFileAttributes                      ,0xff8356d8) //  3
 239 NHSTUB(SetFileTimeStamp                       ,0xff835694) //  3
 240 NHSTUB(SetLogicalEventActive                  ,0xff8906fc) //120
 241 NHSTUB(SetParameterData                       ,0xff979a8c) //101
 242 NHSTUB(SetPropertyCase                        ,0xff888a44) //102
 243 NHSTUB(SetScriptMode                          ,0xff89074c) //120
 244 NHSTUB(SleepTask                              ,0xff83865c) //120
 245 NHSTUB(TakeSemaphore                          ,0xff838324) //120
 246 NHSTUB(TurnOffBackLight                       ,0xff89e2b8) //104
 247 NHSTUB(TurnOnBackLight                        ,0xff89e2a0) //104
 248 NHSTUB(TurnOnDisplay                          ,0xff8537d0) //120
 249 NHSTUB(TurnOffDisplay                         ,0xff8537e0) //120
 250 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff9642c8) //120
 251 NHSTUB(UnlockAE                               ,0xff836b9c) //120
 252 NHSTUB(UnlockAF                               ,0xff836928) //120
 253 NHSTUB(UnlockMainPower                        ,0xff890904) //120
 254 NHSTUB(UnsetZoomForMovie                      ,0xff97fdd8) //104
 255 NHSTUB(UpdateMBROnFlash                       ,0xff86b984) //105
 256 NHSTUB(VbattGet                               ,0xff831e04) //120
 257 NHSTUB(Write                                  ,0xff835498) //120
 258 NHSTUB(WriteSDCard                            ,0xff933968) //108
 259 NHSTUB(_log                                   ,0xffb3bc6c) //111
 260 NHSTUB(_log10                                 ,0xffb3a8f8) //112
 261 NHSTUB(_pow                                   ,0xffb3aa68) //121
 262 NHSTUB(_sqrt                                  ,0xffb3d8f0) //  1
 263 NHSTUB(add_ptp_handler                        ,0xffa3f98c) //121
 264 NHSTUB(apex2us                                ,0xff9fd42c) //121
 265 NHSTUB(close                                  ,0xff81a990) //109
 266 NHSTUB(err_init_task                          ,0xff815f28) //111
 267 NHSTUB(exmem_alloc                            ,0xff883614) //103
 268 NHSTUB(exmem_free                             ,0xff88368c) //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                                 ,0xff9fbfa0) //120
 280 NHSTUB(mkdir                                  ,0xff83587c) //109
 281 NHSTUB(mktime_ext                             ,0xff8a5d68) //  1
 282 NHSTUB(open                                   ,0xff81a8e0) //109
 283 NHSTUB(OpenFastDir                            ,0xffa7e0c0) //  3
 284 NHSTUB(closedir                               ,0xffa7e07c) //  3
 285 NHSTUB(get_fstype                             ,0xff86bb88) //122
 286 NHSTUB(qsort                                  ,0xff9fc560) //  1
 287 NHSTUB(rand                                   ,0xff8204f0) //121
 288 NHSTUB(realloc                                ,0xff9fc01c) //115
 289 NHSTUB(reboot_fw_update                       ,0xffa83704) //106
 290 NHSTUB(set_control_event                      ,0xff89032c) //111
 291 NHSTUB(srand                                  ,0xff8204e4) //122
 292 NHSTUB(stat                                   ,0xff835560) //109
 293 NHSTUB(strcat                                 ,0xff8a5524) //  1
 294 NHSTUB(strchr                                 ,0xff813fc0) //  1
 295 NHSTUB(strcmp                                 ,0xff8203a4) //120
 296 NHSTUB(strcpy                                 ,0xff82038c) //120
 297 NHSTUB(strftime                               ,0xff8a5770) //  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                           ,0xff876e70) //120
 305    DEF(task_DvlpSeqTask                       ,0xff8783ac) //120
 306    DEF(task_ExpDrv                            ,0xff8ba2d4) //120
 307    DEF(task_FileWrite                         ,0xffa79a50) //120
 308    DEF(task_InitFileModules                   ,0xff894500) //120
 309    DEF(task_MovieRecord                       ,0xff94af08) //120
 310    DEF(task_PhySw                             ,0xff8331fc) //120
 311    DEF(task_RotaryEncoder                     ,0xff85afb0) //120
 312    DEF(task_TouchPanel                        ,0xff85e89c) //120
 313 NHSTUB(time                                   ,0xff882ccc) //109
 314 NHSTUB(vsprintf                               ,0xff820350) //115
 315 NHSTUB(EngDrvRead                             ,0xff83446c) //102
 316 NHSTUB(PTM_GetCurrentItem                     ,0xff8913cc) //105
 317 NHSTUB(DisableISDriveError                    ,0xffa9d1ac) //120
 318 NHSTUB(CancelHPTimer                          ,0xff8844c8) //119
 319 NHSTUB(SetHPTimerAfterNow                     ,0xff8843c0) //119
 320 NHSTUB(PT_MFOn                                ,0xff87485c) //120
 321 NHSTUB(PT_MFOff                               ,0xff87486c) //120
 322 NHSTUB(GetAdChValue                           ,0xff854f50) //120
 323 NHSTUB(get_ptp_buf_size                       ,0xff8e4c58) //122
 324 NHSTUB(get_ptp_file_buf                       ,0xffa41374) //121

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