root/platform/a1000/sub/100b/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 R31 (DRYOS version 2.3, release #0031)
   6 //   Firmware Ver GM1.00B   // Found @ 0xffc5853c, "GM1.00B" @ 0xffc58549
   7 //   Firmware build timestamp: Jul  9 2008 17:52:41
   8 //   Canon PowerShot A1000 IS
   9 
  10 // Values for makefile.inc
  11 //   DIGIC = 30# DIGIC III
  12 //   PLATFORMOSVER = 31
  13 //   PLATFORMID = 12686# (0x318e) Found @ 0xfffe0130
  14 //   MAXRAMADDR = 0x03ffffff
  15 //   MEMISOSTART = 0x000d4ec8
  16 //   KEYSYS = d4# Found @ 0xffff1a9c
  17 //   NEED_ENCODED_DISKBOOT = 1# Found @ 0xffff1aac
  18 //   ARAM_HEAP_START = 0x2ce000# Found @ 0xffd15e44
  19 //   ARAM_HEAP_SIZE  = 0x32000# Found @ 0xffd15e04
  20 
  21 // Detected address ranges:
  22 // ROM      0xffc00000 - 0xffffffff (4194304 bytes)
  23 // RAM data 0x00001900 - 0x0000df7c copied from 0xffeeae90 (  50812 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(PT_PlaySound                         ,0xffc48c7c) //102        *** != 0xffc48fbc
  28 //NHSTUB(SetAE_ShutterSpeed                   ,0xffe42b88) //102        *** != 0xffe3de6c
  29 //NHSTUB(kbd_pwr_off                          ,0xffc3163c) //  2 64%    *** != 0xffc3164c
  30 NHSTUB(kbd_pwr_on                             ,0xffc315fc) //  2 82%
  31 
  32 // Check of modemap from 'platform/CAMERA/shooting.c':
  33 // Firmware modemap table found @ffdfaf9c -> ffec9db0
  34 // No problems found with modemap table.
  35 
  36 // Values below can be overridden in 'stubs_min.S':
  37 DEF(physw_status                            ,0x0000f3f8) // Found @0xffc113ec
  38 DEF(physw_run                               ,0x00001be4) // Found @0xffc11064
  39 DEF(physw_sleep_delay                       ,0x00001be2) // Found @0xffc11064
  40 DEF(levent_table                            ,0xffeab474) // Found @0xffeab474
  41 DEF(FlashParamsTable                        ,0xffec9f7c) // Found @0xffec9f7c
  42 DEF(movie_status                            ,0x000050a0) // Found @0xffc47cf8
  43 DEF(canon_menu_active                       ,0x00005480) // Found @0xffc59fb8
  44 DEF(canon_shoot_menu_active                 ,0x00009735) // Found @0xffd3b670
  45 DEF(playrec_mode                            ,0x00005228) // Found @0xffc4ec4c
  46 DEF(zoom_status                             ,0x0000c0a4) // Found @0xffdfc7b0
  47 DEF(some_flag_for_af_scan                   ,0x000085a8) // Found @0xffd0a65c
  48 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  49 // each entry contains 3 int value(s), the first is the zoom focus length.
  50 // there are 8 entries in the table - set NUM_FL to 8
  51 DEF(focus_len_table                         ,0xfffe297c) // Found @0xfffe297c
  52 DEF(zoom_busy                               ,0x00007fdc) // Found @0xffd03034
  53 DEF(focus_busy                              ,0x00007ee4) // Found @0xffcfebb4
  54 DEF(recreview_hold                          ,0x000059e4) // Found @0xffc65b4c
  55 // Camera has 2 RAW buffers @ 0x107d58e0 & 0x11b96b80
  56 //  Note: active buffer --> raw_buffers[ active_raw_buffer   *3]
  57 //        other buffer  --> raw_buffers[(active_raw_buffer^1)*3]
  58 DEF(raw_buffers                             ,0xffe8e6f4) // Found @0xffe8e6f4
  59 DEF(active_raw_buffer                       ,0x000051d8) // Found @0xffc4c5c8
  60 DEF(fileio_semaphore                        ,0x000026e0) // Found @0xffc3e800
  61 DEF(exmem_alloc_table                       ,0x000190ac) // Found @0xffc5396c
  62 DEF(exmem_types_table                       ,0xffeee868) // Found @0x000052d8
  63 DEF_CONST(exmem_type_count                  ,0x00000012)
  64 DEF(imager_active                           ,0x00001ee4) // Found @0xffc245bc (0x1ee0 + 4)
  65 DEF_CONST(uiprop_count                      ,0x00000069) // Found @0xffd2c9a0
  66 
  67 // Values below go in 'lib.c':
  68 //void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xffc2ce78
  69 //void *vid_get_viewport_fb()      { return (void*)0x10659de0; }             // Found @0xffe43978
  70 DEF(viewport_fb_d                           ,0x00004f3c) // Found 0x4ee8 (@0xffc4177c) + 0x54 (@0xffc417a8)
  71 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x4ee8+0x54)); } // Found @0xffc4177c & 0xffc417a8
  72 DEF(jpeg_count_str                          ,0x0004506c) // Found @0xffd70d44
  73 //char *camera_jpeg_count_str()    { return (char*)0x0004506c; }             // Found @0xffd70d44
  74 //int get_flash_params_count(void) { return 0x77; }                          // Found @0xffd2d3e4
  75 
  76 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  77 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffe75208, levent 0x90a
  78 //#define SD_READONLY_IDX     2
  79 //#define USB_MASK            0x00040000 // Found @0xffe75214, levent 0x902
  80 //#define USB_IDX             2
  81 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffe751f0, levent 0x905
  82 //#define BATTCOVER_IDX       2
  83 //#define ANALOG_AV_FLAG      0x00400000 // Found @0xffe750d0, levent 0x900 (non-inverted logic)
  84 //#define ANALOG_AV_IDX       1
  85 
  86 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  87 //static KeyMap keymap[] = {
  88 //    { 1, KEY_POWER           ,0x00004000 }, // Found @0xffe750c4, levent 0x600 (uses inverted logic in physw_status)
  89 //    { 1, KEY_PLAYBACK        ,0x02000000 }, // Found @0xffe750e8, levent 0x601 (uses inverted logic in physw_status)
  90 //    { 1, KEY_SHOOT_FULL      ,0xc0000000 }, // Found @0xffe75130, levent 0x01
  91 //    { 1, KEY_SHOOT_FULL_ONLY ,0x80000000 }, // Found @0xffe75130, levent 0x01
  92 //    { 1, KEY_SHOOT_HALF      ,0x40000000 }, // Found @0xffe75124, levent 0x00
  93 //    { 2, KEY_ZOOM_IN         ,0x00000004 }, // Found @0xffe75154, levent 0x02
  94 //    { 2, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffe75160, levent 0x03
  95 //    { 2, KEY_UP              ,0x00000010 }, // Found @0xffe7516c, levent 0x04
  96 //    { 2, KEY_DOWN            ,0x00000020 }, // Found @0xffe75178, levent 0x05
  97 //    { 2, KEY_RIGHT           ,0x00000040 }, // Found @0xffe75184, levent 0x07
  98 //    { 2, KEY_LEFT            ,0x00000080 }, // Found @0xffe75190, levent 0x06
  99 //    { 2, KEY_SET             ,0x00000100 }, // Found @0xffe7519c, levent 0x08
 100 //    { 2, KEY_MENU            ,0x00000200 }, // Found @0xffe751a8, levent 0x09
 101 //    { 2, KEY_DISPLAY         ,0x00000400 }, // Found @0xffe751b4, levent 0x0a
 102 //    { 0, 0, 0 }
 103 //};
 104 
 105 // Values below go in 'platform_camera.h':
 106 //#define CAM_DRYOS         1
 107 //#define CAM_RAW_ROWPIX    3720 // Found @0xffe3cbe0
 108 //#define CAM_RAW_ROWS      2772 // Found @0xffe3cbe8
 109 //#undef  CAM_UNCACHED_BIT
 110 //#define CAM_UNCACHED_BIT  0x10000000 // Found @0xffc171b8
 111 //#define PARAM_CAMERA_NAME 4 // Found @0xffecbf94
 112 
 113 // Known propcases
 114 // //      PROPCASE_AFSTEP 13
 115 // #define PROPCASE_FOCUS_STATE 18
 116 // #define PROPCASE_AV 23
 117 // #define PROPCASE_BV 34
 118 // //      PROPCASE_DELTA_DIGITALGAIN 77
 119 // #define PROPCASE_DELTA_SV 79
 120 // //      PROPCASE_DELTA_ND 80
 121 // #define PROPCASE_EV_CORRECTION_2 207
 122 // #define PROPCASE_ORIENTATION_SENSOR 219
 123 // #define PROPCASE_SV_MARKET 246
 124 // //      PROPCASE_SVFIX 247
 125 // #define PROPCASE_TV 262
 126 // Guessed propset: 2
 127 
 128 // Misc stuff
 129 DEF(ctypes, 0xffe74cee)
 130 
 131 // EXMEM types:
 132 // EXMEM_RAMDISK        0
 133 // EXMEM_COM            1
 134 // EXMEM_FORMATTER      2
 135 // EXMEM_SHADING        3
 136 // EXMEM_FAMODE         4
 137 // EXMEM_FIRMUP         5
 138 // EXMEM_FIRMUP_VRAM    6
 139 // EXMEM_FIRMUP_INFLATE 7
 140 // EXMEM_DVLPWORK       8
 141 // EXMEM_EVF            9
 142 // EXMEM_SCRIPT         10
 143 // EXMEM_FILESTORE      11
 144 // EXMEM_MOVIE_REC      12
 145 // EXMEM_MOVIE_PLY      13
 146 // EXMEM_WIDE           14
 147 // EXMEM_NARROW         15
 148 // EXMEM_CRAW_REC       16
 149 // EXMEM_PCEVF          17
 150 
 151 // ISR flag: 0x195c, pointer to current task's control block: 0x1958
 152 // pointer to TCB area: 0x19f4, found @ 0xffc05e10
 153 
 154 // LED table init @ 0xffcc5a48
 155 // LED #1: 0xc02200d0, offset 0x84
 156 // LED #2: 0xc02200c0, offset 0x244
 157 // LED #3: 0xc02200c4, offset 0x204
 158 // LED #4: 0xc02200cc, offset 0x4
 159 // LED #5: 0xc02200c8, offset 0x44
 160 
 161 // For capt_seq.c
 162 DEF(_nrflag,0x8594) // Found @ ffd0c2d0 (0x8598) & ffd0c2ec (-0x04)
 163 //static long *nrflag = (long*)(0x8598-0x04);  // Found @ ffd0c2d0 & ffd0c2e8
 164 
 165 // Stubs below matched 100%.
 166 //    Name                                     Address                Comp to stubs_entry_2.S
 167 NHSTUB(AllocateUncacheableMemory              ,0xffc17174) //112
 168 NHSTUB(Close                                  ,0xffc13344) //120
 169 NHSTUB(CreateBinarySemaphore                  ,0xffc0b5e0) //115
 170 NHSTUB(CreateTask                             ,0xffc0b8c0) //120
 171 NHSTUB(DebugAssert                            ,0xffc0bd98) //107
 172 NHSTUB(DeleteDirectory_Fut                    ,0xffc12cd4) //116
 173 NHSTUB(DeleteFile_Fut                         ,0xffc12bf0) //112
 174 NHSTUB(DoAELock                               ,0xffc15084) //120
 175 NHSTUB(DoAFLock                               ,0xffc14d9c) //120
 176 NHSTUB(EnterToCompensationEVF                 ,0xffc14fec) //104
 177 NHSTUB(ExecuteEventProcedure                  ,0xffc55764) //104
 178 NHSTUB(ExitFromCompensationEVF                ,0xffc15030) //104
 179 NHSTUB(ExitTask                               ,0xffc0bb50) //120
 180 NHSTUB(ExpCtrlTool_StartContiAE               ,0xffc1fa68) //104
 181 NHSTUB(ExpCtrlTool_StopContiAE                ,0xffc1fbac) //104
 182 NHSTUB(Fclose_Fut                             ,0xffc12d6c) //120
 183 NHSTUB(Feof_Fut                               ,0xffc12f58) //  1
 184 NHSTUB(Fflush_Fut                             ,0xffc12f94) //  1
 185 NHSTUB(Fgets_Fut                              ,0xffc12ec0) //  1
 186 NHSTUB(Fopen_Fut                              ,0xffc12d2c) //120
 187 NHSTUB(Fread_Fut                              ,0xffc12e18) //120
 188 NHSTUB(FreeUncacheableMemory                  ,0xffc171b4) //112
 189 NHSTUB(Fseek_Fut                              ,0xffc12f0c) //120
 190 NHSTUB(Fwrite_Fut                             ,0xffc12e6c) //120
 191 NHSTUB(GetBatteryTemperature                  ,0xffc33738) //102
 192 NHSTUB(GetCCDTemperature                      ,0xffc336c8) //102
 193 NHSTUB(GetCurrentAvValue                      ,0xffd005ec) //120
 194 NHSTUB(GetCurrentShutterSpeed                 ,0xffc6e2cc) //120
 195 NHSTUB(GetDrive_ClusterSize                   ,0xffc3ffe0) //  1
 196 NHSTUB(GetDrive_FreeClusters                  ,0xffc40048) //  1
 197 NHSTUB(GetDrive_TotalClusters                 ,0xffc40014) //  1
 198 NHSTUB(GetFocusLensSubjectDistance            ,0xffcff6e4) //102
 199 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xffcff9f0) //  3
 200 NHSTUB(GetKbdState                            ,0xffc315c8) //109
 201 NHSTUB(GetMemInfo                             ,0xffc03c28) //115
 202 NHSTUB(GetOpticalTemperature                  ,0xffc337a8) //120
 203 NHSTUB(GetParameterData                       ,0xffd2d3a4) //101
 204 NHSTUB(GetPropertyCase                        ,0xffc594cc) //102
 205 NHSTUB(GetSystemTime                          ,0xffdefe78) //120
 206 NHSTUB(GetVRAMHPixelsSize                     ,0xffca2420) //120
 207 NHSTUB(GetVRAMVPixelsSize                     ,0xffca242c) //120
 208 NHSTUB(GetZoomLensCurrentPoint                ,0xffd033a4) //120
 209 NHSTUB(GetZoomLensCurrentPosition             ,0xffde9db0) //102
 210 NHSTUB(GiveSemaphore                          ,0xffc0b81c) //120
 211 NHSTUB(IsStrobeChargeCompleted                ,0xffc8b28c) //102
 212 NHSTUB(LEDDrive                               ,0xffc30c9c) //120
 213 NHSTUB(LocalTime                              ,0xffc53768) //115
 214 NHSTUB(LockMainPower                          ,0xffc5cdd0) //120
 215 NHSTUB(MakeDirectory_Fut                      ,0xffc12c64) //116
 216 NHSTUB(MoveFocusLensToDistance                ,0xffe403bc) //102
 217 NHSTUB(MoveIrisWithAv                         ,0xffdec64c) //120
 218 NHSTUB(MoveZoomLensWithPoint                  ,0xffdecbd8) //120
 219 NHSTUB(MoveOpticalZoomAt                      ,0xffc14830) //109
 220 NHSTUB(Open                                   ,0xffc1331c) //120
 221 NHSTUB(PB2Rec                                 ,0xffc5e804) //104
 222 NHSTUB(PT_MoveDigitalZoomToWide               ,0xffc49094) //120
 223 NHSTUB(PT_MoveOpticalZoomAt                   ,0xffc4906c) //120
 224 NHSTUB(PostLogicalEventForNotPowerType        ,0xffc5c410) //120
 225 NHSTUB(PostLogicalEventToUI                   ,0xffc5c45c) //120
 226 NHSTUB(PutInNdFilter                          ,0xffdeca3c) //102
 227 NHSTUB(PutOutNdFilter                         ,0xffdeca60) //102
 228 NHSTUB(Read                                   ,0xffc0a138) //120
 229 NHSTUB(ReadFastDir                            ,0xffddc2b4) //  1
 230 NHSTUB(Rec2PB                                 ,0xffc5e858) //104
 231 NHSTUB(RefreshPhysicalScreen                  ,0xffd7a3c0) //104
 232 NHSTUB(RenameFile_Fut                         ,0xffc12b9c) //  1
 233 NHSTUB(Restart                                ,0xffc189ec) //122
 234 NHSTUB(SetAutoShutdownTime                    ,0xffc5ce44) //120
 235 NHSTUB(SetCurrentCaptureModeType              ,0xffc634f8) //120
 236 NHSTUB(SetFileAttributes                      ,0xffc13670) //  1
 237 NHSTUB(SetFileTimeStamp                       ,0xffc13620) //  1
 238 NHSTUB(SetLogicalEventActive                  ,0xffc5cb4c) //120
 239 NHSTUB(SetParameterData                       ,0xffd2d314) //101
 240 NHSTUB(SetPropertyCase                        ,0xffc593c4) //102
 241 NHSTUB(SetScriptMode                          ,0xffc5cb9c) //120
 242 NHSTUB(SleepTask                              ,0xffc16ff8) //120
 243 NHSTUB(TakeSemaphore                          ,0xffc0b74c) //120
 244 NHSTUB(TurnOffBackLight                       ,0xffc67e6c) //104
 245 NHSTUB(TurnOnBackLight                        ,0xffc67e54) //104
 246 NHSTUB(TurnOnDisplay                          ,0xffc2cf40) //120
 247 NHSTUB(TurnOffDisplay                         ,0xffc2cf50) //120
 248 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xffd2048c) //120
 249 NHSTUB(UnlockAE                               ,0xffc150a8) //120
 250 NHSTUB(UnlockAF                               ,0xffc14dd4) //120
 251 NHSTUB(UnlockMainPower                        ,0xffc5cd24) //120
 252 NHSTUB(UnsetZoomForMovie                      ,0xffd32980) //104
 253 NHSTUB(UpdateMBROnFlash                       ,0xffc3fe20) //105
 254 NHSTUB(VbattGet                               ,0xffc10314) //120
 255 NHSTUB(Write                                  ,0xffc133f0) //120
 256 NHSTUB(WriteSDCard                            ,0xffcf4e38) //108
 257 NHSTUB(_log                                   ,0xffe72af4) //111
 258 NHSTUB(_log10                                 ,0xffe71a38) //112
 259 NHSTUB(_pow                                   ,0xffe71ba8) //121
 260 NHSTUB(_sqrt                                  ,0xffe73e5c) //  1
 261 NHSTUB(add_ptp_handler                        ,0xffdab87c) //121
 262 NHSTUB(apex2us                                ,0xffd7b3dc) //121
 263 NHSTUB(close                                  ,0xffc09f50) //109
 264 NHSTUB(err_init_task                          ,0xffc04e84) //111
 265 NHSTUB(exmem_alloc                            ,0xffc53f68) //103
 266 NHSTUB(exmem_free                             ,0xffc53fe0) //103
 267 NHSTUB(free                                   ,0xffc03a80) //112
 268 NHSTUB(get_nd_value                           ,0xffde777c) //123
 269 NHSTUB(get_current_nd_value                   ,0xffde7738) //122
 270 NHSTUB(kbd_p1_f                               ,0xffc114f0) //109
 271 NHSTUB(kbd_p1_f_cont                          ,0xffc114fc) //109
 272 NHSTUB(kbd_p2_f                               ,0xffc10d04) //109
 273 NHSTUB(kbd_read_keys                          ,0xffc113ec) //109
 274 NHSTUB(kbd_read_keys_r2                       ,0xffc310b4) //109
 275 NHSTUB(lseek                                  ,0xffc13484) //120
 276 NHSTUB(malloc                                 ,0xffc039ac) //112
 277 NHSTUB(memcmp                                 ,0xffc0d8b4) //120
 278 NHSTUB(memcpy                                 ,0xffc6ce5c) //120
 279 NHSTUB(memset                                 ,0xffd7a714) //120
 280 NHSTUB(mkdir                                  ,0xffc136e8) //109
 281 NHSTUB(mktime_ext                             ,0xffc6d6c8) //  1
 282 NHSTUB(open                                   ,0xffc09ea0) //109
 283 NHSTUB(OpenFastDir                            ,0xffddc220) //  1
 284 NHSTUB(closedir                               ,0xffddc384) //  1
 285 NHSTUB(qsort                                  ,0xffe2bbec) //  1
 286 NHSTUB(rand                                   ,0xffc0d9bc) //121
 287 NHSTUB(realloc                                ,0xffc03b60) //115
 288 NHSTUB(reboot_fw_update                       ,0xffde0b88) //106
 289 NHSTUB(set_control_event                      ,0xffc5c898) //111
 290 NHSTUB(srand                                  ,0xffc0d9b0) //122
 291 NHSTUB(stat                                   ,0xffc13550) //  1
 292 NHSTUB(strcat                                 ,0xffc6cc70) //  1
 293 NHSTUB(strchr                                 ,0xffc6ccf8) //  1
 294 NHSTUB(strcmp                                 ,0xffc0d84c) //120
 295 NHSTUB(strcpy                                 ,0xffc0d834) //120
 296 NHSTUB(strftime                               ,0xffc6d0d0) //  1
 297 NHSTUB(strlen                                 ,0xffc0d890) //120
 298 NHSTUB(strncmp                                ,0xffc6ccac) //  1
 299 NHSTUB(strncpy                                ,0xffc1cb54) //  1
 300 NHSTUB(strrchr                                ,0xffd7a6ec) //  1
 301 NHSTUB(strtol                                 ,0xffc1cd8c) //101
 302 NHSTUB(strtolx                                ,0xffc1cb90) //109
 303    DEF(task_CaptSeq                           ,0xffc4b22c) //120
 304    DEF(task_DvlpSeqTask                       ,0xffd0d008) //120
 305    DEF(task_ExpDrv                            ,0xffc84248) //120
 306    DEF(task_FileWrite                         ,0xffdd8bd4) //120
 307    DEF(task_InitFileModules                   ,0xffc60680) //120
 308    DEF(task_MovieRecord                       ,0xffc47f5c) //120
 309    DEF(task_PhySw                             ,0xffc11060) //120
 310 NHSTUB(time                                   ,0xffc5361c) //109
 311 NHSTUB(vsprintf                               ,0xffc0d7f8) //115
 312 NHSTUB(EngDrvRead                             ,0xffc12330) //102
 313 NHSTUB(PTM_GetCurrentItem                     ,0xffc5d6b4) //105
 314 NHSTUB(CancelHPTimer                          ,0xffc54ca0) //119
 315 NHSTUB(SetHPTimerAfterNow                     ,0xffc54b98) //119
 316 NHSTUB(PT_MFOn                                ,0xffc4910c) //120
 317 NHSTUB(PT_MFOff                               ,0xffc4911c) //120
 318 NHSTUB(GetAdChValue                           ,0xffc2ed44) //120
 319 NHSTUB(get_ptp_buf_size                       ,0xffca4d0c) //122
 320 NHSTUB(get_ptp_file_buf                       ,0xffdad178) //121

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