root/platform/ixus95_sd1200/sub/100b/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.00B   // Found @ 0xffc593dc, "GM1.00B" @ 0xffc593e9
   7 //   Firmware build timestamp: Dec  8 2008 08:34:18
   8 //   Canon DIGITAL IXUS 95 IS
   9 
  10 // Values for makefile.inc
  11 //   PLATFORMOSVER = 31
  12 //   PLATFORMID = 12740 (0x31c4) // Found @ 0xfffe0130
  13 //   MAXRAMADDR = 0x03ffffff
  14 //   MEMISOSTART = 0x0012ad3c
  15 //   KEYSYS = d4                 // Found @ 0xffff1be4
  16 //   NEED_ENCODED_DISKBOOT = 2   // Found @ 0xffff1bf4
  17 //   ARAM_HEAP_START = 0x34e000  // Found @ 0xffd03454
  18 //   ARAM_HEAP_SIZE  = 0x32000   // Found @ 0xffd03414
  19 
  20 // Detected address ranges:
  21 // ROM      0xffc00000 - 0xffffffff (4194304 bytes)
  22 // RAM data 0x00001900 - 0x0000aeb8 copied from 0xffecd364 (  38328 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                          ,0xffc30e1c) //  2 64%    *** != 0x00000000
  27 
  28 // Check of modemap from 'platform/CAMERA/shooting.c':
  29 // Firmware modemap table found @ffdf72e0 -> ffeb3558
  30 // Mode  2598 in firmware but not in current modemap
  31 
  32 // Values below can be overridden in 'stubs_min.S':
  33 DEF(physw_status                            ,0x0000c338) // Found @0xffc11d70
  34 DEF(physw_run                               ,0x00001c34) // Found @0xffc119e4
  35 DEF(physw_sleep_delay                       ,0x00001c32) // Found @0xffc119e4
  36 DEF(levent_table                            ,0xffe8c744) // Found @0xffe8c744
  37 DEF(FlashParamsTable                        ,0xffeb3728) // Found @0xffeb3728
  38 DEF(movie_status                            ,0x00005680) // Found @0xffcf8060
  39 DEF(canon_menu_active                       ,0x00002bb0) // Found @0xffc5adf8
  40 DEF(canon_shoot_menu_active                 ,0x0000681d) // Found @0xffd2a1ac
  41 DEF(playrec_mode                            ,0x00002924) // Found @0xffc4e4ec
  42 DEF(zoom_status                             ,0x000096b4) // Found @0xffdf8b10
  43 DEF(some_flag_for_af_scan                   ,0x00005b4c) // Found @0xffcfa7ac
  44 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  45 // each entry contains 3 int value(s), the first is the zoom focus length.
  46 // there are 7 entries in the table - set NUM_FL to 7
  47 DEF(focus_len_table                         ,0xfffe2a8c) // Found @0xfffe2a8c
  48 DEF(zoom_busy                               ,0x000055b0) // Found @0xffcf475c
  49 DEF(focus_busy                              ,0x000054a8) // Found @0xffcef5cc
  50 DEF(recreview_hold                          ,0x00003110) // Found @0xffc6677c
  51 // Palette colour tables  found @ 0xffe9aaf8
  52 DEF(active_palette_buffer                   ,0x000073e8) // Found @0xffd60078
  53 DEF(palette_buffer_ptr                      ,0x000073fc) // Found @0xffd5ff2c
  54 // Offset from start of palette_buffer to color data = 16 (Found @0xffd5edc0)
  55 // Camera has 2 RAW buffers @ 0x40f30d7c & 0x424b358c
  56 //  Note: active buffer --> raw_buffers[ active_raw_buffer   *3]
  57 //        other buffer  --> raw_buffers[(active_raw_buffer^1)*3]
  58 DEF(raw_buffers                             ,0xffe70b98) // Found @0xffe70b98
  59 DEF(active_raw_buffer                       ,0x00002890) // Found @0xffc4b480
  60 DEF(fileio_semaphore                        ,0x00002624) // Found @0xffc3def8
  61 DEF(exmem_alloc_table                       ,0x000123e4) // Found @0xffc548a4
  62 DEF(exmem_types_table                       ,0xffece468) // Found @0x00002a04
  63 DEF_CONST(exmem_type_count                  ,0x00000012)
  64 DEF(imager_active                           ,0x00001ea0) // Found @0xffc224c4 (0x1e9c + 4)
  65 DEF_CONST(uiprop_count                      ,0x0000006b) // Found @0xffd1b5f4
  66 
  67 // Values below go in 'lib.c':
  68 //void *vid_get_bitmap_fb()        { return (void*)0x403f1000; }             // Found @0xffc2c9a8
  69 //void *vid_get_viewport_fb()      { return (void*)0x4076f088; }             // Found @0xffe38190
  70 DEF(viewport_fb_d                           ,0x000026b0) // Found 0x2658 (@0xffc40f88) + 0x58 (@0xffc40fc0)
  71 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2658+0x58)); } // Found @0xffc40f88 & 0xffc40fc0
  72 DEF(jpeg_count_str                          ,0x0002f1d4) // Found @0xffd57dc0
  73 //char *camera_jpeg_count_str()    { return (char*)0x0002f1d4; }             // Found @0xffd57dc0
  74 //int get_flash_params_count(void) { return 0x7a; }                          // Found @0xffd1c038
  75 
  76 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  77 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffe65a50, levent 0x90a
  78 //#define SD_READONLY_IDX     2
  79 //#define USB_MASK            0x00040000 // Found @0xffe65a5c, levent 0x902
  80 //#define USB_IDX             2
  81 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffe65a38, levent 0x905
  82 //#define BATTCOVER_IDX       2
  83 //#define ANALOG_AV_FLAG      0x00800000 // Found @0xffe65978, levent 0x900 (non-inverted logic)
  84 //#define ANALOG_AV_IDX       1
  85 
  86 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  87 //static KeyMap keymap[] = {
  88 //    { 1, KEY_POWER           ,0x40000000 }, // Found @0xffe6599c, levent 0x600
  89 //    { 2, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffe659b4, levent 0x01
  90 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffe659b4, levent 0x01
  91 //    { 2, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffe659a8, levent 0x00
  92 //    { 2, KEY_ZOOM_IN         ,0x00000004 }, // Found @0xffe659c0, levent 0x02
  93 //    { 2, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffe659cc, levent 0x03
  94 //    { 2, KEY_LEFT            ,0x00000010 }, // Found @0xffe659d8, levent 0x06
  95 //    { 2, KEY_RIGHT           ,0x00000020 }, // Found @0xffe659e4, levent 0x07
  96 //    { 2, KEY_DOWN            ,0x00000040 }, // Found @0xffe659f0, levent 0x05
  97 //    { 2, KEY_UP              ,0x00000080 }, // Found @0xffe659fc, levent 0x04
  98 //    { 2, KEY_SET             ,0x00000100 }, // Found @0xffe65a08, levent 0x08
  99 //    { 2, KEY_DISPLAY         ,0x00000200 }, // Found @0xffe65a14, levent 0x0a
 100 //    { 2, KEY_MENU            ,0x00000400 }, // Found @0xffe65a20, levent 0x09
 101 //    { 2, KEY_PLAYBACK        ,0x00000800 }, // Found @0xffe65a2c, levent 0x601
 102 //    { 0, 0, 0 }
 103 //};
 104 
 105 // Values below go in 'platform_camera.h':
 106 //#define CAM_DRYOS         1
 107 //#define CAM_RAW_ROWPIX    3720 // Found @0xffcc787c
 108 //#define CAM_RAW_ROWS      2772 // Found @0xffcc7884
 109 //#undef  CAM_UNCACHED_BIT
 110 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xffc172cc
 111 //#define PARAM_CAMERA_NAME 4 // Found @0xffeb56fc
 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 207
 122 // #define PROPCASE_ORIENTATION_SENSOR 219
 123 // #define PROPCASE_SV_MARKET 246
 124 // //      PROPCASE_SVFIX 247
 125 // #define PROPCASE_TV 262
 126 // Guessed propset: 2
 127 
 128 // Misc stuff
 129 DEF(ctypes, 0xffe64876)
 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: 0x1960, pointer to current task's control block: 0x195c
 152 // pointer to TCB area: 0x19ec, found @ 0xffc0574c
 153 
 154 // LED table init @ 0xffcaeb94
 155 // LED #1: 0xc0220138, offset 0x84
 156 // LED #2: 0xc0220134, offset 0x4
 157 // LED #3: 0xc0220130, offset 0x44
 158 
 159 // For capt_seq.c
 160 DEF(_nrflag,0x5b30) // Found @ ffcfc5c8 (0x5b38) & ffcfc5e8 (-0x08)
 161 //static long *nrflag = (long*)(0x5b38-0x08);  // Found @ ffcfc5c8 & ffcfc5e4
 162 
 163 // Stubs below matched 100%.
 164 //    Name                                     Address                Comp to stubs_entry_2.S
 165 NHSTUB(AllocateUncacheableMemory              ,0xffc17288) //112
 166 NHSTUB(Close                                  ,0xffc13c3c) //120
 167 NHSTUB(CreateBinarySemaphore                  ,0xffc16a68) //115
 168 NHSTUB(CreateTask                             ,0xffc0afac) //120
 169 NHSTUB(DebugAssert                            ,0xffc0b284) //107
 170 NHSTUB(DeleteDirectory_Fut                    ,0xffc135cc) //116
 171 NHSTUB(DeleteFile_Fut                         ,0xffc134e8) //112
 172 NHSTUB(DoAELock                               ,0xffc153e0) //120
 173 NHSTUB(DoAFLock                               ,0xffc15298) //120
 174 NHSTUB(EnterToCompensationEVF                 ,0xffc15348) //104
 175 NHSTUB(ExecuteEventProcedure                  ,0xffc565a8) //104
 176 NHSTUB(ExitFromCompensationEVF                ,0xffc1538c) //104
 177 NHSTUB(ExitTask                               ,0xffc0b23c) //120
 178 NHSTUB(ExpCtrlTool_StartContiAE               ,0xffc1fcc4) //104
 179 NHSTUB(ExpCtrlTool_StopContiAE                ,0xffc1fe08) //104
 180 NHSTUB(Fclose_Fut                             ,0xffc13664) //120
 181 NHSTUB(Feof_Fut                               ,0xffc13850) //  1
 182 NHSTUB(Fflush_Fut                             ,0xffc1388c) //  1
 183 NHSTUB(Fgets_Fut                              ,0xffc137b8) //  1
 184 NHSTUB(Fopen_Fut                              ,0xffc13624) //120
 185 NHSTUB(Fread_Fut                              ,0xffc13710) //120
 186 NHSTUB(FreeUncacheableMemory                  ,0xffc172c8) //112
 187 NHSTUB(Fseek_Fut                              ,0xffc13804) //120
 188 NHSTUB(Fwrite_Fut                             ,0xffc13764) //120
 189 NHSTUB(GetBatteryTemperature                  ,0xffc338cc) //102
 190 NHSTUB(GetCCDTemperature                      ,0xffc33858) //102
 191 NHSTUB(GetCurrentAvValue                      ,0xffcf1384) //120
 192 NHSTUB(GetCurrentShutterSpeed                 ,0xffc6e090) //120
 193 NHSTUB(GetDrive_ClusterSize                   ,0xffc3f81c) //  5
 194 NHSTUB(GetDrive_FreeClusters                  ,0xffc3f874) //  5
 195 NHSTUB(GetDrive_TotalClusters                 ,0xffc3f848) //  5
 196 NHSTUB(GetFocusLensSubjectDistance            ,0xffcf0434) //102
 197 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xffcf0810) //  3
 198 NHSTUB(GetKbdState                            ,0xffc30e04) //109
 199 NHSTUB(GetMemInfo                             ,0xffc03be4) //115
 200 NHSTUB(GetOpticalTemperature                  ,0xffc33940) //120
 201 NHSTUB(GetParameterData                       ,0xffd1bff8) //101
 202 NHSTUB(GetPropertyCase                        ,0xffc5a2e8) //102
 203 NHSTUB(GetSystemTime                          ,0xffded8c0) //120
 204 NHSTUB(GetVRAMHPixelsSize                     ,0xffc966a8) //120
 205 NHSTUB(GetVRAMVPixelsSize                     ,0xffc966b4) //120
 206 NHSTUB(GetZoomLensCurrentPoint                ,0xffcf4ad4) //120
 207 NHSTUB(GetZoomLensCurrentPosition             ,0xffde5634) //102
 208 NHSTUB(GiveSemaphore                          ,0xffc16ca4) //120
 209 NHSTUB(IsStrobeChargeCompleted                ,0xffc88190) //102
 210 NHSTUB(LEDDrive                               ,0xffc3043c) //120
 211 NHSTUB(LocalTime                              ,0xffc5426c) //115
 212 NHSTUB(LockMainPower                          ,0xffc5dbd0) //120
 213 NHSTUB(MakeDirectory_Fut                      ,0xffc1355c) //116
 214 NHSTUB(MoveFocusLensToDistance                ,0xffe34bc0) //102
 215 NHSTUB(MoveIrisWithAv                         ,0xffdea944) //120
 216 NHSTUB(MoveZoomLensWithPoint                  ,0xffdeaecc) //120
 217 NHSTUB(Open                                   ,0xffc13c14) //120
 218 NHSTUB(PB2Rec                                 ,0xffc608a0) //104
 219 NHSTUB(PT_MoveDigitalZoomToWide               ,0xffc47b54) //120
 220 NHSTUB(PT_MoveOpticalZoomAt                   ,0xffc47b2c) //120
 221 NHSTUB(PT_PlaySound                           ,0xffc47764) //102
 222 NHSTUB(PostLogicalEventForNotPowerType        ,0xffc5d1f8) //120
 223 NHSTUB(PostLogicalEventToUI                   ,0xffc5d244) //120
 224 NHSTUB(PutInNdFilter                          ,0xffdead30) //102
 225 NHSTUB(PutOutNdFilter                         ,0xffdead54) //102
 226 NHSTUB(Read                                   ,0xffc09ae4) //120
 227 NHSTUB(ReadFastDir                            ,0xffdd7998) //  1
 228 NHSTUB(Rec2PB                                 ,0xffc608e0) //104
 229 NHSTUB(RefreshPhysicalScreen                  ,0xffd64c80) //104
 230 NHSTUB(RenameFile_Fut                         ,0xffc13494) //  1
 231 NHSTUB(Restart                                ,0xffc189d8) //122
 232 NHSTUB(SetAE_ShutterSpeed                     ,0xffe373a0) //102
 233 NHSTUB(SetAutoShutdownTime                    ,0xffc5dc44) //120
 234 NHSTUB(SetCurrentCaptureModeType              ,0xffc6421c) //120
 235 NHSTUB(SetFileAttributes                      ,0xffc13f68) //  1
 236 NHSTUB(SetFileTimeStamp                       ,0xffc13f18) //  1
 237 NHSTUB(SetLogicalEventActive                  ,0xffc5d94c) //120
 238 NHSTUB(SetParameterData                       ,0xffd1bf68) //101
 239 NHSTUB(SetPropertyCase                        ,0xffc5a1e4) //102
 240 NHSTUB(SetScriptMode                          ,0xffc5d99c) //120
 241 NHSTUB(SleepTask                              ,0xffc16f0c) //120
 242 NHSTUB(TakeSemaphore                          ,0xffc16bd4) //120
 243 NHSTUB(TurnOffBackLight                       ,0xffc68aa8) //104
 244 NHSTUB(TurnOnBackLight                        ,0xffc68a90) //104
 245 NHSTUB(TurnOnDisplay                          ,0xffc2ca70) //120
 246 NHSTUB(TurnOffDisplay                         ,0xffc2ca80) //120
 247 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xffd0d51c) //120
 248 NHSTUB(UnlockAE                               ,0xffc15404) //120
 249 NHSTUB(UnlockAF                               ,0xffc152d0) //120
 250 NHSTUB(UnlockMainPower                        ,0xffc5db24) //120
 251 NHSTUB(UnsetZoomForMovie                      ,0xffd21b70) //104
 252 NHSTUB(UpdateMBROnFlash                       ,0xffc3f674) //105
 253 NHSTUB(VbattGet                               ,0xffc10644) //120
 254 NHSTUB(Write                                  ,0xffc13ce8) //120
 255 NHSTUB(WriteSDCard                            ,0xffce4300) //108
 256 NHSTUB(_log                                   ,0xffe61e40) //111
 257 NHSTUB(_log10                                 ,0xffe60acc) //112
 258 NHSTUB(_pow                                   ,0xffe60c3c) //121
 259 NHSTUB(_sqrt                                  ,0xffe639e4) //  1
 260 NHSTUB(add_ptp_handler                        ,0xffdaa120) //121
 261 NHSTUB(apex2us                                ,0xffd65d38) //121
 262 NHSTUB(close                                  ,0xffc098fc) //109
 263 NHSTUB(err_init_task                          ,0xffc04e2c) //111
 264 NHSTUB(exmem_alloc                            ,0xffc54ea0) //103
 265 NHSTUB(exmem_free                             ,0xffc54f18) //103
 266 NHSTUB(free                                   ,0xffc03a3c) //112
 267 NHSTUB(get_nd_value                           ,0xffde3188) //123
 268 NHSTUB(get_current_nd_value                   ,0xffde3144) //122
 269 NHSTUB(kbd_p1_f                               ,0xffc11dec) //109
 270 NHSTUB(kbd_p1_f_cont                          ,0xffc11df8) //109
 271 NHSTUB(kbd_p2_f                               ,0xffc116b0) //109
 272 NHSTUB(kbd_read_keys                          ,0xffc11d70) //109
 273 NHSTUB(kbd_read_keys_r2                       ,0xffc30824) //109
 274 NHSTUB(lseek                                  ,0xffc13d7c) //120
 275 NHSTUB(malloc                                 ,0xffc03968) //112
 276 NHSTUB(memcmp                                 ,0xffc0cc5c) //120
 277 NHSTUB(memcpy                                 ,0xffc6cc38) //120
 278 NHSTUB(memset                                 ,0xffd65020) //120
 279 NHSTUB(mkdir                                  ,0xffc13fe0) //109
 280 NHSTUB(mktime_ext                             ,0xffc6d4a4) //  1
 281 NHSTUB(open                                   ,0xffc0984c) //109
 282 NHSTUB(OpenFastDir                            ,0xffdd7904) //  1
 283 NHSTUB(closedir                               ,0xffdd7a68) //  1
 284 NHSTUB(qsort                                  ,0xffe1cbf8) //  1
 285 NHSTUB(rand                                   ,0xffc0cd64) //121
 286 NHSTUB(realloc                                ,0xffc03b1c) //115
 287 NHSTUB(reboot_fw_update                       ,0xffddb47c) //106
 288 NHSTUB(set_control_event                      ,0xffc5d680) //111
 289 NHSTUB(srand                                  ,0xffc0cd58) //122
 290 NHSTUB(stat                                   ,0xffc13e48) //  1
 291 NHSTUB(strcat                                 ,0xffc6ca4c) //  1
 292 NHSTUB(strchr                                 ,0xffc6cad4) //  1
 293 NHSTUB(strcmp                                 ,0xffc0cbf4) //120
 294 NHSTUB(strcpy                                 ,0xffc0cbdc) //120
 295 NHSTUB(strftime                               ,0xffc6ceac) //  1
 296 NHSTUB(strlen                                 ,0xffc0cc38) //120
 297 NHSTUB(strncmp                                ,0xffc6ca88) //  1
 298 NHSTUB(strncpy                                ,0xffc1cac0) //  1
 299 NHSTUB(strrchr                                ,0xffd64ff8) //  1
 300 NHSTUB(strtol                                 ,0xffc1ccf8) //101
 301 NHSTUB(strtolx                                ,0xffc1cafc) //109
 302    DEF(task_CaptSeq                           ,0xffc49fe0) //120
 303    DEF(task_DvlpSeqTask                       ,0xffcfd1c4) //120
 304    DEF(task_ExpDrv                            ,0xffc7ee88) //120
 305    DEF(task_FileWrite                         ,0xffdd34d8) //120
 306    DEF(task_InitFileModules                   ,0xffc61374) //120
 307    DEF(task_MovieRecord                       ,0xffcf82b4) //120
 308    DEF(task_PhySw                             ,0xffc119e0) //120
 309 NHSTUB(time                                   ,0xffc54120) //109
 310 NHSTUB(vsprintf                               ,0xffc0cba0) //115
 311 NHSTUB(EngDrvRead                             ,0xffc12c28) //102
 312 NHSTUB(PTM_GetCurrentItem                     ,0xffc5e600) //105
 313 NHSTUB(CancelHPTimer                          ,0xffc55c90) //119
 314 NHSTUB(SetHPTimerAfterNow                     ,0xffc55b88) //119
 315 NHSTUB(PT_MFOn                                ,0xffc47bcc) //120
 316 NHSTUB(PT_MFOff                               ,0xffc47bdc) //120
 317 NHSTUB(GetAdChValue                           ,0xffc2e44c) //120
 318 NHSTUB(get_ptp_buf_size                       ,0xffc9916c) //122
 319 NHSTUB(get_ptp_file_buf                       ,0xffdabc9c) //121

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