root/platform/d10/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 R31 (DRYOS version 2.3, release #0031)
   6 //   Firmware Ver GM1.00A   // Found @ 0xff870db8, "GM1.00A" @ 0xff870dc5
   7 //   Firmware build timestamp: Feb 25 2009 18:42:06
   8 //   Canon PowerShot D10
   9 
  10 // Values for makefile.inc
  11 //   DIGIC = 40# DIGIC 4
  12 //   PLATFORMOSVER = 31
  13 //   PLATFORMID = 12732# (0x31bc) Found @ 0xfffe0130
  14 //   MAXRAMADDR = 0x03ffffff
  15 //   MEMISOSTART = 0x00146a2c
  16 //   KEYSYS = d4# Found @ 0xffff3564
  17 //   NEED_ENCODED_DISKBOOT = 2# Found @ 0xffff3574
  18 //   ARAM_HEAP_START = 0x34e000# Found @ 0xff93c6d8
  19 //   ARAM_HEAP_SIZE  = 0x32000# Found @ 0xff93c698
  20 
  21 // Detected address ranges:
  22 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  23 // RAM data 0x00001900 - 0x0000cda0 copied from 0xffb4efa4 (  46240 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(DoAFLock                             ,0xff8255ec) //120        *** != 0xff85e914
  28 //NHSTUB(EnterToCompensationEVF               ,0xff8256d8) //104        *** != 0x00000000
  29 //NHSTUB(ExitFromCompensationEVF              ,0xff82571c) //104        *** != 0x00000000
  30 //NHSTUB(UnlockAF                             ,0xff825624) //120        *** != 0xff85e924
  31 //NHSTUB(exmem_free                           ,0xff86c888) //103        *** != 0xff86c7b0
  32 NHSTUB(kbd_pwr_off                            ,0xff8470e4) //  2 64%
  33 
  34 // Check of modemap from 'platform/CAMERA/shooting.c':
  35 // Firmware modemap table found @ffa54a9c -> ffb32f18
  36 // No problems found with modemap table.
  37 
  38 // Values below can be overridden in 'stubs_min.S':
  39 DEF(physw_status                            ,0x0000e238) // Found @0xff821de4
  40 DEF(physw_run                               ,0x00001c38) // Found @0xff821a58
  41 DEF(physw_sleep_delay                       ,0x00001c36) // Found @0xff821a58
  42 DEF(levent_table                            ,0xffb08638) // Found @0xffb08638
  43 DEF(FlashParamsTable                        ,0xffb330f4) // Found @0xffb330f4
  44 DEF(movie_status                            ,0x00005fe0) // Found @0xff92f390
  45 DEF(video_compression_rate                  ,0x0000600c) // Found @0xff92f54c
  46 DEF(canon_menu_active                       ,0x00002e2c) // Found @0xff872820
  47 DEF(canon_shoot_menu_active                 ,0x00007405) // Found @0xff96b630
  48 DEF(playrec_mode                            ,0x00002b8c) // Found @0xff865a74
  49 DEF(zoom_status                             ,0x0000ad70) // Found @0xffa56cc8
  50 DEF(some_flag_for_af_scan                   ,0x00006508) // Found @0xff932628
  51 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  52 // each entry contains 3 int value(s), the first is the zoom focus length.
  53 // there are 7 entries in the table - set NUM_FL to 7
  54 DEF(focus_len_table                         ,0xfffe2a8c) // Found @0xfffe2a8c
  55 DEF(zoom_busy                               ,0x00005f10) // Found @0xff92b6a0
  56 DEF(focus_busy                              ,0x00005e08) // Found @0xff9265c0
  57 DEF(recreview_hold                          ,0x0000342c) // Found @0xff8819cc
  58 // Palette colour tables  found @ 0xffb1b630
  59 DEF(active_palette_buffer                   ,0x00008484) // Found @0xff9b4b60
  60 DEF(palette_buffer_ptr                      ,0x00008494) // Found @0xff9b4838
  61 // Offset from start of palette_buffer to color data = 12 (Found @0xff9b3914)
  62 // Camera appears to have only 1 RAW buffer @ 0x41643dec (Found @0xffa9e638)
  63 DEF(fileio_semaphore                        ,0x00002850) // Found @0xff854418
  64 DEF(exmem_alloc_table                       ,0x000147cc) // Found @0xff86c214
  65 DEF(exmem_types_table                       ,0xffb50320) // Found @0x00002c7c
  66 DEF_CONST(exmem_type_count                  ,0x00000012)
  67 DEF(imager_active                           ,0x00001eb0) // Found @0xff834970 (0x1eac + 4)
  68 DEF_CONST(uiprop_count                      ,0x0000006b) // Found @0xff959ab8
  69 DEF(cameracon_state                         ,0x0000300c) // Found @0xff879248
  70 
  71 // Values below go in 'lib.c':
  72 //void *vid_get_bitmap_fb()        { return (void*)0x403f1000; }             // Found @0xff842dc8
  73 //void *vid_get_viewport_fb()      { return (void*)0x40a05158; }             // Found @0xffa9c12c
  74 DEF(viewport_fb_d                           ,0x000028dc) // Found 0x2884 (@0xff8575b4) + 0x58 (@0xff8575f4)
  75 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2884+0x58)); } // Found @0xff8575b4 & 0xff8575f4
  76 DEF(jpeg_count_str                          ,0x000525e4) // Found @0xff9abbc0
  77 //char *camera_jpeg_count_str()    { return (char*)0x000525e4; }             // Found @0xff9abbc0
  78 //int get_flash_params_count(void) { return 0x7a; }                          // Found @0xff95a4fc
  79 
  80 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  81 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffad634c, levent 0x90a
  82 //#define SD_READONLY_IDX     2
  83 //#define USB_MASK            0x00080000 // Found @0xffad6358, levent 0x902
  84 //#define USB_IDX             2
  85 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffad6334, levent 0x905
  86 //#define BATTCOVER_IDX       2
  87 //#define ANALOG_AV_FLAG      0x00002000 // Found @0xffad6268, levent 0x900 (non-inverted logic)
  88 //#define ANALOG_AV_IDX       1
  89 
  90 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  91 //static KeyMap keymap[] = {
  92 //    { 1, KEY_POWER           ,0x40000000 }, // Found @0xffad628c, levent 0x600
  93 //    { 1, KEY_PLAYBACK        ,0x80000000 }, // Found @0xffad6298, levent 0x601
  94 //    { 2, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffad62b0, levent 0x01
  95 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffad62b0, levent 0x01
  96 //    { 2, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffad62a4, levent 0x00
  97 //    { 2, KEY_ZOOM_IN         ,0x00000004 }, // Found @0xffad62bc, levent 0x02
  98 //    { 2, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffad62c8, levent 0x03
  99 //    { 2, KEY_LEFT            ,0x00000010 }, // Found @0xffad62d4, levent 0x06
 100 //    { 2, KEY_RIGHT           ,0x00000020 }, // Found @0xffad62e0, levent 0x07
 101 //    { 2, KEY_DOWN            ,0x00000040 }, // Found @0xffad62ec, levent 0x05
 102 //    { 2, KEY_UP              ,0x00000080 }, // Found @0xffad62f8, levent 0x04
 103 //    { 2, KEY_SET             ,0x00000100 }, // Found @0xffad6304, levent 0x08
 104 //    { 2, KEY_DISPLAY         ,0x00000200 }, // Found @0xffad6310, levent 0x0a
 105 //    { 2, KEY_MENU            ,0x00000400 }, // Found @0xffad631c, levent 0x09
 106 //    { 0, 0, 0 }
 107 //};
 108 
 109 // Values below go in 'platform_camera.h':
 110 //#define CAM_DRYOS         1
 111 //#define CAM_RAW_ROWPIX    4104 // Found @0xff8fb074
 112 //#define CAM_RAW_ROWS      3048 // Found @0xff8fb07c
 113 //#undef  CAM_UNCACHED_BIT
 114 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff827744
 115 //#define PARAM_CAMERA_NAME 4 // Found @0xffb3539c
 116 
 117 // Below goes in 'filewrite.c' or 'platform_camera.h':
 118 //#define MAX_CHUNKS_FOR_FWT 3 // Found @0xffa26018
 119 
 120 // Known propcases
 121 // //      PROPCASE_AFSTEP 13
 122 // #define PROPCASE_FOCUS_STATE 18
 123 // #define PROPCASE_AV 23
 124 // #define PROPCASE_BV 34
 125 // //      PROPCASE_DELTA_DIGITALGAIN 77
 126 // #define PROPCASE_DELTA_SV 79
 127 // //      PROPCASE_DELTA_ND 80
 128 // #define PROPCASE_EV_CORRECTION_2 207
 129 // #define PROPCASE_ORIENTATION_SENSOR 219
 130 // #define PROPCASE_SV_MARKET 246
 131 // //      PROPCASE_SVFIX 247
 132 // #define PROPCASE_TV 262
 133 // Guessed propset: 2
 134 
 135 // Misc stuff
 136 DEF(ctypes, 0xffad03aa)
 137 
 138 // EXMEM types:
 139 // EXMEM_RAMDISK        0
 140 // EXMEM_COM            1
 141 // EXMEM_FORMATTER      2
 142 // EXMEM_SHADING        3
 143 // EXMEM_FAMODE         4
 144 // EXMEM_FIRMUP         5
 145 // EXMEM_FIRMUP_VRAM    6
 146 // EXMEM_FIRMUP_INFLATE 7
 147 // EXMEM_DVLPWORK       8
 148 // EXMEM_EVF            9
 149 // EXMEM_SCRIPT         10
 150 // EXMEM_FILESTORE      11
 151 // EXMEM_MOVIE_REC      12
 152 // EXMEM_MOVIE_PLY      13
 153 // EXMEM_WIDE           14
 154 // EXMEM_NARROW         15
 155 // EXMEM_CRAW_REC       16
 156 // EXMEM_PCEVF          17
 157 
 158 // ISR flag: 0x1960, pointer to current task's control block: 0x195c
 159 // pointer to TCB area: 0x19ec, found @ 0xff81574c
 160 
 161 // LED table init @ 0xff8df43c
 162 // LED #1: 0xc0220134, offset 0x4
 163 // LED #2: 0xc0220130, offset 0x44
 164 
 165 // For capt_seq.c
 166 DEF(_nrflag,0x64e8) // Found @ ff9345d0 (0x64f0) & ff9345f0 (-0x08)
 167 //static long *nrflag = (long*)(0x64f0-0x08);  // Found @ ff9345d0 & ff9345ec
 168 
 169 // Stubs below matched 100%.
 170 //    Name                                     Address                Comp to stubs_entry_2.S
 171 NHSTUB(AllocateUncacheableMemory              ,0xff827700) //112
 172 NHSTUB(Close                                  ,0xff823cb0) //120
 173 NHSTUB(CreateBinarySemaphore                  ,0xff826ee0) //115
 174 NHSTUB(CreateTask                             ,0xff81afac) //120
 175 NHSTUB(DebugAssert                            ,0xff81b284) //107
 176 NHSTUB(DeleteDirectory_Fut                    ,0xff823640) //116
 177 NHSTUB(DeleteFile_Fut                         ,0xff82355c) //112
 178 NHSTUB(DeleteSemaphore                        ,0xff826fa0) //120
 179 NHSTUB(DoAELock                               ,0xff825770) //120
 180 NHSTUB(ExecuteEventProcedure                  ,0xff86df60) //104
 181 NHSTUB(ExitTask                               ,0xff81b23c) //120
 182 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff83024c) //104
 183 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff830390) //104
 184 NHSTUB(Fclose_Fut                             ,0xff8236d8) //120
 185 NHSTUB(Feof_Fut                               ,0xff8238c4) //  1
 186 NHSTUB(Fflush_Fut                             ,0xff823900) //  1
 187 NHSTUB(Fgets_Fut                              ,0xff82382c) //  1
 188 NHSTUB(Fopen_Fut                              ,0xff823698) //120
 189 NHSTUB(Fread_Fut                              ,0xff823784) //120
 190 NHSTUB(FreeUncacheableMemory                  ,0xff827740) //112
 191 NHSTUB(Fseek_Fut                              ,0xff823878) //120
 192 NHSTUB(Fwrite_Fut                             ,0xff8237d8) //120
 193 NHSTUB(GetBatteryTemperature                  ,0xff849844) //102
 194 NHSTUB(GetCCDTemperature                      ,0xff8497d0) //102
 195 NHSTUB(GetCurrentAvValue                      ,0xff928378) //120
 196 NHSTUB(GetCurrentShutterSpeed                 ,0xff88cc4c) //120
 197 NHSTUB(GetDrive_ClusterSize                   ,0xff855d3c) //  5
 198 NHSTUB(GetDrive_FreeClusters                  ,0xff855d94) //  5
 199 NHSTUB(GetDrive_TotalClusters                 ,0xff855d68) //  5
 200 NHSTUB(GetFocusLensSubjectDistance            ,0xff927428) //102
 201 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff927804) //  3
 202 NHSTUB(GetKbdState                            ,0xff8470cc) //109
 203 NHSTUB(GetMemInfo                             ,0xff813be4) //115
 204 NHSTUB(GetOpticalTemperature                  ,0xff8498b8) //120
 205 NHSTUB(GetParameterData                       ,0xff95a4bc) //101
 206 NHSTUB(GetPropertyCase                        ,0xff871ccc) //102
 207 NHSTUB(GetSystemTime                          ,0xffa4861c) //120
 208 NHSTUB(GetVRAMHPixelsSize                     ,0xff839b9c) //120
 209 NHSTUB(GetVRAMVPixelsSize                     ,0xff839ba8) //120
 210 NHSTUB(GetZoomLensCurrentPoint                ,0xff92ba1c) //120
 211 NHSTUB(GetZoomLensCurrentPosition             ,0xffa3c378) //102
 212 NHSTUB(GiveSemaphore                          ,0xff82711c) //120
 213 NHSTUB(IsStrobeChargeCompleted                ,0xff8a74bc) //102
 214 NHSTUB(LEDDrive                               ,0xff846818) //120
 215 NHSTUB(LocalTime                              ,0xff86b950) //115
 216 NHSTUB(LockMainPower                          ,0xff877d60) //120
 217 NHSTUB(MakeDirectory_Fut                      ,0xff8235d0) //116
 218 NHSTUB(MoveFocusLensToDistance                ,0xffa98b5c) //102
 219 NHSTUB(MoveIrisWithAv                         ,0xffa46724) //120
 220 NHSTUB(MoveZoomLensWithPoint                  ,0xffa46cac) //120
 221 NHSTUB(MoveOpticalZoomAt                      ,0xff824f30) //109
 222 NHSTUB(Open                                   ,0xff823c88) //120
 223 NHSTUB(PB2Rec                                 ,0xff87ad90) //104
 224 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff85e8dc) //120
 225 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff85e8b4) //120
 226 NHSTUB(PT_PlaySound                           ,0xff85e4ec) //102
 227 NHSTUB(PostLogicalEventForNotPowerType        ,0xff877388) //120
 228 NHSTUB(PostLogicalEventToUI                   ,0xff8773d4) //120
 229 NHSTUB(PutInNdFilter                          ,0xffa46b10) //102
 230 NHSTUB(PutOutNdFilter                         ,0xffa46b34) //102
 231 NHSTUB(Read                                   ,0xff819ae4) //120
 232 NHSTUB(ReadFastDir                            ,0xffa2a474) //  1
 233 NHSTUB(Rec2PB                                 ,0xff8797fc) //104
 234 NHSTUB(RefreshPhysicalScreen                  ,0xff9b96d0) //104
 235 NHSTUB(RenameFile_Fut                         ,0xff823508) //  1
 236 NHSTUB(Restart                                ,0xff828e54) //122
 237 NHSTUB(SetAE_ShutterSpeed                     ,0xffa9b33c) //102
 238 NHSTUB(SetAutoShutdownTime                    ,0xff877dd4) //120
 239 NHSTUB(SetCurrentCaptureModeType              ,0xff87edec) //120
 240 NHSTUB(SetDate                                ,0xffa9cd78) //120
 241 NHSTUB(SetFileAttributes                      ,0xff823fdc) //  1
 242 NHSTUB(SetFileTimeStamp                       ,0xff823f8c) //  1
 243 NHSTUB(SetLogicalEventActive                  ,0xff877adc) //120
 244 NHSTUB(SetParameterData                       ,0xff95a42c) //101
 245 NHSTUB(SetPropertyCase                        ,0xff871bc4) //102
 246 NHSTUB(SetScriptMode                          ,0xff877b2c) //120
 247 NHSTUB(SleepTask                              ,0xff827384) //120
 248 NHSTUB(TakeSemaphore                          ,0xff82704c) //120
 249 NHSTUB(TurnOffBackLight                       ,0xff88527c) //104
 250 NHSTUB(TurnOnBackLight                        ,0xff885264) //104
 251 NHSTUB(TurnOnDisplay                          ,0xff842e90) //120
 252 NHSTUB(TurnOffDisplay                         ,0xff842ea0) //120
 253 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff94656c) //120
 254 NHSTUB(UnlockAE                               ,0xff825794) //120
 255 NHSTUB(UnlockMainPower                        ,0xff877cb4) //120
 256 NHSTUB(UnsetZoomForMovie                      ,0xff960e78) //104
 257 NHSTUB(UpdateMBROnFlash                       ,0xff855b94) //105
 258 NHSTUB(VbattGet                               ,0xff820690) //120
 259 NHSTUB(Write                                  ,0xff823d5c) //120
 260 NHSTUB(WriteSDCard                            ,0xff918b18) //108
 261 NHSTUB(_log                                   ,0xffacd640) //111
 262 NHSTUB(_log10                                 ,0xffacc2cc) //112
 263 NHSTUB(_pow                                   ,0xffacc43c) //121
 264 NHSTUB(_sqrt                                  ,0xffacf1e4) //  1
 265 NHSTUB(add_ptp_handler                        ,0xff9f4f54) //121
 266 NHSTUB(apex2us                                ,0xff9ba774) //121
 267 NHSTUB(close                                  ,0xff8198fc) //109
 268 NHSTUB(err_init_task                          ,0xff814e2c) //111
 269 NHSTUB(exmem_alloc                            ,0xff86c810) //103
 270 NHSTUB(exmem_ualloc                           ,0xff86c664) //103
 271 NHSTUB(exmem_ufree                            ,0xff86c7b0) //103
 272 NHSTUB(free                                   ,0xff813a3c) //112
 273 NHSTUB(get_nd_value                           ,0xffa39d2c) //123
 274 NHSTUB(get_current_nd_value                   ,0xffa39ce8) //122
 275 NHSTUB(get_current_deltasv                    ,0xff88d7dc) //122
 276 NHSTUB(GetCurrentDriveBaseSvValue             ,0xff8929e4) //123
 277 NHSTUB(kbd_p1_f                               ,0xff821e60) //109
 278 NHSTUB(kbd_p1_f_cont                          ,0xff821e6c) //109
 279 NHSTUB(kbd_p2_f                               ,0xff821724) //109
 280 NHSTUB(kbd_read_keys                          ,0xff821de4) //109
 281 NHSTUB(kbd_read_keys_r2                       ,0xff846b8c) //109
 282 NHSTUB(lseek                                  ,0xff823df0) //120
 283 NHSTUB(malloc                                 ,0xff813968) //112
 284 NHSTUB(memcmp                                 ,0xff81cc60) //120
 285 NHSTUB(memcpy                                 ,0xff88b7f4) //120
 286 NHSTUB(memset                                 ,0xff9b9a5c) //120
 287 NHSTUB(mkdir                                  ,0xff824054) //109
 288 NHSTUB(mktime_ext                             ,0xff88c060) //  1
 289 NHSTUB(open                                   ,0xff81984c) //109
 290 NHSTUB(OpenFastDir                            ,0xffa2a3e0) //  1
 291 NHSTUB(closedir                               ,0xffa2a544) //  1
 292 NHSTUB(qsort                                  ,0xffa83b3c) //  1
 293 NHSTUB(rand                                   ,0xff81cd68) //121
 294 NHSTUB(realloc                                ,0xff813b1c) //115
 295 NHSTUB(reboot_fw_update                       ,0xffa31b24) //106
 296 NHSTUB(set_control_event                      ,0xff877810) //111
 297 NHSTUB(srand                                  ,0xff81cd5c) //122
 298 NHSTUB(stat                                   ,0xff823ebc) //  1
 299 NHSTUB(strcat                                 ,0xff88b608) //  1
 300 NHSTUB(strchr                                 ,0xff88b690) //  1
 301 NHSTUB(strcmp                                 ,0xff81cbf8) //120
 302 NHSTUB(strcpy                                 ,0xff81cbe0) //120
 303 NHSTUB(strftime                               ,0xff88ba68) //  1
 304 NHSTUB(strlen                                 ,0xff81cc3c) //120
 305 NHSTUB(strncmp                                ,0xff88b644) //  1
 306 NHSTUB(strncpy                                ,0xff82d048) //  1
 307 NHSTUB(strrchr                                ,0xff9b9a34) //  1
 308 NHSTUB(strtol                                 ,0xff82d280) //101
 309 NHSTUB(strtolx                                ,0xff82d084) //109
 310    DEF(task_CaptSeq                           ,0xff860f34) //120
 311    DEF(task_DvlpSeqTask                       ,0xff8623cc) //120
 312    DEF(task_ExpDrv                            ,0xff89dc5c) //120
 313    DEF(task_FileWrite                         ,0xffa25fb4) //120
 314    DEF(task_InitFileModules                   ,0xff87b84c) //120
 315    DEF(task_MovieRecord                       ,0xff92f5c8) //120
 316    DEF(task_PhySw                             ,0xff821a54) //120
 317 NHSTUB(time                                   ,0xff86bec8) //109
 318 NHSTUB(vsprintf                               ,0xff81cba4) //115
 319 NHSTUB(EngDrvRead                             ,0xff822c9c) //102
 320 NHSTUB(PTM_GetCurrentItem                     ,0xff878774) //105
 321 NHSTUB(CancelHPTimer                          ,0xff86d648) //119
 322 NHSTUB(SetHPTimerAfterNow                     ,0xff86d540) //119
 323 NHSTUB(PT_MFOn                                ,0xff85e954) //120
 324 NHSTUB(PT_MFOff                               ,0xff85e964) //120
 325 NHSTUB(GetAdChValue                           ,0xff844824) //120
 326 NHSTUB(get_ptp_buf_size                       ,0xff8c9374) //122
 327 NHSTUB(get_ptp_file_buf                       ,0xff9f6b28) //121
 328 NHSTUB(SetVideoOutType                        ,0xffa9bb28) //109
 329 NHSTUB(GetVideoOutType                        ,0xffa9ba8c) //120

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