root/platform/g9/sub/100i/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 R23 (DRYOS version 2.3, release #0023)
   6 //   Firmware Ver GM1.00I   // Found @ 0xff86e880, "GM1.00I" @ 0xff86e88d
   7 //   Firmware build timestamp: Jun 26 2008 07:11:54
   8 //   Possible corrupt firmware dump - file size too small for start address 0xff810000
   9 //     file size = 3.19MB, should be 7.94MB
  10 //   Could not find Camera name - possible corrupt firmware dump
  11 
  12 // Values for makefile.inc
  13 //   PLATFORMOSVER = 23
  14 //   PLATFORMID = ?           // Not found @ 0xfffe0130
  15 //   MAXRAMADDR = 0x03ffffff
  16 //   MEMISOSTART = 0x000b0b68
  17 
  18 // Detected address ranges:
  19 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  20 // RAM data 0x00001900 - 0x000140e4 copied from 0xffb2e41c (  75748 bytes)
  21 
  22 // Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S'
  23 //    Name                                     Address      Rule  %  Comp to stubs_entry_2.S
  24 //NHSTUB(PutInNdFilter                        ,0xff9384e4) //102        *** != 0xffa0c578
  25 //NHSTUB(PutOutNdFilter                       ,0xff938508) //102        *** != 0xffa0c5b0
  26 //NHSTUB(kbd_pwr_off                          ,0xff84944c) //  2 67%    *** != 0x00000000
  27 
  28 // Check of modemap from 'platform/CAMERA/shooting.c':
  29 // Firmware modemap table found @ffa4c760 -> ffb08114
  30 // No problems found with modemap table.
  31 
  32 // Values below can be overridden in 'stubs_min.S':
  33 DEF(physw_status                            ,0x0001563c) // Found @0xff8230cc
  34 DEF(physw_run                               ,0x00001ca4) // Found @0xff822d78
  35 DEF(physw_sleep_delay                       ,0x00001ca2) // Found @0xff822d78
  36 DEF(levent_table                            ,0xffae01d4) // Found @0xffae01d4
  37 //DEF(FlashParamsTable                        ,0xffb082e0) // Found @0xffb082e0, ** != ** stubs_min = 0xffb082b8 (0xFFB082B8)
  38 DEF(movie_status                            ,0x00005714) // Found @0xff85d220
  39 DEF(canon_menu_active                       ,0x0000fdc8) // Found @0xff99b56c
  40 DEF(canon_shoot_menu_active                 ,0x0000f33d) // Found @0xff96ac40
  41 DEF(playrec_mode                            ,0x000058cc) // Found @0xff864a60
  42 DEF(zoom_status                             ,0x0001264c) // Found @0xffa4e424
  43 DEF(some_flag_for_af_scan                   ,0x0001253c) // Found @0xffa447c8
  44 DEF(zoom_busy                               ,0x0000e260) // Found @0xff939f38
  45 DEF(focus_busy                              ,0x0000e150) // Found @0xff934128
  46 //DEF(recreview_hold                          ,0x00006400) // Found @0xff87cb64, ** != ** stubs_min = 0x0000f050 (0xF050)
  47 // Camera has 2 RAW buffers @ 0x108297c0 & 0x11f8f740
  48 //  Note: active buffer --> raw_buffers[ active_raw_buffer   *3]
  49 //        other buffer  --> raw_buffers[(active_raw_buffer^1)*3]
  50 DEF(raw_buffers                             ,0xffac6740) // Found @0xffac6740
  51 DEF(active_raw_buffer                       ,0x0000586c) // Found @0xff861840
  52 DEF(fileio_semaphore                        ,0x00002d68) // Found @0xff853fa8
  53 DEF(exmem_alloc_table                       ,0x0001e85c) // Found @0xff86bd98
  54 DEF(exmem_types_table                       ,0xffb324d0) // Found @0x000059b4
  55 DEF_CONST(exmem_type_count                  ,0x00000012)
  56 DEF(imager_active                           ,0x00002018) // Found @0xff838a28 (0x2014 + 4)
  57 DEF_CONST(uiprop_count                      ,0x00000063) // Found @0xff955d54
  58 
  59 // Values below go in 'lib.c':
  60 //void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xff8451d0
  61 //void *vid_get_viewport_fb()      { return (void*)0x1067b540; }             // Found @0xffa11304
  62 DEF(viewport_fb_d                           ,0x000055a8) // Found 0x5558 (@0xff856268) + 0x50 (@0xff8562a0)
  63 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x5558+0x50)); } // Found @0xff856268 & 0xff8562a0
  64 DEF(jpeg_count_str                          ,0x00060354) // Found @0xff9afb7c
  65 //char *camera_jpeg_count_str()    { return (char*)0x00060354; }             // Found @0xff9afb7c
  66 //int get_flash_params_count(void) { return 0x72; }                          // Found @0xff9569a8
  67 
  68 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  69 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffac6378, levent 0x90a
  70 //#define SD_READONLY_IDX     2
  71 //#define USB_MASK            0x00040000 // Found @0xffac6380, levent 0x902
  72 //#define USB_IDX             2
  73 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffac6280, levent 0x905
  74 //#define BATTCOVER_IDX       0
  75 //#define HOTSHOE_FLAG        0x00040000 // Found @0xffac6298, levent 0x904
  76 //#define HOTSHOE_IDX         0
  77 //#define ANALOG_AV_FLAG      0x02000000 // Found @0xffac62a0, levent 0x900 (non-inverted logic)
  78 //#define ANALOG_AV_IDX       0
  79 
  80 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  81 //static KeyMap keymap[] = {
  82 //    { 0, KEY_POWER           ,0x00010000 }, // Found @0xffac6288, levent 0x600 (uses inverted logic in physw_status)
  83 //    { 0, KEY_PLAYBACK        ,0x00020000 }, // Found @0xffac6290, levent 0x601 (uses inverted logic in physw_status)
  84 //    { 0, KEY_SHOOT_FULL      ,0xc0000000 }, // Found @0xffac62b0, levent 0x01
  85 //    { 0, KEY_SHOOT_FULL_ONLY ,0x80000000 }, // Found @0xffac62b0, levent 0x01
  86 //    { 0, KEY_SHOOT_HALF      ,0x40000000 }, // Found @0xffac62a8, levent 0x00
  87 //    { 1, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffac62d0, levent 0x03
  88 //    { 1, KEY_ZOOM_IN         ,0x00000010 }, // Found @0xffac62d8, levent 0x02
  89 //    { 1, KEY_LEFT            ,0x00010000 }, // Found @0xffac6308, levent 0x06
  90 //    { 1, KEY_SET             ,0x00020000 }, // Found @0xffac6310, levent 0x08
  91 //    { 1, KEY_RIGHT           ,0x00040000 }, // Found @0xffac6318, levent 0x07
  92 //    { 1, KEY_DOWN            ,0x00080000 }, // Found @0xffac6320, levent 0x05
  93 //    { 1, KEY_UP              ,0x00100000 }, // Found @0xffac6328, levent 0x04
  94 //    { 1, KEY_DISPLAY         ,0x04000000 }, // Found @0xffac6340, levent 0x0a
  95 //    { 1, KEY_MENU            ,0x08000000 }, // Found @0xffac6348, levent 0x09
  96 //    { 0, 0, 0 }
  97 //};
  98 
  99 // Values below go in 'platform_camera.h':
 100 //#define CAM_DRYOS         1
 101 //#define CAM_RAW_ROWPIX    4104 // Found @0xffa0b290
 102 //#define CAM_RAW_ROWS      3048 // Found @0xffa0b298
 103 //#undef  CAM_UNCACHED_BIT
 104 //#define CAM_UNCACHED_BIT  0x10000000 // Found @0xff82a7c4
 105 //#define PARAM_CAMERA_NAME 4 // Found @0xffb0a814
 106 
 107 // Known propcases
 108 // //      PROPCASE_AFSTEP 13
 109 // #define PROPCASE_FOCUS_STATE 18
 110 // #define PROPCASE_AV 23
 111 // #define PROPCASE_BV 34
 112 // //      PROPCASE_DELTA_DIGITALGAIN 77
 113 // #define PROPCASE_DELTA_SV 79
 114 // //      PROPCASE_DELTA_ND 80
 115 // #define PROPCASE_EV_CORRECTION_2 207
 116 // #define PROPCASE_ORIENTATION_SENSOR 219
 117 // #define PROPCASE_SV_MARKET 246
 118 // //      PROPCASE_SVFIX 247
 119 // #define PROPCASE_TV 262
 120 // Guessed propset: 2
 121 
 122 // Misc stuff
 123 DEF(ctypes, 0xffac0b6a)
 124 
 125 // EXMEM types:
 126 // EXMEM_RAMDISK     0
 127 // EXMEM_COM         1
 128 // EXMEM_COMTMP      2
 129 // EXMEM_FORMATTER   3
 130 // EXMEM_SHADING     4
 131 // EXMEM_FAMODE      5
 132 // EXMEM_FIRMUP      6
 133 // EXMEM_FIRMUP_VRAM 7
 134 // EXMEM_DVLPWORK    8
 135 // EXMEM_EVF         9
 136 // EXMEM_SCRIPT      10
 137 // EXMEM_FILESTORE   11
 138 // EXMEM_MOVIE_REC   12
 139 // EXMEM_MOVIE_PLY   13
 140 // EXMEM_WIDE        14
 141 // EXMEM_NARROW      15
 142 // EXMEM_CRAW_REC    16
 143 // EXMEM_PCEVF       17
 144 
 145 // ISR flag: 0x195c, pointer to current task's control block: 0x1958
 146 // pointer to TCB area: 0x1a14, found @ 0xff816100
 147 
 148 // LED table init @ 0xff8f70c8
 149 // LED #1: 0xc0220094, offset 0x244
 150 // LED #2: 0xc02200b0, offset 0x384
 151 // LED #3: 0xc022006c, offset 0x204
 152 // LED #4: 0xc0220138, offset 0x84
 153 // LED #5: 0xc0220068, offset 0xc4
 154 // LED #6: 0xc0220134, offset 0x4
 155 // LED #7: 0xc0220130, offset 0x44
 156 
 157 // For capt_seq.c
 158 DEF(_nrflag,0xe618) // Found @ ff9444f0 (0xe618)
 159 //static long *nrflag = (long*)(0xe618);       // Found @ ff9444f0
 160 
 161 // Stubs below matched 100%.
 162 //    Name                                     Address                Comp to stubs_entry_2.S
 163 NHSTUB(AllocateUncacheableMemory              ,0xff82a788) //112
 164 NHSTUB(Close                                  ,0xff82552c) //120
 165 NHSTUB(CreateBinarySemaphore                  ,0xff81b820) //115
 166 NHSTUB(CreateTask                             ,0xff81baf0) //120
 167 NHSTUB(DebugAssert                            ,0xff81bfc8) //107
 168 NHSTUB(DeleteDirectory_Fut                    ,0xff824e78) //116
 169 NHSTUB(DeleteFile_Fut                         ,0xff824d94) //112
 170 NHSTUB(DoAELock                               ,0xff827aa8) //120
 171 NHSTUB(DoAFLock                               ,0xff8275cc) //120
 172 NHSTUB(EnterToCompensationEVF                 ,0xff8279a8) //104
 173 NHSTUB(ExecuteEventProcedure                  ,0xff81c1a8) //104
 174 NHSTUB(ExitFromCompensationEVF                ,0xff8279f8) //104
 175 NHSTUB(ExitTask                               ,0xff81bd80) //120
 176 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff835600) //104
 177 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff8357c0) //104
 178 NHSTUB(Fclose_Fut                             ,0xff824f10) //120
 179 NHSTUB(Feof_Fut                               ,0xff8250fc) //  1
 180 NHSTUB(Fflush_Fut                             ,0xff825138) //  1
 181 NHSTUB(Fgets_Fut                              ,0xff825064) //  1
 182 NHSTUB(Fopen_Fut                              ,0xff824ed0) //120
 183 NHSTUB(Fread_Fut                              ,0xff824fbc) //120
 184 NHSTUB(FreeUncacheableMemory                  ,0xff82a7bc) //112
 185 NHSTUB(Fseek_Fut                              ,0xff8250b0) //120
 186 NHSTUB(Fwrite_Fut                             ,0xff825010) //120
 187 NHSTUB(GetBatteryTemperature                  ,0xff84bee8) //102
 188 NHSTUB(GetCCDTemperature                      ,0xff84be78) //102
 189 NHSTUB(GetCurrentAvValue                      ,0xff936dd4) //120
 190 NHSTUB(GetCurrentShutterSpeed                 ,0xff8971f8) //120
 191 NHSTUB(GetUsableMaxAv                         ,0xffa0c4f8) //120
 192 NHSTUB(GetUsableMinAv                         ,0xffa0c4e0) //120
 193 NHSTUB(GetDrive_ClusterSize                   ,0xff852754) //  1
 194 NHSTUB(GetDrive_FreeClusters                  ,0xff8527f4) //  1
 195 NHSTUB(GetDrive_TotalClusters                 ,0xff852788) //  1
 196 NHSTUB(GetFocusLensSubjectDistance            ,0xff934c68) //102
 197 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff934f74) //  1
 198 NHSTUB(GetKbdState                            ,0xff849300) //109
 199 NHSTUB(GetMemInfo                             ,0xff813c58) //115
 200 NHSTUB(GetOpticalTemperature                  ,0xff84bf58) //120
 201 NHSTUB(GetParameterData                       ,0xff956968) //  1
 202 NHSTUB(GetPropertyCase                        ,0xff86f768) //101
 203 NHSTUB(GetSystemTime                          ,0xffa47df8) //120
 204 NHSTUB(GetVRAMHPixelsSize                     ,0xff83dedc) //120
 205 NHSTUB(GetVRAMVPixelsSize                     ,0xff83dee8) //120
 206 NHSTUB(GetZoomLensCurrentPoint                ,0xff93a29c) //120
 207 NHSTUB(GetZoomLensCurrentPosition             ,0xffa3e680) //102
 208 NHSTUB(GiveSemaphore                          ,0xff81ba5c) //120
 209 NHSTUB(IsStrobeChargeCompleted                ,0xff8c1344) //102
 210 NHSTUB(LEDDrive                               ,0xff848890) //120
 211 NHSTUB(LocalTime                              ,0xff86b538) //115
 212 NHSTUB(LockMainPower                          ,0xff8731f0) //120
 213 NHSTUB(MakeDirectory_Fut                      ,0xff824e08) //116
 214 NHSTUB(MoveFocusLensToDistance                ,0xffa0e15c) //102
 215 NHSTUB(MoveIrisWithAv                         ,0xff9371b4) //120
 216 NHSTUB(MoveZoomLensWithPoint                  ,0xff93ad48) //120
 217 NHSTUB(Open                                   ,0xff825504) //120
 218 NHSTUB(PB2Rec                                 ,0xff876664) //104
 219 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff8668e0) //120
 220 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff8668a8) //120
 221 NHSTUB(PT_PlaySound                           ,0xff866454) //103
 222 NHSTUB(PostLogicalEventForNotPowerType        ,0xff87118c) //120
 223 NHSTUB(PostLogicalEventToUI                   ,0xff8711d8) //120
 224 NHSTUB(Read                                   ,0xff81a378) //120
 225 NHSTUB(ReadFastDir                            ,0xffa2cbd4) //  1
 226 NHSTUB(Rec2PB                                 ,0xff875024) //104
 227 NHSTUB(RefreshPhysicalScreen                  ,0xff9bdc0c) //104
 228 NHSTUB(RenameFile_Fut                         ,0xff824d40) //  1
 229 NHSTUB(Restart                                ,0xff82c7e4) //122
 230 NHSTUB(SetAE_ShutterSpeed                     ,0xffa104b8) //102
 231 NHSTUB(SetAutoShutdownTime                    ,0xff873264) //120
 232 NHSTUB(SetCurrentCaptureModeType              ,0xff879f7c) //120
 233 NHSTUB(SetFileAttributes                      ,0xff825858) //  1
 234 NHSTUB(SetFileTimeStamp                       ,0xff825808) //  1
 235 NHSTUB(SetLogicalEventActive                  ,0xff872f28) //  1
 236 NHSTUB(SetParameterData                       ,0xff956844) //101
 237 NHSTUB(SetPropertyCase                        ,0xff86f660) //103
 238 NHSTUB(SetScriptMode                          ,0xff872f78) //120
 239 NHSTUB(SleepTask                              ,0xff82a610) //120
 240 NHSTUB(TakeSemaphore                          ,0xff81b98c) //120
 241 NHSTUB(TurnOffBackLight                       ,0xff87ff88) //104
 242 NHSTUB(TurnOnBackLight                        ,0xff87ff70) //104
 243 NHSTUB(TurnOnDisplay                          ,0xff845280) //120
 244 NHSTUB(TurnOffDisplay                         ,0xff845290) //120
 245 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff99c3b8) //120
 246 NHSTUB(UnlockAE                               ,0xff827ae4) //120
 247 NHSTUB(UnlockAF                               ,0xff827638) //120
 248 NHSTUB(UnlockMainPower                        ,0xff873144) //120
 249 NHSTUB(UnsetZoomForMovie                      ,0xff95d048) //104
 250 NHSTUB(UpdateMBROnFlash                       ,0xff85251c) //105
 251 NHSTUB(VbattGet                               ,0xff82199c) //120
 252 NHSTUB(Write                                  ,0xff8255d8) //120
 253 NHSTUB(WriteSDCard                            ,0xff928d00) //108
 254 NHSTUB(_log                                   ,0xffabe6dc) //111
 255 NHSTUB(_log10                                 ,0xffabd620) //112
 256 NHSTUB(_pow                                   ,0xffabd790) //121
 257 NHSTUB(_sqrt                                  ,0xffabfa44) //  1
 258 NHSTUB(add_ptp_handler                        ,0xff8d897c) //121
 259 NHSTUB(apex2us                                ,0xff9bf0c4) //121
 260 NHSTUB(close                                  ,0xff81a190) //109
 261 NHSTUB(err_init_task                          ,0xff814eb0) //111
 262 NHSTUB(exmem_alloc                            ,0xff86c680) //102
 263 NHSTUB(exmem_free                             ,0xff86c6f8) //102
 264 NHSTUB(free                                   ,0xff813ab0) //112
 265 NHSTUB(get_nd_value                           ,0xffa3bea0) //122
 266 NHSTUB(get_current_nd_value                   ,0xffa3be68) //122
 267 NHSTUB(kbd_p1_f                               ,0xff8231c8) //109
 268 NHSTUB(kbd_p1_f_cont                          ,0xff8231d4) //109
 269 NHSTUB(kbd_p2_f                               ,0xff822a18) //109
 270 NHSTUB(kbd_read_keys                          ,0xff8230cc) //109
 271 NHSTUB(kbd_read_keys_r2                       ,0xff848dc8) //109
 272 NHSTUB(lseek                                  ,0xff82566c) //120
 273 NHSTUB(malloc                                 ,0xff8139dc) //112
 274 NHSTUB(memcmp                                 ,0xff81e834) //120
 275 NHSTUB(memcpy                                 ,0xff895cf0) //120
 276 NHSTUB(memset                                 ,0xffa8d42c) //120
 277 NHSTUB(mkdir                                  ,0xff8258d0) //109
 278 NHSTUB(mktime_ext                             ,0xff89655c) //  1
 279 NHSTUB(open                                   ,0xff81a0e0) //109
 280 NHSTUB(OpenFastDir                            ,0xffa2cb40) //  1
 281 NHSTUB(closedir                               ,0xffa2cca4) //  1
 282 NHSTUB(qsort                                  ,0xff9be49c) //  1
 283 NHSTUB(rand                                   ,0xff81e93c) //121
 284 NHSTUB(realloc                                ,0xff813b90) //115
 285 NHSTUB(reboot_fw_update                       ,0xffa34598) //106
 286 NHSTUB(set_control_event                      ,0xff872c2c) //  1
 287 NHSTUB(srand                                  ,0xff81e930) //122
 288 NHSTUB(stat                                   ,0xff825738) //  1
 289 NHSTUB(strcat                                 ,0xff895c1c) //  1
 290 NHSTUB(strchr                                 ,0xff895ca4) //  1
 291 NHSTUB(strcmp                                 ,0xff81e7cc) //120
 292 NHSTUB(strcpy                                 ,0xff81e778) //120
 293 NHSTUB(strftime                               ,0xff895f64) //  1
 294 NHSTUB(strlen                                 ,0xff81e810) //120
 295 NHSTUB(strncmp                                ,0xff895c58) //  1
 296 NHSTUB(strncpy                                ,0xff81e790) //  1
 297 NHSTUB(strrchr                                ,0xff895cc8) //  1
 298 NHSTUB(strtol                                 ,0xff830d90) //101
 299 NHSTUB(strtolx                                ,0xff830b94) //109
 300    DEF(task_CaptSeq                           ,0xff861210) //120
 301    DEF(task_DvlpSeqTask                       ,0xff9450e0) //120
 302    DEF(task_ExpDrv                            ,0xff8b8b90) //120
 303    DEF(task_FileWrite                         ,0xffa2acb8) //120
 304    DEF(task_InitFileModules                   ,0xff877284) //120
 305    DEF(task_MovieRecord                       ,0xff85d4c0) //120
 306    DEF(task_PhySw                             ,0xff822d74) //120
 307    DEF(task_RotaryEncoder                     ,0xff849530) //120
 308 NHSTUB(time                                   ,0xff86ba3c) //109
 309 NHSTUB(vsprintf                               ,0xff81e6f8) //115
 310 NHSTUB(EngDrvRead                             ,0xff823fcc) //102
 311 NHSTUB(PTM_GetCurrentItem                     ,0xff873c9c) //105
 312 NHSTUB(CancelHPTimer                          ,0xff86d3cc) //119
 313 NHSTUB(SetHPTimerAfterNow                     ,0xff86d2c4) //119
 314 NHSTUB(MFOn                                   ,0xff866fec) //120
 315 NHSTUB(MFOff                                  ,0xff866ffc) //120
 316 NHSTUB(PT_MFOn                                ,0xff866940) //120
 317 NHSTUB(PT_MFOff                               ,0xff866950) //120
 318 NHSTUB(GetAdChValue                           ,0xff84682c) //120
 319 NHSTUB(get_ptp_buf_size                       ,0xff8d1fa8) //122
 320 NHSTUB(get_ptp_file_buf                       ,0xff9f2618) //121

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