root/platform/ixus200_sd980/sub/100c/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.00C   // Found @ 0xff887c3c, "GM1.00C" @ 0xff887c49
   7 //   Firmware build timestamp: Jul 17 2009 15:49:34
   8 //   Canon DIGITAL IXUS 200 IS
   9 
  10 // Values for makefile.inc
  11 //   DIGIC = 40# DIGIC 4
  12 //   PLATFORMOSVER = 39
  13 //   PLATFORMID = 12773# (0x31e5) Found @ 0xfffe0130
  14 //   MAXRAMADDR = 0x03ffffff
  15 //   MEMISOSTART = 0x00153e84
  16 //   KEYSYS = d4# Found @ 0xffff3564
  17 //   NEED_ENCODED_DISKBOOT = 3# Found @ 0xffff3574
  18 //   ARAM_HEAP_START = 0x38e000# Found @ 0xff958d50
  19 //   ARAM_HEAP_SIZE  = 0x32000# Found @ 0xff958d10
  20 
  21 // Detected address ranges:
  22 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  23 // RAM data 0x00001900 - 0x000208f0 copied from 0xffc0281c ( 126960 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                            ,0xff85ae98) //  2 64%
  28 
  29 // Check of modemap from 'platform/CAMERA/shooting.c':
  30 // Firmware modemap table found @ffaab240 -> ffbda99c
  31 // No problems found with modemap table.
  32 
  33 // Values below can be overridden in 'stubs_min.S':
  34 DEF(physw_status                            ,0x00044558) // Found @0xff8335a8
  35 DEF(physw_run                               ,0x00001c44) // Found @0xff833200
  36 DEF(physw_sleep_delay                       ,0x00001c42) // Found @0xff833200
  37 DEF(levent_table                            ,0xffb7a290) // Found @0xffb7a290
  38 DEF(FlashParamsTable                        ,0xffbdab84) // Found @0xffbdab84
  39 DEF(movie_status                            ,0x000067e0) // Found @0xff94ac20
  40 DEF(video_compression_rate                  ,0x0000680c) // Found @0xff94ae8c
  41 DEF(full_screen_refresh                     ,0x0001b2dc) // Found @0xff9f751c
  42 DEF(canon_menu_active                       ,0x00002ec8) // Found @0xff889704
  43 DEF(canon_shoot_menu_active                 ,0x00007b09) // Found @0xff98d9ac
  44 DEF(playrec_mode                            ,0x00002bfc) // Found @0xff87bbdc
  45 DEF(zoom_status                             ,0x0001e3d4) // Found @0xffaadccc
  46 DEF(some_flag_for_af_scan                   ,0x00006cd4) // Found @0xff94dc3c
  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 12 entries in the table - set NUM_FL to 12
  50 DEF(focus_len_table                         ,0xfffe2ac8) // Found @0xfffe2ac8
  51 DEF(zoom_busy                               ,0x0000670c) // Found @0xff946e00
  52 DEF(focus_busy                              ,0x00006608) // Found @0xff941f28
  53 DEF(recreview_hold                          ,0x00003818) // Found @0xff89a778
  54 // Palette colour tables  found @ 0xffb93e74
  55 DEF(active_palette_buffer                   ,0x0001b2e4) // Found @0xff9f7458
  56 DEF(palette_buffer_ptr                      ,0x0001b2f0) // Found @0xff9f712c
  57 // Offset from start of palette_buffer to color data = 8 (Found @0xffae531c)
  58 // Camera appears to have only 1 RAW buffer @ 0x421e1120 (Found @0xffb0e6a4)
  59 DEF(fileio_semaphore                        ,0x000028a0) // Found @0xff86a11c
  60 DEF(exmem_alloc_table                       ,0x0004aa48) // Found @0xff883018
  61 DEF(exmem_types_table                       ,0xffc03c34) // Found @0x00002d18
  62 DEF_CONST(exmem_type_count                  ,0x00000012)
  63 DEF(imager_active                           ,0x00001f74) // Found @0xff848c28 (0x1f70 + 4)
  64 DEF_CONST(uiprop_count                      ,0x0000006e) // Found @0xff979118
  65 
  66 // Values below go in 'lib.c':
  67 //void *vid_get_bitmap_fb()        { return (void*)0x40431000; }             // Found @0xff853588
  68 //void *vid_get_viewport_fb()      { return (void*)0x408cb700; }             // Found @0xffb0b870
  69 DEF(viewport_fb_d                           ,0x00002948) // Found 0x28f0 (@0xff86d354) + 0x58 (@0xff86d38c)
  70 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x28f0+0x58)); } // Found @0xff86d354 & 0xff86d38c
  71 DEF(jpeg_count_str                          ,0x00084ca4) // Found @0xff9e8aa8
  72 //char *camera_jpeg_count_str()    { return (char*)0x00084ca4; }             // Found @0xff9e8aa8
  73 //int get_flash_params_count(void) { return 0x84; }                          // Found @0xff979b5c
  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 @0xffb404d8, levent 0x90a
  77 //#define SD_READONLY_IDX     2
  78 //#define USB_MASK            0x00100000 // Found @0xffb404f0, levent 0x902
  79 //#define USB_IDX             2
  80 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffb404c0, levent 0x905
  81 //#define BATTCOVER_IDX       2
  82 //#define ANALOG_AV_FLAG      0x00080000 // Found @0xffb404e4, 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 //    { 2, KEY_MENU            ,0x00000001 }, // Found @0xffb40430, levent 0x09
  88 //    { 2, KEY_SET             ,0x00000002 }, // Found @0xffb4043c, levent 0x08
  89 //    { 2, KEY_ZOOM_IN         ,0x00000004 }, // Found @0xffb40448, levent 0x02
  90 //    { 2, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffb40454, levent 0x03
  91 //    { 2, KEY_LEFT            ,0x00000010 }, // Found @0xffb40460, levent 0x06
  92 //    { 2, KEY_RIGHT           ,0x00000020 }, // Found @0xffb4046c, levent 0x07
  93 //    { 2, KEY_DOWN            ,0x00000040 }, // Found @0xffb40478, levent 0x05
  94 //    { 2, KEY_UP              ,0x00000080 }, // Found @0xffb40484, levent 0x04
  95 //    { 2, KEY_SHOOT_FULL      ,0x00000300 }, // Found @0xffb4049c, levent 0x01
  96 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000200 }, // Found @0xffb4049c, levent 0x01
  97 //    { 2, KEY_SHOOT_HALF      ,0x00000100 }, // Found @0xffb40490, levent 0x00
  98 //    { 2, KEY_POWER           ,0x00000400 }, // Found @0xffb404a8, levent 0x600
  99 //    { 2, KEY_PLAYBACK        ,0x00000800 }, // Found @0xffb404b4, 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 @0xff91bfbc
 107 //#define CAM_RAW_ROWS      3048 // Found @0xff91bfc4
 108 //#undef  CAM_UNCACHED_BIT
 109 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff838a1c
 110 //#define CAM_DATE_FOLDER_NAMING 0x100 // Found @0xffa65944 (pass as 3rd param to GetImageFolder)
 111 //#define PARAM_CAMERA_NAME 4 // Found @0xffbdcf30
 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, 0xffb3eb2e)
 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 @ 0xff8fc1b8
 155 // LED #1: 0xc0220130, offset 0x4
 156 // LED #2: 0xc0220134, offset 0x44
 157 
 158 // For capt_seq.c
 159 DEF(_nrflag,0x6cb0) // Found @ ff94ff04 (0x6cb8) & ff94ff24 (-0x08)
 160 //static long *nrflag = (long*)(0x6cb8-0x08);  // Found @ ff94ff04 & ff94ff20
 161 
 162 // Stubs below matched 100%.
 163 //    Name                                     Address                Comp to stubs_entry_2.S
 164 NHSTUB(AllocateUncacheableMemory              ,0xff8389d8) //112
 165 NHSTUB(Close                                  ,0xff835408) //120
 166 NHSTUB(CreateBinarySemaphore                  ,0xff8381b8) //115
 167 NHSTUB(CreateTask                             ,0xff81e5b4) //120
 168 NHSTUB(DebugAssert                            ,0xff81e88c) //107
 169 NHSTUB(DeleteDirectory_Fut                    ,0xff834e78) //116
 170 NHSTUB(DeleteFile_Fut                         ,0xff834d94) //112
 171 NHSTUB(DoAELock                               ,0xff836b78) //120
 172 NHSTUB(DoAFLock                               ,0xff8368f0) //120
 173 NHSTUB(EnterToCompensationEVF                 ,0xff836ae0) //104
 174 NHSTUB(ExecuteEventProcedure                  ,0xff884de0) //104
 175 NHSTUB(ExitFromCompensationEVF                ,0xff836b24) //104
 176 NHSTUB(ExitTask                               ,0xff81e844) //120
 177 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff844254) //104
 178 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff84432c) //104
 179 NHSTUB(Fclose_Fut                             ,0xff834f10) //120
 180 NHSTUB(Feof_Fut                               ,0xff8350fc) //  1
 181 NHSTUB(Fflush_Fut                             ,0xff835138) //  1
 182 NHSTUB(Fgets_Fut                              ,0xff835064) //  1
 183 NHSTUB(Fopen_Fut                              ,0xff834ed0) //120
 184 NHSTUB(Fread_Fut                              ,0xff834fbc) //120
 185 NHSTUB(FreeUncacheableMemory                  ,0xff838a18) //112
 186 NHSTUB(Fseek_Fut                              ,0xff8350b0) //120
 187 NHSTUB(Fwrite_Fut                             ,0xff835010) //120
 188 NHSTUB(GetBatteryTemperature                  ,0xff85e2ac) //102
 189 NHSTUB(GetCCDTemperature                      ,0xff85e238) //102
 190 NHSTUB(GetCurrentAvValue                      ,0xff9446cc) //120
 191 NHSTUB(GetCurrentShutterSpeed                 ,0xff8aa03c) //120
 192 NHSTUB(GetUsableMaxAv                         ,0xffb05e4c) //120
 193 NHSTUB(GetUsableMinAv                         ,0xffb05e34) //120
 194 NHSTUB(GetDrive_ClusterSize                   ,0xff86bb04) //122
 195 NHSTUB(GetDrive_FreeClusters                  ,0xff86bb64) //  3
 196 NHSTUB(GetDrive_TotalClusters                 ,0xff86bb38) //  3
 197 NHSTUB(GetFocusLensSubjectDistance            ,0xff942ca0) //102
 198 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff9430e8) //  3
 199 NHSTUB(GetImageFolder                         ,0xff923de8) //122
 200 NHSTUB(GetKbdState                            ,0xff85ae80) //109
 201 NHSTUB(GetMemInfo                             ,0xff81a070) //115
 202 NHSTUB(GetOpticalTemperature                  ,0xff85e320) //120
 203 NHSTUB(GetParameterData                       ,0xff979b1c) //101
 204 NHSTUB(GetPropertyCase                        ,0xff888b48) //102
 205 NHSTUB(GetSystemTime                          ,0xffa9edf8) //120
 206 NHSTUB(GetVRAMHPixelsSize                     ,0xff8e1e14) //120
 207 NHSTUB(GetVRAMVPixelsSize                     ,0xff8e1e20) //120
 208 NHSTUB(GetZoomLensCurrentPoint                ,0xff947174) //120
 209 NHSTUB(GetZoomLensCurrentPosition             ,0xffa904e8) //102
 210 NHSTUB(GiveSemaphore                          ,0xff8383f4) //120
 211 NHSTUB(IsStrobeChargeCompleted                ,0xff8c3a24) //102
 212 NHSTUB(LEDDrive                               ,0xff85a31c) //120
 213 NHSTUB(LocalTime                              ,0xff882754) //115
 214 NHSTUB(LockMainPower                          ,0xff8909b0) //120
 215 NHSTUB(MakeDirectory_Fut                      ,0xff834e08) //116
 216 NHSTUB(MoveFocusLensToDistance                ,0xffb08258) //102
 217 NHSTUB(MoveIrisWithAv                         ,0xffa9c334) //120
 218 NHSTUB(MoveZoomLensWithPoint                  ,0xffa9c980) //120
 219 NHSTUB(MoveOpticalZoomAt                      ,0xff836458) //109
 220 NHSTUB(Open                                   ,0xff8353b0) //120
 221 NHSTUB(PB2Rec                                 ,0xff8939dc) //104
 222 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff8747cc) //120
 223 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff8747a4) //120
 224 NHSTUB(PT_PlaySound                           ,0xff87d8a8) //102
 225 NHSTUB(PostLogicalEventForNotPowerType        ,0xff88e7b8) //120
 226 NHSTUB(PostLogicalEventToUI                   ,0xff88e804) //120
 227 NHSTUB(PutInNdFilter                          ,0xffb05eb8) //102
 228 NHSTUB(PutOutNdFilter                         ,0xffb05ef0) //102
 229 NHSTUB(Read                                   ,0xff81ab78) //120
 230 NHSTUB(ReadFastDir                            ,0xffa7e1e4) //  3
 231 NHSTUB(Rec2PB                                 ,0xff893a1c) //104
 232 NHSTUB(RefreshPhysicalScreen                  ,0xff9f8694) //104
 233 NHSTUB(RenameFile_Fut                         ,0xff834d00) //116
 234 NHSTUB(Restart                                ,0xff83a130) //122
 235 NHSTUB(ScreenLock                             ,0xff9f98b4) //117
 236 NHSTUB(ScreenUnlock                           ,0xff9f98dc) //117
 237 NHSTUB(SetAE_ShutterSpeed                     ,0xffb0a9e8) //102
 238 NHSTUB(SetAutoShutdownTime                    ,0xff890a24) //120
 239 NHSTUB(SetCurrentCaptureModeType              ,0xff897d04) //120
 240 NHSTUB(SetFileAttributes                      ,0xff8356d8) //  3
 241 NHSTUB(SetFileTimeStamp                       ,0xff835694) //  3
 242 NHSTUB(SetLogicalEventActive                  ,0xff8906fc) //120
 243 NHSTUB(SetParameterData                       ,0xff979a8c) //101
 244 NHSTUB(SetPropertyCase                        ,0xff888a44) //102
 245 NHSTUB(SetScriptMode                          ,0xff89074c) //120
 246 NHSTUB(SleepTask                              ,0xff83865c) //120
 247 NHSTUB(TakeSemaphore                          ,0xff838324) //120
 248 NHSTUB(TurnOffBackLight                       ,0xff89e2b8) //104
 249 NHSTUB(TurnOnBackLight                        ,0xff89e2a0) //104
 250 NHSTUB(TurnOnDisplay                          ,0xff8537d0) //120
 251 NHSTUB(TurnOffDisplay                         ,0xff8537e0) //120
 252 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff9642c8) //120
 253 NHSTUB(UnlockAE                               ,0xff836b9c) //120
 254 NHSTUB(UnlockAF                               ,0xff836928) //120
 255 NHSTUB(UnlockMainPower                        ,0xff890904) //120
 256 NHSTUB(UnsetZoomForMovie                      ,0xff97fdd8) //104
 257 NHSTUB(UpdateMBROnFlash                       ,0xff86b984) //105
 258 NHSTUB(VbattGet                               ,0xff831e04) //120
 259 NHSTUB(Write                                  ,0xff835498) //120
 260 NHSTUB(WriteSDCard                            ,0xff933968) //108
 261 NHSTUB(_log                                   ,0xffb3bc5c) //111
 262 NHSTUB(_log10                                 ,0xffb3a8e8) //112
 263 NHSTUB(_pow                                   ,0xffb3aa58) //121
 264 NHSTUB(_sqrt                                  ,0xffb3d8e0) //  1
 265 NHSTUB(add_ptp_handler                        ,0xffa3f97c) //121
 266 NHSTUB(apex2us                                ,0xff9fd42c) //121
 267 NHSTUB(close                                  ,0xff81a990) //109
 268 NHSTUB(err_init_task                          ,0xff815f28) //111
 269 NHSTUB(exmem_alloc                            ,0xff883614) //103
 270 NHSTUB(exmem_ualloc                           ,0xff883468) //103
 271 NHSTUB(exmem_ufree                            ,0xff8835b4) //103
 272 NHSTUB(free                                   ,0xff814138) //112
 273 NHSTUB(kbd_p1_f                               ,0xff833624) //109
 274 NHSTUB(kbd_p1_f_cont                          ,0xff833630) //109
 275 NHSTUB(kbd_p2_f                               ,0xff832ecc) //109
 276 NHSTUB(kbd_read_keys                          ,0xff8335a8) //109
 277 NHSTUB(kbd_read_keys_r2                       ,0xff85a83c) //109
 278 NHSTUB(lseek                                  ,0xff835524) //120
 279 NHSTUB(malloc                                 ,0xff8140dc) //112
 280 NHSTUB(memcmp                                 ,0xff8203e8) //120
 281 NHSTUB(memcpy                                 ,0xff83df94) //120
 282 NHSTUB(memset                                 ,0xff9fbfa0) //120
 283 NHSTUB(mkdir                                  ,0xff83587c) //109
 284 NHSTUB(mktime_ext                             ,0xff8a5d68) //  1
 285 NHSTUB(open                                   ,0xff81a8e0) //109
 286 NHSTUB(OpenFastDir                            ,0xffa7e0b0) //  3
 287 NHSTUB(closedir                               ,0xffa7e06c) //  3
 288 NHSTUB(get_fstype                             ,0xff86bb88) //122
 289 NHSTUB(qsort                                  ,0xff9fc560) //  1
 290 NHSTUB(rand                                   ,0xff8204f0) //121
 291 NHSTUB(realloc                                ,0xff9fc01c) //115
 292 NHSTUB(reboot_fw_update                       ,0xffa836f4) //106
 293 NHSTUB(set_control_event                      ,0xff89032c) //111
 294 NHSTUB(srand                                  ,0xff8204e4) //122
 295 NHSTUB(stat                                   ,0xff835560) //109
 296 NHSTUB(strcat                                 ,0xff8a5524) //  1
 297 NHSTUB(strchr                                 ,0xff813fc0) //  1
 298 NHSTUB(strcmp                                 ,0xff8203a4) //120
 299 NHSTUB(strcpy                                 ,0xff82038c) //120
 300 NHSTUB(strftime                               ,0xff8a5770) //  1
 301 NHSTUB(strlen                                 ,0xff81400c) //120
 302 NHSTUB(strncmp                                ,0xff813f74) //  1
 303 NHSTUB(strncpy                                ,0xff813f38) //  1
 304 NHSTUB(strrchr                                ,0xff813fe4) //  1
 305 NHSTUB(strtol                                 ,0xff83e274) //101
 306 NHSTUB(strtolx                                ,0xff83e078) //109
 307    DEF(task_CaptSeq                           ,0xff876e70) //120
 308    DEF(task_DvlpSeqTask                       ,0xff8783ac) //120
 309    DEF(task_ExpDrv                            ,0xff8ba2d4) //120
 310    DEF(task_FileWrite                         ,0xffa79a40) //120
 311    DEF(task_InitFileModules                   ,0xff894500) //120
 312    DEF(task_MovieRecord                       ,0xff94af08) //120
 313    DEF(task_PhySw                             ,0xff8331fc) //120
 314    DEF(task_RotaryEncoder                     ,0xff85afb0) //120
 315    DEF(task_TouchPanel                        ,0xff85e89c) //120
 316 NHSTUB(time                                   ,0xff882ccc) //109
 317 NHSTUB(vsprintf                               ,0xff820350) //115
 318 NHSTUB(EngDrvRead                             ,0xff83446c) //102
 319 NHSTUB(PTM_GetCurrentItem                     ,0xff8913cc) //105
 320 NHSTUB(DisableISDriveError                    ,0xffa9d19c) //120
 321 NHSTUB(CancelHPTimer                          ,0xff8844c8) //119
 322 NHSTUB(SetHPTimerAfterNow                     ,0xff8843c0) //119
 323 NHSTUB(PT_MFOn                                ,0xff87485c) //120
 324 NHSTUB(PT_MFOff                               ,0xff87486c) //120
 325 NHSTUB(GetAdChValue                           ,0xff854f50) //120
 326 NHSTUB(get_ptp_buf_size                       ,0xff8e4c58) //122
 327 NHSTUB(get_ptp_file_buf                       ,0xffa41364) //121
 328 NHSTUB(SetVideoOutType                        ,0xffb0b204) //109
 329 NHSTUB(GetVideoOutType                        ,0xffb0b138) //120

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