root/platform/g9/sub/100d/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.00D   // Found @ 0xff86e880, "GM1.00D" @ 0xff86e88d
   7 //   Firmware build timestamp: Jul 23 2007 08:05:13
   8 //   Canon PowerShot G9
   9 
  10 // Values for makefile.inc
  11 //   DIGIC = 30# DIGIC III
  12 //   PLATFORMOSVER = 23
  13 //   PLATFORMID = 12634# (0x315a) Found @ 0xfffe0130
  14 //   MAXRAMADDR = 0x03ffffff
  15 //   MEMISOSTART = 0x000b0b68
  16 //   KEYSYS = d3# Found @ 0xffff31f0
  17 
  18 // Detected address ranges:
  19 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  20 // RAM data 0x00001900 - 0x000140e4 copied from 0xffb2e384 (  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                        ,0xff938468) //102        *** != 0xffa0c4e0
  25 //NHSTUB(PutOutNdFilter                       ,0xff93848c) //102        *** != 0xffa0c518
  26 //NHSTUB(kbd_pwr_off                          ,0xff84944c) //  2 67%    *** != 0x00000000
  27 //NHSTUB(strcmp                               ,0xff81e7cc) //120        *** != 0xff81e7f4
  28 
  29 // Check of modemap from 'platform/CAMERA/shooting.c':
  30 // Firmware modemap table found @ffa4c6c8 -> ffb0807c
  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                            ,0xffae013c) // Found @0xffae013c
  38 DEF(FlashParamsTable                        ,0xffb08248) // Found @0xffb08248
  39 DEF(movie_status                            ,0x00005714) // Found @0xff85d220
  40 DEF(canon_menu_active                       ,0x0000fdc8) // Found @0xff99b4d4
  41 DEF(canon_shoot_menu_active                 ,0x0000f33d) // Found @0xff96aba8
  42 DEF(playrec_mode                            ,0x000058cc) // Found @0xff864a60
  43 DEF(zoom_status                             ,0x0001264c) // Found @0xffa4e38c
  44 DEF(some_flag_for_af_scan                   ,0x0001253c) // Found @0xffa44730
  45 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  46 // each entry contains 3 int value(s), the first is the zoom focus length.
  47 // there are 14 entries in the table - set NUM_FL to 14
  48 DEF(focus_len_table                         ,0xfffe299c) // Found @0xfffe299c
  49 DEF(zoom_busy                               ,0x0000e260) // Found @0xff939ebc
  50 DEF(focus_busy                              ,0x0000e150) // Found @0xff9340ac
  51 //DEF(recreview_hold                          ,0x00006400) // Found @0xff87cb64, ** != ** stubs_min = 0x0000f050 (0xF050)
  52 // Camera has 2 RAW buffers @ 0x108297c0 & 0x11f8f740
  53 //  Note: active buffer --> raw_buffers[ active_raw_buffer   *3]
  54 //        other buffer  --> raw_buffers[(active_raw_buffer^1)*3]
  55 DEF(raw_buffers                             ,0xffac66a8) // Found @0xffac66a8
  56 DEF(active_raw_buffer                       ,0x0000586c) // Found @0xff861840
  57 DEF(fileio_semaphore                        ,0x00002d68) // Found @0xff853fa8
  58 DEF(exmem_alloc_table                       ,0x0001e85c) // Found @0xff86bd98
  59 DEF(exmem_types_table                       ,0xffb32438) // Found @0x000059b4
  60 DEF_CONST(exmem_type_count                  ,0x00000012)
  61 DEF(imager_active                           ,0x00002018) // Found @0xff838a28 (0x2014 + 4)
  62 DEF_CONST(uiprop_count                      ,0x00000063) // Found @0xff955cd8
  63 
  64 // Values below go in 'lib.c':
  65 //void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xff8451d0
  66 //void *vid_get_viewport_fb()      { return (void*)0x1067b540; }             // Found @0xffa1126c
  67 DEF(viewport_fb_d                           ,0x000055a8) // Found 0x5558 (@0xff856268) + 0x50 (@0xff8562a0)
  68 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x5558+0x50)); } // Found @0xff856268 & 0xff8562a0
  69 DEF(jpeg_count_str                          ,0x00060354) // Found @0xff9afae4
  70 //char *camera_jpeg_count_str()    { return (char*)0x00060354; }             // Found @0xff9afae4
  71 //int get_flash_params_count(void) { return 0x72; }                          // Found @0xff95692c
  72 
  73 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  74 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffac62e0, levent 0x90a
  75 //#define SD_READONLY_IDX     2
  76 //#define USB_MASK            0x00040000 // Found @0xffac62e8, levent 0x902
  77 //#define USB_IDX             2
  78 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffac61e8, levent 0x905
  79 //#define BATTCOVER_IDX       0
  80 //#define HOTSHOE_FLAG        0x00040000 // Found @0xffac6200, levent 0x904
  81 //#define HOTSHOE_IDX         0
  82 //#define ANALOG_AV_FLAG      0x02000000 // Found @0xffac6208, levent 0x900 (non-inverted logic)
  83 //#define ANALOG_AV_IDX       0
  84 
  85 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  86 //static KeyMap keymap[] = {
  87 //    { 0, KEY_POWER           ,0x00010000 }, // Found @0xffac61f0, levent 0x600 (uses inverted logic in physw_status)
  88 //    { 0, KEY_PLAYBACK        ,0x00020000 }, // Found @0xffac61f8, levent 0x601 (uses inverted logic in physw_status)
  89 //    { 0, KEY_SHOOT_FULL      ,0xc0000000 }, // Found @0xffac6218, levent 0x01
  90 //    { 0, KEY_SHOOT_FULL_ONLY ,0x80000000 }, // Found @0xffac6218, levent 0x01
  91 //    { 0, KEY_SHOOT_HALF      ,0x40000000 }, // Found @0xffac6210, levent 0x00
  92 //    { 1, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffac6238, levent 0x03
  93 //    { 1, KEY_ZOOM_IN         ,0x00000010 }, // Found @0xffac6240, levent 0x02
  94 //    { 1, KEY_LEFT            ,0x00010000 }, // Found @0xffac6270, levent 0x06
  95 //    { 1, KEY_SET             ,0x00020000 }, // Found @0xffac6278, levent 0x08
  96 //    { 1, KEY_RIGHT           ,0x00040000 }, // Found @0xffac6280, levent 0x07
  97 //    { 1, KEY_DOWN            ,0x00080000 }, // Found @0xffac6288, levent 0x05
  98 //    { 1, KEY_UP              ,0x00100000 }, // Found @0xffac6290, levent 0x04
  99 //    { 1, KEY_DISPLAY         ,0x04000000 }, // Found @0xffac62a8, levent 0x0a
 100 //    { 1, KEY_MENU            ,0x08000000 }, // Found @0xffac62b0, levent 0x09
 101 //    { 0, 0, 0 }
 102 //};
 103 
 104 // Values below go in 'platform_camera.h':
 105 //#define CAM_DRYOS         1
 106 //#define CAM_RAW_ROWPIX    4104 // Found @0xffa0b1f8
 107 //#define CAM_RAW_ROWS      3048 // Found @0xffa0b200
 108 //#undef  CAM_UNCACHED_BIT
 109 //#define CAM_UNCACHED_BIT  0x10000000 // Found @0xff82a7c4
 110 //#define PARAM_CAMERA_NAME 4 // Found @0xffb0a77c
 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, 0xffac0ad2)
 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 @ ff944474 (0xe618)
 164 //static long *nrflag = (long*)(0xe618);       // Found @ ff944474
 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(DoAELock                               ,0xff827aa8) //120
 176 NHSTUB(DoAFLock                               ,0xff8275cc) //120
 177 NHSTUB(EnterToCompensationEVF                 ,0xff8279a8) //104
 178 NHSTUB(ExecuteEventProcedure                  ,0xff81c1a8) //104
 179 NHSTUB(ExitFromCompensationEVF                ,0xff8279f8) //104
 180 NHSTUB(ExitTask                               ,0xff81bd80) //120
 181 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff835600) //104
 182 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff8357c0) //104
 183 NHSTUB(Fclose_Fut                             ,0xff824f10) //120
 184 NHSTUB(Feof_Fut                               ,0xff8250fc) //  1
 185 NHSTUB(Fflush_Fut                             ,0xff825138) //  1
 186 NHSTUB(Fgets_Fut                              ,0xff825064) //  1
 187 NHSTUB(Fopen_Fut                              ,0xff824ed0) //120
 188 NHSTUB(Fread_Fut                              ,0xff824fbc) //120
 189 NHSTUB(FreeUncacheableMemory                  ,0xff82a7bc) //112
 190 NHSTUB(Fseek_Fut                              ,0xff8250b0) //120
 191 NHSTUB(Fwrite_Fut                             ,0xff825010) //120
 192 NHSTUB(GetBatteryTemperature                  ,0xff84bee8) //102
 193 NHSTUB(GetCCDTemperature                      ,0xff84be78) //102
 194 NHSTUB(GetCurrentAvValue                      ,0xff936d58) //120
 195 NHSTUB(GetCurrentShutterSpeed                 ,0xff8971f8) //120
 196 NHSTUB(GetUsableMaxAv                         ,0xffa0c460) //120
 197 NHSTUB(GetUsableMinAv                         ,0xffa0c448) //120
 198 NHSTUB(GetDrive_ClusterSize                   ,0xff852754) //  1
 199 NHSTUB(GetDrive_FreeClusters                  ,0xff8527f4) //  1
 200 NHSTUB(GetDrive_TotalClusters                 ,0xff852788) //  1
 201 NHSTUB(GetFocusLensSubjectDistance            ,0xff934bec) //102
 202 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff934ef8) //  1
 203 NHSTUB(GetKbdState                            ,0xff849300) //109
 204 NHSTUB(GetMemInfo                             ,0xff813c58) //115
 205 NHSTUB(GetOpticalTemperature                  ,0xff84bf58) //120
 206 NHSTUB(GetParameterData                       ,0xff9568ec) //  1
 207 NHSTUB(GetPropertyCase                        ,0xff86f768) //101
 208 NHSTUB(GetSystemTime                          ,0xffa47d60) //120
 209 NHSTUB(GetVRAMHPixelsSize                     ,0xff83dedc) //120
 210 NHSTUB(GetVRAMVPixelsSize                     ,0xff83dee8) //120
 211 NHSTUB(GetZoomLensCurrentPoint                ,0xff93a220) //120
 212 NHSTUB(GetZoomLensCurrentPosition             ,0xffa3e5e8) //102
 213 NHSTUB(GiveSemaphore                          ,0xff81ba5c) //120
 214 NHSTUB(IsStrobeChargeCompleted                ,0xff8c1344) //102
 215 NHSTUB(LEDDrive                               ,0xff848890) //120
 216 NHSTUB(LocalTime                              ,0xff86b538) //115
 217 NHSTUB(LockMainPower                          ,0xff8731f0) //120
 218 NHSTUB(MakeDirectory_Fut                      ,0xff824e08) //116
 219 NHSTUB(MoveFocusLensToDistance                ,0xffa0e0c4) //102
 220 NHSTUB(MoveIrisWithAv                         ,0xff937138) //120
 221 NHSTUB(MoveZoomLensWithPoint                  ,0xff93accc) //120
 222 NHSTUB(MoveOpticalZoomAt                      ,0xff826ad4) //109
 223 NHSTUB(Open                                   ,0xff825504) //120
 224 NHSTUB(PB2Rec                                 ,0xff876664) //104
 225 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff8668e0) //120
 226 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff8668a8) //120
 227 NHSTUB(PT_PlaySound                           ,0xff866454) //103
 228 NHSTUB(PostLogicalEventForNotPowerType        ,0xff87118c) //120
 229 NHSTUB(PostLogicalEventToUI                   ,0xff8711d8) //120
 230 NHSTUB(Read                                   ,0xff81a378) //120
 231 NHSTUB(ReadFastDir                            ,0xffa2cb3c) //  1
 232 NHSTUB(Rec2PB                                 ,0xff875024) //104
 233 NHSTUB(RefreshPhysicalScreen                  ,0xff9bdb74) //104
 234 NHSTUB(RenameFile_Fut                         ,0xff824d40) //  1
 235 NHSTUB(Restart                                ,0xff82c7e4) //122
 236 NHSTUB(SetAE_ShutterSpeed                     ,0xffa10420) //102
 237 NHSTUB(SetAutoShutdownTime                    ,0xff873264) //120
 238 NHSTUB(SetCurrentCaptureModeType              ,0xff879f7c) //120
 239 NHSTUB(SetFileAttributes                      ,0xff825858) //  1
 240 NHSTUB(SetFileTimeStamp                       ,0xff825808) //  1
 241 NHSTUB(SetLogicalEventActive                  ,0xff872f28) //  1
 242 NHSTUB(SetParameterData                       ,0xff9567c8) //101
 243 NHSTUB(SetPropertyCase                        ,0xff86f660) //103
 244 NHSTUB(SetScriptMode                          ,0xff872f78) //120
 245 NHSTUB(SleepTask                              ,0xff82a610) //120
 246 NHSTUB(TakeSemaphore                          ,0xff81b98c) //120
 247 NHSTUB(TurnOffBackLight                       ,0xff87ff88) //104
 248 NHSTUB(TurnOnBackLight                        ,0xff87ff70) //104
 249 NHSTUB(TurnOnDisplay                          ,0xff845280) //120
 250 NHSTUB(TurnOffDisplay                         ,0xff845290) //120
 251 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff99c320) //120
 252 NHSTUB(UnlockAE                               ,0xff827ae4) //120
 253 NHSTUB(UnlockAF                               ,0xff827638) //120
 254 NHSTUB(UnlockMainPower                        ,0xff873144) //120
 255 NHSTUB(UnsetZoomForMovie                      ,0xff95cfcc) //104
 256 NHSTUB(UpdateMBROnFlash                       ,0xff85251c) //105
 257 NHSTUB(VbattGet                               ,0xff82199c) //120
 258 NHSTUB(Write                                  ,0xff8255d8) //120
 259 NHSTUB(WriteSDCard                            ,0xff928c84) //108
 260 NHSTUB(_log                                   ,0xffabe644) //111
 261 NHSTUB(_log10                                 ,0xffabd588) //112
 262 NHSTUB(_pow                                   ,0xffabd6f8) //121
 263 NHSTUB(_sqrt                                  ,0xffabf9ac) //  1
 264 NHSTUB(add_ptp_handler                        ,0xff8d897c) //121
 265 NHSTUB(apex2us                                ,0xff9bf02c) //121
 266 NHSTUB(close                                  ,0xff81a190) //109
 267 NHSTUB(err_init_task                          ,0xff814eb0) //111
 268 NHSTUB(exmem_alloc                            ,0xff86c680) //102
 269 NHSTUB(exmem_ualloc                           ,0xff86c4d0) //102
 270 NHSTUB(exmem_ufree                            ,0xff86c610) //102
 271 NHSTUB(free                                   ,0xff813ab0) //112
 272 NHSTUB(get_nd_value                           ,0xffa3be08) //122
 273 NHSTUB(get_current_nd_value                   ,0xffa3bdd0) //122
 274 NHSTUB(kbd_p1_f                               ,0xff8231c8) //109
 275 NHSTUB(kbd_p1_f_cont                          ,0xff8231d4) //109
 276 NHSTUB(kbd_p2_f                               ,0xff822a18) //109
 277 NHSTUB(kbd_read_keys                          ,0xff8230cc) //109
 278 NHSTUB(kbd_read_keys_r2                       ,0xff848dc8) //109
 279 NHSTUB(lseek                                  ,0xff82566c) //120
 280 NHSTUB(malloc                                 ,0xff8139dc) //112
 281 NHSTUB(memcmp                                 ,0xff81e834) //120
 282 NHSTUB(memcpy                                 ,0xff895cf0) //120
 283 NHSTUB(memset                                 ,0xffa8d394) //120
 284 NHSTUB(mkdir                                  ,0xff8258d0) //109
 285 NHSTUB(mktime_ext                             ,0xff89655c) //  1
 286 NHSTUB(open                                   ,0xff81a0e0) //109
 287 NHSTUB(OpenFastDir                            ,0xffa2caa8) //  1
 288 NHSTUB(closedir                               ,0xffa2cc0c) //  1
 289 NHSTUB(qsort                                  ,0xff9be404) //  1
 290 NHSTUB(rand                                   ,0xff81e93c) //121
 291 NHSTUB(realloc                                ,0xff813b90) //115
 292 NHSTUB(reboot_fw_update                       ,0xffa34500) //106
 293 NHSTUB(set_control_event                      ,0xff872c2c) //  1
 294 NHSTUB(srand                                  ,0xff81e930) //122
 295 NHSTUB(stat                                   ,0xff825738) //  1
 296 NHSTUB(strcat                                 ,0xff895c1c) //  1
 297 NHSTUB(strchr                                 ,0xff895ca4) //  1
 298 NHSTUB(strcpy                                 ,0xff81e778) //120
 299 NHSTUB(strftime                               ,0xff895f64) //  1
 300 NHSTUB(strlen                                 ,0xff81e810) //120
 301 NHSTUB(strncmp                                ,0xff895c58) //  1
 302 NHSTUB(strncpy                                ,0xff81e790) //  1
 303 NHSTUB(strrchr                                ,0xff895cc8) //  1
 304 NHSTUB(strtol                                 ,0xff830d90) //101
 305 NHSTUB(strtolx                                ,0xff830b94) //109
 306    DEF(task_CaptSeq                           ,0xff861210) //120
 307    DEF(task_DvlpSeqTask                       ,0xff945064) //120
 308    DEF(task_ExpDrv                            ,0xff8b8b90) //120
 309    DEF(task_FileWrite                         ,0xffa2ac20) //120
 310    DEF(task_InitFileModules                   ,0xff877284) //120
 311    DEF(task_MovieRecord                       ,0xff85d4c0) //120
 312    DEF(task_PhySw                             ,0xff822d74) //120
 313    DEF(task_RotaryEncoder                     ,0xff849530) //120
 314 NHSTUB(time                                   ,0xff86ba3c) //109
 315 NHSTUB(vsprintf                               ,0xff81e6f8) //115
 316 NHSTUB(EngDrvRead                             ,0xff823fcc) //102
 317 NHSTUB(PTM_GetCurrentItem                     ,0xff873c9c) //105
 318 NHSTUB(CancelHPTimer                          ,0xff86d3cc) //119
 319 NHSTUB(SetHPTimerAfterNow                     ,0xff86d2c4) //119
 320 NHSTUB(MFOn                                   ,0xff866fec) //120
 321 NHSTUB(MFOff                                  ,0xff866ffc) //120
 322 NHSTUB(PT_MFOn                                ,0xff866940) //120
 323 NHSTUB(PT_MFOff                               ,0xff866950) //120
 324 NHSTUB(GetAdChValue                           ,0xff84682c) //120
 325 NHSTUB(get_ptp_buf_size                       ,0xff8d1fa8) //122
 326 NHSTUB(get_ptp_file_buf                       ,0xff9f2580) //121
 327 NHSTUB(SetVideoOutType                        ,0xffa10c20) //109
 328 NHSTUB(GetVideoOutType                        ,0xffa10b84) //120

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