root/platform/a490/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 R43 (DRYOS version 2.3, release #0043)
   6 //   Firmware Ver GM1.00F   // Found @ 0xffc68500, "GM1.00F" @ 0xffc6850d
   7 //   Firmware build timestamp: Mar 26 2010 14:38:25
   8 //   Canon PowerShot A490
   9 
  10 // Values for makefile.inc
  11 //   PLATFORMOSVER = 43
  12 //   PLATFORMID = 12784 (0x31f0) // Found @ 0xfffe0130
  13 //   MAXRAMADDR = 0x01ffffff
  14 //   MEMISOSTART = 0x00129140
  15 //   KEYSYS = d4a                // Found @ 0xffff1a0c
  16 //   NEED_ENCODED_DISKBOOT = 4   // Found @ 0xffff1a1c
  17 //   ARAM_HEAP_START = 0x2ce000  // Found @ 0xffd18218
  18 //   ARAM_HEAP_SIZE  = 0x32000   // Found @ 0xffd181d8
  19 
  20 // Detected address ranges:
  21 // ROM      0xffc00000 - 0xffffffff (4194304 bytes)
  22 // RAM data 0x00001900 - 0x0000ab04 copied from 0xffee6658 (  37380 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                            ,0xffc435ec) //  2 64%
  27 
  28 // Check of modemap from 'platform/CAMERA/shooting.c':
  29 // Firmware modemap table found @ffe07c90 -> ffeca52c
  30 // No problems found with modemap table.
  31 
  32 // Values below can be overridden in 'stubs_min.S':
  33 DEF(physw_status                            ,0x0002e754) // Found @0xffc23b2c
  34 DEF(physw_run                               ,0x00001bf0) // Found @0xffc23790
  35 DEF(physw_sleep_delay                       ,0x00001bee) // Found @0xffc23790
  36 DEF(levent_table                            ,0xffe9fe78) // Found @0xffe9fe78
  37 DEF(FlashParamsTable                        ,0xffeca71c) // Found @0xffeca71c
  38 DEF(movie_status                            ,0x00005470) // Found @0xffd0c6a4
  39 DEF(full_screen_refresh                     ,0x000072e8) // Found @0xffd794c4
  40 DEF(canon_menu_active                       ,0x00002a3c) // Found @0xffc6a028
  41 DEF(canon_shoot_menu_active                 ,0x00006571) // Found @0xffd3fa70
  42 DEF(playrec_mode                            ,0x00002798) // Found @0xffc5d828
  43 DEF(zoom_status                             ,0x000095a8) // Found @0xffe0ab6c
  44 DEF(some_flag_for_af_scan                   ,0x00005818) // Found @0xffd0f010
  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 7 entries in the table - set NUM_FL to 7
  48 DEF(focus_len_table                         ,0xfffe2990) // Found @0xfffe2990
  49 DEF(zoom_busy                               ,0x000053f0) // Found @0xffd09900
  50 DEF(focus_busy                              ,0x00005300) // Found @0xffd06f38
  51 DEF(recreview_hold                          ,0x0000302c) // Found @0xffc757dc
  52 DEF(viewport_buffers                        ,0xffe88eb8) // Found @0xffcb55c4
  53 DEF(active_viewport_buffer                  ,0x000040f8) // Found @0xffcb540c
  54 // Camera appears to have only 1 RAW buffer @ 0x10e52420 (Found @0xffe56f00)
  55 DEF(fileio_semaphore                        ,0x000024ec) // Found @0xffc4f7b8
  56 DEF(exmem_alloc_table                       ,0x000336e0) // Found @0xffc63b4c
  57 DEF(exmem_types_table                       ,0xffee75e4) // Found @0x0000288c
  58 DEF_CONST(exmem_type_count                  ,0x00000012)
  59 DEF(imager_active                           ,0x00001e58) // Found @0xffc381dc (0x1e54 + 4)
  60 DEF_CONST(uiprop_count                      ,0x00000074) // Found @0xffd2e6a0
  61 
  62 // Values below go in 'lib.c':
  63 //void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xffc3f024
  64 //void *vid_get_viewport_fb()      { return (void*)0x10648cc0; }             // Found @0xffe53bd4
  65 DEF(viewport_fb_d                           ,0x00002594) // Found 0x2540 (@0xffc52914) + 0x54 (@0xffc5294c)
  66 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2540+0x54)); } // Found @0xffc52914 & 0xffc5294c
  67 DEF(jpeg_count_str                          ,0x0007571c) // Found @0xffd70afc
  68 //char *camera_jpeg_count_str()    { return (char*)0x0007571c; }             // Found @0xffd70afc
  69 //int get_flash_params_count(void) { return 0x94; }                          // Found @0xffd2f0e4
  70 
  71 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  72 //#define SD_READONLY_FLAG    0x00040000 // Found @0xffe820d0, levent 0x90a
  73 //#define SD_READONLY_IDX     2
  74 //#define USB_MASK            0x00080000 // Found @0xffe820dc, levent 0x902
  75 //#define USB_IDX             2
  76 //#define BATTCOVER_FLAG      0x00010000 // Found @0xffe820b8, levent 0x905
  77 //#define BATTCOVER_IDX       2
  78 //#define ANALOG_AV_FLAG      0x00100000 // Found @0xffe82058, 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 //    { 0, KEY_PLAYBACK        ,0x00020000 }, // Found @0xffe8204c, levent 0x601
  84 //    { 0, KEY_POWER           ,0x00800000 }, // Found @0xffe82064, levent 0x600
  85 //    { 2, KEY_RIGHT           ,0x00000004 }, // Found @0xffe82070, levent 0x07
  86 //    { 2, KEY_SHOOT_FULL      ,0x00000030 }, // Found @0xffe82088, levent 0x01
  87 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000020 }, // Found @0xffe82088, levent 0x01
  88 //    { 2, KEY_SHOOT_HALF      ,0x00000010 }, // Found @0xffe8207c, levent 0x00
  89 //    { 2, KEY_ZOOM_OUT        ,0x00000040 }, // Found @0xffe82094, levent 0x03
  90 //    { 2, KEY_ZOOM_IN         ,0x00000080 }, // Found @0xffe820a0, levent 0x02
  91 //    { 2, KEY_SET             ,0x00000100 }, // Found @0xffe820ac, levent 0x08
  92 //    { 2, KEY_UP              ,0x00100000 }, // Found @0xffe820e8, levent 0x04 (uses inverted logic in physw_status)
  93 //    { 2, KEY_DOWN            ,0x00200000 }, // Found @0xffe820f4, levent 0x05 (uses inverted logic in physw_status)
  94 //    { 2, KEY_LEFT            ,0x00400000 }, // Found @0xffe82100, levent 0x06 (uses inverted logic in physw_status)
  95 //    { 2, KEY_MENU            ,0x01000000 }, // Found @0xffe82118, levent 0x09 (uses inverted logic in physw_status)
  96 //    { 0, 0, 0 }
  97 //};
  98 
  99 // Values below go in 'platform_camera.h':
 100 //#define CAM_DRYOS         1
 101 //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
 102 //#define CAM_RAW_ROWPIX    3720 // Found @0xffcea098
 103 //#define CAM_RAW_ROWS      2772 // Found @0xffcea0a4
 104 //#undef  CAM_UNCACHED_BIT
 105 //#define CAM_UNCACHED_BIT  0x10000000 // Found @0xffc29320
 106 //#define CAM_DATE_FOLDER_NAMING 0x100 // Found @0xffdd894c (pass as 3rd param to GetImageFolder)
 107 //#define PARAM_CAMERA_NAME 4 // Found @0xffecc6c0
 108 
 109 // Known propcases
 110 // //      PROPCASE_AFSTEP 13
 111 // #define PROPCASE_FOCUS_STATE 18
 112 // #define PROPCASE_AV 23
 113 // #define PROPCASE_BV 34
 114 // //      PROPCASE_DELTA_DIGITALGAIN 77
 115 // #define PROPCASE_DELTA_SV 79
 116 // //      PROPCASE_DELTA_ND 80
 117 // #define PROPCASE_EV_CORRECTION_2 209
 118 // #define PROPCASE_ORIENTATION_SENSOR 221
 119 // #define PROPCASE_SV_MARKET 248
 120 // //      PROPCASE_SVFIX 249
 121 // #define PROPCASE_TV 264
 122 // Guessed propset: 3
 123 
 124 // Misc stuff
 125 DEF(ctypes, 0xffe8196a)
 126 
 127 // EXMEM types:
 128 // EXMEM_RAMDISK        0
 129 // EXMEM_COM            1
 130 // EXMEM_FORMATTER      2
 131 // EXMEM_SHADING        3
 132 // EXMEM_FAMODE         4
 133 // EXMEM_FIRMUP         5
 134 // EXMEM_FIRMUP_VRAM    6
 135 // EXMEM_FIRMUP_INFLATE 7
 136 // EXMEM_DVLPWORK       8
 137 // EXMEM_EVF            9
 138 // EXMEM_SCRIPT         10
 139 // EXMEM_FILESTORE      11
 140 // EXMEM_MOVIE_REC      12
 141 // EXMEM_MOVIE_PLY      13
 142 // EXMEM_WIDE           14
 143 // EXMEM_NARROW         15
 144 // EXMEM_CRAW_REC       16
 145 // EXMEM_PCEVF          17
 146 
 147 // ISR flag: 0x1964, pointer to current task's control block: 0x1960
 148 // pointer to TCB area: 0x19f4, found @ 0xffc06f94
 149 
 150 // LED table init @ 0xffcd272c
 151 // LED #1: 0xc0220088, offset 0x170
 152 // LED #2: 0xc0220080, offset 0x1d8
 153 
 154 // For capt_seq.c
 155 DEF(_nrflag,0x57f8) // Found @ ffd10e24 (0x5800) & ffd10e44 (-0x08)
 156 //static long *nrflag = (long*)(0x5800-0x08);  // Found @ ffd10e24 & ffd10e40
 157 
 158 // Stubs below matched 100%.
 159 //    Name                                     Address                Comp to stubs_entry_2.S
 160 NHSTUB(AllocateUncacheableMemory              ,0xffc292dc) //112
 161 NHSTUB(Close                                  ,0xffc2610c) //120
 162 NHSTUB(CreateBinarySemaphore                  ,0xffc0eec8) //115
 163 NHSTUB(CreateTask                             ,0xffc0f1a8) //120
 164 NHSTUB(DebugAssert                            ,0xffc0f680) //107
 165 NHSTUB(DeleteDirectory_Fut                    ,0xffc25b68) //116
 166 NHSTUB(DeleteFile_Fut                         ,0xffc25a84) //112
 167 NHSTUB(DoAELock                               ,0xffc276a0) //120
 168 NHSTUB(DoAFLock                               ,0xffc27558) //120
 169 NHSTUB(EnterToCompensationEVF                 ,0xffc27608) //104
 170 NHSTUB(ExecuteEventProcedure                  ,0xffc65798) //104
 171 NHSTUB(ExitFromCompensationEVF                ,0xffc2764c) //104
 172 NHSTUB(ExitTask                               ,0xffc0f438) //120
 173 NHSTUB(ExpCtrlTool_StartContiAE               ,0xffc34ce8) //104
 174 NHSTUB(ExpCtrlTool_StopContiAE                ,0xffc34dc0) //104
 175 NHSTUB(Fclose_Fut                             ,0xffc25c00) //120
 176 NHSTUB(Feof_Fut                               ,0xffc25dec) //  1
 177 NHSTUB(Fflush_Fut                             ,0xffc25e28) //  1
 178 NHSTUB(Fgets_Fut                              ,0xffc25d54) //  1
 179 NHSTUB(Fopen_Fut                              ,0xffc25bc0) //120
 180 NHSTUB(Fread_Fut                              ,0xffc25cac) //120
 181 NHSTUB(FreeUncacheableMemory                  ,0xffc2931c) //112
 182 NHSTUB(Fseek_Fut                              ,0xffc25da0) //120
 183 NHSTUB(Fwrite_Fut                             ,0xffc25d00) //120
 184 NHSTUB(GetBatteryTemperature                  ,0xffc45624) //102
 185 NHSTUB(GetCCDTemperature                      ,0xffc455b0) //102
 186 NHSTUB(GetCurrentAvValue                      ,0xffd087b8) //120
 187 NHSTUB(GetCurrentShutterSpeed                 ,0xffc80b7c) //120
 188 NHSTUB(GetDrive_ClusterSize                   ,0xffc512bc) //122
 189 NHSTUB(GetDrive_FreeClusters                  ,0xffc5131c) //  4
 190 NHSTUB(GetDrive_TotalClusters                 ,0xffc512f0) //  3
 191 NHSTUB(GetFocusLensSubjectDistance            ,0xffd07ab0) //102
 192 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xffd07f08) //  3
 193 NHSTUB(GetImageFolder                         ,0xffcf1058) //122
 194 NHSTUB(GetKbdState                            ,0xffc435d4) //109
 195 NHSTUB(GetMemInfo                             ,0xffc0a7f8) //115
 196 NHSTUB(GetOpticalTemperature                  ,0xffc4569c) //120
 197 NHSTUB(GetParameterData                       ,0xffd2f0a4) //101
 198 NHSTUB(GetPropertyCase                        ,0xffc694a4) //102
 199 NHSTUB(GetSystemTime                          ,0xffdfa404) //120
 200 NHSTUB(GetVRAMHPixelsSize                     ,0xffcb69fc) //120
 201 NHSTUB(GetVRAMVPixelsSize                     ,0xffcb6a08) //120
 202 NHSTUB(GetZoomLensCurrentPoint                ,0xffd09c78) //120
 203 NHSTUB(GetZoomLensCurrentPosition             ,0xffdf2448) //102
 204 NHSTUB(GiveSemaphore                          ,0xffc0f104) //120
 205 NHSTUB(IsStrobeChargeCompleted                ,0xffca6ff0) //102
 206 NHSTUB(LEDDrive                               ,0xffc42bc8) //120
 207 NHSTUB(LocalTime                              ,0xffc634a8) //115
 208 NHSTUB(LockMainPower                          ,0xffc6cd7c) //120
 209 NHSTUB(MakeDirectory_Fut                      ,0xffc25af8) //116
 210 NHSTUB(MoveFocusLensToDistance                ,0xffe50654) //102
 211 NHSTUB(MoveIrisWithAv                         ,0xffdf7aec) //120
 212 NHSTUB(MoveZoomLensWithPoint                  ,0xffdf8078) //120
 213 NHSTUB(Open                                   ,0xffc260a0) //120
 214 NHSTUB(PB2Rec                                 ,0xffc6f9e8) //104
 215 NHSTUB(PT_MoveDigitalZoomToWide               ,0xffc570e8) //120
 216 NHSTUB(PT_MoveOpticalZoomAt                   ,0xffc570c0) //120
 217 NHSTUB(PT_PlaySound                           ,0xffc5f328) //122
 218 NHSTUB(PostLogicalEventForNotPowerType        ,0xffc6c5ac) //120
 219 NHSTUB(PostLogicalEventToUI                   ,0xffc6c5f8) //120
 220 NHSTUB(PutInNdFilter                          ,0xffdf7edc) //102
 221 NHSTUB(PutOutNdFilter                         ,0xffdf7f00) //102
 222 NHSTUB(Read                                   ,0xffc0b308) //120
 223 NHSTUB(ReadFastDir                            ,0xffde8e44) //  4
 224 NHSTUB(Rec2PB                                 ,0xffc6fa28) //104
 225 NHSTUB(RefreshPhysicalScreen                  ,0xffd79ea0) //104
 226 NHSTUB(RenameFile_Fut                         ,0xffc259f0) //116
 227 NHSTUB(Restart                                ,0xffc2aab4) //122
 228 NHSTUB(ScreenLock                             ,0xffd7b04c) //117
 229 NHSTUB(ScreenUnlock                           ,0xffd7b090) //117
 230 NHSTUB(SetAE_ShutterSpeed                     ,0xffe52de4) //102
 231 NHSTUB(SetAutoShutdownTime                    ,0xffc6cdf0) //120
 232 NHSTUB(SetCurrentCaptureModeType              ,0xffc7310c) //120
 233 NHSTUB(SetFileAttributes                      ,0xffc26404) //  3
 234 NHSTUB(SetFileTimeStamp                       ,0xffc263a8) //  4
 235 NHSTUB(SetLogicalEventActive                  ,0xffc6caf4) //120
 236 NHSTUB(SetParameterData                       ,0xffd2f014) //101
 237 NHSTUB(SetPropertyCase                        ,0xffc69374) //102
 238 NHSTUB(SetScriptMode                          ,0xffc6cb44) //120
 239 NHSTUB(SleepTask                              ,0xffc29160) //120
 240 NHSTUB(TakeSemaphore                          ,0xffc0f034) //120
 241 NHSTUB(TurnOffBackLight                       ,0xffc77d88) //104
 242 NHSTUB(TurnOnBackLight                        ,0xffc77d70) //104
 243 NHSTUB(TurnOnDisplay                          ,0xffc3f300) //120
 244 NHSTUB(TurnOffDisplay                         ,0xffc3f32c) //120
 245 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xffd1f818) //120
 246 NHSTUB(UnlockAE                               ,0xffc276c4) //120
 247 NHSTUB(UnlockAF                               ,0xffc27590) //120
 248 NHSTUB(UnlockMainPower                        ,0xffc6ccd0) //120
 249 NHSTUB(UnsetZoomForMovie                      ,0xffd35564) //104
 250 NHSTUB(UpdateMBROnFlash                       ,0xffc5113c) //105
 251 NHSTUB(VbattGet                               ,0xffc22be4) //120
 252 NHSTUB(Write                                  ,0xffc2619c) //120
 253 NHSTUB(WriteSDCard                            ,0xffcfc7ac) //108
 254 NHSTUB(_log                                   ,0xffe7f4cc) //111
 255 NHSTUB(_log10                                 ,0xffe7e410) //112
 256 NHSTUB(_pow                                   ,0xffe7e580) //121
 257 NHSTUB(_sqrt                                  ,0xffe80834) //  1
 258 NHSTUB(add_ptp_handler                        ,0xffdbd2d8) //121
 259 NHSTUB(apex2us                                ,0xffd7c39c) //121
 260 NHSTUB(close                                  ,0xffc0b120) //109
 261 NHSTUB(err_init_task                          ,0xffc05f50) //111
 262 NHSTUB(exmem_alloc                            ,0xffc64148) //103
 263 NHSTUB(exmem_free                             ,0xffc641c0) //103
 264 NHSTUB(free                                   ,0xffc04160) //112
 265 NHSTUB(get_nd_value                           ,0xffdf0784) //123
 266 NHSTUB(get_current_nd_value                   ,0xffdf0740) //122
 267 NHSTUB(kbd_p1_f                               ,0xffc23ba8) //109
 268 NHSTUB(kbd_p1_f_cont                          ,0xffc23bb4) //109
 269 NHSTUB(kbd_p2_f                               ,0xffc2345c) //109
 270 NHSTUB(kbd_read_keys                          ,0xffc23b2c) //109
 271 NHSTUB(kbd_read_keys_r2                       ,0xffc42fb8) //109
 272 NHSTUB(lseek                                  ,0xffc26228) //120
 273 NHSTUB(malloc                                 ,0xffc04104) //112
 274 NHSTUB(memcmp                                 ,0xffc11318) //120
 275 NHSTUB(memcpy                                 ,0xffc2e864) //120
 276 NHSTUB(memset                                 ,0xffd7b3d4) //120
 277 NHSTUB(mkdir                                  ,0xffc265a8) //109
 278 NHSTUB(mktime_ext                             ,0xffc7cba0) //  1
 279 NHSTUB(open                                   ,0xffc0b070) //109
 280 NHSTUB(OpenFastDir                            ,0xffde8cf0) //  4
 281 NHSTUB(closedir                               ,0xffde8ca0) //121
 282 NHSTUB(get_fstype                             ,0xffc51340) //122
 283 NHSTUB(qsort                                  ,0xffe3936c) //  4
 284 NHSTUB(rand                                   ,0xffc11420) //121
 285 NHSTUB(realloc                                ,0xffd7b450) //115
 286 NHSTUB(reboot_fw_update                       ,0xffdea6b8) //106
 287 NHSTUB(set_control_event                      ,0xffc6c814) //111
 288 NHSTUB(srand                                  ,0xffc11414) //122
 289 NHSTUB(stat                                   ,0xffc26270) //109
 290 NHSTUB(strcat                                 ,0xffc7c35c) //  1
 291 NHSTUB(strchr                                 ,0xffc03fe8) //  1
 292 NHSTUB(strcmp                                 ,0xffc112d4) //120
 293 NHSTUB(strcpy                                 ,0xffc112bc) //120
 294 NHSTUB(strftime                               ,0xffc7c5a8) //113
 295 NHSTUB(strlen                                 ,0xffc04034) //120
 296 NHSTUB(strncmp                                ,0xffc03f9c) //  1
 297 NHSTUB(strncpy                                ,0xffc03f60) //  1
 298 NHSTUB(strrchr                                ,0xffc0400c) //  1
 299 NHSTUB(strtol                                 ,0xffc2eb44) //101
 300 NHSTUB(strtolx                                ,0xffc2e948) //109
 301    DEF(task_CaptSeq                           ,0xffc5919c) //120
 302    DEF(task_DvlpSeqTask                       ,0xffd11a54) //120
 303    DEF(task_ExpDrv                            ,0xffc91388) //120
 304    DEF(task_FileWrite                         ,0xffde391c) //120
 305    DEF(task_InitFileModules                   ,0xffc704b4) //120
 306    DEF(task_MovieRecord                       ,0xffd0c8f8) //120
 307    DEF(task_PhySw                             ,0xffc2378c) //120
 308 NHSTUB(time                                   ,0xffc6335c) //109
 309 NHSTUB(vsprintf                               ,0xffc11280) //115
 310 NHSTUB(EngDrvRead                             ,0xffc249fc) //102
 311 NHSTUB(PTM_GetCurrentItem                     ,0xffc6d7c4) //105
 312 NHSTUB(CancelHPTimer                          ,0xffc64e80) //119
 313 NHSTUB(SetHPTimerAfterNow                     ,0xffc64d78) //119
 314 NHSTUB(PT_MFOn                                ,0xffc57178) //120
 315 NHSTUB(PT_MFOff                               ,0xffc57188) //120
 316 NHSTUB(GetAdChValue                           ,0xffc409b0) //120
 317 NHSTUB(get_ptp_buf_size                       ,0xffcb98b4) //122
 318 NHSTUB(get_ptp_file_buf                       ,0xffdbec70) //121

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