root/platform/sx20/sub/102d/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 R39 (DRYOS version 2.3, release #0039)
   6 //   Firmware Ver GM1.02D   // Found @ 0xff88e430, "GM1.02D" @ 0xff88e43d
   7 //   Firmware build timestamp: Mar  9 2010 10:00:57
   8 //   Canon PowerShot SX20 IS
   9 
  10 // Values for makefile.inc
  11 //   PLATFORMOSVER = 39
  12 //   PLATFORMID = 12772 (0x31e4) // Found @ 0xfffe0130
  13 //   MAXRAMADDR = 0x03ffffff
  14 //   MEMISOSTART = 0x0013dd6c
  15 //   KEYSYS = d4                 // Found @ 0xffff35a0
  16 //   NEED_ENCODED_DISKBOOT = 3   // Found @ 0xffff35b0
  17 //   ARAM_HEAP_START = 0x34e000  // Found @ 0xff96b28c
  18 //   ARAM_HEAP_SIZE  = 0x32000   // Found @ 0xff96b24c
  19 
  20 // Detected address ranges:
  21 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  22 // RAM data 0x00001900 - 0x0000e7fc copied from 0xffc0f184 (  52988 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(DoAFLock                             ,0xff836a9c) //120        *** != 0xff879704
  27 //NHSTUB(TurnOffBackLight                     ,0xff8a5b30) //104        *** != 0xff89b6f4
  28 //NHSTUB(UIFS_WriteFirmInfoToFile             ,0xff979b78) //120        *** != 0xdeadc0de
  29 //NHSTUB(UnlockAF                             ,0xff836b38) //120        *** != 0xff879714
  30 //NHSTUB(VbattGet                             ,0xff831cec) //120        *** != 0xff95d27c
  31 //NHSTUB(kbd_pwr_off                          ,0xff85f2c4) //  2 60%    *** != 0x00000000
  32 
  33 // Check of modemap from 'platform/CAMERA/shooting.c':
  34 // Firmware modemap table found @ffaac914 -> ffbe87b4
  35 // No problems found with modemap table.
  36 
  37 // Values below can be overridden in 'stubs_min.S':
  38 DEF(physw_status                            ,0x00032464) // Found @0xff83341c
  39 DEF(physw_run                               ,0x00001c44) // Found @0xff83308c
  40 DEF(physw_sleep_delay                       ,0x00001c42) // Found @0xff83308c
  41 DEF(levent_table                            ,0xffba33a8) // Found @0xffba33a8
  42 DEF(FlashParamsTable                        ,0xffbe899c) // Found @0xffbe899c
  43 DEF(movie_status                            ,0x00002c30) // Found @0xff878e00
  44 DEF(video_compression_rate                  ,0x00002c5c) // Found @0xff879008
  45 DEF(full_screen_refresh                     ,0x00009cf4) // Found @0xffa02778
  46 DEF(canon_menu_active                       ,0x0000312c) // Found @0xff88fee0
  47 DEF(canon_shoot_menu_active                 ,0x00008845) // Found @0xff9aa1e4
  48 DEF(playrec_mode                            ,0x00002e58) // Found @0xff882278
  49 DEF(zoom_status                             ,0x0000c6c0) // Found @0xffaaf648
  50 DEF(some_flag_for_af_scan                   ,0x00007934) // Found @0xff95fd00
  51 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  52 // each entry contains 1 int value, which is the the zoom focus length.
  53 // there are 6 entries in the table - set NUM_FL to 6
  54 DEF(focus_len_table                         ,0xffbadd24) // Found @0xffbadd24
  55 DEF(zoom_busy                               ,0x00006ec0) // Found @0xff955efc
  56 DEF(focus_busy                              ,0x00006d50) // Found @0xff950090
  57 //DEF(recreview_hold                          ,0x00003d2c) // Found @0xff8a1bb0, ** != ** stubs_min = 0x000083d8 (0x82E0+0xF8)
  58 // Palette colour tables  found @ 0xffbbc158
  59 DEF(active_palette_buffer                   ,0x00009cfc) // Found @0xffa026b4
  60 DEF(palette_buffer_ptr                      ,0x00009d08) // Found @0xffa02388
  61 // Offset from start of palette_buffer to color data = 8 (Found @0xffae5998)
  62 // Camera appears to have only 1 RAW buffer @ 0x41f723e0 (Found @0xffb05b50)
  63 DEF(fileio_semaphore                        ,0x000029e0) // Found @0xff86d7e0
  64 DEF(exmem_alloc_table                       ,0x00038dd8) // Found @0xff8897d0
  65 DEF(exmem_types_table                       ,0xffc10800) // Found @0x00002f7c
  66 DEF_CONST(exmem_type_count                  ,0x00000012)
  67 DEF(imager_active                           ,0x00001fac) // Found @0xff84a040 (0x1fa8 + 4)
  68 DEF_CONST(uiprop_count                      ,0x0000006e) // Found @0xff98fb8c
  69 
  70 // Values below go in 'lib.c':
  71 //void *vid_get_bitmap_fb()        { return (void*)0x403f1000; }             // Found @0xff859684
  72 //void *vid_get_viewport_fb()      { return (void*)0x41020120; }             // Found @0xffb03448
  73 DEF(viewport_fb_d                           ,0x00002a88) // Found 0x2a30 (@0xff870890) + 0x58 (@0xff8708c8)
  74 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2a30+0x58)); } // Found @0xff870890 & 0xff8708c8
  75 DEF(jpeg_count_str                          ,0x00072dfc) // Found @0xff9f7368
  76 //char *camera_jpeg_count_str()    { return (char*)0x00072dfc; }             // Found @0xff9f7368
  77 //int get_flash_params_count(void) { return 0x84; }                          // Found @0xff9907e0
  78 
  79 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  80 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffb44d84, levent 0x90a
  81 //#define SD_READONLY_IDX     2
  82 //#define USB_MASK            0x00040000 // Found @0xffb44d90, levent 0x902
  83 //#define USB_IDX             2
  84 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffb44c40, levent 0x905
  85 //#define BATTCOVER_IDX       0
  86 //#define HOTSHOE_FLAG        0x10000000 // Found @0xffb44dfc, levent 0x904
  87 //#define HOTSHOE_IDX         2
  88 //#define ANALOG_AV_FLAG      0x00100000 // Found @0xffb44da8, levent 0x900 (non-inverted logic)
  89 //#define ANALOG_AV_IDX       2
  90 
  91 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  92 //static KeyMap keymap[] = {
  93 //    { 0, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffb44c1c, levent 0x01
  94 //    { 0, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffb44c1c, levent 0x01
  95 //    { 0, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffb44c10, levent 0x00
  96 //    { 0, KEY_POWER           ,0x00002000 }, // Found @0xffb44c28, levent 0x600
  97 //    { 0, KEY_PLAYBACK        ,0x00004000 }, // Found @0xffb44c34, levent 0x601
  98 //    { 1, KEY_VIDEO           ,0x00000020 }, // Found @0xffb44c88, levent 0x12
  99 //    { 1, KEY_SET             ,0x00000100 }, // Found @0xffb44cac, levent 0x08
 100 //    { 1, KEY_DISPLAY         ,0x00000200 }, // Found @0xffb44cb8, levent 0x0a
 101 //    { 1, KEY_UP              ,0x00000400 }, // Found @0xffb44cc4, levent 0x04
 102 //    { 1, KEY_DOWN            ,0x00000800 }, // Found @0xffb44cd0, levent 0x05
 103 //    { 1, KEY_RIGHT           ,0x00001000 }, // Found @0xffb44cdc, levent 0x07
 104 //    { 1, KEY_LEFT            ,0x00002000 }, // Found @0xffb44ce8, levent 0x06
 105 //    { 1, KEY_MENU            ,0x00004000 }, // Found @0xffb44cf4, levent 0x09
 106 //    { 0, 0, 0 }
 107 //};
 108 
 109 // Values below go in 'platform_camera.h':
 110 //#define CAM_DRYOS         1
 111 //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
 112 //#define CAM_RAW_ROWPIX    4080 // Found @0xff92b724
 113 //#define CAM_RAW_ROWS      3048 // Found @0xff92b72c
 114 //#undef  CAM_UNCACHED_BIT
 115 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff838e2c
 116 //#define CAM_DATE_FOLDER_NAMING 0x100 // Found @0xffa69cf0 (pass as 3rd param to GetImageFolder)
 117 //#define PARAM_CAMERA_NAME 4 // Found @0xffbeaed8
 118 
 119 // Known propcases
 120 // //      PROPCASE_AFSTEP 13
 121 // #define PROPCASE_FOCUS_STATE 18
 122 // #define PROPCASE_AV 23
 123 // #define PROPCASE_BV 34
 124 // //      PROPCASE_DELTA_DIGITALGAIN 77
 125 // #define PROPCASE_DELTA_SV 79
 126 // //      PROPCASE_DELTA_ND 80
 127 // #define PROPCASE_EV_CORRECTION_2 209
 128 // #define PROPCASE_ORIENTATION_SENSOR 221
 129 // #define PROPCASE_SV_MARKET 248
 130 // //      PROPCASE_SVFIX 249
 131 // #define PROPCASE_TV 264
 132 // Guessed propset: 3
 133 
 134 // Misc stuff
 135 DEF(ctypes, 0xffb3a416)
 136 
 137 // EXMEM types:
 138 // EXMEM_RAMDISK        0
 139 // EXMEM_COM            1
 140 // EXMEM_FORMATTER      2
 141 // EXMEM_SHADING        3
 142 // EXMEM_FAMODE         4
 143 // EXMEM_FIRMUP         5
 144 // EXMEM_FIRMUP_VRAM    6
 145 // EXMEM_FIRMUP_INFLATE 7
 146 // EXMEM_DVLPWORK       8
 147 // EXMEM_EVF            9
 148 // EXMEM_SCRIPT         10
 149 // EXMEM_FILESTORE      11
 150 // EXMEM_MOVIE_REC      12
 151 // EXMEM_MOVIE_PLY      13
 152 // EXMEM_WIDE           14
 153 // EXMEM_NARROW         15
 154 // EXMEM_CRAW_REC       16
 155 // EXMEM_PCEVF          17
 156 
 157 // ISR flag: 0x1964, pointer to current task's control block: 0x1960
 158 // pointer to TCB area: 0x19f0, found @ 0xff81683c
 159 
 160 // LED table init @ 0xff90b838
 161 // LED #1: 0xc02200b4, offset 0x244
 162 
 163 // For capt_seq.c
 164 DEF(_nrflag,0x7910) // Found @ ff9625a8 (0x7918) & ff9625c8 (-0x08)
 165 //static long *nrflag = (long*)(0x7918-0x08);  // Found @ ff9625a8 & ff9625c4
 166 
 167 // Stubs below matched 100%.
 168 //    Name                                     Address                Comp to stubs_entry_2.S
 169 NHSTUB(AllocateUncacheableMemory              ,0xff838de8) //112
 170 NHSTUB(Close                                  ,0xff83527c) //120
 171 NHSTUB(CreateBinarySemaphore                  ,0xff8385c8) //115
 172 NHSTUB(CreateTask                             ,0xff81e5b4) //120
 173 NHSTUB(DebugAssert                            ,0xff81e88c) //107
 174 NHSTUB(DeleteDirectory_Fut                    ,0xff834cec) //116
 175 NHSTUB(DeleteFile_Fut                         ,0xff834c08) //112
 176 NHSTUB(DoAELock                               ,0xff836e28) //120
 177 NHSTUB(EnterToCompensationEVF                 ,0xff836d84) //104
 178 NHSTUB(ExecuteEventProcedure                  ,0xff88b598) //104
 179 NHSTUB(ExitFromCompensationEVF                ,0xff836dc8) //104
 180 NHSTUB(ExitTask                               ,0xff81e844) //120
 181 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff84465c) //104
 182 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff844734) //104
 183 NHSTUB(Fclose_Fut                             ,0xff834d84) //120
 184 NHSTUB(Feof_Fut                               ,0xff834f70) //  1
 185 NHSTUB(Fflush_Fut                             ,0xff834fac) //  1
 186 NHSTUB(Fgets_Fut                              ,0xff834ed8) //  1
 187 NHSTUB(Fopen_Fut                              ,0xff834d44) //120
 188 NHSTUB(Fread_Fut                              ,0xff834e30) //120
 189 NHSTUB(FreeUncacheableMemory                  ,0xff838e28) //112
 190 NHSTUB(Fseek_Fut                              ,0xff834f24) //120
 191 NHSTUB(Fwrite_Fut                             ,0xff834e84) //120
 192 NHSTUB(GetBatteryTemperature                  ,0xff862744) //102
 193 NHSTUB(GetCCDTemperature                      ,0xff8626d0) //102
 194 NHSTUB(GetCurrentAvValue                      ,0xff9526d8) //120
 195 NHSTUB(GetCurrentShutterSpeed                 ,0xff8b13c8) //120
 196 NHSTUB(GetUsableMaxAv                         ,0xffafd598) //120
 197 NHSTUB(GetUsableMinAv                         ,0xffafd580) //120
 198 NHSTUB(GetDrive_ClusterSize                   ,0xff86f1c8) //122
 199 NHSTUB(GetDrive_FreeClusters                  ,0xff86f228) //  3
 200 NHSTUB(GetDrive_TotalClusters                 ,0xff86f1fc) //  3
 201 NHSTUB(GetFocusLensSubjectDistance            ,0xff950bcc) //102
 202 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff951000) //  3
 203 NHSTUB(GetImageFolder                         ,0xff933568) //122
 204 NHSTUB(GetKbdState                            ,0xff85f11c) //109
 205 NHSTUB(GetMemInfo                             ,0xff81a070) //115
 206 NHSTUB(GetOpticalTemperature                  ,0xff8627b8) //120
 207 NHSTUB(GetParameterData                       ,0xff9907a0) //101
 208 NHSTUB(GetPropertyCase                        ,0xff88f32c) //102
 209 NHSTUB(GetSystemTime                          ,0xffa9b880) //120
 210 NHSTUB(GetVRAMHPixelsSize                     ,0xff84f904) //120
 211 NHSTUB(GetVRAMVPixelsSize                     ,0xff84f910) //120
 212 NHSTUB(GetZoomLensCurrentPoint                ,0xff956864) //120
 213 NHSTUB(GetZoomLensCurrentPosition             ,0xffa8ed0c) //102
 214 NHSTUB(GiveSemaphore                          ,0xff838804) //120
 215 NHSTUB(IsStrobeChargeCompleted                ,0xff8ce3f4) //102
 216 NHSTUB(LEDDrive                               ,0xff85e338) //120
 217 NHSTUB(LocalTime                              ,0xff888f0c) //115
 218 NHSTUB(LockMainPower                          ,0xff896efc) //120
 219 NHSTUB(MakeDirectory_Fut                      ,0xff834c7c) //116
 220 NHSTUB(MoveFocusLensToDistance                ,0xffaff710) //102
 221 NHSTUB(MoveIrisWithAv                         ,0xffa971a8) //120
 222 NHSTUB(MoveZoomLensWithPoint                  ,0xffa978d0) //120
 223 NHSTUB(Open                                   ,0xff835224) //120
 224 NHSTUB(PB2Rec                                 ,0xff899e38) //104
 225 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff8796b4) //120
 226 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff87968c) //120
 227 NHSTUB(PT_PlaySound                           ,0xff8840a8) //102
 228 NHSTUB(PostLogicalEventForNotPowerType        ,0xff894df8) //120
 229 NHSTUB(PostLogicalEventToUI                   ,0xff894e44) //120
 230 NHSTUB(PutInNdFilter                          ,0xffa97754) //102
 231 NHSTUB(PutOutNdFilter                         ,0xffa97778) //102
 232 NHSTUB(Read                                   ,0xff81ab78) //120
 233 NHSTUB(ReadFastDir                            ,0xffa7d6d4) //  3
 234 NHSTUB(Rec2PB                                 ,0xff8988a4) //104
 235 NHSTUB(RefreshPhysicalScreen                  ,0xffa04ad8) //104
 236 NHSTUB(RenameFile_Fut                         ,0xff834b74) //116
 237 NHSTUB(Restart                                ,0xff83a53c) //122
 238 NHSTUB(ScreenLock                             ,0xffa04aa4) //117
 239 NHSTUB(ScreenUnlock                           ,0xffa04b48) //117
 240 NHSTUB(SetAE_ShutterSpeed                     ,0xffb025c0) //102
 241 NHSTUB(SetAutoShutdownTime                    ,0xff896f70) //120
 242 NHSTUB(SetCurrentCaptureModeType              ,0xff89eb78) //120
 243 NHSTUB(SetFileAttributes                      ,0xff83554c) //  3
 244 NHSTUB(SetFileTimeStamp                       ,0xff835508) //  3
 245 NHSTUB(SetLogicalEventActive                  ,0xff896c4c) //120
 246 NHSTUB(SetParameterData                       ,0xff99067c) //101
 247 NHSTUB(SetPropertyCase                        ,0xff88f230) //102
 248 NHSTUB(SetScriptMode                          ,0xff896c9c) //120
 249 NHSTUB(SleepTask                              ,0xff838a6c) //120
 250 NHSTUB(TakeSemaphore                          ,0xff838734) //120
 251 NHSTUB(TurnOnBackLight                        ,0xff8a5b18) //104
 252 NHSTUB(TurnOnDisplay                          ,0xff859888) //120
 253 NHSTUB(TurnOffDisplay                         ,0xff859898) //120
 254 NHSTUB(UnlockAE                               ,0xff836e4c) //120
 255 NHSTUB(UnlockMainPower                        ,0xff896e50) //120
 256 NHSTUB(UpdateMBROnFlash                       ,0xff86f048) //105
 257 NHSTUB(Write                                  ,0xff83530c) //120
 258 NHSTUB(WriteSDCard                            ,0xff940c34) //108
 259 NHSTUB(_log                                   ,0xffb37ed8) //111
 260 NHSTUB(_log10                                 ,0xffb36e1c) //112
 261 NHSTUB(_pow                                   ,0xffb36f8c) //121
 262 NHSTUB(_sqrt                                  ,0xffb39240) //  1
 263 NHSTUB(add_ptp_handler                        ,0xffa49320) //121
 264 NHSTUB(apex2us                                ,0xffa08264) //121
 265 NHSTUB(close                                  ,0xff81a990) //109
 266 NHSTUB(err_init_task                          ,0xff815f28) //111
 267 NHSTUB(exmem_alloc                            ,0xff889dcc) //103
 268 NHSTUB(exmem_free                             ,0xff889e44) //103
 269 NHSTUB(free                                   ,0xff814138) //112
 270 NHSTUB(get_current_nd_value                   ,0xffa8d328) //122
 271 NHSTUB(kbd_p1_f                               ,0xff833498) //109
 272 NHSTUB(kbd_p1_f_cont                          ,0xff8334a4) //109
 273 NHSTUB(kbd_p2_f                               ,0xff832d58) //109
 274 NHSTUB(kbd_read_keys                          ,0xff83341c) //109
 275 NHSTUB(kbd_read_keys_r2                       ,0xff85e850) //109
 276 NHSTUB(lseek                                  ,0xff835398) //120
 277 NHSTUB(malloc                                 ,0xff8140dc) //112
 278 NHSTUB(memcmp                                 ,0xff8203d8) //120
 279 NHSTUB(memcpy                                 ,0xff83e458) //120
 280 NHSTUB(memset                                 ,0xffa072b4) //120
 281 NHSTUB(mkdir                                  ,0xff8356f0) //109
 282 NHSTUB(mktime_ext                             ,0xff8ad110) //  1
 283 NHSTUB(open                                   ,0xff81a8e0) //109
 284 NHSTUB(OpenFastDir                            ,0xffa7d5a0) //  3
 285 NHSTUB(closedir                               ,0xffa7d55c) //  3
 286 NHSTUB(get_fstype                             ,0xff86f24c) //122
 287 NHSTUB(qsort                                  ,0xffaeb65c) //  1
 288 NHSTUB(rand                                   ,0xff8204e0) //121
 289 NHSTUB(realloc                                ,0xffa07330) //115
 290 NHSTUB(reboot_fw_update                       ,0xffa82be4) //106
 291 NHSTUB(set_control_event                      ,0xff8968a0) //111
 292 NHSTUB(srand                                  ,0xff8204d4) //122
 293 NHSTUB(stat                                   ,0xff8353d4) //109
 294 NHSTUB(strcat                                 ,0xff8ac8cc) //  1
 295 NHSTUB(strchr                                 ,0xff813fc0) //  1
 296 NHSTUB(strcmp                                 ,0xff820394) //120
 297 NHSTUB(strcpy                                 ,0xff82037c) //120
 298 NHSTUB(strftime                               ,0xff8acb18) //  1
 299 NHSTUB(strlen                                 ,0xff81400c) //120
 300 NHSTUB(strncmp                                ,0xff813f74) //  1
 301 NHSTUB(strncpy                                ,0xff813f38) //  1
 302 NHSTUB(strrchr                                ,0xff813fe4) //  1
 303 NHSTUB(strtol                                 ,0xff83e738) //101
 304 NHSTUB(strtolx                                ,0xff83e53c) //109
 305    DEF(task_CaptSeq                           ,0xff87cd90) //120
 306    DEF(task_DvlpSeqTask                       ,0xff87e75c) //120
 307    DEF(task_ExpDrv                            ,0xff8c1480) //120
 308    DEF(task_FileWrite                         ,0xffa78f30) //120
 309    DEF(task_InitFileModules                   ,0xff89a91c) //120
 310    DEF(task_MovieRecord                       ,0xff879084) //120
 311    DEF(task_PhySw                             ,0xff833088) //120
 312    DEF(task_RotaryEncoder                     ,0xff85f3cc) //120
 313 NHSTUB(time                                   ,0xff889484) //109
 314 NHSTUB(vsprintf                               ,0xff820340) //115
 315 NHSTUB(EngDrvRead                             ,0xff8342e0) //102
 316 NHSTUB(PTM_GetCurrentItem                     ,0xff897834) //105
 317 NHSTUB(DisableISDriveError                    ,0xffa9985c) //120
 318 NHSTUB(CancelHPTimer                          ,0xff88ac80) //119
 319 NHSTUB(SetHPTimerAfterNow                     ,0xff88ab78) //119
 320 NHSTUB(PT_MFOn                                ,0xff879744) //120
 321 NHSTUB(PT_MFOff                               ,0xff879754) //120
 322 NHSTUB(GetAdChValue                           ,0xff85b160) //120
 323 NHSTUB(get_ptp_buf_size                       ,0xff8f4cf0) //122
 324 NHSTUB(get_ptp_file_buf                       ,0xffa4ad08) //121

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