root/platform/s90/sub/101a/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.01A   // Found @ 0xff88bb84, "GM1.01A" @ 0xff88bb91
   7 //   Firmware build timestamp: Oct 28 2009 15:47:24
   8 //   Canon PowerShot S90
   9 
  10 // Values for makefile.inc
  11 //   PLATFORMOSVER = 39
  12 //   PLATFORMID = 12769 (0x31e1) // Found @ 0xfffe0130
  13 //   MAXRAMADDR = 0x03ffffff
  14 //   MEMISOSTART = 0x00141dbc
  15 //   KEYSYS = d4                 // Found @ 0xffff3564
  16 //   NEED_ENCODED_DISKBOOT = 3   // Found @ 0xffff3574
  17 //   ARAM_HEAP_START = 0x3ce000  // Found @ 0xff96fd70
  18 //   ARAM_HEAP_SIZE  = 0x32000   // Found @ 0xff96fd30
  19 
  20 // Detected address ranges:
  21 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  22 // RAM data 0x00001900 - 0x0000f470 copied from 0xffc14cd8 (  56176 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(SetScriptMode                        ,0xff894448) //120        *** != 0xff810f4c
  27 //NHSTUB(kbd_pwr_off                          ,0xff85e3a4) //  2 60%    *** != 0xff833350
  28 
  29 // Check of modemap from 'platform/CAMERA/shooting.c':
  30 // Firmware modemap table found @ffaae8d4 -> ffbef9d4
  31 // No problems found with modemap table.
  32 
  33 // Values below can be overridden in 'stubs_min.S':
  34 DEF(physw_status                            ,0x000330d8) // Found @0xff8335b4
  35 DEF(physw_run                               ,0x00001c44) // Found @0xff83320c
  36 DEF(physw_sleep_delay                       ,0x00001c42) // Found @0xff83320c
  37 DEF(levent_table                            ,0xffb8b4c4) // Found @0xffb8b4c4
  38 DEF(FlashParamsTable                        ,0xffbefbc4) // Found @0xffbefbc4
  39 DEF(movie_status                            ,0x00007ae8) // Found @0xff96149c
  40 DEF(video_compression_rate                  ,0x00007b14) // Found @0xff961704
  41 DEF(full_screen_refresh                     ,0x0000a36c) // Found @0xffa07dc8
  42 DEF(canon_menu_active                       ,0x00003038) // Found @0xff88d65c
  43 DEF(canon_shoot_menu_active                 ,0x00008dd1) // Found @0xff9ab7a0
  44 DEF(playrec_mode                            ,0x00002d64) // Found @0xff87fa20
  45 DEF(zoom_status                             ,0x00008aa4) // Found @0xff99bb74
  46 DEF(some_flag_for_af_scan                   ,0x00007ff4) // Found @0xff96452c
  47 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  48 // each entry contains 3 int value(s), the first is the zoom focus length.
  49 // there are 10 entries in the table - set NUM_FL to 10
  50 DEF(focus_len_table                         ,0xfffe2af8) // Found @0xfffe2af8
  51 DEF(zoom_busy                               ,0x00007a14) // Found @0xff95d6cc
  52 DEF(focus_busy                              ,0x000078dc) // Found @0xff957bdc
  53 //DEF(recreview_hold                          ,0x00003a94) // Found @0xff89e6bc, ** != ** stubs_min = 0x00008a28 (0x8944+0xE4)
  54 // Palette colour tables  found @ 0xffba5408
  55 DEF(active_palette_buffer                   ,0x0000a374) // Found @0xffa07d08
  56 DEF(palette_buffer_ptr                      ,0x0000a380) // Found @0xffa079dc
  57 // Offset from start of palette_buffer to color data = 8 (Found @0xffae54fc)
  58 // Camera appears to have only 1 RAW buffer @ 0x4213a6ec (Found @0xffb025a0)
  59 DEF(fileio_semaphore                        ,0x000029d0) // Found @0xff86c998
  60 DEF(exmem_alloc_table                       ,0x0003a3e4) // Found @0xff886f60
  61 DEF(exmem_types_table                       ,0xffc16260) // Found @0x00002e88
  62 DEF_CONST(exmem_type_count                  ,0x00000012)
  63 DEF(imager_active                           ,0x00001fc8) // Found @0xff84a6f4 (0x1fc4 + 4)
  64 DEF_CONST(uiprop_count                      ,0x0000006e) // Found @0xff993ebc
  65 
  66 // Values below go in 'lib.c':
  67 //void *vid_get_bitmap_fb()        { return (void*)0x40471000; }             // Found @0xff858728
  68 //void *vid_get_viewport_fb()      { return (void*)0x407e8a00; }             // Found @0xffaff330
  69 DEF(viewport_fb_d                           ,0x00002a78) // Found 0x2a20 (@0xff86f9f8) + 0x58 (@0xff86fa30)
  70 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2a20+0x58)); } // Found @0xff86f9f8 & 0xff86fa30
  71 DEF(jpeg_count_str                          ,0x0009792c) // Found @0xff9fbf8c
  72 //char *camera_jpeg_count_str()    { return (char*)0x0009792c; }             // Found @0xff9fbf8c
  73 //int get_flash_params_count(void) { return 0x85; }                          // Found @0xff994b10
  74 
  75 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  76 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffb3aaa4, levent 0x90a
  77 //#define SD_READONLY_IDX     2
  78 //#define USB_MASK            0x00200000 // Found @0xffb3aabc, levent 0x902
  79 //#define USB_IDX             2
  80 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffb3a9c0, levent 0x905
  81 //#define BATTCOVER_IDX       0
  82 //#define ANALOG_AV_FLAG      0x00040000 // Found @0xffb3aab0, levent 0x900 (non-inverted logic)
  83 //#define ANALOG_AV_IDX       2
  84 
  85 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  86 //static KeyMap keymap[] = {
  87 //    { 0, KEY_SHOOT_FULL      ,0x00000300 }, // Found @0xffb3a990, levent 0x01
  88 //    { 0, KEY_SHOOT_FULL_ONLY ,0x00000200 }, // Found @0xffb3a990, levent 0x01
  89 //    { 0, KEY_SHOOT_HALF      ,0x00000100 }, // Found @0xffb3a984, levent 0x00
  90 //    { 0, KEY_POWER           ,0x00000400 }, // Found @0xffb3a99c, levent 0x600
  91 //    { 0, KEY_PLAYBACK        ,0x00000800 }, // Found @0xffb3a9a8, levent 0x601
  92 //    { 1, KEY_ZOOM_IN         ,0x00000010 }, // Found @0xffb3aa08, levent 0x02
  93 //    { 1, KEY_ZOOM_OUT        ,0x00000020 }, // Found @0xffb3aa14, levent 0x03
  94 //    { 1, KEY_LEFT            ,0x00000100 }, // Found @0xffb3aa38, levent 0x06
  95 //    { 1, KEY_RIGHT           ,0x00000200 }, // Found @0xffb3aa44, levent 0x07
  96 //    { 1, KEY_DOWN            ,0x00000400 }, // Found @0xffb3aa50, levent 0x05
  97 //    { 1, KEY_DISPLAY         ,0x00001000 }, // Found @0xffb3aa68, levent 0x0a
  98 //    { 1, KEY_MENU            ,0x00002000 }, // Found @0xffb3aa74, levent 0x09
  99 //    { 1, KEY_UP              ,0x00004000 }, // Found @0xffb3aa80, levent 0x04
 100 //    { 1, KEY_SET             ,0x00008000 }, // Found @0xffb3aa8c, levent 0x08
 101 //    { 0, 0, 0 }
 102 //};
 103 
 104 // Values below go in 'platform_camera.h':
 105 //#define CAM_DRYOS         1
 106 //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
 107 //#define CAM_RAW_ROWPIX    3744 // Found @0xff9345f8
 108 //#define CAM_RAW_ROWS      2784 // Found @0xff934600
 109 //#undef  CAM_UNCACHED_BIT
 110 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff838e10
 111 //#define CAM_DATE_FOLDER_NAMING 0x100 // Found @0xffa69d6c (pass as 3rd param to GetImageFolder)
 112 //#define PARAM_CAMERA_NAME 4 // Found @0xffbf234c
 113 
 114 // Known propcases
 115 // //      PROPCASE_AFSTEP 13
 116 // #define PROPCASE_FOCUS_STATE 18
 117 // #define PROPCASE_AV 23
 118 // #define PROPCASE_BV 34
 119 // //      PROPCASE_DELTA_DIGITALGAIN 77
 120 // #define PROPCASE_DELTA_SV 79
 121 // //      PROPCASE_DELTA_ND 80
 122 // #define PROPCASE_EV_CORRECTION_2 209
 123 // #define PROPCASE_ORIENTATION_SENSOR 221
 124 // #define PROPCASE_SV_MARKET 248
 125 // //      PROPCASE_SVFIX 249
 126 // #define PROPCASE_TV 264
 127 // Guessed propset: 3
 128 
 129 // Misc stuff
 130 DEF(ctypes, 0xffb393c6)
 131 
 132 // EXMEM types:
 133 // EXMEM_RAMDISK        0
 134 // EXMEM_COM            1
 135 // EXMEM_FORMATTER      2
 136 // EXMEM_SHADING        3
 137 // EXMEM_FAMODE         4
 138 // EXMEM_FIRMUP         5
 139 // EXMEM_FIRMUP_VRAM    6
 140 // EXMEM_FIRMUP_INFLATE 7
 141 // EXMEM_DVLPWORK       8
 142 // EXMEM_EVF            9
 143 // EXMEM_SCRIPT         10
 144 // EXMEM_FILESTORE      11
 145 // EXMEM_MOVIE_REC      12
 146 // EXMEM_MOVIE_PLY      13
 147 // EXMEM_WIDE           14
 148 // EXMEM_NARROW         15
 149 // EXMEM_CRAW_REC       16
 150 // EXMEM_PCEVF          17
 151 
 152 // ISR flag: 0x1964, pointer to current task's control block: 0x1960
 153 // pointer to TCB area: 0x19f0, found @ 0xff81683c
 154 
 155 // LED table init @ 0xff916224
 156 // LED #1: 0xc0220130, offset 0x4
 157 // LED #2: 0xc0220134, offset 0x44
 158 
 159 // For capt_seq.c
 160 DEF(_nrflag,0x7fd0) // Found @ ff966994 (0x7fd8) & ff9669b4 (-0x08)
 161 //static long *nrflag = (long*)(0x7fd8-0x08);  // Found @ ff966994 & ff9669b0
 162 
 163 // Stubs below matched 100%.
 164 //    Name                                     Address                Comp to stubs_entry_2.S
 165 NHSTUB(AllocateUncacheableMemory              ,0xff838dcc) //112
 166 NHSTUB(Close                                  ,0xff835414) //120
 167 NHSTUB(CreateBinarySemaphore                  ,0xff8385ac) //115
 168 NHSTUB(CreateTask                             ,0xff81e5b4) //120
 169 NHSTUB(DebugAssert                            ,0xff81e88c) //107
 170 NHSTUB(DeleteDirectory_Fut                    ,0xff834e84) //116
 171 NHSTUB(DeleteFile_Fut                         ,0xff834da0) //112
 172 NHSTUB(DoAELock                               ,0xff836de0) //120
 173 NHSTUB(DoAFLock                               ,0xff836b98) //120
 174 NHSTUB(EnterToCompensationEVF                 ,0xff836d3c) //104
 175 NHSTUB(ExecuteEventProcedure                  ,0xff888d28) //104
 176 NHSTUB(ExitFromCompensationEVF                ,0xff836d80) //104
 177 NHSTUB(ExitTask                               ,0xff81e844) //120
 178 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff844700) //104
 179 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff8447d8) //104
 180 NHSTUB(Fclose_Fut                             ,0xff834f1c) //120
 181 NHSTUB(Feof_Fut                               ,0xff835108) //  1
 182 NHSTUB(Fflush_Fut                             ,0xff835144) //  1
 183 NHSTUB(Fgets_Fut                              ,0xff835070) //  1
 184 NHSTUB(Fopen_Fut                              ,0xff834edc) //120
 185 NHSTUB(Fread_Fut                              ,0xff834fc8) //120
 186 NHSTUB(FreeUncacheableMemory                  ,0xff838e0c) //112
 187 NHSTUB(Fseek_Fut                              ,0xff8350bc) //120
 188 NHSTUB(Fwrite_Fut                             ,0xff83501c) //120
 189 NHSTUB(GetBatteryTemperature                  ,0xff8615f0) //102
 190 NHSTUB(GetCCDTemperature                      ,0xff86157c) //102
 191 NHSTUB(GetCurrentAvValue                      ,0xff95a380) //120
 192 NHSTUB(GetCurrentShutterSpeed                 ,0xff8b05e8) //120
 193 NHSTUB(GetUsableMaxAv                         ,0xffaf9a28) //120
 194 NHSTUB(GetUsableMinAv                         ,0xffaf9a10) //120
 195 NHSTUB(GetDrive_ClusterSize                   ,0xff86e380) //122
 196 NHSTUB(GetDrive_FreeClusters                  ,0xff86e3e0) //  3
 197 NHSTUB(GetDrive_TotalClusters                 ,0xff86e3b4) //  3
 198 NHSTUB(GetFocusLensSubjectDistance            ,0xff958954) //102
 199 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff958d9c) //  3
 200 NHSTUB(GetImageFolder                         ,0xff93c484) //122
 201 NHSTUB(GetKbdState                            ,0xff85e258) //109
 202 NHSTUB(GetMemInfo                             ,0xff81a070) //115
 203 NHSTUB(GetOpticalTemperature                  ,0xff861664) //120
 204 NHSTUB(GetParameterData                       ,0xff994ad0) //101
 205 NHSTUB(GetPropertyCase                        ,0xff88ca90) //102
 206 NHSTUB(GetSystemTime                          ,0xffa9d214) //120
 207 NHSTUB(GetVRAMHPixelsSize                     ,0xff84f110) //120
 208 NHSTUB(GetVRAMVPixelsSize                     ,0xff84f11c) //120
 209 NHSTUB(GetZoomLensCurrentPoint                ,0xff95da40) //120
 210 NHSTUB(GetZoomLensCurrentPosition             ,0xffa90e60) //102
 211 NHSTUB(GiveSemaphore                          ,0xff8387e8) //120
 212 NHSTUB(IsStrobeChargeCompleted                ,0xff8d873c) //102
 213 NHSTUB(LEDDrive                               ,0xff85d648) //120
 214 NHSTUB(LocalTime                              ,0xff88669c) //115
 215 NHSTUB(LockMainPower                          ,0xff8946a8) //120
 216 NHSTUB(MakeDirectory_Fut                      ,0xff834e14) //116
 217 NHSTUB(MoveFocusLensToDistance                ,0xffafbd44) //102
 218 NHSTUB(MoveIrisWithAv                         ,0xffa9ab88) //120
 219 NHSTUB(MoveZoomLensWithPoint                  ,0xffa9b1fc) //120
 220 NHSTUB(Open                                   ,0xff8353bc) //120
 221 NHSTUB(PB2Rec                                 ,0xff8977f0) //104
 222 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff8776dc) //120
 223 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff8776b4) //120
 224 NHSTUB(PT_PlaySound                           ,0xff881838) //102
 225 NHSTUB(PostLogicalEventForNotPowerType        ,0xff8924d4) //120
 226 NHSTUB(PostLogicalEventToUI                   ,0xff892520) //120
 227 NHSTUB(PutInNdFilter                          ,0xffaf9a94) //102
 228 NHSTUB(PutOutNdFilter                         ,0xffaf9acc) //102
 229 NHSTUB(Read                                   ,0xff81ab78) //120
 230 NHSTUB(ReadFastDir                            ,0xffa7d79c) //  3
 231 NHSTUB(Rec2PB                                 ,0xff897830) //104
 232 NHSTUB(RefreshPhysicalScreen                  ,0xffa08f40) //104
 233 NHSTUB(RenameFile_Fut                         ,0xff834d0c) //116
 234 NHSTUB(Restart                                ,0xff83a520) //122
 235 NHSTUB(ScreenLock                             ,0xffa0a160) //117
 236 NHSTUB(ScreenUnlock                           ,0xffa0a188) //117
 237 NHSTUB(SetAE_ShutterSpeed                     ,0xffafe4f0) //102
 238 NHSTUB(SetAutoShutdownTime                    ,0xff89471c) //120
 239 NHSTUB(SetCurrentCaptureModeType              ,0xff89b7e0) //120
 240 NHSTUB(SetFileAttributes                      ,0xff8356e4) //  3
 241 NHSTUB(SetFileTimeStamp                       ,0xff8356a0) //  3
 242 NHSTUB(SetLogicalEventActive                  ,0xff8943f8) //120
 243 NHSTUB(SetParameterData                       ,0xff9949ac) //101
 244 NHSTUB(SetPropertyCase                        ,0xff88c98c) //102
 245 NHSTUB(SleepTask                              ,0xff838a50) //120
 246 NHSTUB(TakeSemaphore                          ,0xff838718) //120
 247 NHSTUB(TurnOffBackLight                       ,0xff8a4978) //104
 248 NHSTUB(TurnOnBackLight                        ,0xff8a4960) //104
 249 NHSTUB(TurnOnDisplay                          ,0xff85892c) //120
 250 NHSTUB(TurnOffDisplay                         ,0xff85893c) //120
 251 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff97ea54) //120
 252 NHSTUB(UnlockAE                               ,0xff836e04) //120
 253 NHSTUB(UnlockAF                               ,0xff836bd0) //120
 254 NHSTUB(UnlockMainPower                        ,0xff8945fc) //120
 255 NHSTUB(UnsetZoomForMovie                      ,0xff8a0ee0) //104
 256 NHSTUB(UpdateMBROnFlash                       ,0xff86e200) //105
 257 NHSTUB(VbattGet                               ,0xff831e04) //120
 258 NHSTUB(Write                                  ,0xff8354a4) //120
 259 NHSTUB(WriteSDCard                            ,0xff94a588) //108
 260 NHSTUB(_log                                   ,0xffb3664c) //111
 261 NHSTUB(_log10                                 ,0xffb352d8) //112
 262 NHSTUB(_pow                                   ,0xffb35448) //121
 263 NHSTUB(_sqrt                                  ,0xffb381f0) //  1
 264 NHSTUB(add_ptp_handler                        ,0xffa47014) //121
 265 NHSTUB(apex2us                                ,0xffa0d7fc) //121
 266 NHSTUB(close                                  ,0xff81a990) //109
 267 NHSTUB(err_init_task                          ,0xff815f28) //111
 268 NHSTUB(exmem_alloc                            ,0xff88755c) //103
 269 NHSTUB(exmem_free                             ,0xff8875d4) //103
 270 NHSTUB(free                                   ,0xff814138) //112
 271 NHSTUB(kbd_p1_f                               ,0xff833630) //109
 272 NHSTUB(kbd_p1_f_cont                          ,0xff83363c) //109
 273 NHSTUB(kbd_p2_f                               ,0xff832ed8) //109
 274 NHSTUB(kbd_read_keys                          ,0xff8335b4) //109
 275 NHSTUB(kbd_read_keys_r2                       ,0xff85db5c) //109
 276 NHSTUB(lseek                                  ,0xff835530) //120
 277 NHSTUB(malloc                                 ,0xff8140dc) //112
 278 NHSTUB(memcmp                                 ,0xff8203e8) //120
 279 NHSTUB(memcpy                                 ,0xff83e43c) //120
 280 NHSTUB(memset                                 ,0xffa0c84c) //120
 281 NHSTUB(mkdir                                  ,0xff835888) //109
 282 NHSTUB(mktime_ext                             ,0xff8ac330) //  1
 283 NHSTUB(open                                   ,0xff81a8e0) //109
 284 NHSTUB(OpenFastDir                            ,0xffa7d668) //  3
 285 NHSTUB(closedir                               ,0xffa7d624) //  3
 286 NHSTUB(get_fstype                             ,0xff86e404) //122
 287 NHSTUB(qsort                                  ,0xffaec42c) //  1
 288 NHSTUB(rand                                   ,0xff8204f0) //121
 289 NHSTUB(realloc                                ,0xffa0c8c8) //115
 290 NHSTUB(reboot_fw_update                       ,0xffa82cac) //106
 291 NHSTUB(set_control_event                      ,0xff89404c) //111
 292 NHSTUB(srand                                  ,0xff8204e4) //122
 293 NHSTUB(stat                                   ,0xff83556c) //109
 294 NHSTUB(strcat                                 ,0xff8abaec) //  1
 295 NHSTUB(strchr                                 ,0xff813fc0) //  1
 296 NHSTUB(strcmp                                 ,0xff8203a4) //120
 297 NHSTUB(strcpy                                 ,0xff82038c) //120
 298 NHSTUB(strftime                               ,0xff8abd38) //  1
 299 NHSTUB(strlen                                 ,0xff81400c) //120
 300 NHSTUB(strncmp                                ,0xff813f74) //  1
 301 NHSTUB(strncpy                                ,0xff813f38) //  1
 302 NHSTUB(strrchr                                ,0xff813fe4) //  1
 303 NHSTUB(strtol                                 ,0xff83e71c) //101
 304 NHSTUB(strtolx                                ,0xff83e520) //109
 305    DEF(task_CaptSeq                           ,0xff87a208) //120
 306    DEF(task_DvlpSeqTask                       ,0xff87bba0) //120
 307    DEF(task_ExpDrv                            ,0xff8c0e80) //120
 308    DEF(task_FileWrite                         ,0xffa78ff4) //120
 309    DEF(task_InitFileModules                   ,0xff898314) //120
 310    DEF(task_MovieRecord                       ,0xff961780) //120
 311    DEF(task_PhySw                             ,0xff833208) //120
 312    DEF(task_RotaryEncoder                     ,0xff85e508) //120
 313 NHSTUB(time                                   ,0xff886c14) //109
 314 NHSTUB(vsprintf                               ,0xff820350) //115
 315 NHSTUB(EngDrvRead                             ,0xff834478) //102
 316 NHSTUB(PTM_GetCurrentItem                     ,0xff8950f8) //105
 317 NHSTUB(DisableISDriveError                    ,0xffa9ba18) //120
 318 NHSTUB(CancelHPTimer                          ,0xff888410) //119
 319 NHSTUB(SetHPTimerAfterNow                     ,0xff888308) //119
 320 NHSTUB(PT_MFOn                                ,0xff87776c) //120
 321 NHSTUB(PT_MFOff                               ,0xff87777c) //120
 322 NHSTUB(GetAdChValue                           ,0xff859ea8) //120
 323 NHSTUB(get_ptp_buf_size                       ,0xff8ffad0) //122
 324 NHSTUB(get_ptp_file_buf                       ,0xffa489fc) //121

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