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

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