root/platform/ixus970_sd890/sub/100f/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 R23 (DRYOS version 2.3, release #0023)
   6 //   Firmware Ver GM1.00F   // Found @ 0xff86c0a0, "GM1.00F" @ 0xff86c0ad
   7 //   Firmware build timestamp: Oct 28 2008 13:41:31
   8 //   Canon PowerShot SD890 IS
   9 
  10 // Values for makefile.inc
  11 //   PLATFORMOSVER = 23
  12 //   PLATFORMID = 12659 (0x3173) // Found @ 0xfffe0130
  13 //   MAXRAMADDR = 0x03ffffff
  14 //   MEMISOSTART = 0x000cbd40
  15 //   KEYSYS = d3enc              // Found @ 0xffff33e0
  16 //   NEED_ENCODED_DISKBOOT = 1   // Found @ 0xffff33c0
  17 //   ARAM_HEAP_START = 0x2ce000  // Found @ 0xffa2eba4
  18 //   ARAM_HEAP_SIZE  = 0x32000   // Found @ 0xffa2eb64
  19 
  20 // Detected address ranges:
  21 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  22 // RAM data 0x00001900 - 0x0000f164 copied from 0xffb1e468 (  55396 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 
  27 // Check of modemap from 'platform/CAMERA/shooting.c':
  28 // Firmware modemap table found @ffa3ee38 -> ffaf9518
  29 // No problems found with modemap table.
  30 
  31 // Values below can be overridden in 'stubs_min.S':
  32 DEF(physw_status                            ,0x00010650) // Found @0xff821e38
  33 DEF(physw_run                               ,0x00001c00) // Found @0xff821ad0
  34 DEF(physw_sleep_delay                       ,0x00001bfe) // Found @0xff821ad0
  35 DEF(levent_table                            ,0xffad4084) // Found @0xffad4084
  36 DEF(FlashParamsTable                        ,0xffaf96d8) // Found @0xffaf96d8
  37 DEF(movie_status                            ,0x000053cc) // Found @0xff859cfc
  38 DEF(canon_menu_active                       ,0x000099e0) // Found @0xff950108
  39 DEF(canon_shoot_menu_active                 ,0x00009fd9) // Found @0xff96cce0
  40 DEF(playrec_mode                            ,0x0000555c) // Found @0xff8610f4
  41 DEF(zoom_status                             ,0x0000d4a4) // Found @0xffa40638
  42 DEF(some_flag_for_af_scan                   ,0x0000d228) // Found @0xffa2b508
  43 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  44 // each entry contains 3 int value(s), the first is the zoom focus length.
  45 // there are 12 entries in the table - set NUM_FL to 12
  46 DEF(focus_len_table                         ,0xfffe297c) // Found @0xfffe297c
  47 DEF(zoom_busy                               ,0x00008aa0) // Found @0xff932a0c
  48 DEF(focus_busy                              ,0x0000898c) // Found @0xff92e0b8
  49 //DEF(recreview_hold                          ,0x00006188) // Found @0xff87eb14, ** != ** stubs_min = 0x00009d98 (0x9CEC+0xAC)
  50 // Camera has 2 RAW buffers @ 0x107d68c0 & 0x11b97b60
  51 //  Note: active buffer --> raw_buffers[ active_raw_buffer   *3]
  52 //        other buffer  --> raw_buffers[(active_raw_buffer^1)*3]
  53 DEF(raw_buffers                             ,0xffab1c2c) // Found @0xffab1c2c
  54 DEF(active_raw_buffer                       ,0x0000550c) // Found @0xff85e57c
  55 DEF(fileio_semaphore                        ,0x00002a0c) // Found @0xff850ce8
  56 DEF(exmem_alloc_table                       ,0x0001a2dc) // Found @0xff8672b0
  57 DEF(exmem_types_table                       ,0xffb2219c) // Found @0x00005634
  58 DEF_CONST(exmem_type_count                  ,0x00000012)
  59 DEF(imager_active                           ,0x00001ef4) // Found @0xff8362e4 (0x1ef0 + 4)
  60 DEF_CONST(uiprop_count                      ,0x00000064) // Found @0xff95cea0
  61 
  62 // Values below go in 'lib.c':
  63 //void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xff83e89c
  64 //void *vid_get_viewport_fb()      { return (void*)0x1065adc0; }             // Found @0xffa88a6c
  65 DEF(viewport_fb_d                           ,0x0000524c) // Found 0x51fc (@0xff853074) + 0x50 (@0xff8530ac)
  66 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x51fc+0x50)); } // Found @0xff853074 & 0xff8530ac
  67 DEF(jpeg_count_str                          ,0x0004ca80) // Found @0xff9a6f4c
  68 //char *camera_jpeg_count_str()    { return (char*)0x0004ca80; }             // Found @0xff9a6f4c
  69 //int get_flash_params_count(void) { return 0x73; }                          // Found @0xff95d8e4
  70 
  71 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  72 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffab16e8, levent 0x90a
  73 //#define SD_READONLY_IDX     2
  74 //#define USB_MASK            0x00040000 // Found @0xffab16f4, levent 0x902
  75 //#define USB_IDX             2
  76 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffab16d0, levent 0x905
  77 //#define BATTCOVER_IDX       2
  78 //#define ANALOG_AV_FLAG      0x00200000 // Found @0xffab15bc, levent 0x900 (non-inverted logic)
  79 //#define ANALOG_AV_IDX       0
  80 
  81 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  82 //static KeyMap keymap[] = {
  83 //    { 1, KEY_POWER           ,0x40000000 }, // Found @0xffab1628, levent 0x600
  84 //    { 1, KEY_PLAYBACK        ,0x80000000 }, // Found @0xffab1634, levent 0x601
  85 //    { 2, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffab164c, levent 0x01
  86 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffab164c, levent 0x01
  87 //    { 2, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffab1640, levent 0x00
  88 //    { 2, KEY_ZOOM_IN         ,0x00000004 }, // Found @0xffab1658, levent 0x02
  89 //    { 2, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffab1664, levent 0x03
  90 //    { 2, KEY_LEFT            ,0x00000010 }, // Found @0xffab1670, levent 0x06
  91 //    { 2, KEY_RIGHT           ,0x00000020 }, // Found @0xffab167c, levent 0x07
  92 //    { 2, KEY_DOWN            ,0x00000040 }, // Found @0xffab1688, levent 0x05
  93 //    { 2, KEY_UP              ,0x00000080 }, // Found @0xffab1694, levent 0x04
  94 //    { 2, KEY_SET             ,0x00000100 }, // Found @0xffab16a0, levent 0x08
  95 //    { 2, KEY_DISPLAY         ,0x00000200 }, // Found @0xffab16ac, levent 0x0a
  96 //    { 2, KEY_MENU            ,0x00000400 }, // Found @0xffab16b8, levent 0x09
  97 //    { 0, 0, 0 }
  98 //};
  99 
 100 // Values below go in 'platform_camera.h':
 101 //#define CAM_DRYOS         1
 102 //#define CAM_RAW_ROWPIX    3720 // Found @0xffa8248c
 103 //#define CAM_RAW_ROWS      2772 // Found @0xffa82494
 104 //#undef  CAM_UNCACHED_BIT
 105 //#define CAM_UNCACHED_BIT  0x10000000 // Found @0xff8285a4
 106 //#define PARAM_CAMERA_NAME 4 // Found @0xffafb7d4
 107 
 108 // Known propcases
 109 // //      PROPCASE_AFSTEP 13
 110 // #define PROPCASE_FOCUS_STATE 18
 111 // #define PROPCASE_AV 23
 112 // #define PROPCASE_BV 34
 113 // //      PROPCASE_DELTA_DIGITALGAIN 77
 114 // #define PROPCASE_DELTA_SV 79
 115 // //      PROPCASE_DELTA_ND 80
 116 // #define PROPCASE_EV_CORRECTION_2 207
 117 // #define PROPCASE_ORIENTATION_SENSOR 219
 118 // #define PROPCASE_SV_MARKET 246
 119 // //      PROPCASE_SVFIX 247
 120 // #define PROPCASE_TV 262
 121 // Guessed propset: 2
 122 
 123 // Misc stuff
 124 DEF(ctypes, 0xffab11b6)
 125 
 126 // EXMEM types:
 127 // EXMEM_RAMDISK     0
 128 // EXMEM_COM         1
 129 // EXMEM_COMTMP      2
 130 // EXMEM_FORMATTER   3
 131 // EXMEM_SHADING     4
 132 // EXMEM_FAMODE      5
 133 // EXMEM_FIRMUP      6
 134 // EXMEM_FIRMUP_VRAM 7
 135 // EXMEM_DVLPWORK    8
 136 // EXMEM_EVF         9
 137 // EXMEM_SCRIPT      10
 138 // EXMEM_FILESTORE   11
 139 // EXMEM_MOVIE_REC   12
 140 // EXMEM_MOVIE_PLY   13
 141 // EXMEM_WIDE        14
 142 // EXMEM_NARROW      15
 143 // EXMEM_CRAW_REC    16
 144 // EXMEM_PCEVF       17
 145 
 146 // ISR flag: 0x195c, pointer to current task's control block: 0x1958
 147 // pointer to TCB area: 0x19f4, found @ 0xff815e1c
 148 
 149 // LED table init @ 0xff8ebd64
 150 // LED #1: 0xc02200d4, offset 0x204
 151 // LED #2: 0xc0220138, offset 0x84
 152 // LED #3: 0xc02200d0, offset 0xc4
 153 // LED #4: 0xc0220134, offset 0x4
 154 // LED #5: 0xc0220130, offset 0x44
 155 
 156 // For capt_seq.c
 157 DEF(_nrflag,0x91a4) // Found @ ff93db0c (0x91a4)
 158 //static long *nrflag = (long*)(0x91a4);       // Found @ ff93db0c
 159 
 160 // Stubs below matched 100%.
 161 //    Name                                     Address                Comp to stubs_entry_2.S
 162 NHSTUB(AllocateUncacheableMemory              ,0xff828568) //112
 163 NHSTUB(Close                                  ,0xff823d90) //120
 164 NHSTUB(CreateBinarySemaphore                  ,0xff81b540) //115
 165 NHSTUB(CreateTask                             ,0xff81b818) //120
 166 NHSTUB(DebugAssert                            ,0xff81bcf0) //107
 167 NHSTUB(DeleteDirectory_Fut                    ,0xff823720) //116
 168 NHSTUB(DeleteFile_Fut                         ,0xff82363c) //112
 169 NHSTUB(DoAELock                               ,0xff825f74) //120
 170 NHSTUB(DoAFLock                               ,0xff825b84) //120
 171 NHSTUB(EnterToCompensationEVF                 ,0xff825e80) //104
 172 NHSTUB(ExecuteEventProcedure                  ,0xff86938c) //104
 173 NHSTUB(ExitFromCompensationEVF                ,0xff825ed0) //104
 174 NHSTUB(ExitTask                               ,0xff81baa8) //120
 175 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff832b00) //104
 176 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff832c44) //104
 177 NHSTUB(Fclose_Fut                             ,0xff8237b8) //120
 178 NHSTUB(Feof_Fut                               ,0xff8239a4) //  1
 179 NHSTUB(Fflush_Fut                             ,0xff8239e0) //  1
 180 NHSTUB(Fgets_Fut                              ,0xff82390c) //  1
 181 NHSTUB(Fopen_Fut                              ,0xff823778) //120
 182 NHSTUB(Fread_Fut                              ,0xff823864) //120
 183 NHSTUB(FreeUncacheableMemory                  ,0xff82859c) //112
 184 NHSTUB(Fseek_Fut                              ,0xff823958) //120
 185 NHSTUB(Fwrite_Fut                             ,0xff8238b8) //120
 186 NHSTUB(GetBatteryTemperature                  ,0xff84539c) //102
 187 NHSTUB(GetCCDTemperature                      ,0xff84532c) //102
 188 NHSTUB(GetCurrentAvValue                      ,0xff92facc) //120
 189 NHSTUB(GetCurrentShutterSpeed                 ,0xff8956dc) //120
 190 NHSTUB(GetDrive_ClusterSize                   ,0xff84f2bc) //  1
 191 NHSTUB(GetDrive_FreeClusters                  ,0xff84f324) //  1
 192 NHSTUB(GetDrive_TotalClusters                 ,0xff84f2f0) //  1
 193 NHSTUB(GetFocusLensSubjectDistance            ,0xff92ebc4) //102
 194 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff92eed0) //  1
 195 NHSTUB(GetKbdState                            ,0xff8428e4) //109
 196 NHSTUB(GetMemInfo                             ,0xff813c40) //115
 197 NHSTUB(GetOpticalTemperature                  ,0xff84540c) //120
 198 NHSTUB(GetParameterData                       ,0xff95d8a4) //101
 199 NHSTUB(GetPropertyCase                        ,0xff86cf8c) //102
 200 NHSTUB(GetSystemTime                          ,0xffa2e3f8) //120
 201 NHSTUB(GetVRAMHPixelsSize                     ,0xff8c851c) //120
 202 NHSTUB(GetVRAMVPixelsSize                     ,0xff8c8528) //120
 203 NHSTUB(GetZoomLensCurrentPoint                ,0xff932d74) //120
 204 NHSTUB(GetZoomLensCurrentPosition             ,0xffa24448) //102
 205 NHSTUB(GiveSemaphore                          ,0xff81b77c) //120
 206 NHSTUB(IsStrobeChargeCompleted                ,0xff8bd988) //102
 207 NHSTUB(LEDDrive                               ,0xff842068) //120
 208 NHSTUB(LocalTime                              ,0xff866a50) //115
 209 NHSTUB(LockMainPower                          ,0xff875438) //120
 210 NHSTUB(MakeDirectory_Fut                      ,0xff8236b0) //116
 211 NHSTUB(MoveFocusLensToDistance                ,0xffa855a8) //102
 212 NHSTUB(MoveIrisWithAv                         ,0xffa2a7a8) //120
 213 NHSTUB(MoveZoomLensWithPoint                  ,0xffa2ad2c) //120
 214 NHSTUB(Open                                   ,0xff823d68) //120
 215 NHSTUB(PB2Rec                                 ,0xff878454) //104
 216 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff85bb68) //120
 217 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff85bb40) //120
 218 NHSTUB(PT_PlaySound                           ,0xff85b1c4) //102
 219 NHSTUB(PostLogicalEventForNotPowerType        ,0xff8731f8) //120
 220 NHSTUB(PostLogicalEventToUI                   ,0xff873244) //120
 221 NHSTUB(PutInNdFilter                          ,0xffa2ab90) //102
 222 NHSTUB(PutOutNdFilter                         ,0xffa2abb4) //102
 223 NHSTUB(Read                                   ,0xff81a094) //120
 224 NHSTUB(ReadFastDir                            ,0xffa13470) //  1
 225 NHSTUB(Rec2PB                                 ,0xff876e58) //104
 226 NHSTUB(RefreshPhysicalScreen                  ,0xff9b1258) //104
 227 NHSTUB(RenameFile_Fut                         ,0xff8235e8) //  1
 228 NHSTUB(Restart                                ,0xff829de0) //122
 229 NHSTUB(SetAE_ShutterSpeed                     ,0xffa87c7c) //102
 230 NHSTUB(SetAutoShutdownTime                    ,0xff8754ac) //120
 231 NHSTUB(SetCurrentCaptureModeType              ,0xff87c2b8) //120
 232 NHSTUB(SetFileAttributes                      ,0xff8240bc) //  1
 233 NHSTUB(SetFileTimeStamp                       ,0xff82406c) //  1
 234 NHSTUB(SetLogicalEventActive                  ,0xff875118) //  1
 235 NHSTUB(SetParameterData                       ,0xff95d814) //101
 236 NHSTUB(SetPropertyCase                        ,0xff86ce8c) //102
 237 NHSTUB(SetScriptMode                          ,0xff875168) //120
 238 NHSTUB(SleepTask                              ,0xff8283ec) //120
 239 NHSTUB(TakeSemaphore                          ,0xff81b6ac) //120
 240 NHSTUB(TurnOffBackLight                       ,0xff881cac) //104
 241 NHSTUB(TurnOnBackLight                        ,0xff881c94) //104
 242 NHSTUB(TurnOnDisplay                          ,0xff83e94c) //120
 243 NHSTUB(TurnOffDisplay                         ,0xff83e95c) //120
 244 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff951064) //120
 245 NHSTUB(UnlockAE                               ,0xff825fa4) //120
 246 NHSTUB(UnlockAF                               ,0xff825bc8) //120
 247 NHSTUB(UnlockMainPower                        ,0xff87538c) //120
 248 NHSTUB(UnsetZoomForMovie                      ,0xff962e40) //104
 249 NHSTUB(UpdateMBROnFlash                       ,0xff84f0fc) //105
 250 NHSTUB(VbattGet                               ,0xff82071c) //120
 251 NHSTUB(Write                                  ,0xff823e3c) //120
 252 NHSTUB(WriteSDCard                            ,0xff922764) //108
 253 NHSTUB(_log                                   ,0xffaaec70) //111
 254 NHSTUB(_log10                                 ,0xffaadbb4) //112
 255 NHSTUB(_pow                                   ,0xffaadd24) //121
 256 NHSTUB(_sqrt                                  ,0xffab0090) //  1
 257 NHSTUB(add_ptp_handler                        ,0xff9e1a94) //121
 258 NHSTUB(apex2us                                ,0xff9b2794) //121
 259 NHSTUB(close                                  ,0xff819eac) //109
 260 NHSTUB(err_init_task                          ,0xff814e98) //111
 261 NHSTUB(exmem_alloc                            ,0xff867b74) //103
 262 NHSTUB(exmem_free                             ,0xff867bec) //103
 263 NHSTUB(free                                   ,0xff813a98) //112
 264 NHSTUB(get_nd_value                           ,0xffa21da0) //123
 265 NHSTUB(get_current_nd_value                   ,0xffa21d5c) //122
 266 NHSTUB(kbd_p1_f                               ,0xff821f3c) //109
 267 NHSTUB(kbd_p1_f_cont                          ,0xff821f48) //109
 268 NHSTUB(kbd_p2_f                               ,0xff821770) //109
 269 NHSTUB(kbd_read_keys                          ,0xff821e38) //109
 270 NHSTUB(kbd_read_keys_r2                       ,0xff842490) //109
 271 NHSTUB(kbd_pwr_off                            ,0xff842968) //  2
 272 NHSTUB(kbd_pwr_on                             ,0xff842918) //  2
 273 NHSTUB(lseek                                  ,0xff823ed0) //120
 274 NHSTUB(malloc                                 ,0xff8139c4) //112
 275 NHSTUB(memcmp                                 ,0xff81d844) //120
 276 NHSTUB(memcpy                                 ,0xff894328) //120
 277 NHSTUB(memset                                 ,0xff9b160c) //120
 278 NHSTUB(mkdir                                  ,0xff824134) //109
 279 NHSTUB(mktime_ext                             ,0xff894b94) //  1
 280 NHSTUB(open                                   ,0xff819dfc) //109
 281 NHSTUB(OpenFastDir                            ,0xffa133dc) //  1
 282 NHSTUB(closedir                               ,0xffa13540) //  1
 283 NHSTUB(qsort                                  ,0xff9b1b14) //  1
 284 NHSTUB(rand                                   ,0xff81d94c) //121
 285 NHSTUB(realloc                                ,0xff813b78) //115
 286 NHSTUB(reboot_fw_update                       ,0xffa1ae70) //106
 287 NHSTUB(set_control_event                      ,0xff874d94) //  1
 288 NHSTUB(srand                                  ,0xff81d940) //122
 289 NHSTUB(stat                                   ,0xff823f9c) //  1
 290 NHSTUB(strcat                                 ,0xff894114) //  1
 291 NHSTUB(strchr                                 ,0xff89419c) //  1
 292 NHSTUB(strcmp                                 ,0xff81d7dc) //120
 293 NHSTUB(strcpy                                 ,0xff81d7c4) //120
 294 NHSTUB(strftime                               ,0xff89459c) //  1
 295 NHSTUB(strlen                                 ,0xff81d820) //120
 296 NHSTUB(strncmp                                ,0xff894150) //  1
 297 NHSTUB(strncpy                                ,0xff82e1fc) //  1
 298 NHSTUB(strrchr                                ,0xff8941c0) //  1
 299 NHSTUB(strtol                                 ,0xff82e434) //101
 300 NHSTUB(strtolx                                ,0xff82e238) //109
 301    DEF(task_CaptSeq                           ,0xff85dfc0) //120
 302    DEF(task_DvlpSeqTask                       ,0xff93e6a0) //120
 303    DEF(task_ExpDrv                            ,0xff8b67e8) //120
 304    DEF(task_FileWrite                         ,0xffa101b8) //120
 305    DEF(task_InitFileModules                   ,0xff878f08) //120
 306    DEF(task_MovieRecord                       ,0xff859f88) //120
 307    DEF(task_PhySw                             ,0xff821acc) //120
 308    DEF(task_RotaryEncoder                     ,0xff842a40) //120
 309 NHSTUB(time                                   ,0xff866f54) //109
 310 NHSTUB(vsprintf                               ,0xff81d744) //115
 311 NHSTUB(EngDrvRead                             ,0xff822d7c) //102
 312 //NHSTUB(PTM_GetCurrentItem                   ,0xff875d6c) //105            == 0xff875d6c
 313 NHSTUB(CancelHPTimer                          ,0xff8688c8) //119
 314 NHSTUB(SetHPTimerAfterNow                     ,0xff8687c0) //119
 315 NHSTUB(PT_MFOn                                ,0xff85bbe0) //120
 316 NHSTUB(PT_MFOff                               ,0xff85bbf0) //120
 317 NHSTUB(GetAdChValue                           ,0xff84038c) //120
 318 NHSTUB(get_ptp_buf_size                       ,0xff8caf10) //122
 319 NHSTUB(get_ptp_file_buf                       ,0xff9e33c4) //121

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