root/platform/s90/sub/101c/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.01C   // Found @ 0xff88bbd4, "GM1.01C" @ 0xff88bbe1
   7 //   Firmware build timestamp: Feb  3 2010 08:56:28
   8 //   Possible corrupt firmware dump - file size too small for start address 0xff810000
   9 //     file size = 7.15MB, should be 7.94MB
  10 //   Could not find Camera name - possible corrupt firmware dump
  11 
  12 // Values for makefile.inc
  13 //   DIGIC = 40# DIGIC 4
  14 //   PLATFORMOSVER = 39
  15 //   PLATFORMID = ?           // Not found @ 0xfffe0130
  16 //   MAXRAMADDR = 0x03ffffff
  17 //   MEMISOSTART = 0x00141dbc
  18 //   ARAM_HEAP_START = 0x3ce000# Found @ 0xff96ff2c
  19 //   ARAM_HEAP_SIZE  = 0x32000# Found @ 0xff96feec
  20 
  21 // Detected address ranges:
  22 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  23 // RAM data 0x00001900 - 0x0000f470 copied from 0xffc14e98 (  56176 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(SetScriptMode                        ,0xff894498) //120        *** != 0xff810f4c
  28 //NHSTUB(kbd_pwr_off                          ,0xff85e3a4) //  2 60%    *** != 0xff833350
  29 
  30 // Check of modemap from 'platform/CAMERA/shooting.c':
  31 // Firmware modemap table found @ffaaea90 -> ffbefb90
  32 // No problems found with modemap table.
  33 
  34 // Values below can be overridden in 'stubs_min.S':
  35 DEF(physw_status                            ,0x000330d8) // Found @0xff8335b4
  36 DEF(physw_run                               ,0x00001c44) // Found @0xff83320c
  37 DEF(physw_sleep_delay                       ,0x00001c42) // Found @0xff83320c
  38 DEF(levent_table                            ,0xffb8b680) // Found @0xffb8b680
  39 DEF(FlashParamsTable                        ,0xffbefd80) // Found @0xffbefd80
  40 DEF(movie_status                            ,0x00007ae8) // Found @0xff961658
  41 DEF(video_compression_rate                  ,0x00007b14) // Found @0xff9618c0
  42 DEF(full_screen_refresh                     ,0x0000a36c) // Found @0xffa07f84
  43 DEF(canon_menu_active                       ,0x00003038) // Found @0xff88d6ac
  44 DEF(canon_shoot_menu_active                 ,0x00008dd1) // Found @0xff9ab95c
  45 DEF(playrec_mode                            ,0x00002d64) // Found @0xff87fa70
  46 DEF(zoom_status                             ,0x00008aa4) // Found @0xff99bd30
  47 DEF(some_flag_for_af_scan                   ,0x00007ff4) // Found @0xff9646e8
  48 DEF(zoom_busy                               ,0x00007a14) // Found @0xff95d888
  49 DEF(focus_busy                              ,0x000078dc) // Found @0xff957d98
  50 //DEF(recreview_hold                          ,0x00003a94) // Found @0xff89e70c, ** != ** stubs_min = 0x00008a28 (0x8944+0xE4)
  51 // Palette colour tables  found @ 0xffba55c4
  52 DEF(active_palette_buffer                   ,0x0000a374) // Found @0xffa07ec4
  53 DEF(palette_buffer_ptr                      ,0x0000a380) // Found @0xffa07b98
  54 // Offset from start of palette_buffer to color data = 8 (Found @0xffae56b8)
  55 // Camera appears to have only 1 RAW buffer @ 0x4213a6ec (Found @0xffb0275c)
  56 DEF(fileio_semaphore                        ,0x000029d0) // Found @0xff86c998
  57 DEF(exmem_alloc_table                       ,0x0003a3e4) // Found @0xff886fb0
  58 DEF(exmem_types_table                       ,0xffc16420) // Found @0x00002e88
  59 DEF_CONST(exmem_type_count                  ,0x00000012)
  60 DEF(imager_active                           ,0x00001fc8) // Found @0xff84a6f4 (0x1fc4 + 4)
  61 DEF_CONST(uiprop_count                      ,0x0000006e) // Found @0xff994078
  62 
  63 // Values below go in 'lib.c':
  64 //void *vid_get_bitmap_fb()        { return (void*)0x40471000; }             // Found @0xff858728
  65 //void *vid_get_viewport_fb()      { return (void*)0x407e8a00; }             // Found @0xffaff4ec
  66 DEF(viewport_fb_d                           ,0x00002a78) // Found 0x2a20 (@0xff86fa48) + 0x58 (@0xff86fa80)
  67 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2a20+0x58)); } // Found @0xff86fa48 & 0xff86fa80
  68 DEF(jpeg_count_str                          ,0x0009792c) // Found @0xff9fc148
  69 //char *camera_jpeg_count_str()    { return (char*)0x0009792c; }             // Found @0xff9fc148
  70 //int get_flash_params_count(void) { return 0x85; }                          // Found @0xff994ccc
  71 
  72 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  73 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffb3ac60, levent 0x90a
  74 //#define SD_READONLY_IDX     2
  75 //#define USB_MASK            0x00200000 // Found @0xffb3ac78, levent 0x902
  76 //#define USB_IDX             2
  77 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffb3ab7c, levent 0x905
  78 //#define BATTCOVER_IDX       0
  79 //#define ANALOG_AV_FLAG      0x00040000 // Found @0xffb3ac6c, levent 0x900 (non-inverted logic)
  80 //#define ANALOG_AV_IDX       2
  81 
  82 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  83 //static KeyMap keymap[] = {
  84 //    { 0, KEY_SHOOT_FULL      ,0x00000300 }, // Found @0xffb3ab4c, levent 0x01
  85 //    { 0, KEY_SHOOT_FULL_ONLY ,0x00000200 }, // Found @0xffb3ab4c, levent 0x01
  86 //    { 0, KEY_SHOOT_HALF      ,0x00000100 }, // Found @0xffb3ab40, levent 0x00
  87 //    { 0, KEY_POWER           ,0x00000400 }, // Found @0xffb3ab58, levent 0x600
  88 //    { 0, KEY_PLAYBACK        ,0x00000800 }, // Found @0xffb3ab64, levent 0x601
  89 //    { 1, KEY_ZOOM_IN         ,0x00000010 }, // Found @0xffb3abc4, levent 0x02
  90 //    { 1, KEY_ZOOM_OUT        ,0x00000020 }, // Found @0xffb3abd0, levent 0x03
  91 //    { 1, KEY_LEFT            ,0x00000100 }, // Found @0xffb3abf4, levent 0x06
  92 //    { 1, KEY_RIGHT           ,0x00000200 }, // Found @0xffb3ac00, levent 0x07
  93 //    { 1, KEY_DOWN            ,0x00000400 }, // Found @0xffb3ac0c, levent 0x05
  94 //    { 1, KEY_DISPLAY         ,0x00001000 }, // Found @0xffb3ac24, levent 0x0a
  95 //    { 1, KEY_MENU            ,0x00002000 }, // Found @0xffb3ac30, levent 0x09
  96 //    { 1, KEY_UP              ,0x00004000 }, // Found @0xffb3ac3c, levent 0x04
  97 //    { 1, KEY_SET             ,0x00008000 }, // Found @0xffb3ac48, levent 0x08
  98 //    { 0, 0, 0 }
  99 //};
 100 
 101 // Values below go in 'platform_camera.h':
 102 //#define CAM_DRYOS         1
 103 //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
 104 //#define CAM_RAW_ROWPIX    3744 // Found @0xff934648
 105 //#define CAM_RAW_ROWS      2784 // Found @0xff934650
 106 //#undef  CAM_UNCACHED_BIT
 107 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff838e10
 108 //#define CAM_DATE_FOLDER_NAMING 0x100 // Found @0xffa69f28 (pass as 3rd param to GetImageFolder)
 109 //#define PARAM_CAMERA_NAME 4 // Found @0xffbf2508
 110 
 111 // Below goes in 'filewrite.c' or 'platform_camera.h':
 112 //#define MAX_CHUNKS_FOR_FWT 4 // Found @0xffa79218
 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, 0xffb39582)
 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 @ 0xff916274
 156 // LED #1: 0xc0220130, offset 0x4
 157 // LED #2: 0xc0220134, offset 0x44
 158 
 159 // For capt_seq.c
 160 DEF(_nrflag,0x7fd0) // Found @ ff966b50 (0x7fd8) & ff966b70 (-0x08)
 161 //static long *nrflag = (long*)(0x7fd8-0x08);  // Found @ ff966b50 & ff966b6c
 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                  ,0xff888d78) //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                      ,0xff95a53c) //120
 192 NHSTUB(GetCurrentShutterSpeed                 ,0xff8b0638) //120
 193 NHSTUB(GetUsableMaxAv                         ,0xffaf9be4) //120
 194 NHSTUB(GetUsableMinAv                         ,0xffaf9bcc) //120
 195 NHSTUB(GetDrive_ClusterSize                   ,0xff86e380) //122
 196 NHSTUB(GetDrive_FreeClusters                  ,0xff86e3e0) //  3
 197 NHSTUB(GetDrive_TotalClusters                 ,0xff86e3b4) //  3
 198 NHSTUB(GetFocusLensSubjectDistance            ,0xff958b10) //102
 199 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff958f58) //  3
 200 NHSTUB(GetImageFolder                         ,0xff93c4d4) //122
 201 NHSTUB(GetKbdState                            ,0xff85e258) //109
 202 NHSTUB(GetMemInfo                             ,0xff81a070) //115
 203 NHSTUB(GetOpticalTemperature                  ,0xff861664) //120
 204 NHSTUB(GetParameterData                       ,0xff994c8c) //101
 205 NHSTUB(GetPropertyCase                        ,0xff88cae0) //102
 206 NHSTUB(GetSystemTime                          ,0xffa9d3d0) //120
 207 NHSTUB(GetVRAMHPixelsSize                     ,0xff84f110) //120
 208 NHSTUB(GetVRAMVPixelsSize                     ,0xff84f11c) //120
 209 NHSTUB(GetZoomLensCurrentPoint                ,0xff95dbfc) //120
 210 NHSTUB(GetZoomLensCurrentPosition             ,0xffa9101c) //102
 211 NHSTUB(GiveSemaphore                          ,0xff8387e8) //120
 212 NHSTUB(IsStrobeChargeCompleted                ,0xff8d878c) //102
 213 NHSTUB(LEDDrive                               ,0xff85d648) //120
 214 NHSTUB(LocalTime                              ,0xff8866ec) //115
 215 NHSTUB(LockMainPower                          ,0xff8946f8) //120
 216 NHSTUB(MakeDirectory_Fut                      ,0xff834e14) //116
 217 NHSTUB(MoveFocusLensToDistance                ,0xffafbf00) //102
 218 NHSTUB(MoveIrisWithAv                         ,0xffa9ad44) //120
 219 NHSTUB(MoveZoomLensWithPoint                  ,0xffa9b3b8) //120
 220 NHSTUB(MoveOpticalZoomAt                      ,0xff836500) //109
 221 NHSTUB(Open                                   ,0xff8353bc) //120
 222 NHSTUB(PB2Rec                                 ,0xff897840) //104
 223 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff87772c) //120
 224 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff877704) //120
 225 NHSTUB(PT_PlaySound                           ,0xff881888) //102
 226 NHSTUB(PostLogicalEventForNotPowerType        ,0xff892524) //120
 227 NHSTUB(PostLogicalEventToUI                   ,0xff892570) //120
 228 NHSTUB(PutInNdFilter                          ,0xffaf9c50) //102
 229 NHSTUB(PutOutNdFilter                         ,0xffaf9c88) //102
 230 NHSTUB(Read                                   ,0xff81ab78) //120
 231 NHSTUB(ReadFastDir                            ,0xffa7d958) //  3
 232 NHSTUB(Rec2PB                                 ,0xff897880) //104
 233 NHSTUB(RefreshPhysicalScreen                  ,0xffa090fc) //104
 234 NHSTUB(RenameFile_Fut                         ,0xff834d0c) //116
 235 NHSTUB(Restart                                ,0xff83a520) //122
 236 NHSTUB(ScreenLock                             ,0xffa0a31c) //117
 237 NHSTUB(ScreenUnlock                           ,0xffa0a344) //117
 238 NHSTUB(SetAE_ShutterSpeed                     ,0xffafe6ac) //102
 239 NHSTUB(SetAutoShutdownTime                    ,0xff89476c) //120
 240 NHSTUB(SetCurrentCaptureModeType              ,0xff89b830) //120
 241 NHSTUB(SetDate                                ,0xffb0014c) //120
 242 NHSTUB(SetFileAttributes                      ,0xff8356e4) //  3
 243 NHSTUB(SetFileTimeStamp                       ,0xff8356a0) //  3
 244 NHSTUB(SetLogicalEventActive                  ,0xff894448) //120
 245 NHSTUB(SetParameterData                       ,0xff994b68) //101
 246 NHSTUB(SetPropertyCase                        ,0xff88c9dc) //102
 247 NHSTUB(SleepTask                              ,0xff838a50) //120
 248 NHSTUB(TakeSemaphore                          ,0xff838718) //120
 249 NHSTUB(TurnOffBackLight                       ,0xff8a49c8) //104
 250 NHSTUB(TurnOnBackLight                        ,0xff8a49b0) //104
 251 NHSTUB(TurnOnDisplay                          ,0xff85892c) //120
 252 NHSTUB(TurnOffDisplay                         ,0xff85893c) //120
 253 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff97ec10) //120
 254 NHSTUB(UnlockAE                               ,0xff836e04) //120
 255 NHSTUB(UnlockAF                               ,0xff836bd0) //120
 256 NHSTUB(UnlockMainPower                        ,0xff89464c) //120
 257 NHSTUB(UnsetZoomForMovie                      ,0xff8a0f30) //104
 258 NHSTUB(UpdateMBROnFlash                       ,0xff86e200) //105
 259 NHSTUB(VbattGet                               ,0xff831e04) //120
 260 NHSTUB(Write                                  ,0xff8354a4) //120
 261 NHSTUB(WriteSDCard                            ,0xff94a63c) //108
 262 NHSTUB(_log                                   ,0xffb36808) //111
 263 NHSTUB(_log10                                 ,0xffb35494) //112
 264 NHSTUB(_pow                                   ,0xffb35604) //121
 265 NHSTUB(_sqrt                                  ,0xffb383ac) //  1
 266 NHSTUB(add_ptp_handler                        ,0xffa471d0) //121
 267 NHSTUB(apex2us                                ,0xffa0d9b8) //121
 268 NHSTUB(close                                  ,0xff81a990) //109
 269 NHSTUB(err_init_task                          ,0xff815f28) //111
 270 NHSTUB(exmem_alloc                            ,0xff8875ac) //103
 271 NHSTUB(exmem_ualloc                           ,0xff887400) //103
 272 NHSTUB(exmem_ufree                            ,0xff88754c) //103
 273 NHSTUB(free                                   ,0xff814138) //112
 274 NHSTUB(kbd_p1_f                               ,0xff833630) //109
 275 NHSTUB(kbd_p1_f_cont                          ,0xff83363c) //109
 276 NHSTUB(kbd_p2_f                               ,0xff832ed8) //109
 277 NHSTUB(kbd_read_keys                          ,0xff8335b4) //109
 278 NHSTUB(kbd_read_keys_r2                       ,0xff85db5c) //109
 279 NHSTUB(lseek                                  ,0xff835530) //120
 280 NHSTUB(malloc                                 ,0xff8140dc) //112
 281 NHSTUB(memcmp                                 ,0xff8203e8) //120
 282 NHSTUB(memcpy                                 ,0xff83e43c) //120
 283 NHSTUB(memset                                 ,0xffa0ca08) //120
 284 NHSTUB(mkdir                                  ,0xff835888) //109
 285 NHSTUB(mktime_ext                             ,0xff8ac380) //  1
 286 NHSTUB(open                                   ,0xff81a8e0) //109
 287 NHSTUB(OpenFastDir                            ,0xffa7d824) //  3
 288 NHSTUB(closedir                               ,0xffa7d7e0) //  3
 289 NHSTUB(get_fstype                             ,0xff86e404) //122
 290 NHSTUB(qsort                                  ,0xffaec5e8) //  1
 291 NHSTUB(rand                                   ,0xff8204f0) //121
 292 NHSTUB(realloc                                ,0xffa0ca84) //115
 293 NHSTUB(reboot_fw_update                       ,0xffa82e68) //106
 294 NHSTUB(set_control_event                      ,0xff89409c) //111
 295 NHSTUB(srand                                  ,0xff8204e4) //122
 296 NHSTUB(stat                                   ,0xff83556c) //109
 297 NHSTUB(strcat                                 ,0xff8abb3c) //  1
 298 NHSTUB(strchr                                 ,0xff813fc0) //  1
 299 NHSTUB(strcmp                                 ,0xff8203a4) //120
 300 NHSTUB(strcpy                                 ,0xff82038c) //120
 301 NHSTUB(strftime                               ,0xff8abd88) //  1
 302 NHSTUB(strlen                                 ,0xff81400c) //120
 303 NHSTUB(strncmp                                ,0xff813f74) //  1
 304 NHSTUB(strncpy                                ,0xff813f38) //  1
 305 NHSTUB(strrchr                                ,0xff813fe4) //  1
 306 NHSTUB(strtol                                 ,0xff83e71c) //101
 307 NHSTUB(strtolx                                ,0xff83e520) //109
 308    DEF(task_CaptSeq                           ,0xff87a258) //120
 309    DEF(task_DvlpSeqTask                       ,0xff87bbf0) //120
 310    DEF(task_ExpDrv                            ,0xff8c0ed0) //120
 311    DEF(task_FileWrite                         ,0xffa791b0) //120
 312    DEF(task_InitFileModules                   ,0xff898364) //120
 313    DEF(task_MovieRecord                       ,0xff96193c) //120
 314    DEF(task_PhySw                             ,0xff833208) //120
 315    DEF(task_RotaryEncoder                     ,0xff85e508) //120
 316 NHSTUB(time                                   ,0xff886c64) //109
 317 NHSTUB(vsprintf                               ,0xff820350) //115
 318 NHSTUB(EngDrvRead                             ,0xff834478) //102
 319 NHSTUB(PTM_GetCurrentItem                     ,0xff895148) //105
 320 NHSTUB(DisableISDriveError                    ,0xffa9bbd4) //120
 321 NHSTUB(CancelHPTimer                          ,0xff888460) //119
 322 NHSTUB(SetHPTimerAfterNow                     ,0xff888358) //119
 323 NHSTUB(PT_MFOn                                ,0xff8777bc) //120
 324 NHSTUB(PT_MFOff                               ,0xff8777cc) //120
 325 NHSTUB(GetAdChValue                           ,0xff859ea8) //120
 326 NHSTUB(get_ptp_buf_size                       ,0xff8ffb20) //122
 327 NHSTUB(get_ptp_file_buf                       ,0xffa48bb8) //121
 328 NHSTUB(SetVideoOutType                        ,0xffafeec8) //109
 329 NHSTUB(GetVideoOutType                        ,0xffafedfc) //120

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