root/platform/a590/sub/100e/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.00E   // Found @ 0xffc5cbc8, "GM1.00E" @ 0xffc5cbd5
   7 //   Firmware build timestamp: Jan  8 2008 16:57:22
   8 //   Canon PowerShot A590 IS
   9 
  10 // Values for makefile.inc
  11 //   DIGIC = 30# DIGIC III
  12 //   PLATFORMOSVER = 23
  13 //   PLATFORMID = 12662# (0x3176) Found @ 0xfffe0130
  14 //   MAXRAMADDR = 0x01ffffff
  15 //   MEMISOSTART = 0x000a5304
  16 //   KEYSYS = d3enc# Found @ 0xffff1ad8
  17 //   NEED_ENCODED_DISKBOOT = 1# Found @ 0xffff1ab8
  18 //   ARAM_HEAP_START = 0x2ce000# Found @ 0xffdf2578
  19 //   ARAM_HEAP_SIZE  = 0x32000# Found @ 0xffdf2538
  20 
  21 // Detected address ranges:
  22 // ROM      0xffc00000 - 0xffffffff (4194304 bytes)
  23 // RAM data 0x00001900 - 0x0000dc48 copied from 0xffed0d74 (  49992 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                          ,0xffc356b8) //  2 67%    *** != 0xffc356c8
  28 NHSTUB(kbd_pwr_on                             ,0xffc35678) //  2 86%
  29 
  30 // Check of modemap from 'platform/CAMERA/shooting.c':
  31 // Firmware modemap table found @ffdfe964 -> ffeaed68
  32 // Mode 32791 in firmware but not in current modemap
  33 
  34 // Values below can be overridden in 'stubs_min.S':
  35 DEF(physw_status                            ,0x0000f11c) // Found @0xffc11c30
  36 DEF(physw_run                               ,0x00001bf0) // Found @0xffc118cc
  37 DEF(physw_sleep_delay                       ,0x00001bee) // Found @0xffc118cc
  38 DEF(levent_table                            ,0xffe8de18) // Found @0xffe8de18
  39 DEF(FlashParamsTable                        ,0xffeaef24) // Found @0xffeaef24
  40 DEF(movie_status                            ,0x000053c8) // Found @0xffc4b958
  41 DEF(canon_menu_active                       ,0x00008d20) // Found @0xffd29ef8
  42 DEF(canon_shoot_menu_active                 ,0x00009641) // Found @0xffd444a4
  43 DEF(playrec_mode                            ,0x00005538) // Found @0xffc52108
  44 DEF(zoom_status                             ,0x0000bfbc) // Found @0xffe00164
  45 DEF(some_flag_for_af_scan                   ,0x0000bd3c) // Found @0xffdee828
  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 8 entries in the table - set NUM_FL to 8
  49 DEF(focus_len_table                         ,0xfffe29ac) // Found @0xfffe29ac
  50 DEF(zoom_busy                               ,0x00008050) // Found @0xffd0f95c
  51 //DEF(focus_busy                              ,0x00007f4c) // Found @0xffd0a804, ** != ** stubs_min = 0x00009d50 (0x9D50)
  52 //DEF(recreview_hold                          ,0x00005d34) // Found @0xffc6a6e4, ** != ** stubs_min = 0x000093ec (0x93ec)
  53 // Camera appears to have only 1 RAW buffer @ 0x10f63920 (Found @0xffe44c60)
  54 DEF(fileio_semaphore                        ,0x00002a1c) // Found @0xffc430b4
  55 DEF(exmem_alloc_table                       ,0x00018cdc) // Found @0xffc57dd8
  56 DEF(exmem_types_table                       ,0xffed4a78) // Found @0x00005604
  57 DEF_CONST(exmem_type_count                  ,0x00000012)
  58 DEF(imager_active                           ,0x00001edc) // Found @0xffc255fc (0x1ed8 + 4)
  59 DEF_CONST(uiprop_count                      ,0x00000064) // Found @0xffd348b4
  60 
  61 // Values below go in 'lib.c':
  62 //void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xffc31338
  63 //void *vid_get_viewport_fb()      { return (void*)0x10659e80; }             // Found @0xffe42a30
  64 DEF(viewport_fb_d                           ,0x00005258) // Found 0x520c (@0xffc45330) + 0x4c (@0xffc45368)
  65 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x520c+0x4c)); } // Found @0xffc45330 & 0xffc45368
  66 DEF(jpeg_count_str                          ,0x00049344) // Found @0xffd727b0
  67 //char *camera_jpeg_count_str()    { return (char*)0x00049344; }             // Found @0xffd727b0
  68 //int get_flash_params_count(void) { return 0x73; }                          // Found @0xffd352f8
  69 
  70 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  71 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffe6eda0, levent 0x90a
  72 //#define SD_READONLY_IDX     2
  73 //#define USB_MASK            0x00040000 // Found @0xffe6edac, levent 0x902
  74 //#define USB_IDX             2
  75 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffe6ed88, levent 0x905
  76 //#define BATTCOVER_IDX       2
  77 //#define ANALOG_AV_FLAG      0x00400000 // Found @0xffe6ec68, levent 0x900 (non-inverted logic)
  78 //#define ANALOG_AV_IDX       1
  79 
  80 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  81 //static KeyMap keymap[] = {
  82 //    { 1, KEY_POWER           ,0x00004000 }, // Found @0xffe6ec5c, levent 0x600 (uses inverted logic in physw_status)
  83 //    { 1, KEY_SHOOT_FULL      ,0xc0000000 }, // Found @0xffe6ecc8, levent 0x01
  84 //    { 1, KEY_SHOOT_FULL_ONLY ,0x80000000 }, // Found @0xffe6ecc8, levent 0x01
  85 //    { 1, KEY_SHOOT_HALF      ,0x40000000 }, // Found @0xffe6ecbc, levent 0x00
  86 //    { 2, KEY_ZOOM_IN         ,0x00000004 }, // Found @0xffe6ecec, levent 0x02
  87 //    { 2, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffe6ecf8, levent 0x03
  88 //    { 2, KEY_UP              ,0x00000010 }, // Found @0xffe6ed04, levent 0x04
  89 //    { 2, KEY_DOWN            ,0x00000020 }, // Found @0xffe6ed10, levent 0x05
  90 //    { 2, KEY_RIGHT           ,0x00000040 }, // Found @0xffe6ed1c, levent 0x07
  91 //    { 2, KEY_LEFT            ,0x00000080 }, // Found @0xffe6ed28, levent 0x06
  92 //    { 2, KEY_SET             ,0x00000100 }, // Found @0xffe6ed34, levent 0x08
  93 //    { 2, KEY_MENU            ,0x00000200 }, // Found @0xffe6ed40, levent 0x09
  94 //    { 2, KEY_DISPLAY         ,0x00000400 }, // Found @0xffe6ed4c, levent 0x0a
  95 //    { 0, 0, 0 }
  96 //};
  97 
  98 // Values below go in 'platform_camera.h':
  99 //#define CAM_DRYOS         1
 100 //#define CAM_RAW_ROWPIX    3336 // Found @0xffe3c240
 101 //#define CAM_RAW_ROWS      2490 // Found @0xffe3c244
 102 //#undef  CAM_UNCACHED_BIT
 103 //#define CAM_UNCACHED_BIT  0x10000000 // Found @0xffc18320
 104 //#define PARAM_CAMERA_NAME 4 // Found @0xffeb1014
 105 
 106 // Known propcases
 107 // //      PROPCASE_AFSTEP 13
 108 // #define PROPCASE_FOCUS_STATE 18
 109 // #define PROPCASE_AV 23
 110 // #define PROPCASE_BV 34
 111 // //      PROPCASE_DELTA_DIGITALGAIN 77
 112 // #define PROPCASE_DELTA_SV 79
 113 // //      PROPCASE_DELTA_ND 80
 114 // #define PROPCASE_EV_CORRECTION_2 207
 115 // #define PROPCASE_ORIENTATION_SENSOR 219
 116 // #define PROPCASE_SV_MARKET 246
 117 // //      PROPCASE_SVFIX 247
 118 // #define PROPCASE_TV 262
 119 // Guessed propset: 2
 120 
 121 // Misc stuff
 122 DEF(ctypes, 0xffe69fd6)
 123 
 124 // EXMEM types:
 125 // EXMEM_RAMDISK     0
 126 // EXMEM_COM         1
 127 // EXMEM_COMTMP      2
 128 // EXMEM_FORMATTER   3
 129 // EXMEM_SHADING     4
 130 // EXMEM_FAMODE      5
 131 // EXMEM_FIRMUP      6
 132 // EXMEM_FIRMUP_VRAM 7
 133 // EXMEM_DVLPWORK    8
 134 // EXMEM_EVF         9
 135 // EXMEM_SCRIPT      10
 136 // EXMEM_FILESTORE   11
 137 // EXMEM_MOVIE_REC   12
 138 // EXMEM_MOVIE_PLY   13
 139 // EXMEM_WIDE        14
 140 // EXMEM_NARROW      15
 141 // EXMEM_CRAW_REC    16
 142 // EXMEM_PCEVF       17
 143 
 144 // ISR flag: 0x195c, pointer to current task's control block: 0x1958
 145 // pointer to TCB area: 0x19f4, found @ 0xffc05ee4
 146 
 147 // LED table init @ 0xffccc09c
 148 // LED #1: 0xc02200d0, offset 0x84
 149 // LED #2: 0xc02200c0, offset 0x244
 150 // LED #3: 0xc02200c4, offset 0x204
 151 // LED #4: 0xc02200cc, offset 0x4
 152 // LED #5: 0xc02200c8, offset 0x44
 153 
 154 // For capt_seq.c
 155 DEF(_nrflag,0x85c0) // Found @ ffd18680 (0x85c0)
 156 //static long *nrflag = (long*)(0x85c0);       // Found @ ffd18680
 157 
 158 // Stubs below matched 100%.
 159 //    Name                                     Address                Comp to stubs_entry_2.S
 160 NHSTUB(AllocateUncacheableMemory              ,0xffc182e4) //112
 161 NHSTUB(Close                                  ,0xffc13b88) //120
 162 NHSTUB(CreateBinarySemaphore                  ,0xffc0b608) //115
 163 NHSTUB(CreateTask                             ,0xffc0b8e0) //120
 164 NHSTUB(DebugAssert                            ,0xffc0bdb8) //107
 165 NHSTUB(DeleteDirectory_Fut                    ,0xffc13518) //116
 166 NHSTUB(DeleteFile_Fut                         ,0xffc13434) //112
 167 NHSTUB(DoAELock                               ,0xffc16054) //120
 168 NHSTUB(DoAFLock                               ,0xffc15b04) //120
 169 NHSTUB(EnterToCompensationEVF                 ,0xffc15f54) //104
 170 NHSTUB(ExecuteEventProcedure                  ,0xffc59eb4) //104
 171 NHSTUB(ExitFromCompensationEVF                ,0xffc15fa4) //104
 172 NHSTUB(ExitTask                               ,0xffc0bb70) //120
 173 NHSTUB(ExpCtrlTool_StartContiAE               ,0xffc21f10) //104
 174 NHSTUB(ExpCtrlTool_StopContiAE                ,0xffc22054) //104
 175 NHSTUB(Fclose_Fut                             ,0xffc135b0) //120
 176 NHSTUB(Feof_Fut                               ,0xffc1379c) //  1
 177 NHSTUB(Fflush_Fut                             ,0xffc137d8) //  1
 178 NHSTUB(Fgets_Fut                              ,0xffc13704) //  1
 179 NHSTUB(Fopen_Fut                              ,0xffc13570) //120
 180 NHSTUB(Fread_Fut                              ,0xffc1365c) //120
 181 NHSTUB(FreeUncacheableMemory                  ,0xffc18318) //112
 182 NHSTUB(Fseek_Fut                              ,0xffc13750) //120
 183 NHSTUB(Fwrite_Fut                             ,0xffc136b0) //120
 184 NHSTUB(GetBatteryTemperature                  ,0xffc377b4) //102
 185 NHSTUB(GetCCDTemperature                      ,0xffc37744) //102
 186 NHSTUB(GetCurrentAvValue                      ,0xffd0ce14) //120
 187 NHSTUB(GetCurrentShutterSpeed                 ,0xffc7633c) //120
 188 NHSTUB(GetUsableMaxAv                         ,0xffe3d86c) //120
 189 NHSTUB(GetUsableMinAv                         ,0xffe3d854) //120
 190 NHSTUB(GetDrive_ClusterSize                   ,0xffc41688) //  1
 191 NHSTUB(GetDrive_FreeClusters                  ,0xffc416f0) //  1
 192 NHSTUB(GetDrive_TotalClusters                 ,0xffc416bc) //  1
 193 NHSTUB(GetFocusLensSubjectDistance            ,0xffd0b310) //102
 194 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xffd0b61c) //  1
 195 NHSTUB(GetKbdState                            ,0xffc35644) //109
 196 NHSTUB(GetMemInfo                             ,0xffc03c40) //115
 197 NHSTUB(GetOpticalTemperature                  ,0xffc37824) //120
 198 NHSTUB(GetParameterData                       ,0xffd352b8) //101
 199 NHSTUB(GetPropertyCase                        ,0xffc5dab4) //102
 200 NHSTUB(GetSystemTime                          ,0xffdf1dcc) //120
 201 NHSTUB(GetVRAMHPixelsSize                     ,0xffc2a77c) //120
 202 NHSTUB(GetVRAMVPixelsSize                     ,0xffc2a788) //120
 203 NHSTUB(GetZoomLensCurrentPoint                ,0xffd0fcc0) //120
 204 NHSTUB(GetZoomLensCurrentPosition             ,0xffde89e0) //102
 205 NHSTUB(GiveSemaphore                          ,0xffc0b844) //120
 206 NHSTUB(IsStrobeChargeCompleted                ,0xffc9e3f0) //102
 207 NHSTUB(LEDDrive                               ,0xffc34ce0) //120
 208 NHSTUB(LocalTime                              ,0xffc57bd4) //115
 209 NHSTUB(LockMainPower                          ,0xffc6211c) //120
 210 NHSTUB(MakeDirectory_Fut                      ,0xffc134a8) //116
 211 NHSTUB(MoveFocusLensToDistance                ,0xffe3f55c) //102
 212 NHSTUB(MoveIrisWithAv                         ,0xffded984) //120
 213 NHSTUB(MoveZoomLensWithPoint                  ,0xffdedfcc) //120
 214 NHSTUB(MoveOpticalZoomAt                      ,0xffc151e8) //109
 215 NHSTUB(Open                                   ,0xffc13b60) //120
 216 NHSTUB(PB2Rec                                 ,0xffc64d3c) //104
 217 NHSTUB(PT_MoveDigitalZoomToWide               ,0xffc4cfcc) //120
 218 NHSTUB(PT_MoveOpticalZoomAt                   ,0xffc4cfa4) //120
 219 NHSTUB(PT_PlaySound                           ,0xffc4c8b8) //102
 220 NHSTUB(PostLogicalEventForNotPowerType        ,0xffc6178c) //120
 221 NHSTUB(PostLogicalEventToUI                   ,0xffc617d8) //120
 222 NHSTUB(PutInNdFilter                          ,0xffe3d8d8) //102
 223 NHSTUB(PutOutNdFilter                         ,0xffe3d910) //102
 224 NHSTUB(Read                                   ,0xffc0a15c) //120
 225 NHSTUB(ReadFastDir                            ,0xffdd96c0) //  1
 226 NHSTUB(Rec2PB                                 ,0xffc64d6c) //104
 227 NHSTUB(RefreshPhysicalScreen                  ,0xffd7c830) //104
 228 NHSTUB(RenameFile_Fut                         ,0xffc133e0) //  1
 229 NHSTUB(Restart                                ,0xffc19b5c) //122
 230 NHSTUB(SetAE_ShutterSpeed                     ,0xffe41c40) //102
 231 NHSTUB(SetAutoShutdownTime                    ,0xffc62190) //120
 232 NHSTUB(SetCurrentCaptureModeType              ,0xffc68210) //120
 233 NHSTUB(SetFileAttributes                      ,0xffc13eb4) //  1
 234 NHSTUB(SetFileTimeStamp                       ,0xffc13e64) //  1
 235 NHSTUB(SetLogicalEventActive                  ,0xffc61eb8) //  1
 236 NHSTUB(SetParameterData                       ,0xffd35228) //101
 237 NHSTUB(SetPropertyCase                        ,0xffc5d9b4) //102
 238 NHSTUB(SetScriptMode                          ,0xffc61f08) //120
 239 NHSTUB(SleepTask                              ,0xffc18168) //120
 240 NHSTUB(TakeSemaphore                          ,0xffc0b774) //120
 241 NHSTUB(TurnOffBackLight                       ,0xffc6c570) //104
 242 NHSTUB(TurnOnBackLight                        ,0xffc6c558) //104
 243 NHSTUB(TurnOnDisplay                          ,0xffc313e8) //120
 244 NHSTUB(TurnOffDisplay                         ,0xffc313f8) //120
 245 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xffd2aa58) //120
 246 NHSTUB(UnlockAE                               ,0xffc16084) //120
 247 NHSTUB(UnlockAF                               ,0xffc15c1c) //120
 248 NHSTUB(UnlockMainPower                        ,0xffc62070) //120
 249 NHSTUB(UnsetZoomForMovie                      ,0xffd3a34c) //104
 250 NHSTUB(UpdateMBROnFlash                       ,0xffc414c8) //105
 251 NHSTUB(VbattGet                               ,0xffc105f4) //120
 252 NHSTUB(Write                                  ,0xffc13c34) //120
 253 NHSTUB(WriteSDCard                            ,0xffd01548) //108
 254 NHSTUB(_log                                   ,0xffe67ddc) //111
 255 NHSTUB(_log10                                 ,0xffe66d20) //112
 256 NHSTUB(_pow                                   ,0xffe66e90) //121
 257 NHSTUB(_sqrt                                  ,0xffe69144) //  1
 258 NHSTUB(add_ptp_handler                        ,0xffdaa4e8) //121
 259 NHSTUB(apex2us                                ,0xffd7dd6c) //121
 260 NHSTUB(close                                  ,0xffc09f74) //109
 261 NHSTUB(err_init_task                          ,0xffc04e98) //111
 262 NHSTUB(exmem_alloc                            ,0xffc5869c) //103
 263 NHSTUB(exmem_ualloc                           ,0xffc584ec) //103
 264 NHSTUB(exmem_ufree                            ,0xffc5862c) //103
 265 NHSTUB(free                                   ,0xffc03a98) //112
 266 NHSTUB(kbd_p1_f                               ,0xffc11d34) //109
 267 NHSTUB(kbd_p1_f_cont                          ,0xffc11d40) //109
 268 NHSTUB(kbd_p2_f                               ,0xffc1156c) //109
 269 NHSTUB(kbd_read_keys                          ,0xffc11c30) //109
 270 NHSTUB(kbd_read_keys_r2                       ,0xffc35104) //109
 271 NHSTUB(lseek                                  ,0xffc13cc8) //120
 272 NHSTUB(malloc                                 ,0xffc039c4) //112
 273 NHSTUB(memcmp                                 ,0xffc0d90c) //120
 274 NHSTUB(memcpy                                 ,0xffc74f88) //120
 275 NHSTUB(memset                                 ,0xffd7cbe4) //120
 276 NHSTUB(mkdir                                  ,0xffc13f2c) //109
 277 NHSTUB(mktime_ext                             ,0xffc757f4) //  1
 278 NHSTUB(open                                   ,0xffc09ec4) //109
 279 NHSTUB(OpenFastDir                            ,0xffdd962c) //  1
 280 NHSTUB(closedir                               ,0xffdd9790) //  1
 281 NHSTUB(qsort                                  ,0xffd7d0ec) //  1
 282 NHSTUB(rand                                   ,0xffc0da14) //121
 283 NHSTUB(realloc                                ,0xffc03b78) //115
 284 NHSTUB(reboot_fw_update                       ,0xffdddf94) //106
 285 NHSTUB(set_control_event                      ,0xffc61c0c) //  1
 286 NHSTUB(srand                                  ,0xffc0da08) //122
 287 NHSTUB(stat                                   ,0xffc13d94) //  1
 288 NHSTUB(strcat                                 ,0xffc74d74) //  1
 289 NHSTUB(strchr                                 ,0xffc74dfc) //  1
 290 NHSTUB(strcmp                                 ,0xffc0d8a4) //120
 291 NHSTUB(strcpy                                 ,0xffc0d88c) //120
 292 NHSTUB(strftime                               ,0xffc751fc) //  1
 293 NHSTUB(strlen                                 ,0xffc0d8e8) //120
 294 NHSTUB(strncmp                                ,0xffc74db0) //  1
 295 NHSTUB(strncpy                                ,0xffc1dcc8) //  1
 296 NHSTUB(strrchr                                ,0xffc74e20) //  1
 297 NHSTUB(strtol                                 ,0xffc1df00) //101
 298 NHSTUB(strtolx                                ,0xffc1dd04) //109
 299    DEF(task_CaptSeq                           ,0xffc4f0f8) //120
 300    DEF(task_DvlpSeqTask                       ,0xffd191ac) //120
 301    DEF(task_ExpDrv                            ,0xffc973e4) //120
 302    DEF(task_FileWrite                         ,0xffdd6408) //120
 303    DEF(task_InitFileModules                   ,0xffc657b4) //120
 304    DEF(task_MovieRecord                       ,0xffc4bbbc) //120
 305    DEF(task_PhySw                             ,0xffc118c8) //120
 306 NHSTUB(time                                   ,0xffc57a88) //109
 307 NHSTUB(vsprintf                               ,0xffc0d80c) //115
 308 NHSTUB(EngDrvRead                             ,0xffc12b74) //102
 309 NHSTUB(PTM_GetCurrentItem                     ,0xffc62a6c) //105
 310 NHSTUB(CancelHPTimer                          ,0xffc593f0) //119
 311 NHSTUB(SetHPTimerAfterNow                     ,0xffc592e8) //119
 312 NHSTUB(PT_MFOn                                ,0xffc4d044) //120
 313 NHSTUB(PT_MFOff                               ,0xffc4d054) //120
 314 NHSTUB(GetAdChValue                           ,0xffc3312c) //120
 315 NHSTUB(get_ptp_buf_size                       ,0xffcabd70) //122
 316 NHSTUB(get_ptp_file_buf                       ,0xffdabdbc) //121
 317 NHSTUB(SetVideoOutType                        ,0xffe4242c) //109
 318 NHSTUB(GetVideoOutType                        ,0xffe42390) //120

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