root/platform/a1200/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 R47 (DRYOS version 2.3, release #0047)
   6 //   Firmware Ver GM1.00B   // Found @ 0xff88901c, "GM1.00B" @ 0xff889029
   7 //   Firmware build timestamp: May 10 2011 20:43:44
   8 //   Canon PowerShot A1200
   9 
  10 // Values for makefile.inc
  11 //   PLATFORMOSVER = 47
  12 //   PLATFORMID = 12843 (0x322b) // Found @ 0xfffe0040
  13 //   MAXRAMADDR = 0x03ffffff
  14 //   MEMISOSTART = 0x0016913c
  15 //   KEYSYS = d4c                // Found @ 0xffff3514
  16 //   NEED_ENCODED_DISKBOOT = 6   // Found @ 0xffff3524
  17 //   ARAM_HEAP_START = 0x34e000  // Found @ 0xff972750
  18 //   ARAM_HEAP_SIZE  = 0x32000   // Found @ 0xff972710
  19 
  20 // Detected address ranges:
  21 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  22 // RAM data 0x00001900 - 0x0000ecd8 copied from 0xffc2b8d4 (  54232 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(GetBatteryTemperature                ,0xff861844) //102        *** != 0x00000000
  27 
  28 // Check of modemap from 'platform/CAMERA/shooting.c':
  29 // Firmware modemap table found @ffac1ab0 -> ffbe6588
  30 // No problems found with modemap table.
  31 
  32 // Values below can be overridden in 'stubs_min.S':
  33 DEF(physw_status                            ,0x00032954) // Found @0xff834310
  34 DEF(physw_run                               ,0x00001c30) // Found @0xff833ed0
  35 DEF(physw_sleep_delay                       ,0x00001c38) // Found @0xff833ed0
  36 DEF(levent_table                            ,0xffb995e4) // Found @0xffb995e4
  37 DEF(FlashParamsTable                        ,0xffbe67c4) // Found @0xffbe67c4
  38 DEF(movie_status                            ,0x000065b4) // Found @0xff963af0
  39 DEF(video_compression_rate                  ,0x000065f4) // Found @0xff963da8
  40 DEF(full_screen_refresh                     ,0x00008fd0) // Found @0xffa00a88
  41 DEF(canon_menu_active                       ,0x00002ebc) // Found @0xff88aa24
  42 DEF(canon_shoot_menu_active                 ,0x00007a6d) // Found @0xff9a7b88
  43 DEF(playrec_mode                            ,0x00002be8) // Found @0xff87ceb4
  44 DEF(zoom_status                             ,0x0000ca68) // Found @0xffac5184
  45 DEF(some_flag_for_af_scan                   ,0x00006988) // Found @0xff9677fc
  46 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  47 // each entry contains 3 int value(s), the first is the zoom focus length.
  48 // there are 8 entries in the table - set NUM_FL to 8
  49 DEF(focus_len_table                         ,0xfffe2a98) // Found @0xfffe2a98
  50 DEF(zoom_busy                               ,0x00006510) // Found @0xff960534
  51 DEF(focus_busy                              ,0x00006420) // Found @0xff95d914
  52 DEF(recreview_hold                          ,0x00003490) // Found @0xff897fa8
  53 // Palette colour tables  found @ 0xffbaf328
  54 DEF(palette_control                         ,0x00008fd0) // Found @0xffa00a04
  55 DEF(active_palette_buffer                   ,0x00008fd8) // Found @0xffa00a08
  56 DEF(palette_buffer_ptr                      ,0x00008fdc) // Found @0xffa00dac
  57 DEF(palette_buffer                          ,0x000b41e4) // Found @0xffa00dbc
  58 // Offset from start of palette_buffer to color data = 8 (Found @0xffaf6064)
  59 DEF(viewport_buffers                        ,0xffb56ac8) // Found @0xff851578
  60 DEF(active_viewport_buffer                  ,0x000020d8) // Found @0xff8512ec
  61 // Camera appears to have only 1 RAW buffer @ 0x41bded00 (Found @0xffb1bfcc)
  62 DEF(fileio_semaphore                        ,0x00002920) // Found @0xff86d72c
  63 DEF(exmem_alloc_table                       ,0x0003a11c) // Found @0xff8844e4
  64 DEF(exmem_types_table                       ,0xffc2ccd4) // Found @0x00002d00
  65 DEF_CONST(exmem_type_count                  ,0x00000014)
  66 DEF(imager_active                           ,0x0000200c) // Found @0xff84e034 (0x2008 + 4)
  67 DEF_CONST(uiprop_count                      ,0x00000081) // Found @0xff98deb8
  68 
  69 // Values below go in 'lib.c':
  70 //void *vid_get_bitmap_fb()        { return (void*)0x403f1000; }             // Found @0xff85b414
  71 //void *vid_get_viewport_fb()      { return (void*)0x40546b80; }             // Found @0xffb18b64
  72 DEF(viewport_fb_d                           ,0x000029c8) // Found 0x2970 (@0xff870968) + 0x58 (@0xff8709a0)
  73 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2970+0x58)); } // Found @0xff870968 & 0xff8709a0
  74 DEF(jpeg_count_str                          ,0x000b3b14) // Found @0xff9f76c4
  75 //char *camera_jpeg_count_str()    { return (char*)0x000b3b14; }             // Found @0xff9f76c4
  76 //int get_flash_params_count(void) { return 0xa0; }                          // Found @0xff98e87c
  77 
  78 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  79 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffb57a2c, levent 0x90a
  80 //#define SD_READONLY_IDX     2
  81 //#define USB_MASK            0x04000000 // Found @0xffb57a54, levent 0x902
  82 //#define USB_IDX             2
  83 //#define BATTCOVER_FLAG      0x00040000 // Found @0xffb57a34, levent 0x905
  84 //#define BATTCOVER_IDX       2
  85 //#define ANALOG_AV_FLAG      0x00008000 // Found @0xffb57994, levent 0x900 (non-inverted logic)
  86 //#define ANALOG_AV_IDX       1
  87 
  88 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  89 //static KeyMap keymap[] = {
  90 //    { 2, KEY_SHOOT_FULL      ,0x0000000c }, // Found @0xffb579c4, levent 0x01
  91 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000008 }, // Found @0xffb579c4, levent 0x01
  92 //    { 2, KEY_SHOOT_HALF      ,0x00000004 }, // Found @0xffb579bc, levent 0x00
  93 //    { 2, KEY_ZOOM_IN         ,0x00000010 }, // Found @0xffb579cc, levent 0x02
  94 //    { 2, KEY_ZOOM_OUT        ,0x00000020 }, // Found @0xffb579d4, levent 0x03
  95 //    { 2, KEY_POWER           ,0x00000040 }, // Found @0xffb579dc, levent 0x600
  96 //    { 2, KEY_PLAYBACK        ,0x00000080 }, // Found @0xffb579e4, levent 0x601
  97 //    { 2, KEY_UP              ,0x00000100 }, // Found @0xffb579ec, levent 0x04
  98 //    { 2, KEY_DOWN            ,0x00000200 }, // Found @0xffb579f4, levent 0x05
  99 //    { 2, KEY_RIGHT           ,0x00000400 }, // Found @0xffb579fc, levent 0x07
 100 //    { 2, KEY_LEFT            ,0x00000800 }, // Found @0xffb57a04, levent 0x06
 101 //    { 2, KEY_SET             ,0x00001000 }, // Found @0xffb57a0c, levent 0x08
 102 //    { 2, KEY_MENU            ,0x00002000 }, // Found @0xffb57a14, levent 0x09
 103 //    { 2, KEY_DISPLAY         ,0x00004000 }, // Found @0xffb57a1c, levent 0x0a
 104 //    { 0, 0, 0 }
 105 //};
 106 
 107 // Values below go in 'platform_camera.h':
 108 //#define CAM_DRYOS         1
 109 //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
 110 //#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher
 111 //#define CAM_RAW_ROWPIX    4104 // Found @0xff937e98
 112 //#define CAM_RAW_ROWS      3048 // Found @0xff937ea4
 113 //#undef  CAM_UNCACHED_BIT
 114 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff83a2e0
 115 //#define CAM_DATE_FOLDER_NAMING 0x400 // Found @0xffa755fc (pass as 3rd param to GetImageFolder)
 116 //#define PARAM_CAMERA_NAME 4 // Found @0xffbe595c
 117 
 118 // Known propcases
 119 // //      PROPCASE_AFSTEP 13
 120 // #define PROPCASE_FOCUS_STATE 18
 121 // #define PROPCASE_AV 23
 122 // #define PROPCASE_BV 34
 123 // //      PROPCASE_DELTA_DIGITALGAIN 77
 124 // #define PROPCASE_DELTA_SV 79
 125 // //      PROPCASE_DELTA_ND 80
 126 // #define PROPCASE_EV_CORRECTION_2 211
 127 // #define PROPCASE_ORIENTATION_SENSOR 223
 128 // #define PROPCASE_SV_MARKET 250
 129 // //      PROPCASE_SVFIX 251
 130 // #define PROPCASE_TV 266
 131 // Guessed propset: 4, 5
 132 
 133 // Misc stuff
 134 DEF(ctypes, 0xffb5634a)
 135 
 136 // EXMEM types:
 137 // EXMEM_RAMDISK        0
 138 // EXMEM_COM            1
 139 // EXMEM_FORMATTER      2
 140 // EXMEM_SHADING        3
 141 // EXMEM_FAMODE         4
 142 // EXMEM_FIRMUP         5
 143 // EXMEM_FIRMUP_VRAM    6
 144 // EXMEM_FIRMUP_INFLATE 7
 145 // EXMEM_DVLPWORK       8
 146 // EXMEM_EVF            9
 147 // EXMEM_SCRIPT         10
 148 // EXMEM_GPS            11
 149 // EXMEM_FILESTORE      12
 150 // EXMEM_MOVIE_REC      13
 151 // EXMEM_MOVIE_PLY      14
 152 // EXMEM_WIDE           15
 153 // EXMEM_NARROW         16
 154 // EXMEM_SUPER_NARROW   17
 155 // EXMEM_CRAW_REC       18
 156 // EXMEM_PCEVF          19
 157 
 158 // ISR flag: 0x1968, pointer to current task's control block: 0x1964
 159 // pointer to TCB area: 0x19f0, found @ 0xff816984
 160 
 161 // LED table init @ 0xff914f54
 162 // LED #1: 0xc0220014, offset 0x4
 163 // LED #2: 0xc0220010, offset 0x38
 164 // LED #3: 0xc022000c, offset 0x1d8
 165 
 166 // For capt_seq.c
 167 DEF(_nrflag,0x69c4) // Found @ ff96b9a4 (0x69bc) & ff96b9e4 (+0x08)
 168 //static long *nrflag = (long*)(0x69bc+0x08);  // Found @ ff96b9a4 & ff96b9e4
 169 //#define NR_AUTO (0)                          // have to explictly reset value back to 0 to enable auto
 170 
 171 // Stubs below matched 100%.
 172 //    Name                                     Address                Comp to stubs_entry_2.S
 173 NHSTUB(AllocateUncacheableMemory              ,0xff83a298) //112
 174 NHSTUB(Close                                  ,0xff836a34) //120
 175 NHSTUB(CreateBinarySemaphore                  ,0xff839a54) //115
 176 NHSTUB(CreateTask                             ,0xff81e9b0) //120
 177 NHSTUB(DebugAssert                            ,0xff81ec88) //107
 178 NHSTUB(DeleteDirectory_Fut                    ,0xff836430) //116
 179 NHSTUB(DeleteFile_Fut                         ,0xff83634c) //112
 180 NHSTUB(DoAELock                               ,0xff838498) //120
 181 NHSTUB(DoAFLock                               ,0xff8381a4) //120
 182 NHSTUB(EnterToCompensationEVF                 ,0xff838400) //104
 183 NHSTUB(ExecuteEventProcedure                  ,0xff886224) //104
 184 NHSTUB(ExitFromCompensationEVF                ,0xff838444) //104
 185 NHSTUB(ExitTask                               ,0xff81ec40) //120
 186 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff846884) //104
 187 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff84695c) //104
 188 NHSTUB(Fclose_Fut                             ,0xff8364c8) //120
 189 NHSTUB(Feof_Fut                               ,0xff8366b4) //  1
 190 NHSTUB(Fflush_Fut                             ,0xff8366f0) //  1
 191 NHSTUB(Fgets_Fut                              ,0xff83661c) //  6
 192 NHSTUB(Fopen_Fut                              ,0xff836488) //120
 193 NHSTUB(Fread_Fut                              ,0xff836574) //120
 194 NHSTUB(FreeUncacheableMemory                  ,0xff83a2d8) //112
 195 NHSTUB(Fseek_Fut                              ,0xff836668) //120
 196 NHSTUB(Fwrite_Fut                             ,0xff8365c8) //120
 197 NHSTUB(GetCCDTemperature                      ,0xff8617d0) //102
 198 NHSTUB(GetCurrentAvValue                      ,0xff95f4d4) //120
 199 NHSTUB(GetCurrentShutterSpeed                 ,0xff8a8cf4) //120
 200 NHSTUB(GetDrive_ClusterSize                   ,0xff86f2cc) //122
 201 NHSTUB(GetDrive_FreeClusters                  ,0xff86f324) //119
 202 NHSTUB(GetDrive_TotalClusters                 ,0xff86f2fc) //119
 203 NHSTUB(GetFocusLensSubjectDistance            ,0xff95e598) //102
 204 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff95e9f8) //  3
 205 NHSTUB(GetImageFolder                         ,0xff93ed28) //122
 206 NHSTUB(GetKbdState                            ,0xff85f968) //109
 207 NHSTUB(GetMemInfo                             ,0xff81a29c) //115
 208 NHSTUB(GetOpticalTemperature                  ,0xff8618bc) //120
 209 NHSTUB(GetParameterData                       ,0xff98e83c) //101
 210 NHSTUB(GetPropertyCase                        ,0xff889f8c) //102
 211 NHSTUB(GetSystemTime                          ,0xffab04d8) //120
 212 NHSTUB(GetVRAMHPixelsSize                     ,0xff8537e8) //120
 213 NHSTUB(GetVRAMVPixelsSize                     ,0xff8537f4) //120
 214 NHSTUB(GetZoomLensCurrentPoint                ,0xff9608b8) //120
 215 NHSTUB(GetZoomLensCurrentPosition             ,0xffa9dd6c) //102
 216 NHSTUB(GiveSemaphore                          ,0xff839c90) //120
 217 NHSTUB(IsStrobeChargeCompleted                ,0xff8d5c10) //102
 218 NHSTUB(LEDDrive                               ,0xff85ef84) //120
 219 NHSTUB(LocalTime                              ,0xff883b14) //115
 220 NHSTUB(LockMainPower                          ,0xff88ee44) //120
 221 NHSTUB(MakeDirectory_Fut                      ,0xff8363c0) //116
 222 NHSTUB(MakeSDCardBootable                     ,0xff86f55c) //105
 223 NHSTUB(MoveFocusLensToDistance                ,0xffb14ec0) //102
 224 NHSTUB(MoveIrisWithAv                         ,0xffaadb68) //120
 225 NHSTUB(MoveZoomLensWithPoint                  ,0xffaae210) //120
 226 NHSTUB(Open                                   ,0xff83696c) //120
 227 NHSTUB(PB2Rec                                 ,0xff89200c) //104
 228 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff8757d8) //120
 229 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff8757b0) //120
 230 NHSTUB(PT_PlaySound                           ,0xff87eb58) //122
 231 NHSTUB(PostLogicalEventForNotPowerType        ,0xff88e610) //120
 232 NHSTUB(PostLogicalEventToUI                   ,0xff88e65c) //120
 233 NHSTUB(PutInNdFilter                          ,0xffaae058) //102
 234 NHSTUB(PutOutNdFilter                         ,0xffaae07c) //102
 235 NHSTUB(Read                                   ,0xff81ad58) //120
 236 NHSTUB(ReadFastDir                            ,0xffa8b440) //  6
 237 NHSTUB(Rec2PB                                 ,0xff89204c) //104
 238 NHSTUB(RefreshPhysicalScreen                  ,0xff8a276c) //104
 239 NHSTUB(RenameFile_Fut                         ,0xff8362b8) //116
 240 NHSTUB(Restart                                ,0xff83baa8) //122
 241 NHSTUB(ScreenLock                             ,0xff8a39a4) //117
 242 NHSTUB(ScreenUnlock                           ,0xff8a3a08) //117
 243 NHSTUB(SetAE_ShutterSpeed                     ,0xffb17d3c) //102
 244 NHSTUB(SetAutoShutdownTime                    ,0xff88eeb8) //120
 245 NHSTUB(SetCurrentCaptureModeType              ,0xff895bac) //120
 246 NHSTUB(SetFileAttributes                      ,0xff836e38) //  6
 247 NHSTUB(SetFileTimeStamp                       ,0xff836dc0) //  6
 248 NHSTUB(SetLogicalEventActive                  ,0xff88ebbc) //120
 249 NHSTUB(SetParameterData                       ,0xff98e7ac) //101
 250 NHSTUB(SetPropertyCase                        ,0xff889e70) //102
 251 NHSTUB(SetScriptMode                          ,0xff88ec0c) //120
 252 NHSTUB(SleepTask                              ,0xff839f3c) //120
 253 NHSTUB(TakeSemaphore                          ,0xff839bc0) //120
 254 NHSTUB(TurnOffBackLight                       ,0xff89b44c) //104
 255 NHSTUB(TurnOnBackLight                        ,0xff89b434) //104
 256 NHSTUB(TurnOnDisplay                          ,0xff85b84c) //120
 257 NHSTUB(TurnOffDisplay                         ,0xff85b85c) //120
 258 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff97fdac) //120
 259 NHSTUB(UnlockAE                               ,0xff8384bc) //120
 260 NHSTUB(UnlockAF                               ,0xff8381dc) //120
 261 NHSTUB(UnlockMainPower                        ,0xff88ed98) //120
 262 NHSTUB(UnsetZoomForMovie                      ,0xff997d88) //104
 263 NHSTUB(VbattGet                               ,0xff832c94) //120
 264 NHSTUB(Write                                  ,0xff836a88) //120
 265 NHSTUB(WriteSDCard                            ,0xff94ec14) //108
 266 NHSTUB(_log                                   ,0xffb52e70) //111
 267 NHSTUB(_log10                                 ,0xffb533b0) //112
 268 NHSTUB(_pow                                   ,0xffb53528) //121
 269 NHSTUB(_sqrt                                  ,0xffb5514c) //  6
 270 NHSTUB(add_ptp_handler                        ,0xffa41320) //121
 271 NHSTUB(apex2us                                ,0xffa05df0) //121
 272 NHSTUB(close                                  ,0xff81abb4) //109
 273 NHSTUB(err_init_task                          ,0xff815fd4) //111
 274 NHSTUB(exmem_alloc                            ,0xff884adc) //101
 275 NHSTUB(exmem_free                             ,0xff884b54) //101
 276 NHSTUB(free                                   ,0xff814244) //112
 277 NHSTUB(get_nd_value                           ,0xffa9b87c) //123
 278 NHSTUB(get_current_nd_value                   ,0xffa9b81c) //122
 279 NHSTUB(kbd_p1_f                               ,0xff83438c) //109
 280 NHSTUB(kbd_p1_f_cont                          ,0xff834398) //109
 281 NHSTUB(kbd_p2_f                               ,0xff833ba0) //109
 282 NHSTUB(kbd_read_keys                          ,0xff834310) //109
 283 NHSTUB(kbd_read_keys_r2                       ,0xff85f3c4) //109
 284 NHSTUB(lseek                                  ,0xff836c50) //120
 285 NHSTUB(malloc                                 ,0xff8141ec) //112
 286 NHSTUB(memcmp                                 ,0xff8208bc) //120
 287 NHSTUB(memcpy                                 ,0xff83f8f0) //120
 288 NHSTUB(memset                                 ,0xffa04df0) //120
 289 NHSTUB(mkdir                                  ,0xff836ed0) //109
 290 NHSTUB(mktime_ext                             ,0xff8a47e8) //  1
 291 NHSTUB(open                                   ,0xff81ab04) //109
 292 NHSTUB(OpenFastDir                            ,0xffa8b2ec) //  6
 293 NHSTUB(closedir                               ,0xffa8b29c) //121
 294 NHSTUB(get_fstype                             ,0xff86f344) //122
 295 NHSTUB(qsort                                  ,0xffaf6c54) //  6
 296 NHSTUB(rand                                   ,0xffa04f30) //121
 297 NHSTUB(realloc                                ,0xffa04e6c) //115
 298 NHSTUB(reboot_fw_update                       ,0xffa908dc) //106
 299 NHSTUB(set_control_event                      ,0xff88e880) //111
 300 NHSTUB(srand                                  ,0xffa04f24) //122
 301 NHSTUB(stat                                   ,0xff836c98) //109
 302 NHSTUB(strcat                                 ,0xff8a3fa0) //  1
 303 NHSTUB(strchr                                 ,0xff8140b8) //  1
 304 NHSTUB(strcmp                                 ,0xff820878) //120
 305 NHSTUB(strcpy                                 ,0xff820860) //120
 306 NHSTUB(strftime                               ,0xff8a41e8) //113
 307 NHSTUB(strlen                                 ,0xff814104) //120
 308 NHSTUB(strncmp                                ,0xff81406c) //  1
 309 NHSTUB(strncpy                                ,0xff814030) //  1
 310 NHSTUB(strrchr                                ,0xff8140dc) //  1
 311 NHSTUB(strtol                                 ,0xff83fbf0) //101
 312 NHSTUB(strtolx                                ,0xff83f9f4) //109
 313    DEF(task_CaptSeq                           ,0xff877db0) //120
 314    DEF(task_DvlpSeqTask                       ,0xff8792bc) //120
 315    DEF(task_ExpDrv                            ,0xff8bb350) //120
 316    DEF(task_FileWrite                         ,0xffa892f0) //120
 317    DEF(task_InitFileModules                   ,0xff8928c0) //120
 318    DEF(task_MovieRecord                       ,0xff9645bc) //120
 319    DEF(task_PhySw                             ,0xff833ecc) //120
 320 NHSTUB(time                                   ,0xff8840f0) //109
 321 NHSTUB(vsprintf                               ,0xff820820) //115
 322 NHSTUB(EngDrvRead                             ,0xff8351d8) //102
 323 NHSTUB(PTM_GetCurrentItem                     ,0xff88f830) //105
 324 NHSTUB(CancelHPTimer                          ,0xff88590c) //119
 325 NHSTUB(SetHPTimerAfterNow                     ,0xff885804) //119
 326 NHSTUB(PT_MFOn                                ,0xff875868) //120
 327 NHSTUB(PT_MFOff                               ,0xff875878) //120
 328 NHSTUB(GetAdChValue                           ,0xff85cd20) //120
 329 NHSTUB(get_ptp_buf_size                       ,0xff8ff6a8) //122
 330 NHSTUB(get_ptp_file_buf                       ,0xffa42ea0) //121

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