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 //   PLATFORMOSVER = 39
  14 //   PLATFORMID = ?           // Not found @ 0xfffe0130
  15 //   MAXRAMADDR = 0x03ffffff
  16 //   MEMISOSTART = 0x00141dbc
  17 //   ARAM_HEAP_START = 0x3ce000  // Found @ 0xff96ff2c
  18 //   ARAM_HEAP_SIZE  = 0x32000   // Found @ 0xff96feec
  19 
  20 // Detected address ranges:
  21 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  22 // RAM data 0x00001900 - 0x0000f470 copied from 0xffc14e98 (  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                        ,0xff894498) //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 @ffaaea90 -> ffbefb90
  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                            ,0xffb8b680) // Found @0xffb8b680
  38 DEF(FlashParamsTable                        ,0xffbefd80) // Found @0xffbefd80
  39 DEF(movie_status                            ,0x00007ae8) // Found @0xff961658
  40 DEF(video_compression_rate                  ,0x00007b14) // Found @0xff9618c0
  41 DEF(full_screen_refresh                     ,0x0000a36c) // Found @0xffa07f84
  42 DEF(canon_menu_active                       ,0x00003038) // Found @0xff88d6ac
  43 DEF(canon_shoot_menu_active                 ,0x00008dd1) // Found @0xff9ab95c
  44 DEF(playrec_mode                            ,0x00002d64) // Found @0xff87fa70
  45 DEF(zoom_status                             ,0x00008aa4) // Found @0xff99bd30
  46 DEF(some_flag_for_af_scan                   ,0x00007ff4) // Found @0xff9646e8
  47 DEF(zoom_busy                               ,0x00007a14) // Found @0xff95d888
  48 DEF(focus_busy                              ,0x000078dc) // Found @0xff957d98
  49 //DEF(recreview_hold                          ,0x00003a94) // Found @0xff89e70c, ** != ** stubs_min = 0x00008a28 (0x8944+0xE4)
  50 // Palette colour tables  found @ 0xffba55c4
  51 DEF(active_palette_buffer                   ,0x0000a374) // Found @0xffa07ec4
  52 DEF(palette_buffer_ptr                      ,0x0000a380) // Found @0xffa07b98
  53 // Offset from start of palette_buffer to color data = 8 (Found @0xffae56b8)
  54 // Camera appears to have only 1 RAW buffer @ 0x4213a6ec (Found @0xffb0275c)
  55 DEF(fileio_semaphore                        ,0x000029d0) // Found @0xff86c998
  56 DEF(exmem_alloc_table                       ,0x0003a3e4) // Found @0xff886fb0
  57 DEF(exmem_types_table                       ,0xffc16420) // Found @0x00002e88
  58 DEF_CONST(exmem_type_count                  ,0x00000012)
  59 DEF(imager_active                           ,0x00001fc8) // Found @0xff84a6f4 (0x1fc4 + 4)
  60 DEF_CONST(uiprop_count                      ,0x0000006e) // Found @0xff994078
  61 
  62 // Values below go in 'lib.c':
  63 //void *vid_get_bitmap_fb()        { return (void*)0x40471000; }             // Found @0xff858728
  64 //void *vid_get_viewport_fb()      { return (void*)0x407e8a00; }             // Found @0xffaff4ec
  65 DEF(viewport_fb_d                           ,0x00002a78) // Found 0x2a20 (@0xff86fa48) + 0x58 (@0xff86fa80)
  66 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2a20+0x58)); } // Found @0xff86fa48 & 0xff86fa80
  67 DEF(jpeg_count_str                          ,0x0009792c) // Found @0xff9fc148
  68 //char *camera_jpeg_count_str()    { return (char*)0x0009792c; }             // Found @0xff9fc148
  69 //int get_flash_params_count(void) { return 0x85; }                          // Found @0xff994ccc
  70 
  71 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  72 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffb3ac60, levent 0x90a
  73 //#define SD_READONLY_IDX     2
  74 //#define USB_MASK            0x00200000 // Found @0xffb3ac78, levent 0x902
  75 //#define USB_IDX             2
  76 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffb3ab7c, levent 0x905
  77 //#define BATTCOVER_IDX       0
  78 //#define ANALOG_AV_FLAG      0x00040000 // Found @0xffb3ac6c, levent 0x900 (non-inverted logic)
  79 //#define ANALOG_AV_IDX       2
  80 
  81 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  82 //static KeyMap keymap[] = {
  83 //    { 0, KEY_SHOOT_FULL      ,0x00000300 }, // Found @0xffb3ab4c, levent 0x01
  84 //    { 0, KEY_SHOOT_FULL_ONLY ,0x00000200 }, // Found @0xffb3ab4c, levent 0x01
  85 //    { 0, KEY_SHOOT_HALF      ,0x00000100 }, // Found @0xffb3ab40, levent 0x00
  86 //    { 0, KEY_POWER           ,0x00000400 }, // Found @0xffb3ab58, levent 0x600
  87 //    { 0, KEY_PLAYBACK        ,0x00000800 }, // Found @0xffb3ab64, levent 0x601
  88 //    { 1, KEY_ZOOM_IN         ,0x00000010 }, // Found @0xffb3abc4, levent 0x02
  89 //    { 1, KEY_ZOOM_OUT        ,0x00000020 }, // Found @0xffb3abd0, levent 0x03
  90 //    { 1, KEY_LEFT            ,0x00000100 }, // Found @0xffb3abf4, levent 0x06
  91 //    { 1, KEY_RIGHT           ,0x00000200 }, // Found @0xffb3ac00, levent 0x07
  92 //    { 1, KEY_DOWN            ,0x00000400 }, // Found @0xffb3ac0c, levent 0x05
  93 //    { 1, KEY_DISPLAY         ,0x00001000 }, // Found @0xffb3ac24, levent 0x0a
  94 //    { 1, KEY_MENU            ,0x00002000 }, // Found @0xffb3ac30, levent 0x09
  95 //    { 1, KEY_UP              ,0x00004000 }, // Found @0xffb3ac3c, levent 0x04
  96 //    { 1, KEY_SET             ,0x00008000 }, // Found @0xffb3ac48, levent 0x08
  97 //    { 0, 0, 0 }
  98 //};
  99 
 100 // Values below go in 'platform_camera.h':
 101 //#define CAM_DRYOS         1
 102 //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
 103 //#define CAM_RAW_ROWPIX    3744 // Found @0xff934648
 104 //#define CAM_RAW_ROWS      2784 // Found @0xff934650
 105 //#undef  CAM_UNCACHED_BIT
 106 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff838e10
 107 //#define CAM_DATE_FOLDER_NAMING 0x100 // Found @0xffa69f28 (pass as 3rd param to GetImageFolder)
 108 //#define PARAM_CAMERA_NAME 4 // Found @0xffbf2508
 109 
 110 // Known propcases
 111 // //      PROPCASE_AFSTEP 13
 112 // #define PROPCASE_FOCUS_STATE 18
 113 // #define PROPCASE_AV 23
 114 // #define PROPCASE_BV 34
 115 // //      PROPCASE_DELTA_DIGITALGAIN 77
 116 // #define PROPCASE_DELTA_SV 79
 117 // //      PROPCASE_DELTA_ND 80
 118 // #define PROPCASE_EV_CORRECTION_2 209
 119 // #define PROPCASE_ORIENTATION_SENSOR 221
 120 // #define PROPCASE_SV_MARKET 248
 121 // //      PROPCASE_SVFIX 249
 122 // #define PROPCASE_TV 264
 123 // Guessed propset: 3
 124 
 125 // Misc stuff
 126 DEF(ctypes, 0xffb39582)
 127 
 128 // EXMEM types:
 129 // EXMEM_RAMDISK        0
 130 // EXMEM_COM            1
 131 // EXMEM_FORMATTER      2
 132 // EXMEM_SHADING        3
 133 // EXMEM_FAMODE         4
 134 // EXMEM_FIRMUP         5
 135 // EXMEM_FIRMUP_VRAM    6
 136 // EXMEM_FIRMUP_INFLATE 7
 137 // EXMEM_DVLPWORK       8
 138 // EXMEM_EVF            9
 139 // EXMEM_SCRIPT         10
 140 // EXMEM_FILESTORE      11
 141 // EXMEM_MOVIE_REC      12
 142 // EXMEM_MOVIE_PLY      13
 143 // EXMEM_WIDE           14
 144 // EXMEM_NARROW         15
 145 // EXMEM_CRAW_REC       16
 146 // EXMEM_PCEVF          17
 147 
 148 // ISR flag: 0x1964, pointer to current task's control block: 0x1960
 149 // pointer to TCB area: 0x19f0, found @ 0xff81683c
 150 
 151 // LED table init @ 0xff916274
 152 // LED #1: 0xc0220130, offset 0x4
 153 // LED #2: 0xc0220134, offset 0x44
 154 
 155 // For capt_seq.c
 156 DEF(_nrflag,0x7fd0) // Found @ ff966b50 (0x7fd8) & ff966b70 (-0x08)
 157 //static long *nrflag = (long*)(0x7fd8-0x08);  // Found @ ff966b50 & ff966b6c
 158 
 159 // Stubs below matched 100%.
 160 //    Name                                     Address                Comp to stubs_entry_2.S
 161 NHSTUB(AllocateUncacheableMemory              ,0xff838dcc) //112
 162 NHSTUB(Close                                  ,0xff835414) //120
 163 NHSTUB(CreateBinarySemaphore                  ,0xff8385ac) //115
 164 NHSTUB(CreateTask                             ,0xff81e5b4) //120
 165 NHSTUB(DebugAssert                            ,0xff81e88c) //107
 166 NHSTUB(DeleteDirectory_Fut                    ,0xff834e84) //116
 167 NHSTUB(DeleteFile_Fut                         ,0xff834da0) //112
 168 NHSTUB(DoAELock                               ,0xff836de0) //120
 169 NHSTUB(DoAFLock                               ,0xff836b98) //120
 170 NHSTUB(EnterToCompensationEVF                 ,0xff836d3c) //104
 171 NHSTUB(ExecuteEventProcedure                  ,0xff888d78) //104
 172 NHSTUB(ExitFromCompensationEVF                ,0xff836d80) //104
 173 NHSTUB(ExitTask                               ,0xff81e844) //120
 174 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff844700) //104
 175 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff8447d8) //104
 176 NHSTUB(Fclose_Fut                             ,0xff834f1c) //120
 177 NHSTUB(Feof_Fut                               ,0xff835108) //  1
 178 NHSTUB(Fflush_Fut                             ,0xff835144) //  1
 179 NHSTUB(Fgets_Fut                              ,0xff835070) //  1
 180 NHSTUB(Fopen_Fut                              ,0xff834edc) //120
 181 NHSTUB(Fread_Fut                              ,0xff834fc8) //120
 182 NHSTUB(FreeUncacheableMemory                  ,0xff838e0c) //112
 183 NHSTUB(Fseek_Fut                              ,0xff8350bc) //120
 184 NHSTUB(Fwrite_Fut                             ,0xff83501c) //120
 185 NHSTUB(GetBatteryTemperature                  ,0xff8615f0) //102
 186 NHSTUB(GetCCDTemperature                      ,0xff86157c) //102
 187 NHSTUB(GetCurrentAvValue                      ,0xff95a53c) //120
 188 NHSTUB(GetCurrentShutterSpeed                 ,0xff8b0638) //120
 189 NHSTUB(GetUsableMaxAv                         ,0xffaf9be4) //120
 190 NHSTUB(GetUsableMinAv                         ,0xffaf9bcc) //120
 191 NHSTUB(GetDrive_ClusterSize                   ,0xff86e380) //122
 192 NHSTUB(GetDrive_FreeClusters                  ,0xff86e3e0) //  3
 193 NHSTUB(GetDrive_TotalClusters                 ,0xff86e3b4) //  3
 194 NHSTUB(GetFocusLensSubjectDistance            ,0xff958b10) //102
 195 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff958f58) //  3
 196 NHSTUB(GetImageFolder                         ,0xff93c4d4) //122
 197 NHSTUB(GetKbdState                            ,0xff85e258) //109
 198 NHSTUB(GetMemInfo                             ,0xff81a070) //115
 199 NHSTUB(GetOpticalTemperature                  ,0xff861664) //120
 200 NHSTUB(GetParameterData                       ,0xff994c8c) //101
 201 NHSTUB(GetPropertyCase                        ,0xff88cae0) //102
 202 NHSTUB(GetSystemTime                          ,0xffa9d3d0) //120
 203 NHSTUB(GetVRAMHPixelsSize                     ,0xff84f110) //120
 204 NHSTUB(GetVRAMVPixelsSize                     ,0xff84f11c) //120
 205 NHSTUB(GetZoomLensCurrentPoint                ,0xff95dbfc) //120
 206 NHSTUB(GetZoomLensCurrentPosition             ,0xffa9101c) //102
 207 NHSTUB(GiveSemaphore                          ,0xff8387e8) //120
 208 NHSTUB(IsStrobeChargeCompleted                ,0xff8d878c) //102
 209 NHSTUB(LEDDrive                               ,0xff85d648) //120
 210 NHSTUB(LocalTime                              ,0xff8866ec) //115
 211 NHSTUB(LockMainPower                          ,0xff8946f8) //120
 212 NHSTUB(MakeDirectory_Fut                      ,0xff834e14) //116
 213 NHSTUB(MoveFocusLensToDistance                ,0xffafbf00) //102
 214 NHSTUB(MoveIrisWithAv                         ,0xffa9ad44) //120
 215 NHSTUB(MoveZoomLensWithPoint                  ,0xffa9b3b8) //120
 216 NHSTUB(MoveOpticalZoomAt                      ,0xff836500) //109
 217 NHSTUB(Open                                   ,0xff8353bc) //120
 218 NHSTUB(PB2Rec                                 ,0xff897840) //104
 219 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff87772c) //120
 220 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff877704) //120
 221 NHSTUB(PT_PlaySound                           ,0xff881888) //102
 222 NHSTUB(PostLogicalEventForNotPowerType        ,0xff892524) //120
 223 NHSTUB(PostLogicalEventToUI                   ,0xff892570) //120
 224 NHSTUB(PutInNdFilter                          ,0xffaf9c50) //102
 225 NHSTUB(PutOutNdFilter                         ,0xffaf9c88) //102
 226 NHSTUB(Read                                   ,0xff81ab78) //120
 227 NHSTUB(ReadFastDir                            ,0xffa7d958) //  3
 228 NHSTUB(Rec2PB                                 ,0xff897880) //104
 229 NHSTUB(RefreshPhysicalScreen                  ,0xffa090fc) //104
 230 NHSTUB(RenameFile_Fut                         ,0xff834d0c) //116
 231 NHSTUB(Restart                                ,0xff83a520) //122
 232 NHSTUB(ScreenLock                             ,0xffa0a31c) //117
 233 NHSTUB(ScreenUnlock                           ,0xffa0a344) //117
 234 NHSTUB(SetAE_ShutterSpeed                     ,0xffafe6ac) //102
 235 NHSTUB(SetAutoShutdownTime                    ,0xff89476c) //120
 236 NHSTUB(SetCurrentCaptureModeType              ,0xff89b830) //120
 237 NHSTUB(SetFileAttributes                      ,0xff8356e4) //  3
 238 NHSTUB(SetFileTimeStamp                       ,0xff8356a0) //  3
 239 NHSTUB(SetLogicalEventActive                  ,0xff894448) //120
 240 NHSTUB(SetParameterData                       ,0xff994b68) //101
 241 NHSTUB(SetPropertyCase                        ,0xff88c9dc) //102
 242 NHSTUB(SleepTask                              ,0xff838a50) //120
 243 NHSTUB(TakeSemaphore                          ,0xff838718) //120
 244 NHSTUB(TurnOffBackLight                       ,0xff8a49c8) //104
 245 NHSTUB(TurnOnBackLight                        ,0xff8a49b0) //104
 246 NHSTUB(TurnOnDisplay                          ,0xff85892c) //120
 247 NHSTUB(TurnOffDisplay                         ,0xff85893c) //120
 248 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff97ec10) //120
 249 NHSTUB(UnlockAE                               ,0xff836e04) //120
 250 NHSTUB(UnlockAF                               ,0xff836bd0) //120
 251 NHSTUB(UnlockMainPower                        ,0xff89464c) //120
 252 NHSTUB(UnsetZoomForMovie                      ,0xff8a0f30) //104
 253 NHSTUB(UpdateMBROnFlash                       ,0xff86e200) //105
 254 NHSTUB(VbattGet                               ,0xff831e04) //120
 255 NHSTUB(Write                                  ,0xff8354a4) //120
 256 NHSTUB(WriteSDCard                            ,0xff94a63c) //108
 257 NHSTUB(_log                                   ,0xffb36808) //111
 258 NHSTUB(_log10                                 ,0xffb35494) //112
 259 NHSTUB(_pow                                   ,0xffb35604) //121
 260 NHSTUB(_sqrt                                  ,0xffb383ac) //  1
 261 NHSTUB(add_ptp_handler                        ,0xffa471d0) //121
 262 NHSTUB(apex2us                                ,0xffa0d9b8) //121
 263 NHSTUB(close                                  ,0xff81a990) //109
 264 NHSTUB(err_init_task                          ,0xff815f28) //111
 265 NHSTUB(exmem_alloc                            ,0xff8875ac) //103
 266 NHSTUB(exmem_free                             ,0xff887624) //103
 267 NHSTUB(free                                   ,0xff814138) //112
 268 NHSTUB(kbd_p1_f                               ,0xff833630) //109
 269 NHSTUB(kbd_p1_f_cont                          ,0xff83363c) //109
 270 NHSTUB(kbd_p2_f                               ,0xff832ed8) //109
 271 NHSTUB(kbd_read_keys                          ,0xff8335b4) //109
 272 NHSTUB(kbd_read_keys_r2                       ,0xff85db5c) //109
 273 NHSTUB(lseek                                  ,0xff835530) //120
 274 NHSTUB(malloc                                 ,0xff8140dc) //112
 275 NHSTUB(memcmp                                 ,0xff8203e8) //120
 276 NHSTUB(memcpy                                 ,0xff83e43c) //120
 277 NHSTUB(memset                                 ,0xffa0ca08) //120
 278 NHSTUB(mkdir                                  ,0xff835888) //109
 279 NHSTUB(mktime_ext                             ,0xff8ac380) //  1
 280 NHSTUB(open                                   ,0xff81a8e0) //109
 281 NHSTUB(OpenFastDir                            ,0xffa7d824) //  3
 282 NHSTUB(closedir                               ,0xffa7d7e0) //  3
 283 NHSTUB(get_fstype                             ,0xff86e404) //122
 284 NHSTUB(qsort                                  ,0xffaec5e8) //  1
 285 NHSTUB(rand                                   ,0xff8204f0) //121
 286 NHSTUB(realloc                                ,0xffa0ca84) //115
 287 NHSTUB(reboot_fw_update                       ,0xffa82e68) //106
 288 NHSTUB(set_control_event                      ,0xff89409c) //111
 289 NHSTUB(srand                                  ,0xff8204e4) //122
 290 NHSTUB(stat                                   ,0xff83556c) //109
 291 NHSTUB(strcat                                 ,0xff8abb3c) //  1
 292 NHSTUB(strchr                                 ,0xff813fc0) //  1
 293 NHSTUB(strcmp                                 ,0xff8203a4) //120
 294 NHSTUB(strcpy                                 ,0xff82038c) //120
 295 NHSTUB(strftime                               ,0xff8abd88) //  1
 296 NHSTUB(strlen                                 ,0xff81400c) //120
 297 NHSTUB(strncmp                                ,0xff813f74) //  1
 298 NHSTUB(strncpy                                ,0xff813f38) //  1
 299 NHSTUB(strrchr                                ,0xff813fe4) //  1
 300 NHSTUB(strtol                                 ,0xff83e71c) //101
 301 NHSTUB(strtolx                                ,0xff83e520) //109
 302    DEF(task_CaptSeq                           ,0xff87a258) //120
 303    DEF(task_DvlpSeqTask                       ,0xff87bbf0) //120
 304    DEF(task_ExpDrv                            ,0xff8c0ed0) //120
 305    DEF(task_FileWrite                         ,0xffa791b0) //120
 306    DEF(task_InitFileModules                   ,0xff898364) //120
 307    DEF(task_MovieRecord                       ,0xff96193c) //120
 308    DEF(task_PhySw                             ,0xff833208) //120
 309    DEF(task_RotaryEncoder                     ,0xff85e508) //120
 310 NHSTUB(time                                   ,0xff886c64) //109
 311 NHSTUB(vsprintf                               ,0xff820350) //115
 312 NHSTUB(EngDrvRead                             ,0xff834478) //102
 313 NHSTUB(PTM_GetCurrentItem                     ,0xff895148) //105
 314 NHSTUB(DisableISDriveError                    ,0xffa9bbd4) //120
 315 NHSTUB(CancelHPTimer                          ,0xff888460) //119
 316 NHSTUB(SetHPTimerAfterNow                     ,0xff888358) //119
 317 NHSTUB(PT_MFOn                                ,0xff8777bc) //120
 318 NHSTUB(PT_MFOff                               ,0xff8777cc) //120
 319 NHSTUB(GetAdChValue                           ,0xff859ea8) //120
 320 NHSTUB(get_ptp_buf_size                       ,0xff8ffb20) //122
 321 NHSTUB(get_ptp_file_buf                       ,0xffa48bb8) //121

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