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

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