root/platform/a470/sub/101b/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.01B   // Found @ 0xffc5601c, "GM1.01B" @ 0xffc56029
   7 //   Firmware build timestamp: Feb 12 2008 21:18:24
   8 //   Canon PowerShot A470
   9 
  10 // Values for makefile.inc
  11 //   DIGIC = 30# DIGIC III
  12 //   PLATFORMOSVER = 23
  13 //   PLATFORMID = 12666# (0x317a) Found @ 0xfffe0130
  14 //   MAXRAMADDR = 0x01ffffff
  15 //   MEMISOSTART = 0x000a5718
  16 //   KEYSYS = d3enc# Found @ 0xffff1a98
  17 //   NEED_ENCODED_DISKBOOT = 1# Found @ 0xffff1a78
  18 //   ARAM_HEAP_START = 0x2ce000# Found @ 0xffddb068
  19 //   ARAM_HEAP_SIZE  = 0x32000# Found @ 0xffddb028
  20 
  21 // Detected address ranges:
  22 // ROM      0xffc00000 - 0xffffffff (4194304 bytes)
  23 // RAM data 0x00001900 - 0x0000eba8 copied from 0xffeab38c (  53928 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(PutInNdFilter                        ,0xffdd6fc0) //102        *** != 0xffe267b0
  28 //NHSTUB(PutOutNdFilter                       ,0xffdd6fe4) //102        *** != 0xffe267e8
  29 //NHSTUB(kbd_pwr_off                          ,0xffc30b30) //  2 67%    *** != 0x00000000
  30 
  31 // Check of modemap from 'platform/CAMERA/shooting.c':
  32 // Firmware modemap table found @ffde7144 -> ffe8fab0
  33 // No problems found with modemap table.
  34 
  35 // Values below can be overridden in 'stubs_min.S':
  36 DEF(physw_status                            ,0x0001007c) // Found @0xffc11c0c
  37 DEF(physw_run                               ,0x00001bf0) // Found @0xffc118a8
  38 DEF(physw_sleep_delay                       ,0x00001bee) // Found @0xffc118a8
  39 DEF(levent_table                            ,0xffe72ec4) // Found @0xffe72ec4
  40 DEF(FlashParamsTable                        ,0xffe8fc64) // Found @0xffe8fc64
  41 DEF(movie_status                            ,0x000051d8) // Found @0xffc45174
  42 DEF(canon_menu_active                       ,0x00009014) // Found @0xffd1eec4
  43 DEF(canon_shoot_menu_active                 ,0x000097e1) // Found @0xffd37684
  44 DEF(playrec_mode                            ,0x00005348) // Found @0xffc4b760
  45 DEF(zoom_status                             ,0x0000d020) // Found @0xffde8944
  46 DEF(some_flag_for_af_scan                   ,0x0000cd9c) // Found @0xffdd73a4
  47 DEF(zoom_busy                               ,0x000083a4) // Found @0xffd05d3c
  48 DEF(focus_busy                              ,0x000082b0) // Found @0xffd018d0
  49 DEF(recreview_hold                          ,0x00005b3c) // Found @0xffc63e24
  50 // Camera appears to have only 1 RAW buffer @ 0x10f06b20 (Found @0xffe2db24)
  51 DEF(fileio_semaphore                        ,0x00002890) // Found @0xffc3e2fc
  52 DEF(exmem_alloc_table                       ,0x00019a98) // Found @0xffc5122c
  53 DEF(exmem_types_table                       ,0xffeaee98) // Found @0x0000540c
  54 DEF_CONST(exmem_type_count                  ,0x00000012)
  55 DEF(imager_active                           ,0x00001ed4) // Found @0xffc24f90 (0x1ed0 + 4)
  56 DEF_CONST(uiprop_count                      ,0x00000064) // Found @0xffd29298
  57 DEF(cameracon_state                         ,0x00005770) // Found @0xffc5ca18
  58 
  59 // Values below go in 'lib.c':
  60 //void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xffc2cc48
  61 //void *vid_get_viewport_fb()      { return (void*)0x10659d50; }             // Found @0xffe2b904
  62 DEF(viewport_fb_d                           ,0x000050cc) // Found 0x5080 (@0xffc40488) + 0x4c (@0xffc404c0)
  63 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x5080+0x4c)); } // Found @0xffc40488 & 0xffc404c0
  64 DEF(jpeg_count_str                          ,0x00049a00) // Found @0xffd5de80
  65 //char *camera_jpeg_count_str()    { return (char*)0x00049a00; }             // Found @0xffd5de80
  66 //int get_flash_params_count(void) { return 0x73; }                          // Found @0xffd29cdc
  67 
  68 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  69 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffe51bb8, levent 0x90a
  70 //#define SD_READONLY_IDX     2
  71 //#define USB_MASK            0x00040000 // Found @0xffe51bc0, levent 0x902
  72 //#define USB_IDX             2
  73 //#define BATTCOVER_FLAG      0x01000000 // Found @0xffe51b18, levent 0x905
  74 //#define BATTCOVER_IDX       1
  75 //#define ANALOG_AV_FLAG      0x02000000 // Found @0xffe51b20, levent 0x900 (non-inverted logic)
  76 //#define ANALOG_AV_IDX       1
  77 
  78 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  79 //static KeyMap keymap[] = {
  80 //    { 1, KEY_POWER           ,0x04000000 }, // Found @0xffe51b28, levent 0x600 (uses inverted logic in physw_status)
  81 //    { 2, KEY_UP              ,0x00000001 }, // Found @0xffe51b38, levent 0x04
  82 //    { 2, KEY_DOWN            ,0x00000002 }, // Found @0xffe51b40, levent 0x05
  83 //    { 2, KEY_RIGHT           ,0x00000004 }, // Found @0xffe51b48, levent 0x07
  84 //    { 2, KEY_LEFT            ,0x00000008 }, // Found @0xffe51b50, levent 0x06
  85 //    { 2, KEY_SHOOT_FULL      ,0x00000030 }, // Found @0xffe51b60, levent 0x01
  86 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000020 }, // Found @0xffe51b60, levent 0x01
  87 //    { 2, KEY_SHOOT_HALF      ,0x00000010 }, // Found @0xffe51b58, levent 0x00
  88 //    { 2, KEY_SET             ,0x00000100 }, // Found @0xffe51b78, levent 0x08
  89 //    { 2, KEY_MENU            ,0x00000400 }, // Found @0xffe51b80, levent 0x09
  90 //    { 0, 0, 0 }
  91 //};
  92 
  93 // Values below go in 'platform_camera.h':
  94 //#define CAM_DRYOS         1
  95 //#define CAM_RAW_ROWPIX    3152 // Found @0xffe25324
  96 //#define CAM_RAW_ROWS      2346 // Found @0xffe25328
  97 //#undef  CAM_UNCACHED_BIT
  98 //#define CAM_UNCACHED_BIT  0x10000000 // Found @0xffc17e54
  99 //#define PARAM_CAMERA_NAME 4 // Found @0xffe91888
 100 
 101 // Below goes in 'filewrite.c' or 'platform_camera.h':
 102 //#define MAX_CHUNKS_FOR_FWT 3 // Found @0xffdc0f08
 103 
 104 // Known propcases
 105 // //      PROPCASE_AFSTEP 13
 106 // #define PROPCASE_FOCUS_STATE 18
 107 // #define PROPCASE_AV 23
 108 // #define PROPCASE_BV 34
 109 // //      PROPCASE_DELTA_DIGITALGAIN 77
 110 // #define PROPCASE_DELTA_SV 79
 111 // //      PROPCASE_DELTA_ND 80
 112 // #define PROPCASE_EV_CORRECTION_2 207
 113 // #define PROPCASE_ORIENTATION_SENSOR 219
 114 // #define PROPCASE_SV_MARKET 246
 115 // //      PROPCASE_SVFIX 247
 116 // #define PROPCASE_TV 262
 117 // Guessed propset: 2
 118 
 119 // Misc stuff
 120 DEF(ctypes, 0xffe51716)
 121 
 122 // EXMEM types:
 123 // EXMEM_RAMDISK     0
 124 // EXMEM_COM         1
 125 // EXMEM_COMTMP      2
 126 // EXMEM_FORMATTER   3
 127 // EXMEM_SHADING     4
 128 // EXMEM_FAMODE      5
 129 // EXMEM_FIRMUP      6
 130 // EXMEM_FIRMUP_VRAM 7
 131 // EXMEM_DVLPWORK    8
 132 // EXMEM_EVF         9
 133 // EXMEM_SCRIPT      10
 134 // EXMEM_FILESTORE   11
 135 // EXMEM_MOVIE_REC   12
 136 // EXMEM_MOVIE_PLY   13
 137 // EXMEM_WIDE        14
 138 // EXMEM_NARROW      15
 139 // EXMEM_CRAW_REC    16
 140 // EXMEM_PCEVF       17
 141 
 142 // ISR flag: 0x195c, pointer to current task's control block: 0x1958
 143 // pointer to TCB area: 0x19f4, found @ 0xffc05ee4
 144 
 145 // LED table init @ 0xffcc3e14
 146 // LED #1: 0xc0220080, offset 0x244
 147 // LED #2: 0xc0220084, offset 0x204
 148 // LED #3: 0xc022008c, offset 0x4
 149 // LED #4: 0xc0220088, offset 0x44
 150 
 151 // For capt_seq.c
 152 DEF(_nrflag,0x8888) // Found @ ffd0cb54 (0x8888)
 153 //static long *nrflag = (long*)(0x8888);       // Found @ ffd0cb54
 154 
 155 // Stubs below matched 100%.
 156 //    Name                                     Address                Comp to stubs_entry_2.S
 157 NHSTUB(AllocateUncacheableMemory              ,0xffc17e18) //112
 158 NHSTUB(Close                                  ,0xffc13b5c) //120
 159 NHSTUB(CreateBinarySemaphore                  ,0xffc0b608) //115
 160 NHSTUB(CreateTask                             ,0xffc0b8e0) //120
 161 NHSTUB(DebugAssert                            ,0xffc0bdb8) //107
 162 NHSTUB(DeleteDirectory_Fut                    ,0xffc134ec) //116
 163 NHSTUB(DeleteFile_Fut                         ,0xffc13408) //112
 164 NHSTUB(DeleteSemaphore                        ,0xffc0b6c8) //120
 165 NHSTUB(DoAELock                               ,0xffc15c80) //120
 166 NHSTUB(DoAFLock                               ,0xffc157a0) //120
 167 NHSTUB(EnterToCompensationEVF                 ,0xffc15a90) //104
 168 NHSTUB(ExecuteEventProcedure                  ,0xffc53308) //104
 169 NHSTUB(ExitFromCompensationEVF                ,0xffc15bdc) //104
 170 NHSTUB(ExitTask                               ,0xffc0bb70) //120
 171 NHSTUB(ExpCtrlTool_StartContiAE               ,0xffc218c8) //104
 172 NHSTUB(ExpCtrlTool_StopContiAE                ,0xffc21a0c) //104
 173 NHSTUB(Fclose_Fut                             ,0xffc13584) //120
 174 NHSTUB(Feof_Fut                               ,0xffc13770) //  1
 175 NHSTUB(Fflush_Fut                             ,0xffc137ac) //  1
 176 NHSTUB(Fgets_Fut                              ,0xffc136d8) //  1
 177 NHSTUB(Fopen_Fut                              ,0xffc13544) //120
 178 NHSTUB(Fread_Fut                              ,0xffc13630) //120
 179 NHSTUB(FreeUncacheableMemory                  ,0xffc17e4c) //112
 180 NHSTUB(Fseek_Fut                              ,0xffc13724) //120
 181 NHSTUB(Fwrite_Fut                             ,0xffc13684) //120
 182 NHSTUB(GetBatteryTemperature                  ,0xffc32bd8) //102
 183 NHSTUB(GetCCDTemperature                      ,0xffc32b68) //102
 184 NHSTUB(GetCurrentAvValue                      ,0xffd032e4) //120
 185 NHSTUB(GetCurrentShutterSpeed                 ,0xffc6fa4c) //120
 186 NHSTUB(GetDrive_ClusterSize                   ,0xffc3c8d0) //  1
 187 NHSTUB(GetDrive_FreeClusters                  ,0xffc3c938) //  1
 188 NHSTUB(GetDrive_TotalClusters                 ,0xffc3c904) //  1
 189 NHSTUB(GetFocusLensSubjectDistance            ,0xffd023dc) //102
 190 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xffd026e8) //  1
 191 NHSTUB(GetKbdState                            ,0xffc30b18) //109
 192 NHSTUB(GetMemInfo                             ,0xffc03c40) //115
 193 NHSTUB(GetOpticalTemperature                  ,0xffc32c48) //120
 194 NHSTUB(GetParameterData                       ,0xffd29c9c) //101
 195 NHSTUB(GetPropertyCase                        ,0xffc56f08) //102
 196 NHSTUB(GetSystemTime                          ,0xffdda8bc) //120
 197 NHSTUB(GetVRAMHPixelsSize                     ,0xffca18c0) //120
 198 NHSTUB(GetVRAMVPixelsSize                     ,0xffca18cc) //120
 199 NHSTUB(GetZoomLensCurrentPoint                ,0xffd060a0) //120
 200 NHSTUB(GetZoomLensCurrentPosition             ,0xffdd1c90) //102
 201 NHSTUB(GiveSemaphore                          ,0xffc0b844) //120
 202 NHSTUB(IsStrobeChargeCompleted                ,0xffc97108) //102
 203 NHSTUB(LEDDrive                               ,0xffc303c0) //120
 204 NHSTUB(LocalTime                              ,0xffc51028) //115
 205 NHSTUB(LockMainPower                          ,0xffc5b568) //120
 206 NHSTUB(MakeDirectory_Fut                      ,0xffc1347c) //116
 207 NHSTUB(MoveFocusLensToDistance                ,0xffe28450) //102
 208 NHSTUB(MoveIrisWithAv                         ,0xffdd6bd8) //120
 209 NHSTUB(MoveZoomLensWithPoint                  ,0xffdd715c) //120
 210 NHSTUB(MoveOpticalZoomAt                      ,0xffc15150) //109
 211 NHSTUB(Open                                   ,0xffc13b34) //120
 212 NHSTUB(PB2Rec                                 ,0xffc5e188) //104
 213 NHSTUB(PT_MoveDigitalZoomToWide               ,0xffc467e8) //120
 214 NHSTUB(PT_MoveOpticalZoomAt                   ,0xffc467c0) //120
 215 NHSTUB(PT_PlaySound                           ,0xffc460d4) //102
 216 NHSTUB(PostLogicalEventForNotPowerType        ,0xffc5abd8) //120
 217 NHSTUB(PostLogicalEventToUI                   ,0xffc5ac24) //120
 218 NHSTUB(Read                                   ,0xffc0a15c) //120
 219 NHSTUB(ReadFastDir                            ,0xffdc415c) //  1
 220 NHSTUB(Rec2PB                                 ,0xffc5e1b8) //104
 221 NHSTUB(RefreshPhysicalScreen                  ,0xffd66e5c) //104
 222 NHSTUB(RenameFile_Fut                         ,0xffc133b4) //  1
 223 NHSTUB(Restart                                ,0xffc19690) //122
 224 NHSTUB(SetAE_ShutterSpeed                     ,0xffe2ab14) //102
 225 NHSTUB(SetAutoShutdownTime                    ,0xffc5b5dc) //120
 226 NHSTUB(SetCurrentCaptureModeType              ,0xffc61880) //120
 227 NHSTUB(SetDate                                ,0xffe2c534) //120
 228 NHSTUB(SetFileAttributes                      ,0xffc13e88) //  1
 229 NHSTUB(SetFileTimeStamp                       ,0xffc13e38) //  1
 230 NHSTUB(SetLogicalEventActive                  ,0xffc5b304) //  1
 231 NHSTUB(SetParameterData                       ,0xffd29c0c) //101
 232 NHSTUB(SetPropertyCase                        ,0xffc56e08) //102
 233 NHSTUB(SetScriptMode                          ,0xffc5b354) //120
 234 NHSTUB(SleepTask                              ,0xffc17c9c) //120
 235 NHSTUB(TakeSemaphore                          ,0xffc0b774) //120
 236 NHSTUB(TurnOffBackLight                       ,0xffc65db0) //104
 237 NHSTUB(TurnOnBackLight                        ,0xffc65d98) //104
 238 NHSTUB(TurnOnDisplay                          ,0xffc2ccf8) //120
 239 NHSTUB(TurnOffDisplay                         ,0xffc2cd08) //120
 240 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xffd1f7a4) //120
 241 NHSTUB(UnlockAE                               ,0xffc15cb0) //120
 242 NHSTUB(UnlockAF                               ,0xffc158b8) //120
 243 NHSTUB(UnlockMainPower                        ,0xffc5b4bc) //120
 244 NHSTUB(UnsetZoomForMovie                      ,0xffd2ed10) //104
 245 NHSTUB(UpdateMBROnFlash                       ,0xffc3c710) //105
 246 NHSTUB(VbattGet                               ,0xffc105d0) //120
 247 NHSTUB(Write                                  ,0xffc13c08) //120
 248 NHSTUB(WriteSDCard                            ,0xffcf8a00) //108
 249 NHSTUB(_log                                   ,0xffe4f51c) //111
 250 NHSTUB(_log10                                 ,0xffe4e460) //112
 251 NHSTUB(_pow                                   ,0xffe4e5d0) //121
 252 NHSTUB(_sqrt                                  ,0xffe50884) //  1
 253 NHSTUB(add_ptp_handler                        ,0xffd960e0) //121
 254 NHSTUB(apex2us                                ,0xffd68398) //121
 255 NHSTUB(close                                  ,0xffc09f74) //109
 256 NHSTUB(err_init_task                          ,0xffc04e98) //111
 257 NHSTUB(exmem_alloc                            ,0xffc51af0) //103
 258 NHSTUB(exmem_ualloc                           ,0xffc51940) //103
 259 NHSTUB(exmem_ufree                            ,0xffc51a80) //103
 260 NHSTUB(free                                   ,0xffc03a98) //112
 261 NHSTUB(get_nd_value                           ,0xffdcf680) //123
 262 NHSTUB(get_current_nd_value                   ,0xffdcf63c) //122
 263 NHSTUB(get_current_deltasv                    ,0xffc706e8) //122
 264 NHSTUB(GetCurrentDriveBaseSvValue             ,0xffc751c8) //123
 265 NHSTUB(kbd_p1_f                               ,0xffc11d08) //109
 266 NHSTUB(kbd_p1_f_cont                          ,0xffc11d14) //109
 267 NHSTUB(kbd_p2_f                               ,0xffc11548) //109
 268 NHSTUB(kbd_read_keys                          ,0xffc11c0c) //109
 269 NHSTUB(kbd_read_keys_r2                       ,0xffc30728) //109
 270 NHSTUB(lseek                                  ,0xffc13c9c) //120
 271 NHSTUB(malloc                                 ,0xffc039c4) //112
 272 NHSTUB(memcmp                                 ,0xffc0d90c) //120
 273 NHSTUB(memcpy                                 ,0xffc6e698) //120
 274 NHSTUB(memset                                 ,0xffd67210) //120
 275 NHSTUB(mkdir                                  ,0xffc13f00) //109
 276 NHSTUB(mktime_ext                             ,0xffc6ef04) //  1
 277 NHSTUB(open                                   ,0xffc09ec4) //109
 278 NHSTUB(OpenFastDir                            ,0xffdc40c8) //  1
 279 NHSTUB(closedir                               ,0xffdc422c) //  1
 280 NHSTUB(qsort                                  ,0xffd67718) //  1
 281 NHSTUB(rand                                   ,0xffc0da14) //121
 282 NHSTUB(realloc                                ,0xffc03b78) //115
 283 NHSTUB(reboot_fw_update                       ,0xffdc8a30) //106
 284 NHSTUB(set_control_event                      ,0xffc5b058) //  1
 285 NHSTUB(srand                                  ,0xffc0da08) //122
 286 NHSTUB(stat                                   ,0xffc13d68) //  1
 287 NHSTUB(strcat                                 ,0xffc6e484) //  1
 288 NHSTUB(strchr                                 ,0xffc6e50c) //  1
 289 NHSTUB(strcmp                                 ,0xffc0d8a4) //120
 290 NHSTUB(strcpy                                 ,0xffc0d88c) //120
 291 NHSTUB(strftime                               ,0xffc6e90c) //  1
 292 NHSTUB(strlen                                 ,0xffc0d8e8) //120
 293 NHSTUB(strncmp                                ,0xffc6e4c0) //  1
 294 NHSTUB(strncpy                                ,0xffc1d81c) //  1
 295 NHSTUB(strrchr                                ,0xffc6e530) //  1
 296 NHSTUB(strtol                                 ,0xffc1da54) //101
 297 NHSTUB(strtolx                                ,0xffc1d858) //109
 298    DEF(task_CaptSeq                           ,0xffc488a4) //120
 299    DEF(task_DvlpSeqTask                       ,0xffd0d680) //120
 300    DEF(task_ExpDrv                            ,0xffc900b8) //120
 301    DEF(task_FileWrite                         ,0xffdc0ea4) //120
 302    DEF(task_InitFileModules                   ,0xffc5ebf8) //120
 303    DEF(task_MovieRecord                       ,0xffc453d8) //120
 304    DEF(task_PhySw                             ,0xffc118a4) //120
 305 NHSTUB(time                                   ,0xffc50edc) //109
 306 NHSTUB(vsprintf                               ,0xffc0d80c) //115
 307 NHSTUB(EngDrvRead                             ,0xffc12b48) //102
 308 NHSTUB(PTM_GetCurrentItem                     ,0xffc5beb8) //105
 309 NHSTUB(CancelHPTimer                          ,0xffc52844) //119
 310 NHSTUB(SetHPTimerAfterNow                     ,0xffc5273c) //119
 311 NHSTUB(PT_MFOn                                ,0xffc46860) //120
 312 NHSTUB(PT_MFOff                               ,0xffc46870) //120
 313 NHSTUB(GetAdChValue                           ,0xffc2e810) //120
 314 NHSTUB(get_ptp_buf_size                       ,0xffca3c94) //122
 315 NHSTUB(get_ptp_file_buf                       ,0xffd979b4) //121
 316 NHSTUB(SetVideoOutType                        ,0xffe2b300) //109
 317 NHSTUB(GetVideoOutType                        ,0xffe2b264) //120

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