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(imager_active                           ,0x0000200c) // Found @0xff84e034 (0x2008 + 4)
  64 DEF_CONST(uiprop_count                      ,0x00000081) // Found @0xff98deb8
  65 
  66 // Values below go in 'lib.c':
  67 //void *vid_get_bitmap_fb()        { return (void*)0x403f1000; }             // Found @0xff85b414
  68 //void *vid_get_viewport_fb()      { return (void*)0x40546b80; }             // Found @0xffb18b64
  69 DEF(viewport_fb_d                           ,0x000029c8) // Found 0x2970 (@0xff870968) + 0x58 (@0xff8709a0)
  70 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2970+0x58)); } // Found @0xff870968 & 0xff8709a0
  71 DEF(jpeg_count_str                          ,0x000b3b14) // Found @0xff9f76c4
  72 //char *camera_jpeg_count_str()    { return (char*)0x000b3b14; }             // Found @0xff9f76c4
  73 //int get_flash_params_count(void) { return 0xa0; }                          // Found @0xff98e87c
  74 
  75 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  76 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffb57a2c, levent 0x90a
  77 //#define SD_READONLY_IDX     2
  78 //#define USB_MASK            0x04000000 // Found @0xffb57a54, levent 0x902
  79 //#define USB_IDX             2
  80 //#define BATTCOVER_FLAG      0x00040000 // Found @0xffb57a34, levent 0x905
  81 //#define BATTCOVER_IDX       2
  82 //#define ANALOG_AV_FLAG      0x00008000 // Found @0xffb57994, levent 0x900 (non-inverted logic)
  83 //#define ANALOG_AV_IDX       1
  84 
  85 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  86 //static KeyMap keymap[] = {
  87 //    { 2, KEY_SHOOT_FULL      ,0x0000000c }, // Found @0xffb579c4, levent 0x01
  88 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000008 }, // Found @0xffb579c4, levent 0x01
  89 //    { 2, KEY_SHOOT_HALF      ,0x00000004 }, // Found @0xffb579bc, levent 0x00
  90 //    { 2, KEY_ZOOM_IN         ,0x00000010 }, // Found @0xffb579cc, levent 0x02
  91 //    { 2, KEY_ZOOM_OUT        ,0x00000020 }, // Found @0xffb579d4, levent 0x03
  92 //    { 2, KEY_POWER           ,0x00000040 }, // Found @0xffb579dc, levent 0x600
  93 //    { 2, KEY_PLAYBACK        ,0x00000080 }, // Found @0xffb579e4, levent 0x601
  94 //    { 2, KEY_UP              ,0x00000100 }, // Found @0xffb579ec, levent 0x04
  95 //    { 2, KEY_DOWN            ,0x00000200 }, // Found @0xffb579f4, levent 0x05
  96 //    { 2, KEY_RIGHT           ,0x00000400 }, // Found @0xffb579fc, levent 0x07
  97 //    { 2, KEY_LEFT            ,0x00000800 }, // Found @0xffb57a04, levent 0x06
  98 //    { 2, KEY_SET             ,0x00001000 }, // Found @0xffb57a0c, levent 0x08
  99 //    { 2, KEY_MENU            ,0x00002000 }, // Found @0xffb57a14, levent 0x09
 100 //    { 2, KEY_DISPLAY         ,0x00004000 }, // Found @0xffb57a1c, levent 0x0a
 101 //    { 0, 0, 0 }
 102 //};
 103 
 104 // Values below go in 'platform_camera.h':
 105 //#define CAM_DRYOS         1
 106 //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
 107 //#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher
 108 //#define CAM_RAW_ROWPIX    4104 // Found @0xff937e98
 109 //#define CAM_RAW_ROWS      3048 // Found @0xff937ea4
 110 //#undef  CAM_UNCACHED_BIT
 111 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff83a2e0
 112 //#define CAM_DATE_FOLDER_NAMING 0x400 // Found @0xffa755fc (pass as 3rd param to GetImageFolder)
 113 //#define PARAM_CAMERA_NAME 4 // Found @0xffbe595c
 114 
 115 // Known propcases
 116 // //      PROPCASE_AFSTEP 13
 117 // #define PROPCASE_FOCUS_STATE 18
 118 // #define PROPCASE_AV 23
 119 // #define PROPCASE_BV 34
 120 // //      PROPCASE_DELTA_DIGITALGAIN 77
 121 // #define PROPCASE_DELTA_SV 79
 122 // //      PROPCASE_DELTA_ND 80
 123 // #define PROPCASE_EV_CORRECTION_2 211
 124 // #define PROPCASE_ORIENTATION_SENSOR 223
 125 // #define PROPCASE_SV_MARKET 250
 126 // //      PROPCASE_SVFIX 251
 127 // #define PROPCASE_TV 266
 128 // Guessed propset: 4, 5
 129 
 130 // Misc stuff
 131 DEF(ctypes, 0xffb5634a)
 132 
 133 // ISR flag: 0x1968, pointer to current task's control block: 0x1964
 134 // pointer to TCB area: 0x19f0, found @ 0xff816984
 135 
 136 // LED table init @ 0xff914f54
 137 // LED #1: 0xc0220014, offset 0x4
 138 // LED #2: 0xc0220010, offset 0x38
 139 // LED #3: 0xc022000c, offset 0x1d8
 140 
 141 // For capt_seq.c
 142 DEF(_nrflag,0x69c4) // Found @ ff96b9a4 (0x69bc) & ff96b9e4 (+0x08)
 143 //static long *nrflag = (long*)(0x69bc+0x08);  // Found @ ff96b9a4 & ff96b9e4
 144 //#define NR_AUTO (0)                          // have to explictly reset value back to 0 to enable auto
 145 
 146 // Stubs below matched 100%.
 147 //    Name                                     Address                Comp to stubs_entry_2.S
 148 NHSTUB(AllocateUncacheableMemory              ,0xff83a298) //112
 149 NHSTUB(Close                                  ,0xff836a34) //120
 150 NHSTUB(CreateBinarySemaphore                  ,0xff839a54) //115
 151 NHSTUB(CreateTask                             ,0xff81e9b0) //120
 152 NHSTUB(DebugAssert                            ,0xff81ec88) //107
 153 NHSTUB(DeleteDirectory_Fut                    ,0xff836430) //116
 154 NHSTUB(DeleteFile_Fut                         ,0xff83634c) //112
 155 NHSTUB(DoAELock                               ,0xff838498) //120
 156 NHSTUB(DoAFLock                               ,0xff8381a4) //120
 157 NHSTUB(EnterToCompensationEVF                 ,0xff838400) //104
 158 NHSTUB(ExecuteEventProcedure                  ,0xff886224) //104
 159 NHSTUB(ExitFromCompensationEVF                ,0xff838444) //104
 160 NHSTUB(ExitTask                               ,0xff81ec40) //120
 161 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff846884) //104
 162 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff84695c) //104
 163 NHSTUB(Fclose_Fut                             ,0xff8364c8) //120
 164 NHSTUB(Feof_Fut                               ,0xff8366b4) //  1
 165 NHSTUB(Fflush_Fut                             ,0xff8366f0) //  1
 166 NHSTUB(Fgets_Fut                              ,0xff83661c) //  6
 167 NHSTUB(Fopen_Fut                              ,0xff836488) //120
 168 NHSTUB(Fread_Fut                              ,0xff836574) //120
 169 NHSTUB(FreeUncacheableMemory                  ,0xff83a2d8) //112
 170 NHSTUB(Fseek_Fut                              ,0xff836668) //120
 171 NHSTUB(Fwrite_Fut                             ,0xff8365c8) //120
 172 NHSTUB(GetCCDTemperature                      ,0xff8617d0) //102
 173 NHSTUB(GetCurrentAvValue                      ,0xff95f4d4) //120
 174 NHSTUB(GetCurrentShutterSpeed                 ,0xff8a8cf4) //120
 175 NHSTUB(GetDrive_ClusterSize                   ,0xff86f2cc) //122
 176 NHSTUB(GetDrive_FreeClusters                  ,0xff86f324) //119
 177 NHSTUB(GetDrive_TotalClusters                 ,0xff86f2fc) //119
 178 NHSTUB(GetFocusLensSubjectDistance            ,0xff95e598) //102
 179 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff95e9f8) //  3
 180 NHSTUB(GetImageFolder                         ,0xff93ed28) //122
 181 NHSTUB(GetKbdState                            ,0xff85f968) //109
 182 NHSTUB(GetMemInfo                             ,0xff81a29c) //115
 183 NHSTUB(GetOpticalTemperature                  ,0xff8618bc) //120
 184 NHSTUB(GetParameterData                       ,0xff98e83c) //101
 185 NHSTUB(GetPropertyCase                        ,0xff889f8c) //102
 186 NHSTUB(GetSystemTime                          ,0xffab04d8) //120
 187 NHSTUB(GetVRAMHPixelsSize                     ,0xff8537e8) //120
 188 NHSTUB(GetVRAMVPixelsSize                     ,0xff8537f4) //120
 189 NHSTUB(GetZoomLensCurrentPoint                ,0xff9608b8) //120
 190 NHSTUB(GetZoomLensCurrentPosition             ,0xffa9dd6c) //102
 191 NHSTUB(GiveSemaphore                          ,0xff839c90) //120
 192 NHSTUB(IsStrobeChargeCompleted                ,0xff8d5c10) //102
 193 NHSTUB(LEDDrive                               ,0xff85ef84) //120
 194 NHSTUB(LocalTime                              ,0xff883b14) //115
 195 NHSTUB(LockMainPower                          ,0xff88ee44) //120
 196 NHSTUB(MakeDirectory_Fut                      ,0xff8363c0) //116
 197 NHSTUB(MakeSDCardBootable                     ,0xff86f55c) //105
 198 NHSTUB(MoveFocusLensToDistance                ,0xffb14ec0) //102
 199 NHSTUB(MoveIrisWithAv                         ,0xffaadb68) //120
 200 NHSTUB(MoveZoomLensWithPoint                  ,0xffaae210) //120
 201 NHSTUB(Open                                   ,0xff83696c) //120
 202 NHSTUB(PB2Rec                                 ,0xff89200c) //104
 203 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff8757d8) //120
 204 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff8757b0) //120
 205 NHSTUB(PT_PlaySound                           ,0xff87eb58) //122
 206 NHSTUB(PostLogicalEventForNotPowerType        ,0xff88e610) //120
 207 NHSTUB(PostLogicalEventToUI                   ,0xff88e65c) //120
 208 NHSTUB(PutInNdFilter                          ,0xffaae058) //102
 209 NHSTUB(PutOutNdFilter                         ,0xffaae07c) //102
 210 NHSTUB(Read                                   ,0xff81ad58) //120
 211 NHSTUB(ReadFastDir                            ,0xffa8b440) //  6
 212 NHSTUB(Rec2PB                                 ,0xff89204c) //104
 213 NHSTUB(RefreshPhysicalScreen                  ,0xff8a276c) //104
 214 NHSTUB(RenameFile_Fut                         ,0xff8362b8) //116
 215 NHSTUB(Restart                                ,0xff83baa8) //122
 216 NHSTUB(ScreenLock                             ,0xff8a39a4) //117
 217 NHSTUB(ScreenUnlock                           ,0xff8a3a08) //117
 218 NHSTUB(SetAE_ShutterSpeed                     ,0xffb17d3c) //102
 219 NHSTUB(SetAutoShutdownTime                    ,0xff88eeb8) //120
 220 NHSTUB(SetCurrentCaptureModeType              ,0xff895bac) //120
 221 NHSTUB(SetFileAttributes                      ,0xff836e38) //  6
 222 NHSTUB(SetFileTimeStamp                       ,0xff836dc0) //  6
 223 NHSTUB(SetLogicalEventActive                  ,0xff88ebbc) //120
 224 NHSTUB(SetParameterData                       ,0xff98e7ac) //101
 225 NHSTUB(SetPropertyCase                        ,0xff889e70) //102
 226 NHSTUB(SetScriptMode                          ,0xff88ec0c) //120
 227 NHSTUB(SleepTask                              ,0xff839f3c) //120
 228 NHSTUB(TakeSemaphore                          ,0xff839bc0) //120
 229 NHSTUB(TurnOffBackLight                       ,0xff89b44c) //104
 230 NHSTUB(TurnOnBackLight                        ,0xff89b434) //104
 231 NHSTUB(TurnOnDisplay                          ,0xff85b84c) //120
 232 NHSTUB(TurnOffDisplay                         ,0xff85b85c) //120
 233 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff97fdac) //120
 234 NHSTUB(UnlockAE                               ,0xff8384bc) //120
 235 NHSTUB(UnlockAF                               ,0xff8381dc) //120
 236 NHSTUB(UnlockMainPower                        ,0xff88ed98) //120
 237 NHSTUB(UnsetZoomForMovie                      ,0xff997d88) //104
 238 NHSTUB(VbattGet                               ,0xff832c94) //120
 239 NHSTUB(Write                                  ,0xff836a88) //120
 240 NHSTUB(WriteSDCard                            ,0xff94ec14) //108
 241 NHSTUB(_log                                   ,0xffb52e70) //111
 242 NHSTUB(_log10                                 ,0xffb533b0) //112
 243 NHSTUB(_pow                                   ,0xffb53528) //121
 244 NHSTUB(_sqrt                                  ,0xffb5514c) //  6
 245 NHSTUB(add_ptp_handler                        ,0xffa41320) //121
 246 NHSTUB(apex2us                                ,0xffa05df0) //121
 247 NHSTUB(close                                  ,0xff81abb4) //109
 248 NHSTUB(err_init_task                          ,0xff815fd4) //111
 249 NHSTUB(exmem_alloc                            ,0xff884adc) //101
 250 NHSTUB(exmem_free                             ,0xff884b54) //101
 251 NHSTUB(free                                   ,0xff814244) //112
 252 NHSTUB(get_nd_value                           ,0xffa9b87c) //123
 253 NHSTUB(get_current_nd_value                   ,0xffa9b81c) //122
 254 NHSTUB(kbd_p1_f                               ,0xff83438c) //109
 255 NHSTUB(kbd_p1_f_cont                          ,0xff834398) //109
 256 NHSTUB(kbd_p2_f                               ,0xff833ba0) //109
 257 NHSTUB(kbd_read_keys                          ,0xff834310) //109
 258 NHSTUB(kbd_read_keys_r2                       ,0xff85f3c4) //109
 259 NHSTUB(lseek                                  ,0xff836c50) //120
 260 NHSTUB(malloc                                 ,0xff8141ec) //112
 261 NHSTUB(memcmp                                 ,0xff8208bc) //120
 262 NHSTUB(memcpy                                 ,0xff83f8f0) //120
 263 NHSTUB(memset                                 ,0xffa04df0) //120
 264 NHSTUB(mkdir                                  ,0xff836ed0) //109
 265 NHSTUB(mktime_ext                             ,0xff8a47e8) //  1
 266 NHSTUB(open                                   ,0xff81ab04) //109
 267 NHSTUB(OpenFastDir                            ,0xffa8b2ec) //  6
 268 NHSTUB(closedir                               ,0xffa8b29c) //121
 269 NHSTUB(get_fstype                             ,0xff86f344) //122
 270 NHSTUB(qsort                                  ,0xffaf6c54) //  6
 271 NHSTUB(rand                                   ,0xffa04f30) //121
 272 NHSTUB(realloc                                ,0xffa04e6c) //115
 273 NHSTUB(reboot_fw_update                       ,0xffa908dc) //106
 274 NHSTUB(set_control_event                      ,0xff88e880) //111
 275 NHSTUB(srand                                  ,0xffa04f24) //122
 276 NHSTUB(stat                                   ,0xff836c98) //109
 277 NHSTUB(strcat                                 ,0xff8a3fa0) //  1
 278 NHSTUB(strchr                                 ,0xff8140b8) //  1
 279 NHSTUB(strcmp                                 ,0xff820878) //120
 280 NHSTUB(strcpy                                 ,0xff820860) //120
 281 NHSTUB(strftime                               ,0xff8a41e8) //113
 282 NHSTUB(strlen                                 ,0xff814104) //120
 283 NHSTUB(strncmp                                ,0xff81406c) //  1
 284 NHSTUB(strncpy                                ,0xff814030) //  1
 285 NHSTUB(strrchr                                ,0xff8140dc) //  1
 286 NHSTUB(strtol                                 ,0xff83fbf0) //101
 287 NHSTUB(strtolx                                ,0xff83f9f4) //109
 288    DEF(task_CaptSeq                           ,0xff877db0) //120
 289    DEF(task_DvlpSeqTask                       ,0xff8792bc) //120
 290    DEF(task_ExpDrv                            ,0xff8bb350) //120
 291    DEF(task_FileWrite                         ,0xffa892f0) //120
 292    DEF(task_InitFileModules                   ,0xff8928c0) //120
 293    DEF(task_MovieRecord                       ,0xff9645bc) //120
 294    DEF(task_PhySw                             ,0xff833ecc) //120
 295 NHSTUB(time                                   ,0xff8840f0) //109
 296 NHSTUB(vsprintf                               ,0xff820820) //115
 297 NHSTUB(EngDrvRead                             ,0xff8351d8) //102
 298 NHSTUB(PTM_GetCurrentItem                     ,0xff88f830) //105
 299 NHSTUB(CancelHPTimer                          ,0xff88590c) //119
 300 NHSTUB(SetHPTimerAfterNow                     ,0xff885804) //119
 301 NHSTUB(PT_MFOn                                ,0xff875868) //120
 302 NHSTUB(PT_MFOff                               ,0xff875878) //120
 303 NHSTUB(GetAdChValue                           ,0xff85cd20) //120

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