root/platform/ixus85_sd770/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 R23 (DRYOS version 2.3, release #0023)
   6 //   Firmware Ver GM1.00A   // Found @ 0xff86bef0, "GM1.00A" @ 0xff86befd
   7 //   Firmware build timestamp: Jan 31 2008 13:20:56
   8 //   Canon PowerShot SD770 IS
   9 
  10 // Values for makefile.inc
  11 //   PLATFORMOSVER = 23
  12 //   PLATFORMID = 12661 (0x3175) // Found @ 0xfffe0130
  13 //   MAXRAMADDR = 0x03ffffff
  14 //   MEMISOSTART = 0x000cba08
  15 //   KEYSYS = d3enc              // Found @ 0xffff33e0
  16 //   NEED_ENCODED_DISKBOOT = 1   // Found @ 0xffff33c0
  17 //   ARAM_HEAP_START = 0x2ce000  // Found @ 0xffa2997c
  18 //   ARAM_HEAP_SIZE  = 0x32000   // Found @ 0xffa2993c
  19 
  20 // Detected address ranges:
  21 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  22 // RAM data 0x00001900 - 0x0000efe4 copied from 0xffb15aa4 (  55012 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(DebugAssert                          ,0xff81bcf0) //107        *** != 0xff81bcf8
  27 
  28 // Check of modemap from 'platform/CAMERA/shooting.c':
  29 // Firmware modemap table found @ffa398b0 -> ffaf0bf0
  30 // Mode 32774 in firmware but not in current modemap
  31 // Mode 32779 in firmware but not in current modemap
  32 // Mode 32781 in firmware but not in current modemap
  33 // Mode 16407 in firmware but not in current modemap
  34 // Current modemap entry not found in firmware - MODE_PORTRAIT            16397
  35 // Current modemap entry not found in firmware - MODE_NIGHT_SNAPSHOT      16395
  36 
  37 // Values below can be overridden in 'stubs_min.S':
  38 DEF(physw_status                            ,0x000104d0) // Found @0xff821e34
  39 DEF(physw_run                               ,0x00001c00) // Found @0xff821ad0
  40 DEF(physw_sleep_delay                       ,0x00001bfe) // Found @0xff821ad0
  41 DEF(levent_table                            ,0xffacd870) // Found @0xffacd870
  42 DEF(FlashParamsTable                        ,0xffaf0db4) // Found @0xffaf0db4
  43 DEF(movie_status                            ,0x000053a4) // Found @0xff859b6c
  44 DEF(canon_menu_active                       ,0x00009608) // Found @0xff94df84
  45 DEF(canon_shoot_menu_active                 ,0x00009f4d) // Found @0xff96b2bc
  46 DEF(playrec_mode                            ,0x00005534) // Found @0xff860f44
  47 DEF(zoom_status                             ,0x0000d328) // Found @0xffa3b0b0
  48 DEF(some_flag_for_af_scan                   ,0x0000d0ac) // Found @0xffa262e0
  49 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  50 // each entry contains 3 int value(s), the first is the zoom focus length.
  51 // there are 7 entries in the table - set NUM_FL to 7
  52 DEF(focus_len_table                         ,0xfffe297c) // Found @0xfffe297c
  53 DEF(zoom_busy                               ,0x000086a8) // Found @0xff930200
  54 DEF(focus_busy                              ,0x000085b4) // Found @0xff92bdac
  55 //DEF(recreview_hold                          ,0x00005dc4) // Found @0xff87cd54, ** != ** stubs_min = 0x00009d2c (0x9C80+0xAC)
  56 // Camera has 2 RAW buffers @ 0x107d68c0 & 0x11b97b60
  57 //  Note: active buffer --> raw_buffers[ active_raw_buffer   *3]
  58 //        other buffer  --> raw_buffers[(active_raw_buffer^1)*3]
  59 DEF(raw_buffers                             ,0xffaab1c4) // Found @0xffaab1c4
  60 DEF(active_raw_buffer                       ,0x000054e4) // Found @0xff85e3ec
  61 DEF(fileio_semaphore                        ,0x000029e4) // Found @0xff850aac
  62 DEF(exmem_alloc_table                       ,0x0001a16c) // Found @0xff867100
  63 DEF(exmem_types_table                       ,0xffb197b0) // Found @0x0000560c
  64 DEF_CONST(exmem_type_count                  ,0x00000012)
  65 DEF(imager_active                           ,0x00001ef0) // Found @0xff8361b4 (0x1eec + 4)
  66 DEF_CONST(uiprop_count                      ,0x00000064) // Found @0xff95be5c
  67 
  68 // Values below go in 'lib.c':
  69 //void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xff83e868
  70 //void *vid_get_viewport_fb()      { return (void*)0x1065adc0; }             // Found @0xffa81ed0
  71 DEF(viewport_fb_d                           ,0x00005224) // Found 0x51d4 (@0xff852e38) + 0x50 (@0xff852e70)
  72 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x51d4+0x50)); } // Found @0xff852e38 & 0xff852e70
  73 DEF(jpeg_count_str                          ,0x0004c73c) // Found @0xff9a22a0
  74 //char *camera_jpeg_count_str()    { return (char*)0x0004c73c; }             // Found @0xff9a22a0
  75 //int get_flash_params_count(void) { return 0x73; }                          // Found @0xff95c8a0
  76 
  77 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  78 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffaaacbc, levent 0x90a
  79 //#define SD_READONLY_IDX     2
  80 //#define USB_MASK            0x00040000 // Found @0xffaaacc8, levent 0x902
  81 //#define USB_IDX             2
  82 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffaaaca4, levent 0x905
  83 //#define BATTCOVER_IDX       2
  84 //#define ANALOG_AV_FLAG      0x00200000 // Found @0xffaaabb4, levent 0x900 (non-inverted logic)
  85 //#define ANALOG_AV_IDX       0
  86 
  87 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  88 //static KeyMap keymap[] = {
  89 //    { 1, KEY_POWER           ,0x40000000 }, // Found @0xffaaac08, levent 0x600
  90 //    { 2, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffaaac20, levent 0x01
  91 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffaaac20, levent 0x01
  92 //    { 2, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffaaac14, levent 0x00
  93 //    { 2, KEY_ZOOM_IN         ,0x00000004 }, // Found @0xffaaac2c, levent 0x02
  94 //    { 2, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffaaac38, levent 0x03
  95 //    { 2, KEY_LEFT            ,0x00000010 }, // Found @0xffaaac44, levent 0x06
  96 //    { 2, KEY_RIGHT           ,0x00000020 }, // Found @0xffaaac50, levent 0x07
  97 //    { 2, KEY_DOWN            ,0x00000040 }, // Found @0xffaaac5c, levent 0x05
  98 //    { 2, KEY_UP              ,0x00000080 }, // Found @0xffaaac68, levent 0x04
  99 //    { 2, KEY_SET             ,0x00000100 }, // Found @0xffaaac74, levent 0x08
 100 //    { 2, KEY_DISPLAY         ,0x00000200 }, // Found @0xffaaac80, levent 0x0a
 101 //    { 2, KEY_MENU            ,0x00000400 }, // Found @0xffaaac8c, levent 0x09
 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 @0xffa7b800
 108 //#define CAM_RAW_ROWS      2772 // Found @0xffa7b808
 109 //#undef  CAM_UNCACHED_BIT
 110 //#define CAM_UNCACHED_BIT  0x10000000 // Found @0xff8285a4
 111 //#define PARAM_CAMERA_NAME 4 // Found @0xffaf2ec8
 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, 0xffaaa7ae)
 130 
 131 // EXMEM types:
 132 // EXMEM_RAMDISK     0
 133 // EXMEM_COM         1
 134 // EXMEM_COMTMP      2
 135 // EXMEM_FORMATTER   3
 136 // EXMEM_SHADING     4
 137 // EXMEM_FAMODE      5
 138 // EXMEM_FIRMUP      6
 139 // EXMEM_FIRMUP_VRAM 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: 0x195c, pointer to current task's control block: 0x1958
 152 // pointer to TCB area: 0x19f4, found @ 0xff815e1c
 153 
 154 // LED table init @ 0xff8e99e4
 155 // LED #1: 0xc02200d4, offset 0x204
 156 // LED #2: 0xc0220138, offset 0x84
 157 // LED #3: 0xc02200d0, offset 0xc4
 158 // LED #4: 0xc0220134, offset 0x4
 159 // LED #5: 0xc0220130, offset 0x44
 160 
 161 // For capt_seq.c
 162 DEF(_nrflag,0x8dcc) // Found @ ff93b258 (0x8dcc)
 163 //static long *nrflag = (long*)(0x8dcc);       // Found @ ff93b258
 164 
 165 // Stubs below matched 100%.
 166 //    Name                                     Address                Comp to stubs_entry_2.S
 167 NHSTUB(AllocateUncacheableMemory              ,0xff828568) //112
 168 NHSTUB(Close                                  ,0xff823d8c) //120
 169 NHSTUB(CreateBinarySemaphore                  ,0xff81b540) //115
 170 NHSTUB(CreateTask                             ,0xff81b818) //120
 171 NHSTUB(DeleteDirectory_Fut                    ,0xff82371c) //116
 172 NHSTUB(DeleteFile_Fut                         ,0xff823638) //112
 173 NHSTUB(DoAELock                               ,0xff825f74) //120
 174 NHSTUB(DoAFLock                               ,0xff825b84) //120
 175 NHSTUB(EnterToCompensationEVF                 ,0xff825e80) //104
 176 NHSTUB(ExecuteEventProcedure                  ,0xff8691dc) //104
 177 NHSTUB(ExitFromCompensationEVF                ,0xff825ed0) //104
 178 NHSTUB(ExitTask                               ,0xff81baa8) //120
 179 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff8329d0) //104
 180 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff832b14) //104
 181 NHSTUB(Fclose_Fut                             ,0xff8237b4) //120
 182 NHSTUB(Feof_Fut                               ,0xff8239a0) //  1
 183 NHSTUB(Fflush_Fut                             ,0xff8239dc) //  1
 184 NHSTUB(Fgets_Fut                              ,0xff823908) //  1
 185 NHSTUB(Fopen_Fut                              ,0xff823774) //120
 186 NHSTUB(Fread_Fut                              ,0xff823860) //120
 187 NHSTUB(FreeUncacheableMemory                  ,0xff82859c) //112
 188 NHSTUB(Fseek_Fut                              ,0xff823954) //120
 189 NHSTUB(Fwrite_Fut                             ,0xff8238b4) //120
 190 NHSTUB(GetBatteryTemperature                  ,0xff845160) //102
 191 NHSTUB(GetCCDTemperature                      ,0xff8450f0) //102
 192 NHSTUB(GetCurrentAvValue                      ,0xff92d7c0) //120
 193 NHSTUB(GetCurrentShutterSpeed                 ,0xff893644) //120
 194 NHSTUB(GetDrive_ClusterSize                   ,0xff84f080) //  1
 195 NHSTUB(GetDrive_FreeClusters                  ,0xff84f0e8) //  1
 196 NHSTUB(GetDrive_TotalClusters                 ,0xff84f0b4) //  1
 197 NHSTUB(GetFocusLensSubjectDistance            ,0xff92c8b8) //102
 198 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff92cbc4) //  1
 199 NHSTUB(GetKbdState                            ,0xff842950) //109
 200 NHSTUB(GetMemInfo                             ,0xff813c40) //115
 201 NHSTUB(GetOpticalTemperature                  ,0xff8451d0) //120
 202 NHSTUB(GetParameterData                       ,0xff95c860) //101
 203 NHSTUB(GetPropertyCase                        ,0xff86cddc) //102
 204 NHSTUB(GetSystemTime                          ,0xffa291d0) //120
 205 NHSTUB(GetVRAMHPixelsSize                     ,0xff8c64c0) //120
 206 NHSTUB(GetVRAMVPixelsSize                     ,0xff8c64cc) //120
 207 NHSTUB(GetZoomLensCurrentPoint                ,0xff930564) //120
 208 NHSTUB(GetZoomLensCurrentPosition             ,0xffa1f220) //102
 209 NHSTUB(GiveSemaphore                          ,0xff81b77c) //120
 210 NHSTUB(IsStrobeChargeCompleted                ,0xff8bb92c) //102
 211 NHSTUB(LEDDrive                               ,0xff842174) //120
 212 NHSTUB(LocalTime                              ,0xff8668a0) //115
 213 NHSTUB(LockMainPower                          ,0xff8738f0) //120
 214 NHSTUB(MakeDirectory_Fut                      ,0xff8236ac) //116
 215 NHSTUB(MoveFocusLensToDistance                ,0xffa7ea0c) //102
 216 NHSTUB(MoveIrisWithAv                         ,0xffa25580) //120
 217 NHSTUB(MoveZoomLensWithPoint                  ,0xffa25b04) //120
 218 NHSTUB(MoveOpticalZoomAt                      ,0xff8253fc) //109
 219 NHSTUB(Open                                   ,0xff823d64) //120
 220 NHSTUB(PB2Rec                                 ,0xff876594) //104
 221 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff85b9d8) //120
 222 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff85b9b0) //120
 223 NHSTUB(PT_PlaySound                           ,0xff85b034) //102
 224 NHSTUB(PostLogicalEventForNotPowerType        ,0xff872f60) //120
 225 NHSTUB(PostLogicalEventToUI                   ,0xff872fac) //120
 226 NHSTUB(PutInNdFilter                          ,0xffa25968) //102
 227 NHSTUB(PutOutNdFilter                         ,0xffa2598c) //102
 228 NHSTUB(Read                                   ,0xff81a094) //120
 229 NHSTUB(ReadFastDir                            ,0xffa0e2a0) //  1
 230 NHSTUB(Rec2PB                                 ,0xff8765c4) //104
 231 NHSTUB(RefreshPhysicalScreen                  ,0xff9ac06c) //104
 232 NHSTUB(RenameFile_Fut                         ,0xff8235e4) //  1
 233 NHSTUB(Restart                                ,0xff829de0) //122
 234 NHSTUB(SetAE_ShutterSpeed                     ,0xffa810e0) //102
 235 NHSTUB(SetAutoShutdownTime                    ,0xff873964) //120
 236 NHSTUB(SetCurrentCaptureModeType              ,0xff87a50c) //120
 237 NHSTUB(SetFileAttributes                      ,0xff8240b8) //  1
 238 NHSTUB(SetFileTimeStamp                       ,0xff824068) //  1
 239 NHSTUB(SetLogicalEventActive                  ,0xff87368c) //  1
 240 NHSTUB(SetParameterData                       ,0xff95c7d0) //101
 241 NHSTUB(SetPropertyCase                        ,0xff86ccdc) //102
 242 NHSTUB(SetScriptMode                          ,0xff8736dc) //120
 243 NHSTUB(SleepTask                              ,0xff8283ec) //120
 244 NHSTUB(TakeSemaphore                          ,0xff81b6ac) //120
 245 NHSTUB(TurnOffBackLight                       ,0xff87fdd8) //104
 246 NHSTUB(TurnOnBackLight                        ,0xff87fdc0) //104
 247 NHSTUB(TurnOnDisplay                          ,0xff83e918) //120
 248 NHSTUB(TurnOffDisplay                         ,0xff83e928) //120
 249 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff94eeec) //120
 250 NHSTUB(UnlockAE                               ,0xff825fa4) //120
 251 NHSTUB(UnlockAF                               ,0xff825bc8) //120
 252 NHSTUB(UnlockMainPower                        ,0xff873844) //120
 253 NHSTUB(UnsetZoomForMovie                      ,0xff961ebc) //104
 254 NHSTUB(UpdateMBROnFlash                       ,0xff84eec0) //105
 255 NHSTUB(VbattGet                               ,0xff82071c) //120
 256 NHSTUB(Write                                  ,0xff823e38) //120
 257 NHSTUB(WriteSDCard                            ,0xff920458) //108
 258 NHSTUB(_log                                   ,0xffaa8268) //111
 259 NHSTUB(_log10                                 ,0xffaa71ac) //112
 260 NHSTUB(_pow                                   ,0xffaa731c) //121
 261 NHSTUB(_sqrt                                  ,0xffaa9688) //  1
 262 NHSTUB(add_ptp_handler                        ,0xff9dc8cc) //121
 263 NHSTUB(apex2us                                ,0xff9ad5a8) //121
 264 NHSTUB(close                                  ,0xff819eac) //109
 265 NHSTUB(err_init_task                          ,0xff814e98) //111
 266 NHSTUB(exmem_alloc                            ,0xff8679c4) //103
 267 NHSTUB(exmem_free                             ,0xff867a3c) //103
 268 NHSTUB(free                                   ,0xff813a98) //112
 269 NHSTUB(get_nd_value                           ,0xffa1cbfc) //123
 270 NHSTUB(get_current_nd_value                   ,0xffa1cbb8) //122
 271 NHSTUB(kbd_p1_f                               ,0xff821f38) //109
 272 NHSTUB(kbd_p1_f_cont                          ,0xff821f44) //109
 273 NHSTUB(kbd_p2_f                               ,0xff821770) //109
 274 NHSTUB(kbd_read_keys                          ,0xff821e34) //109
 275 NHSTUB(kbd_read_keys_r2                       ,0xff842534) //109
 276 NHSTUB(kbd_pwr_off                            ,0xff8429d4) //  2
 277 NHSTUB(kbd_pwr_on                             ,0xff842984) //  2
 278 NHSTUB(lseek                                  ,0xff823ecc) //120
 279 NHSTUB(malloc                                 ,0xff8139c4) //112
 280 NHSTUB(memcmp                                 ,0xff81d844) //120
 281 NHSTUB(memcpy                                 ,0xff892290) //120
 282 NHSTUB(memset                                 ,0xff9ac420) //120
 283 NHSTUB(mkdir                                  ,0xff824130) //109
 284 NHSTUB(mktime_ext                             ,0xff892afc) //  1
 285 NHSTUB(open                                   ,0xff819dfc) //109
 286 NHSTUB(OpenFastDir                            ,0xffa0e20c) //  1
 287 NHSTUB(closedir                               ,0xffa0e370) //  1
 288 NHSTUB(qsort                                  ,0xff9ac928) //  1
 289 NHSTUB(rand                                   ,0xff81d94c) //121
 290 NHSTUB(realloc                                ,0xff813b78) //115
 291 NHSTUB(reboot_fw_update                       ,0xffa15ca0) //106
 292 NHSTUB(set_control_event                      ,0xff8733e0) //  1
 293 NHSTUB(srand                                  ,0xff81d940) //122
 294 NHSTUB(stat                                   ,0xff823f98) //  1
 295 NHSTUB(strcat                                 ,0xff89207c) //  1
 296 NHSTUB(strchr                                 ,0xff892104) //  1
 297 NHSTUB(strcmp                                 ,0xff81d7dc) //120
 298 NHSTUB(strcpy                                 ,0xff81d7c4) //120
 299 NHSTUB(strftime                               ,0xff892504) //  1
 300 NHSTUB(strlen                                 ,0xff81d820) //120
 301 NHSTUB(strncmp                                ,0xff8920b8) //  1
 302 NHSTUB(strncpy                                ,0xff82e0cc) //  1
 303 NHSTUB(strrchr                                ,0xff892128) //  1
 304 NHSTUB(strtol                                 ,0xff82e304) //101
 305 NHSTUB(strtolx                                ,0xff82e108) //109
 306    DEF(task_CaptSeq                           ,0xff85de30) //120
 307    DEF(task_DvlpSeqTask                       ,0xff93bdf0) //120
 308    DEF(task_ExpDrv                            ,0xff8b478c) //120
 309    DEF(task_FileWrite                         ,0xffa0afe8) //120
 310    DEF(task_InitFileModules                   ,0xff87719c) //120
 311    DEF(task_MovieRecord                       ,0xff859df8) //120
 312    DEF(task_PhySw                             ,0xff821acc) //120
 313 NHSTUB(time                                   ,0xff866da4) //109
 314 NHSTUB(vsprintf                               ,0xff81d744) //115
 315 NHSTUB(EngDrvRead                             ,0xff822d78) //102
 316 //NHSTUB(PTM_GetCurrentItem                   ,0xff874224) //105            == 0xff874224
 317 NHSTUB(CancelHPTimer                          ,0xff868718) //119
 318 NHSTUB(SetHPTimerAfterNow                     ,0xff868610) //119
 319 NHSTUB(PT_MFOn                                ,0xff85ba50) //120
 320 NHSTUB(PT_MFOff                               ,0xff85ba60) //120
 321 NHSTUB(GetAdChValue                           ,0xff840498) //120
 322 NHSTUB(get_ptp_buf_size                       ,0xff8c8eb4) //122
 323 NHSTUB(get_ptp_file_buf                       ,0xff9de1fc) //121

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