source: branches/reyalp-ptp-live/platform/sx130is/sub/101c/stubs_entry.S @ 1911

Revision 1911, 14.7 KB checked in by reyalp, 12 months ago (diff)

update live view branch to trunk 1910

  • Property svn:eol-style set to native
Line 
1// !!! THIS FILE IS GENERATED. DO NOT EDIT. !!!
2#include "stubs_asm.h"
3
4// Camera info:
5//   DRYOS R45 (DRYOS version 2.3, release #0045)
6//   Firmware Ver GM1.01C
7//   Canon PowerShot SX130 IS
8
9// Values for makefile.inc
10//   PLATFORMOSVER = 45
11//   PLATFORMID = 12817 (0x3211) // Found @ 0xfffe0130
12//   MAXRAMADDR = 0x03ffffff
13//   KEYSYS = d4b                // Found @ 0xffff3618
14//   NEED_ENCODED_DISKBOOT = 5   // Found @ 0xffff3628
15
16// Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S'
17//    Name                                     Address      Rule  %  Comp to stubs_entry_2.S
18//NSTUB(DoAFLock                              ,0xff8384d8) //102        *** != 0xff878eec
19//NSTUB(GetBatteryTemperature                 ,0xff863050) //102        *** != 0x00000000
20//NSTUB(UnlockAF                              ,0xff838510) //102        *** != 0xff878efc
21//NSTUB(kbd_pwr_off                           ,0xff85fc24) //  2 60%    *** != 0x00000000
22// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0x00000000
23//NSTUB(rename                                ,0xff8365e0) //  4        *** != 0xff836dd8
24
25// Check of modemap from 'platform/CAMERA/shooting.c':
26// Firmware modemap table found @ff897aac -> ff8943e4 -> ff992a10 -> ffac1640 -> ffbe80ac
27// No problems found with modemap table.
28
29// Values below can be overridden in 'stubs_min.S':
30DEF(physw_status                            ,0x00032b34) // Found @0xff834658
31DEF(physw_run                               ,0x00001c3c) // Found @0xff83424c
32DEF(levent_table                            ,0xffb97a20) // Found @0xffb97a20
33DEF(FlashParamsTable                        ,0xffbe82ac) // Found @0xffbe82ac
34DEF(movie_status                            ,0x00006bac) // Found @0xff9698bc
35DEF(full_screen_refresh                     ,0x00009458) // Found @0xffa09454
36DEF(canon_menu_active                       ,0x00003038) // Found @0xff88e340
37DEF(canon_shoot_menu_active                 ,0x00007d89) // Found @0xff9a95b8
38DEF(playrec_mode                            ,0x00002d64) // Found @0xff880644
39DEF(zoom_status                             ,0x0000ce70) // Found @0xffac4bf0
40DEF(some_flag_for_af_scan                   ,0x00006f68) // Found @0xff96cc44
41// focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
42// each entry contains 3 int value(s), the first is the zoom focus length.
43// there are 128 entries in the table - set NUM_FL to 128
44DEF(focus_len_table                         ,0xfffe94ec) // Found @0xfffe94ec
45DEF(zoom_busy                               ,0x00006a94) // Found @0xff963b60
46DEF(focus_busy                              ,0x00006978) // Found @0xff95fd2c
47//DEF(recreview_hold                          ,0x00003a50) // Found @0xff89d940, ** != ** stubs_min = 0x000079d0 (0x78E4+0xEC)
48DEF(palette_control                         ,0x00009458) // Found @0xffa093d0
49DEF(active_palette_buffer                   ,0x00009460) // Found @0xffa093d4
50DEF(palette_buffer                          ,0x000b3a58) // Found @0xffa0978c
51
52// Values below go in 'lib.c':
53//void *vid_get_bitmap_fb()        { return (void*)0x403f1000; }             // Found @0xff85b5cc
54//void *vid_get_viewport_fb()      { return (void*)0x40507700; }             // Found @0xffb0cec8
55//void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2a70+0x58)); } // Found @0xff872098 & 0xff8720d8
56//char *camera_jpeg_count_str()    { return (char*)0x000b33a4; }             // Found @0xff9ff42c
57//long hook_raw_size()             { return 0x011ca240; }                    // Found @0xffb10350
58//int get_flash_params_count(void) { return 0x9a; }                          // Found @0xff993a48
59
60// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
61//#define SD_READONLY_FLAG    0x00020000 // Found @0xffb4f4e8, levent 0x90a
62//#define SD_READONLY_IDX     2
63//#define USB_MASK            0x04000000 // Found @0xffb4f508, levent 0x902
64//#define USB_IDX             2
65
66// Keymap values for kbd.c. Additional keys may be present, only common values included here.
67//static KeyMap keymap[] = {
68//    { 2, KEY_ZOOM_IN         ,0x00000010 }, // Found @0xffb4f480, levent 0x02
69//    { 2, KEY_ZOOM_OUT        ,0x00000020 }, // Found @0xffb4f488, levent 0x03
70//    { 2, KEY_UP              ,0x00000100 }, // Found @0xffb4f4a0, levent 0x04
71//    { 2, KEY_DOWN            ,0x00000200 }, // Found @0xffb4f4a8, levent 0x05
72//    { 2, KEY_RIGHT           ,0x00000400 }, // Found @0xffb4f4b0, levent 0x07
73//    { 2, KEY_LEFT            ,0x00000800 }, // Found @0xffb4f4b8, levent 0x06
74//    { 2, KEY_SET             ,0x00001000 }, // Found @0xffb4f4c0, levent 0x08
75//    { 2, KEY_MENU            ,0x00002000 }, // Found @0xffb4f4c8, levent 0x09
76//    { 2, KEY_DISPLAY         ,0x00004000 }, // Found @0xffb4f4d0, levent 0x0a
77//    { 2, KEY_SHOOT_FULL      ,0x0000000c }, // Found @0xffb4f478, levent 0x01
78//    { 2, KEY_SHOOT_FULL_ONLY ,0x00000008 }, // Found @0xffb4f478, levent 0x01
79//    { 2, KEY_SHOOT_HALF      ,0x00000004 }, // Found @0xffb4f470, levent 0x00
80//    { 0, 0, 0 }
81//};
82
83// Values below go in 'platform_camera.h':
84//#define CAM_DRYOS         1
85//#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
86//#define CAM_RAW_ROWPIX    4080 // Found @0xff93a260
87//#define CAM_RAW_ROWS      3048 // Found @0xff93a268
88//#undef  CAM_UNCACHED_BIT
89//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff83a6a0
90
91// Misc stuff
92DEF(ctypes, 0xffb4dd8a)
93
94// For capt_seq.c
95//static long *nrflag = (long*)(0x6fa4+0x08);  // Found @ ff97084c & ff970864
96//#define NR_AUTO (0)                          // have to explictly reset value back to 0 to enable auto
97
98// Stubs below matched 100%.
99//    Name                                     Address                Comp to stubs_entry_2.S
100NSTUB(AllocateMemory                          ,0xffab19dc) //101
101NSTUB(AllocateUncacheableMemory               ,0xff83a65c) //112
102NSTUB(Close                                   ,0xff836cfc) //101
103NSTUB(CreateTask                              ,0xff81e8a0) //101
104NSTUB(DebugAssert                             ,0xff81eb78) //111
105NSTUB(DeleteDirectory_Fut                     ,0xff836758) //  1
106NSTUB(DeleteFile_Fut                          ,0xff836674) //112
107NSTUB(EnterToCompensationEVF                  ,0xff838628) //104
108NSTUB(ExecuteEventProcedure                   ,0xff889a98) //  1
109NSTUB(ExitFromCompensationEVF                 ,0xff83866c) //104
110NSTUB(ExitTask                                ,0xff81eb30) //101
111NSTUB(ExpCtrlTool_StartContiAE                ,0xff846a84) //104
112NSTUB(ExpCtrlTool_StopContiAE                 ,0xff846c14) //104
113NSTUB(Fclose_Fut                              ,0xff8367f0) //101
114NSTUB(Feof_Fut                                ,0xff8369dc) //  1
115NSTUB(Fflush_Fut                              ,0xff836a18) //  1
116NSTUB(Fgets_Fut                               ,0xff836944) //  1
117NSTUB(Fopen_Fut                               ,0xff8367b0) //101
118NSTUB(Fread_Fut                               ,0xff83689c) //101
119NSTUB(FreeMemory                              ,0xffab19d4) //101
120NSTUB(FreeUncacheableMemory                   ,0xff83a69c) //112
121NSTUB(Fseek_Fut                               ,0xff836990) //101
122NSTUB(Fwrite_Fut                              ,0xff8368f0) //101
123NSTUB(GetCCDTemperature                       ,0xff862fdc) //102
124NSTUB(GetCurrentAvValue                       ,0xff9625c0) //102
125NSTUB(GetDrive_ClusterSize                    ,0xff8709b8) //  4
126NSTUB(GetDrive_FreeClusters                   ,0xff870a18) //  4
127NSTUB(GetDrive_TotalClusters                  ,0xff8709ec) //  3
128NSTUB(GetFocusLensSubjectDistance             ,0xff9609ac) //102
129NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff960df8) //  3
130NSTUB(GetImageFolder                          ,0xff9419ac) //106
131NSTUB(GetKbdState                             ,0xff85fc0c) //109
132NSTUB(GetMemInfo                              ,0xff81a264) //  3
133NSTUB(GetOpticalTemperature                   ,0xff8630c8) //102
134NSTUB(GetParameterData                        ,0xff993a0c) //101
135NSTUB(GetPropertyCase                         ,0xff88d7a0) //102
136NSTUB(GetSystemTime                           ,0xffab1a34) //101
137NSTUB(GetVRAMHPixelsSize                      ,0xff8525f4) //102
138NSTUB(GetVRAMVPixelsSize                      ,0xff852600) //102
139NSTUB(GetZoomLensCurrentPoint                 ,0xff963fc8) //102
140NSTUB(GetZoomLensCurrentPosition              ,0xffa9fe7c) //102
141NSTUB(GiveSemaphore                           ,0xff83a078) //112
142NSTUB(IsStrobeChargeCompleted                 ,0xff8d7004) //102
143NSTUB(LEDDrive                                ,0xff85f0f4) //103
144NSTUB(LocalTime                               ,0xff8873e8) //  1
145NSTUB(LockMainPower                           ,0xff893fec) //103
146NSTUB(Lseek                                   ,0xff836e18) //101
147NSTUB(MakeDirectory_Fut                       ,0xff8366e8) //  1
148NSTUB(MoveFocusLensToDistance                 ,0xffb0994c) //102
149NSTUB(MoveIrisWithAv                          ,0xffaae374) //102
150NSTUB(MoveZoomLensWithPoint                   ,0xffaaea3c) //102
151NSTUB(NewTaskShell                            ,0xff88d1bc) //103
152NSTUB(Open                                    ,0xff836c90) //101
153NSTUB(PB2Rec                                  ,0xff896f88) //104
154NSTUB(PT_MoveDigitalZoomToWide                ,0xff878e9c) //102
155NSTUB(PT_MoveOpticalZoomAt                    ,0xff878e74) //102
156NSTUB(PT_PlaySound                            ,0xff8824e4) //  4
157NSTUB(PostLogicalEventForNotPowerType         ,0xff891d90) //103
158NSTUB(PostLogicalEventToUI                    ,0xff891ddc) //103
159NSTUB(PutInNdFilter                           ,0xffb07608) //102
160NSTUB(PutOutNdFilter                          ,0xffb07640) //102
161NSTUB(Read                                    ,0xff81ad74) //101
162NSTUB(ReadFastDir                             ,0xffa8c488) //  4
163NSTUB(Rec2PB                                  ,0xff896fc8) //104
164NSTUB(RefreshPhysicalScreen                   ,0xff8a788c) //104
165NSTUB(Remove                                  ,0xff836d30) //  4
166NSTUB(RenameFile_Fut                          ,0xff8365e0) //  4
167NSTUB(Restart                                 ,0xff83be44) //106
168NSTUB(ScreenLock                              ,0xff8a8a1c) //  4
169NSTUB(ScreenUnlock                            ,0xff8a8a80) //  9
170NSTUB(SetAE_ShutterSpeed                      ,0xffb0c094) //102
171NSTUB(SetAutoShutdownTime                     ,0xff894060) //103
172NSTUB(SetCurrentCaptureModeType               ,0xff89abfc) //101
173NSTUB(SetFileAttributes                       ,0xff836ff4) //  3
174NSTUB(SetFileTimeStamp                        ,0xff836f98) //  4
175NSTUB(SetLogicalEventActive                   ,0xff893d38) //101
176NSTUB(SetParameterData                        ,0xff993978) //101
177NSTUB(SetPropertyCase                         ,0xff88d678) //102
178NSTUB(SetScriptMode                           ,0xff893d88) //101
179NSTUB(SleepTask                               ,0xff83a2e0) //101
180NSTUB(TakeSemaphore                           ,0xff839fa8) //101
181NSTUB(TurnOffBackLight                        ,0xff8a0584) //104
182NSTUB(TurnOnBackLight                         ,0xff8a056c) //104
183NSTUB(UIFS_WriteFirmInfoToFile                ,0xff98420c) //101
184NSTUB(UnlockMainPower                         ,0xff893f40) //103
185NSTUB(UpdateMBROnFlash                        ,0xff870838) //105
186NSTUB(VbattGet                                ,0xff832fb4) //103
187NSTUB(Write                                   ,0xff836d8c) //101
188NSTUB(WriteSDCard                             ,0xff950268) //108
189NSTUB(_log                                    ,0xffb4b6d4) //111
190NSTUB(_log10                                  ,0xffb4a618) //112
191NSTUB(_pow                                    ,0xffb4a788) //114
192NSTUB(_sqrt                                   ,0xffb4caa0) //  1
193NSTUB(add_ptp_handler                         ,0xffa4c81c) //  3
194NSTUB(apex2us                                 ,0xffa0e804) //  4
195NSTUB(close                                   ,0xff81ab8c) //  1
196NSTUB(closedir                                ,0xffa8c2e4) //  4
197NSTUB(err_init_task                           ,0xff815fd4) //  4
198NSTUB(exmem_alloc                             ,0xff888334) //103
199NSTUB(free                                    ,0xff814244) //112
200NSTUB(kbd_p1_f                                ,0xff8346d0) //109
201NSTUB(kbd_p1_f_cont                           ,0xff8346dc) //109
202NSTUB(kbd_p2_f                                ,0xff833f18) //109
203NSTUB(kbd_read_keys                           ,0xff834658) //109
204NSTUB(kbd_read_keys_r2                        ,0xff85f5c4) //109
205NSTUB(lseek                                   ,0xff836e18) //101
206NSTUB(malloc                                  ,0xff8141e8) //112
207NSTUB(memcmp                                  ,0xff8206d0) //101
208NSTUB(memcpy                                  ,0xff83fd04) //101
209NSTUB(memset                                  ,0xffa0d800) //101
210NSTUB(mkdir                                   ,0xff837198) //  4
211NSTUB(mktime_ext                              ,0xff8a9824) //  1
212NSTUB(open                                    ,0xff81aadc) //  1
213NSTUB(opendir                                 ,0xffa8c334) //  4
214NSTUB(openfastdir                             ,0xffa8c334) //  4
215NSTUB(qsort                                   ,0xffaf8800) //  4
216NSTUB(rand                                    ,0xffa0d940) //  4
217NSTUB(read                                    ,0xff81ad74) //101
218NSTUB(reboot_fw_update                        ,0xffa918a8) //  4
219NSTUB(set_control_event                       ,0xff893928) //111
220NSTUB(srand                                   ,0xffa0d934) //  4
221NSTUB(stat                                    ,0xff836e60) //  3
222NSTUB(strcat                                  ,0xff8a8fe0) //  1
223NSTUB(strchr                                  ,0xff8140b4) //  1
224NSTUB(strcmp                                  ,0xff82068c) //101
225NSTUB(strcpy                                  ,0xff820674) //101
226NSTUB(strftime                                ,0xff8a922c) //113
227NSTUB(strlen                                  ,0xff814100) //101
228NSTUB(strncmp                                 ,0xff814068) //  1
229NSTUB(strncpy                                 ,0xff81402c) //  1
230NSTUB(strrchr                                 ,0xff8140d8) //  1
231NSTUB(strtol                                  ,0xff83ffe4) //101
232NSTUB(strtolx                                 ,0xff83fde8) //109
233  DEF(task_CaptSeq                            ,0xff87b564) //107
234  DEF(task_ExpDrv                             ,0xff8bfa94) //110
235  DEF(task_InitFileModules                    ,0xff897938) //107
236  DEF(task_MovieRecord                        ,0xff969bc8) //107
237  DEF(task_PhySw                              ,0xff834248) //107
238  DEF(task_RotaryEncoder                      ,0xff85fd80) //107
239NSTUB(time                                    ,0xff8879c8) //  2
240NSTUB(vsprintf                                ,0xff820638) //  4
241NSTUB(write                                   ,0xff836d8c) //101
Note: See TracBrowser for help on using the repository browser.