root/platform/a2200/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 R47 (DRYOS version 2.3, release #0047)
   6 //   Firmware Ver GM1.00D   // Found @ 0xff889bb0, "GM1.00D" @ 0xff889bbd
   7 //   Firmware build timestamp: Jun 10 2011 14:20:32
   8 //   Canon PowerShot A2200
   9 
  10 // Values for makefile.inc
  11 //   PLATFORMOSVER = 47
  12 //   PLATFORMID = 12842 (0x322a) // Found @ 0xfffe0040
  13 //   MAXRAMADDR = 0x03ffffff
  14 //   MEMISOSTART = 0x001698cc
  15 //   KEYSYS = d4c                // Found @ 0xffff350c
  16 //   NEED_ENCODED_DISKBOOT = 6   // Found @ 0xffff351c
  17 //   ARAM_HEAP_START = 0x34e000  // Found @ 0xff97247c
  18 //   ARAM_HEAP_SIZE  = 0x32000   // Found @ 0xff97243c
  19 
  20 // Detected address ranges:
  21 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  22 // RAM data 0x00001900 - 0x0000ecb4 copied from 0xffc29e9c (  54196 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 
  27 // Check of modemap from 'platform/CAMERA/shooting.c':
  28 // Firmware modemap table found @ffac135c -> ffbe5148
  29 // No problems found with modemap table.
  30 
  31 // Values below can be overridden in 'stubs_min.S':
  32 DEF(physw_status                            ,0x00032914) // Found @0xff834658
  33 DEF(physw_run                               ,0x00001c30) // Found @0xff834218
  34 DEF(physw_sleep_delay                       ,0x00001c38) // Found @0xff834218
  35 DEF(levent_table                            ,0xffb97b9c) // Found @0xffb97b9c
  36 DEF(FlashParamsTable                        ,0xffbe5384) // Found @0xffbe5384
  37 DEF(movie_status                            ,0x000065ec) // Found @0xff96367c
  38 DEF(video_compression_rate                  ,0x0000662c) // Found @0xff963934
  39 DEF(full_screen_refresh                     ,0x00009010) // Found @0xffa006a8
  40 DEF(canon_menu_active                       ,0x00002eec) // Found @0xff88b5b8
  41 DEF(canon_shoot_menu_active                 ,0x00007aa1) // Found @0xff9a7580
  42 DEF(playrec_mode                            ,0x00002c18) // Found @0xff87da48
  43 DEF(zoom_status                             ,0x0000cb38) // Found @0xffac4a30
  44 DEF(some_flag_for_af_scan                   ,0x000069c4) // Found @0xff967364
  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 8 entries in the table - set NUM_FL to 8
  48 DEF(focus_len_table                         ,0xfffe2a98) // Found @0xfffe2a98
  49 DEF(zoom_busy                               ,0x00006544) // Found @0xff9600c0
  50 DEF(focus_busy                              ,0x00006454) // Found @0xff95d4a0
  51 DEF(recreview_hold                          ,0x000034c0) // Found @0xff898ac8
  52 // Palette colour tables  found @ 0xffbad940
  53 DEF(palette_control                         ,0x00009010) // Found @0xffa00624
  54 DEF(active_palette_buffer                   ,0x00009018) // Found @0xffa00628
  55 DEF(palette_buffer_ptr                      ,0x0000901c) // Found @0xffa009cc
  56 DEF(palette_buffer                          ,0x000b41e4) // Found @0xffa009dc
  57 // Offset from start of palette_buffer to color data = 8 (Found @0xffaf5910)
  58 DEF(viewport_buffers                        ,0xffb552d0) // Found @0xff85198c
  59 DEF(active_viewport_buffer                  ,0x000020d0) // Found @0xff851700
  60 // Camera appears to have only 1 RAW buffer @ 0x421316c0 (Found @0xffb1a788)
  61 DEF(fileio_semaphore                        ,0x0000294c) // Found @0xff86e108
  62 DEF(exmem_alloc_table                       ,0x0003a31c) // Found @0xff885078
  63 DEF(exmem_types_table                       ,0xffc2b2cc) // Found @0x00002d30
  64 DEF_CONST(exmem_type_count                  ,0x00000014)
  65 DEF(imager_active                           ,0x0000200c) // Found @0xff84e430 (0x2008 + 4)
  66 DEF_CONST(uiprop_count                      ,0x00000081) // Found @0xff98dbe8
  67 
  68 // Values below go in 'lib.c':
  69 //void *vid_get_bitmap_fb()        { return (void*)0x403f1000; }             // Found @0xff85b81c
  70 //void *vid_get_viewport_fb()      { return (void*)0x40546b80; }             // Found @0xffb1731c
  71 DEF(viewport_fb_d                           ,0x000029f8) // Found 0x29a0 (@0xff871344) + 0x58 (@0xff87137c)
  72 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x29a0+0x58)); } // Found @0xff871344 & 0xff87137c
  73 DEF(jpeg_count_str                          ,0x000b3b14) // Found @0xff9f71c8
  74 //char *camera_jpeg_count_str()    { return (char*)0x000b3b14; }             // Found @0xff9f71c8
  75 //int get_flash_params_count(void) { return 0xa0; }                          // Found @0xff98e5ac
  76 
  77 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  78 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffb5626c, levent 0x90a
  79 //#define SD_READONLY_IDX     2
  80 //#define USB_MASK            0x04000000 // Found @0xffb56294, levent 0x902
  81 //#define USB_IDX             2
  82 //#define BATTCOVER_FLAG      0x00040000 // Found @0xffb56274, levent 0x905
  83 //#define BATTCOVER_IDX       2
  84 //#define ANALOG_AV_FLAG      0x00800000 // Found @0xffb5625c, levent 0x900 (non-inverted logic)
  85 //#define ANALOG_AV_IDX       1
  86 
  87 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  88 //static KeyMap keymap[] = {
  89 //    { 0, KEY_PLAYBACK        ,0x01000000 }, // Found @0xffb561dc, levent 0x601
  90 //    { 0, KEY_POWER           ,0x02000000 }, // Found @0xffb561e4, levent 0x600
  91 //    { 0, KEY_MENU            ,0x04000000 }, // Found @0xffb561ec, levent 0x09
  92 //    { 1, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffb56214, levent 0x01
  93 //    { 1, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffb56214, levent 0x01
  94 //    { 1, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffb5620c, levent 0x00
  95 //    { 1, KEY_UP              ,0x00001000 }, // Found @0xffb5621c, levent 0x04
  96 //    { 1, KEY_RIGHT           ,0x00002000 }, // Found @0xffb56224, levent 0x07
  97 //    { 1, KEY_DOWN            ,0x00004000 }, // Found @0xffb5622c, levent 0x05
  98 //    { 1, KEY_LEFT            ,0x00008000 }, // Found @0xffb56234, levent 0x06
  99 //    { 1, KEY_ZOOM_OUT        ,0x00010000 }, // Found @0xffb5623c, levent 0x03
 100 //    { 1, KEY_ZOOM_IN         ,0x00020000 }, // Found @0xffb56244, levent 0x02
 101 //    { 1, KEY_SET             ,0x00040000 }, // Found @0xffb5624c, levent 0x08
 102 //    { 1, KEY_DISPLAY         ,0x00080000 }, // Found @0xffb56254, levent 0x0a
 103 //    { 0, 0, 0 }
 104 //};
 105 
 106 // Values below go in 'platform_camera.h':
 107 //#define CAM_DRYOS         1
 108 //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
 109 //#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher
 110 //#define CAM_RAW_ROWPIX    4416 // Found @0xff937b24
 111 //#define CAM_RAW_ROWS      3296 // Found @0xff937b2c
 112 //#undef  CAM_UNCACHED_BIT
 113 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff83a6a8
 114 //#define CAM_DATE_FOLDER_NAMING 0x400 // Found @0xffa751d0 (pass as 3rd param to GetImageFolder)
 115 //#define PARAM_CAMERA_NAME 4 // Found @0xffbe451c
 116 
 117 // Known propcases
 118 // //      PROPCASE_AFSTEP 13
 119 // #define PROPCASE_FOCUS_STATE 18
 120 // #define PROPCASE_AV 23
 121 // #define PROPCASE_BV 34
 122 // //      PROPCASE_DELTA_DIGITALGAIN 77
 123 // #define PROPCASE_DELTA_SV 79
 124 // //      PROPCASE_DELTA_ND 80
 125 // #define PROPCASE_EV_CORRECTION_2 211
 126 // #define PROPCASE_ORIENTATION_SENSOR 223
 127 // #define PROPCASE_SV_MARKET 250
 128 // //      PROPCASE_SVFIX 251
 129 // #define PROPCASE_TV 266
 130 // Guessed propset: 4, 5
 131 
 132 // Misc stuff
 133 DEF(ctypes, 0xffb54b52)
 134 
 135 // EXMEM types:
 136 // EXMEM_RAMDISK        0
 137 // EXMEM_COM            1
 138 // EXMEM_FORMATTER      2
 139 // EXMEM_SHADING        3
 140 // EXMEM_FAMODE         4
 141 // EXMEM_FIRMUP         5
 142 // EXMEM_FIRMUP_VRAM    6
 143 // EXMEM_FIRMUP_INFLATE 7
 144 // EXMEM_DVLPWORK       8
 145 // EXMEM_EVF            9
 146 // EXMEM_SCRIPT         10
 147 // EXMEM_GPS            11
 148 // EXMEM_FILESTORE      12
 149 // EXMEM_MOVIE_REC      13
 150 // EXMEM_MOVIE_PLY      14
 151 // EXMEM_WIDE           15
 152 // EXMEM_NARROW         16
 153 // EXMEM_SUPER_NARROW   17
 154 // EXMEM_CRAW_REC       18
 155 // EXMEM_PCEVF          19
 156 
 157 // ISR flag: 0x1968, pointer to current task's control block: 0x1964
 158 // pointer to TCB area: 0x19f0, found @ 0xff816984
 159 
 160 // LED table init @ 0xff9157fc
 161 // LED #1: 0xc0220130, offset 0x4
 162 // LED #2: 0xc02200ac, offset 0x1d8
 163 
 164 // For capt_seq.c
 165 DEF(_nrflag,0x6a00) // Found @ ff96b6d0 (0x69f8) & ff96b70c (+0x08)
 166 //static long *nrflag = (long*)(0x69f8+0x08);  // Found @ ff96b6d0 & ff96b70c
 167 //#define NR_AUTO (0)                          // have to explictly reset value back to 0 to enable auto
 168 
 169 // Stubs below matched 100%.
 170 //    Name                                     Address                Comp to stubs_entry_2.S
 171 NHSTUB(AllocateUncacheableMemory              ,0xff83a660) //112
 172 NHSTUB(Close                                  ,0xff836d7c) //120
 173 NHSTUB(CreateBinarySemaphore                  ,0xff839e1c) //115
 174 NHSTUB(CreateTask                             ,0xff81e9b0) //120
 175 NHSTUB(DebugAssert                            ,0xff81ec88) //107
 176 NHSTUB(DeleteDirectory_Fut                    ,0xff836778) //116
 177 NHSTUB(DeleteFile_Fut                         ,0xff836694) //112
 178 NHSTUB(DoAELock                               ,0xff8387bc) //120
 179 NHSTUB(DoAFLock                               ,0xff8384c8) //120
 180 NHSTUB(EnterToCompensationEVF                 ,0xff838724) //104
 181 NHSTUB(ExecuteEventProcedure                  ,0xff886db8) //104
 182 NHSTUB(ExitFromCompensationEVF                ,0xff838768) //104
 183 NHSTUB(ExitTask                               ,0xff81ec40) //120
 184 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff846c78) //104
 185 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff846d50) //104
 186 NHSTUB(Fclose_Fut                             ,0xff836810) //120
 187 NHSTUB(Feof_Fut                               ,0xff8369fc) //  1
 188 NHSTUB(Fflush_Fut                             ,0xff836a38) //  1
 189 NHSTUB(Fgets_Fut                              ,0xff836964) //  6
 190 NHSTUB(Fopen_Fut                              ,0xff8367d0) //120
 191 NHSTUB(Fread_Fut                              ,0xff8368bc) //120
 192 NHSTUB(FreeUncacheableMemory                  ,0xff83a6a0) //112
 193 NHSTUB(Fseek_Fut                              ,0xff8369b0) //120
 194 NHSTUB(Fwrite_Fut                             ,0xff836910) //120
 195 NHSTUB(GetBatteryTemperature                  ,0xff8621dc) //102
 196 NHSTUB(GetCCDTemperature                      ,0xff862168) //102
 197 NHSTUB(GetCurrentAvValue                      ,0xff95f060) //120
 198 NHSTUB(GetCurrentShutterSpeed                 ,0xff8a99f0) //120
 199 NHSTUB(GetDrive_ClusterSize                   ,0xff86fca8) //122
 200 NHSTUB(GetDrive_FreeClusters                  ,0xff86fd00) //119
 201 NHSTUB(GetDrive_TotalClusters                 ,0xff86fcd8) //119
 202 NHSTUB(GetFocusLensSubjectDistance            ,0xff95e124) //102
 203 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff95e584) //  3
 204 NHSTUB(GetImageFolder                         ,0xff93e9ac) //122
 205 NHSTUB(GetKbdState                            ,0xff8602b4) //109
 206 NHSTUB(GetMemInfo                             ,0xff81a29c) //115
 207 NHSTUB(GetOpticalTemperature                  ,0xff862250) //120
 208 NHSTUB(GetParameterData                       ,0xff98e56c) //101
 209 NHSTUB(GetPropertyCase                        ,0xff88ab20) //102
 210 NHSTUB(GetSystemTime                          ,0xffaafd84) //120
 211 NHSTUB(GetVRAMHPixelsSize                     ,0xff853bf0) //120
 212 NHSTUB(GetVRAMVPixelsSize                     ,0xff853bfc) //120
 213 NHSTUB(GetZoomLensCurrentPoint                ,0xff960444) //120
 214 NHSTUB(GetZoomLensCurrentPosition             ,0xffa9d884) //102
 215 NHSTUB(GiveSemaphore                          ,0xff83a058) //120
 216 NHSTUB(IsStrobeChargeCompleted                ,0xff8d66c4) //102
 217 NHSTUB(LEDDrive                               ,0xff85f8c8) //120
 218 NHSTUB(LocalTime                              ,0xff8846a8) //115
 219 NHSTUB(LockMainPower                          ,0xff88f9dc) //120
 220 NHSTUB(MakeDirectory_Fut                      ,0xff836708) //116
 221 NHSTUB(MakeSDCardBootable                     ,0xff86ff38) //105
 222 NHSTUB(MoveFocusLensToDistance                ,0xffb13678) //102
 223 NHSTUB(MoveIrisWithAv                         ,0xffaad664) //120
 224 NHSTUB(MoveZoomLensWithPoint                  ,0xffaadd0c) //120
 225 NHSTUB(Open                                   ,0xff836cb4) //120
 226 NHSTUB(PB2Rec                                 ,0xff892ba4) //104
 227 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff8761b4) //120
 228 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff87618c) //120
 229 NHSTUB(PT_PlaySound                           ,0xff87f6ec) //122
 230 NHSTUB(PostLogicalEventForNotPowerType        ,0xff88f1a8) //120
 231 NHSTUB(PostLogicalEventToUI                   ,0xff88f1f4) //120
 232 NHSTUB(PutInNdFilter                          ,0xffaadb54) //102
 233 NHSTUB(PutOutNdFilter                         ,0xffaadb78) //102
 234 NHSTUB(Read                                   ,0xff81ad58) //120
 235 NHSTUB(ReadFastDir                            ,0xffa8b014) //  6
 236 NHSTUB(Rec2PB                                 ,0xff892be4) //104
 237 NHSTUB(RefreshPhysicalScreen                  ,0xff8a3468) //104
 238 NHSTUB(RenameFile_Fut                         ,0xff836600) //116
 239 NHSTUB(Restart                                ,0xff83be70) //122
 240 NHSTUB(ScreenLock                             ,0xff8a46a0) //117
 241 NHSTUB(ScreenUnlock                           ,0xff8a4704) //117
 242 NHSTUB(SetAE_ShutterSpeed                     ,0xffb164f4) //102
 243 NHSTUB(SetAutoShutdownTime                    ,0xff88fa50) //120
 244 NHSTUB(SetCurrentCaptureModeType              ,0xff89675c) //120
 245 NHSTUB(SetFileAttributes                      ,0xff837180) //  6
 246 NHSTUB(SetFileTimeStamp                       ,0xff837108) //  6
 247 NHSTUB(SetLogicalEventActive                  ,0xff88f754) //120
 248 NHSTUB(SetParameterData                       ,0xff98e4dc) //101
 249 NHSTUB(SetPropertyCase                        ,0xff88aa04) //102
 250 NHSTUB(SetScriptMode                          ,0xff88f7a4) //120
 251 NHSTUB(SleepTask                              ,0xff83a304) //120
 252 NHSTUB(TakeSemaphore                          ,0xff839f88) //120
 253 NHSTUB(TurnOffBackLight                       ,0xff89beb8) //104
 254 NHSTUB(TurnOnBackLight                        ,0xff89bea0) //104
 255 NHSTUB(TurnOnDisplay                          ,0xff85bc54) //120
 256 NHSTUB(TurnOffDisplay                         ,0xff85bc64) //120
 257 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff97fad8) //120
 258 NHSTUB(UnlockAE                               ,0xff8387e0) //120
 259 NHSTUB(UnlockAF                               ,0xff838500) //120
 260 NHSTUB(UnlockMainPower                        ,0xff88f930) //120
 261 NHSTUB(UnsetZoomForMovie                      ,0xff99797c) //104
 262 NHSTUB(VbattGet                               ,0xff832e20) //120
 263 NHSTUB(Write                                  ,0xff836dd0) //120
 264 NHSTUB(WriteSDCard                            ,0xff94e7cc) //108
 265 NHSTUB(_log                                   ,0xffb51678) //111
 266 NHSTUB(_log10                                 ,0xffb51bb8) //112
 267 NHSTUB(_pow                                   ,0xffb51d30) //121
 268 NHSTUB(_sqrt                                  ,0xffb53954) //  6
 269 NHSTUB(add_ptp_handler                        ,0xffa40c00) //121
 270 NHSTUB(apex2us                                ,0xffa05a10) //121
 271 NHSTUB(close                                  ,0xff81abb4) //109
 272 NHSTUB(err_init_task                          ,0xff815fd4) //111
 273 NHSTUB(exmem_alloc                            ,0xff885670) //101
 274 NHSTUB(exmem_free                             ,0xff8856e8) //101
 275 NHSTUB(free                                   ,0xff814244) //112
 276 NHSTUB(get_nd_value                           ,0xffa9b3d8) //123
 277 NHSTUB(get_current_nd_value                   ,0xffa9b378) //122
 278 NHSTUB(kbd_p1_f                               ,0xff8346d4) //109
 279 NHSTUB(kbd_p1_f_cont                          ,0xff8346e0) //109
 280 NHSTUB(kbd_p2_f                               ,0xff833ee8) //109
 281 NHSTUB(kbd_read_keys                          ,0xff834658) //109
 282 NHSTUB(kbd_read_keys_r2                       ,0xff85fd0c) //109
 283 NHSTUB(lseek                                  ,0xff836f98) //120
 284 NHSTUB(malloc                                 ,0xff8141ec) //112
 285 NHSTUB(memcmp                                 ,0xff8208bc) //120
 286 NHSTUB(memcpy                                 ,0xff83fce0) //120
 287 NHSTUB(memset                                 ,0xffa04a10) //120
 288 NHSTUB(mkdir                                  ,0xff837218) //109
 289 NHSTUB(mktime_ext                             ,0xff8a54e4) //  1
 290 NHSTUB(open                                   ,0xff81ab04) //109
 291 NHSTUB(OpenFastDir                            ,0xffa8aec0) //  6
 292 NHSTUB(closedir                               ,0xffa8ae70) //121
 293 NHSTUB(get_fstype                             ,0xff86fd20) //122
 294 NHSTUB(qsort                                  ,0xffaf6500) //  6
 295 NHSTUB(rand                                   ,0xffa04b50) //121
 296 NHSTUB(realloc                                ,0xffa04a8c) //115
 297 NHSTUB(reboot_fw_update                       ,0xffa904b0) //106
 298 NHSTUB(set_control_event                      ,0xff88f418) //111
 299 NHSTUB(srand                                  ,0xffa04b44) //122
 300 NHSTUB(stat                                   ,0xff836fe0) //109
 301 NHSTUB(strcat                                 ,0xff8a4c9c) //  1
 302 NHSTUB(strchr                                 ,0xff8140b8) //  1
 303 NHSTUB(strcmp                                 ,0xff820878) //120
 304 NHSTUB(strcpy                                 ,0xff820860) //120
 305 NHSTUB(strftime                               ,0xff8a4ee4) //113
 306 NHSTUB(strlen                                 ,0xff814104) //120
 307 NHSTUB(strncmp                                ,0xff81406c) //  1
 308 NHSTUB(strncpy                                ,0xff814030) //  1
 309 NHSTUB(strrchr                                ,0xff8140dc) //  1
 310 NHSTUB(strtol                                 ,0xff83ffe0) //101
 311 NHSTUB(strtolx                                ,0xff83fde4) //109
 312    DEF(task_CaptSeq                           ,0xff8788f0) //120
 313    DEF(task_DvlpSeqTask                       ,0xff879e10) //120
 314    DEF(task_ExpDrv                            ,0xff8bbe80) //120
 315    DEF(task_FileWrite                         ,0xffa88ec4) //120
 316    DEF(task_InitFileModules                   ,0xff8933bc) //120
 317    DEF(task_MovieRecord                       ,0xff964148) //120
 318    DEF(task_PhySw                             ,0xff834214) //120
 319 NHSTUB(time                                   ,0xff884c84) //109
 320 NHSTUB(vsprintf                               ,0xff820820) //115
 321 NHSTUB(EngDrvRead                             ,0xff835520) //102
 322 NHSTUB(PTM_GetCurrentItem                     ,0xff8903c8) //105
 323 NHSTUB(CancelHPTimer                          ,0xff8864a0) //119
 324 NHSTUB(SetHPTimerAfterNow                     ,0xff886398) //119
 325 NHSTUB(PT_MFOn                                ,0xff876244) //120
 326 NHSTUB(PT_MFOff                               ,0xff876254) //120
 327 NHSTUB(GetAdChValue                           ,0xff85d190) //120
 328 NHSTUB(get_ptp_buf_size                       ,0xff8fffd0) //122
 329 NHSTUB(get_ptp_file_buf                       ,0xffa42780) //121

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