root/platform/ixus990_sd970/sub/100a/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 R31 (DRYOS version 2.3, release #0031)
   6 //   Firmware Ver GM1.00A   // Found @ 0xff86ed90, "GM1.00A" @ 0xff86ed9d
   7 //   Firmware build timestamp: Jan 29 2009 13:03:40
   8 //   Canon DIGITAL IXUS 990 IS
   9 
  10 // Values for makefile.inc
  11 //   DIGIC = 40# DIGIC 4
  12 //   PLATFORMOSVER = 31
  13 //   PLATFORMID = 12737# (0x31c1) Found @ 0xfffe0130
  14 //   MAXRAMADDR = 0x03ffffff
  15 //   MEMISOSTART = 0x001487c4
  16 //   KEYSYS = d4# Found @ 0xffff3564
  17 //   NEED_ENCODED_DISKBOOT = 2# Found @ 0xffff3574
  18 //   ARAM_HEAP_START = 0x34e000# Found @ 0xff92e398
  19 //   ARAM_HEAP_SIZE  = 0x32000# Found @ 0xff92e358
  20 
  21 // Detected address ranges:
  22 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  23 // RAM data 0x00001900 - 0x0000d974 copied from 0xffb84e78 (  49268 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                            ,0xff843f84) //  2 64%
  28 
  29 // Check of modemap from 'platform/CAMERA/shooting.c':
  30 // Firmware modemap table found @ffa63a3c -> ffb60ae0
  31 // No problems found with modemap table.
  32 
  33 // Values below can be overridden in 'stubs_min.S':
  34 DEF(physw_status                            ,0x0000edf8) // Found @0xff821dcc
  35 DEF(physw_run                               ,0x00001c34) // Found @0xff821a3c
  36 DEF(physw_sleep_delay                       ,0x00001c32) // Found @0xff821a3c
  37 DEF(levent_table                            ,0xffb2f2e8) // Found @0xffb2f2e8
  38 DEF(FlashParamsTable                        ,0xffb60cbc) // Found @0xffb60cbc
  39 DEF(movie_status                            ,0x00006000) // Found @0xff920ecc
  40 DEF(video_compression_rate                  ,0x0000602c) // Found @0xff92108c
  41 DEF(canon_menu_active                       ,0x00002d18) // Found @0xff8707f8
  42 DEF(canon_shoot_menu_active                 ,0x00007259) // Found @0xff95e964
  43 DEF(playrec_mode                            ,0x00002a80) // Found @0xff863b70
  44 DEF(zoom_status                             ,0x0000b534) // Found @0xffa65e2c
  45 DEF(some_flag_for_af_scan                   ,0x0000653c) // Found @0xff924104
  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                         ,0xfffe2a8c) // Found @0xfffe2a8c
  50 DEF(zoom_busy                               ,0x00005f30) // Found @0xff91d070
  51 DEF(focus_busy                              ,0x00005e28) // Found @0xff917ee0
  52 //DEF(recreview_hold                          ,0x000036ec) // Found @0xff881920, ** != ** stubs_min = 0x00000001 (1)
  53 // Palette colour tables  found @ 0xffb482cc
  54 DEF(active_palette_buffer                   ,0x00008670) // Found @0xff9b2dcc
  55 DEF(palette_buffer_ptr                      ,0x00008680) // Found @0xff9b2a90
  56 // Offset from start of palette_buffer to color data = 12 (Found @0xff9b1a3c)
  57 // Camera appears to have only 1 RAW buffer @ 0x41ec0600 (Found @0xffabcbe8)
  58 DEF(fileio_semaphore                        ,0x00002720) // Found @0xff851e6c
  59 DEF(exmem_alloc_table                       ,0x000155b4) // Found @0xff86a1ec
  60 DEF(exmem_types_table                       ,0xffb860e0) // Found @0x00002b68
  61 DEF_CONST(exmem_type_count                  ,0x00000012)
  62 DEF(imager_active                           ,0x00001ec0) // Found @0xff832f2c (0x1ebc + 4)
  63 DEF_CONST(uiprop_count                      ,0x0000006b) // Found @0xff94c444
  64 DEF(cameracon_state                         ,0x000032b8) // Found @0xff878b48
  65 
  66 // Values below go in 'lib.c':
  67 //void *vid_get_bitmap_fb()        { return (void*)0x403f1000; }             // Found @0xff83db4c
  68 //void *vid_get_viewport_fb()      { return (void*)0x4126f570; }             // Found @0xffaba6cc
  69 DEF(viewport_fb_d                           ,0x000027ac) // Found 0x2754 (@0xff85505c) + 0x58 (@0xff855094)
  70 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2754+0x58)); } // Found @0xff85505c & 0xff855094
  71 DEF(jpeg_count_str                          ,0x000345e0) // Found @0xff9a6de8
  72 //char *camera_jpeg_count_str()    { return (char*)0x000345e0; }             // Found @0xff9a6de8
  73 //int get_flash_params_count(void) { return 0x7a; }                          // Found @0xff94ce88
  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 @0xffaf1330, levent 0x90a
  77 //#define SD_READONLY_IDX     2
  78 //#define USB_MASK            0x00080000 // Found @0xffaf1348, levent 0x902
  79 //#define USB_IDX             2
  80 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffaf1318, levent 0x905
  81 //#define BATTCOVER_IDX       2
  82 //#define ANALOG_AV_FLAG      0x00040000 // Found @0xffaf133c, 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 @0xffaf1264, levent 0x08
  88 //    { 0, KEY_DISPLAY         ,0x00000008 }, // Found @0xffaf1270, levent 0x0a
  89 //    { 2, KEY_MENU            ,0x00000001 }, // Found @0xffaf1288, levent 0x09
  90 //    { 2, KEY_ZOOM_IN         ,0x00000004 }, // Found @0xffaf12a0, levent 0x02
  91 //    { 2, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffaf12ac, levent 0x03
  92 //    { 2, KEY_LEFT            ,0x00000010 }, // Found @0xffaf12b8, levent 0x06
  93 //    { 2, KEY_RIGHT           ,0x00000020 }, // Found @0xffaf12c4, levent 0x07
  94 //    { 2, KEY_DOWN            ,0x00000040 }, // Found @0xffaf12d0, levent 0x05
  95 //    { 2, KEY_UP              ,0x00000080 }, // Found @0xffaf12dc, levent 0x04
  96 //    { 2, KEY_SHOOT_FULL      ,0x00000300 }, // Found @0xffaf12f4, levent 0x01
  97 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000200 }, // Found @0xffaf12f4, levent 0x01
  98 //    { 2, KEY_SHOOT_HALF      ,0x00000100 }, // Found @0xffaf12e8, levent 0x00
  99 //    { 2, KEY_POWER           ,0x00000400 }, // Found @0xffaf1300, levent 0x600
 100 //    { 2, KEY_PLAYBACK        ,0x00000800 }, // Found @0xffaf130c, levent 0x601
 101 //    { 0, 0, 0 }
 102 //};
 103 
 104 // Values below go in 'platform_camera.h':
 105 //#define CAM_DRYOS         1
 106 //#define CAM_RAW_ROWPIX    4080 // Found @0xff8eb9cc
 107 //#define CAM_RAW_ROWS      3048 // Found @0xff8eb9d0
 108 //#undef  CAM_UNCACHED_BIT
 109 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff8274e8
 110 //#define PARAM_CAMERA_NAME 4 // Found @0xffb62f78
 111 
 112 // Below goes in 'filewrite.c' or 'platform_camera.h':
 113 //#define MAX_CHUNKS_FOR_FWT 3 // Found @0xffa3394c
 114 
 115 // Known propcases
 116 // //      PROPCASE_AFSTEP 13
 117 // #define PROPCASE_FOCUS_STATE 18
 118 // #define PROPCASE_AV 23
 119 // #define PROPCASE_BV 34
 120 // //      PROPCASE_DELTA_DIGITALGAIN 77
 121 // #define PROPCASE_DELTA_SV 79
 122 // //      PROPCASE_DELTA_ND 80
 123 // #define PROPCASE_EV_CORRECTION_2 207
 124 // #define PROPCASE_ORIENTATION_SENSOR 219
 125 // #define PROPCASE_SV_MARKET 246
 126 // //      PROPCASE_SVFIX 247
 127 // #define PROPCASE_TV 262
 128 // Guessed propset: 2
 129 
 130 // Misc stuff
 131 DEF(ctypes, 0xffaf0092)
 132 
 133 // EXMEM types:
 134 // EXMEM_RAMDISK        0
 135 // EXMEM_COM            1
 136 // EXMEM_FORMATTER      2
 137 // EXMEM_SHADING        3
 138 // EXMEM_FAMODE         4
 139 // EXMEM_FIRMUP         5
 140 // EXMEM_FIRMUP_VRAM    6
 141 // EXMEM_FIRMUP_INFLATE 7
 142 // EXMEM_DVLPWORK       8
 143 // EXMEM_EVF            9
 144 // EXMEM_SCRIPT         10
 145 // EXMEM_FILESTORE      11
 146 // EXMEM_MOVIE_REC      12
 147 // EXMEM_MOVIE_PLY      13
 148 // EXMEM_WIDE           14
 149 // EXMEM_NARROW         15
 150 // EXMEM_CRAW_REC       16
 151 // EXMEM_PCEVF          17
 152 
 153 // ISR flag: 0x1960, pointer to current task's control block: 0x195c
 154 // pointer to TCB area: 0x19ec, found @ 0xff81574c
 155 
 156 // LED table init @ 0xff8d03f0
 157 // LED #1: 0xc0220138, offset 0x204
 158 // LED #2: 0xc0220130, offset 0x4
 159 // LED #3: 0xc0220134, offset 0x44
 160 
 161 // For capt_seq.c
 162 DEF(_nrflag,0x6518) // Found @ ff9260ac (0x6520) & ff9260cc (-0x08)
 163 //static long *nrflag = (long*)(0x6520-0x08);  // Found @ ff9260ac & ff9260c8
 164 
 165 // Stubs below matched 100%.
 166 //    Name                                     Address                Comp to stubs_entry_2.S
 167 NHSTUB(AllocateUncacheableMemory              ,0xff8274a4) //112
 168 NHSTUB(Close                                  ,0xff823c98) //120
 169 NHSTUB(CreateBinarySemaphore                  ,0xff826c84) //115
 170 NHSTUB(CreateTask                             ,0xff81afac) //120
 171 NHSTUB(DebugAssert                            ,0xff81b284) //107
 172 NHSTUB(DeleteDirectory_Fut                    ,0xff823628) //116
 173 NHSTUB(DeleteFile_Fut                         ,0xff823544) //112
 174 NHSTUB(DeleteSemaphore                        ,0xff826d44) //120
 175 NHSTUB(DoAELock                               ,0xff82556c) //120
 176 NHSTUB(DoAFLock                               ,0xff825380) //120
 177 NHSTUB(EnterToCompensationEVF                 ,0xff82546c) //104
 178 NHSTUB(ExecuteEventProcedure                  ,0xff86bf38) //104
 179 NHSTUB(ExitFromCompensationEVF                ,0xff8254b0) //104
 180 NHSTUB(ExitTask                               ,0xff81b23c) //120
 181 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff830008) //104
 182 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff83014c) //104
 183 NHSTUB(Fclose_Fut                             ,0xff8236c0) //120
 184 NHSTUB(Feof_Fut                               ,0xff8238ac) //  1
 185 NHSTUB(Fflush_Fut                             ,0xff8238e8) //  1
 186 NHSTUB(Fgets_Fut                              ,0xff823814) //  1
 187 NHSTUB(Fopen_Fut                              ,0xff823680) //120
 188 NHSTUB(Fread_Fut                              ,0xff82376c) //120
 189 NHSTUB(FreeUncacheableMemory                  ,0xff8274e4) //112
 190 NHSTUB(Fseek_Fut                              ,0xff823860) //120
 191 NHSTUB(Fwrite_Fut                             ,0xff8237c0) //120
 192 NHSTUB(GetBatteryTemperature                  ,0xff8472b8) //102
 193 NHSTUB(GetCCDTemperature                      ,0xff847244) //102
 194 NHSTUB(GetCurrentAvValue                      ,0xff919c98) //120
 195 NHSTUB(GetCurrentShutterSpeed                 ,0xff88cfa4) //120
 196 NHSTUB(GetDrive_ClusterSize                   ,0xff853790) //  5
 197 NHSTUB(GetDrive_FreeClusters                  ,0xff8537e8) //  5
 198 NHSTUB(GetDrive_TotalClusters                 ,0xff8537bc) //  5
 199 NHSTUB(GetFocusLensSubjectDistance            ,0xff918d48) //102
 200 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff919124) //  3
 201 NHSTUB(GetKbdState                            ,0xff843f6c) //109
 202 NHSTUB(GetMemInfo                             ,0xff813be4) //115
 203 NHSTUB(GetOpticalTemperature                  ,0xff84732c) //120
 204 NHSTUB(GetParameterData                       ,0xff94ce48) //101
 205 NHSTUB(GetPropertyCase                        ,0xff86fca4) //102
 206 NHSTUB(GetSystemTime                          ,0xffa57f08) //120
 207 NHSTUB(GetVRAMHPixelsSize                     ,0xff8b67c8) //120
 208 NHSTUB(GetVRAMVPixelsSize                     ,0xff8b67d4) //120
 209 NHSTUB(GetZoomLensCurrentPoint                ,0xff91d3e4) //120
 210 NHSTUB(GetZoomLensCurrentPosition             ,0xffa4b6e8) //102
 211 NHSTUB(GiveSemaphore                          ,0xff826ec0) //120
 212 NHSTUB(IsStrobeChargeCompleted                ,0xff8a7748) //102
 213 NHSTUB(LEDDrive                               ,0xff843460) //120
 214 NHSTUB(LocalTime                              ,0xff869928) //115
 215 NHSTUB(LockMainPower                          ,0xff87769c) //120
 216 NHSTUB(MakeDirectory_Fut                      ,0xff8235b8) //116
 217 NHSTUB(MoveFocusLensToDistance                ,0xffab7064) //102
 218 NHSTUB(MoveIrisWithAv                         ,0xffa5600c) //120
 219 NHSTUB(MoveZoomLensWithPoint                  ,0xffa56594) //120
 220 NHSTUB(MoveOpticalZoomAt                      ,0xff824edc) //109
 221 NHSTUB(Open                                   ,0xff823c70) //120
 222 NHSTUB(PB2Rec                                 ,0xff87a684) //104
 223 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff85ca34) //120
 224 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff85ca0c) //120
 225 NHSTUB(PT_PlaySound                           ,0xff85c610) //102
 226 NHSTUB(PostLogicalEventForNotPowerType        ,0xff8753c4) //120
 227 NHSTUB(PostLogicalEventToUI                   ,0xff875410) //120
 228 NHSTUB(PutInNdFilter                          ,0xffa563f8) //102
 229 NHSTUB(PutOutNdFilter                         ,0xffa5641c) //102
 230 NHSTUB(Read                                   ,0xff819ae4) //120
 231 NHSTUB(ReadFastDir                            ,0xffa37da8) //  1
 232 NHSTUB(Rec2PB                                 ,0xff87a6c4) //104
 233 NHSTUB(RefreshPhysicalScreen                  ,0xff9b7dc8) //104
 234 NHSTUB(RenameFile_Fut                         ,0xff8234f0) //  1
 235 NHSTUB(Restart                                ,0xff828bf4) //122
 236 NHSTUB(SetAE_ShutterSpeed                     ,0xffab9844) //102
 237 NHSTUB(SetAutoShutdownTime                    ,0xff877710) //120
 238 NHSTUB(SetCurrentCaptureModeType              ,0xff87eda0) //120
 239 NHSTUB(SetDate                                ,0xffabb314) //120
 240 NHSTUB(SetFileAttributes                      ,0xff823fc4) //  1
 241 NHSTUB(SetFileTimeStamp                       ,0xff823f74) //  1
 242 NHSTUB(SetLogicalEventActive                  ,0xff8773ec) //120
 243 NHSTUB(SetParameterData                       ,0xff94cdb8) //101
 244 NHSTUB(SetPropertyCase                        ,0xff86fb9c) //102
 245 NHSTUB(SetScriptMode                          ,0xff87743c) //120
 246 NHSTUB(SleepTask                              ,0xff827128) //120
 247 NHSTUB(TakeSemaphore                          ,0xff826df0) //120
 248 NHSTUB(TurnOffBackLight                       ,0xff88524c) //104
 249 NHSTUB(TurnOnBackLight                        ,0xff885234) //104
 250 NHSTUB(TurnOnDisplay                          ,0xff83dc2c) //120
 251 NHSTUB(TurnOffDisplay                         ,0xff83dc3c) //120
 252 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff93911c) //120
 253 NHSTUB(UnlockAE                               ,0xff825590) //120
 254 NHSTUB(UnlockAF                               ,0xff8253b8) //120
 255 NHSTUB(UnlockMainPower                        ,0xff8775f0) //120
 256 NHSTUB(UnsetZoomForMovie                      ,0xff952fbc) //104
 257 NHSTUB(UpdateMBROnFlash                       ,0xff8535e8) //105
 258 NHSTUB(VbattGet                               ,0xff820654) //120
 259 NHSTUB(Write                                  ,0xff823d44) //120
 260 NHSTUB(WriteSDCard                            ,0xff90a2a8) //108
 261 NHSTUB(_log                                   ,0xffaed328) //111
 262 NHSTUB(_log10                                 ,0xffaebfb4) //112
 263 NHSTUB(_pow                                   ,0xffaec124) //121
 264 NHSTUB(_sqrt                                  ,0xffaeeecc) //  1
 265 NHSTUB(add_ptp_handler                        ,0xffa02464) //121
 266 NHSTUB(apex2us                                ,0xff9bafbc) //121
 267 NHSTUB(close                                  ,0xff8198fc) //109
 268 NHSTUB(err_init_task                          ,0xff814e2c) //111
 269 NHSTUB(exmem_alloc                            ,0xff86a7e8) //103
 270 NHSTUB(exmem_ualloc                           ,0xff86a63c) //103
 271 NHSTUB(exmem_ufree                            ,0xff86a788) //103
 272 NHSTUB(free                                   ,0xff813a3c) //112
 273 NHSTUB(get_nd_value                           ,0xffa490a4) //123
 274 NHSTUB(get_current_nd_value                   ,0xffa49060) //122
 275 NHSTUB(get_current_deltasv                    ,0xff88db34) //122
 276 NHSTUB(GetCurrentDriveBaseSvValue             ,0xff892ca4) //123
 277 NHSTUB(kbd_p1_f                               ,0xff821e48) //109
 278 NHSTUB(kbd_p1_f_cont                          ,0xff821e54) //109
 279 NHSTUB(kbd_p2_f                               ,0xff821708) //109
 280 NHSTUB(kbd_read_keys                          ,0xff821dcc) //109
 281 NHSTUB(kbd_read_keys_r2                       ,0xff843930) //109
 282 NHSTUB(lseek                                  ,0xff823dd8) //120
 283 NHSTUB(malloc                                 ,0xff813968) //112
 284 NHSTUB(memcmp                                 ,0xff81cc6c) //120
 285 NHSTUB(memcpy                                 ,0xff88bb4c) //120
 286 NHSTUB(memset                                 ,0xff9ba2a4) //120
 287 NHSTUB(mkdir                                  ,0xff82403c) //109
 288 NHSTUB(mktime_ext                             ,0xff88c3b8) //  1
 289 NHSTUB(open                                   ,0xff81984c) //109
 290 NHSTUB(OpenFastDir                            ,0xffa37d14) //  1
 291 NHSTUB(closedir                               ,0xffa37e78) //  1
 292 NHSTUB(qsort                                  ,0xffa9c834) //  1
 293 NHSTUB(rand                                   ,0xff81cd74) //121
 294 NHSTUB(realloc                                ,0xff813b1c) //115
 295 NHSTUB(reboot_fw_update                       ,0xffa3f458) //106
 296 NHSTUB(set_control_event                      ,0xff877050) //111
 297 NHSTUB(srand                                  ,0xff81cd68) //122
 298 NHSTUB(stat                                   ,0xff823ea4) //  1
 299 NHSTUB(strcat                                 ,0xff88b960) //  1
 300 NHSTUB(strchr                                 ,0xff88b9e8) //  1
 301 NHSTUB(strcmp                                 ,0xff81cc04) //120
 302 NHSTUB(strcpy                                 ,0xff81cbec) //120
 303 NHSTUB(strftime                               ,0xff88bdc0) //  1
 304 NHSTUB(strlen                                 ,0xff81cc48) //120
 305 NHSTUB(strncmp                                ,0xff88b99c) //  1
 306 NHSTUB(strncpy                                ,0xff82ce04) //  1
 307 NHSTUB(strrchr                                ,0xff9ba27c) //  1
 308 NHSTUB(strtol                                 ,0xff82d03c) //101
 309 NHSTUB(strtolx                                ,0xff82ce40) //109
 310    DEF(task_CaptSeq                           ,0xff85f074) //120
 311    DEF(task_DvlpSeqTask                       ,0xff860510) //120
 312    DEF(task_ExpDrv                            ,0xff89df1c) //120
 313    DEF(task_FileWrite                         ,0xffa338e8) //120
 314    DEF(task_InitFileModules                   ,0xff87b1a0) //120
 315    DEF(task_MovieRecord                       ,0xff921108) //120
 316    DEF(task_PhySw                             ,0xff821a38) //120
 317    DEF(task_RotaryEncoder                     ,0xff84405c) //120
 318 NHSTUB(time                                   ,0xff869ea0) //109
 319 NHSTUB(vsprintf                               ,0xff81cbb0) //115
 320 NHSTUB(EngDrvRead                             ,0xff822c84) //102
 321 NHSTUB(PTM_GetCurrentItem                     ,0xff8780b0) //105
 322 NHSTUB(CancelHPTimer                          ,0xff86b620) //119
 323 NHSTUB(SetHPTimerAfterNow                     ,0xff86b518) //119
 324 NHSTUB(PT_MFOn                                ,0xff85caac) //120
 325 NHSTUB(PT_MFOff                               ,0xff85cabc) //120
 326 NHSTUB(GetAdChValue                           ,0xff8404ac) //120
 327 NHSTUB(get_ptp_buf_size                       ,0xff8b9538) //122
 328 NHSTUB(get_ptp_file_buf                       ,0xffa04038) //121
 329 NHSTUB(SetVideoOutType                        ,0xffaba060) //109
 330 NHSTUB(GetVideoOutType                        ,0xffab9f94) //120

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