source: trunk/platform/s5is/sub/101a/stubs_entry.S @ 1855

Revision 1855, 13.3 KB checked in by philmoz, 12 months ago (diff)

Add support for new .FI2 file format in SX260HS camera (DryOS R50).

  • 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 R20 (DRYOS version 2.3, release #0020)
6//   Firmware Ver GM1.01A
7//   Canon PowerShot S5 IS
8
9// Values for makefile.inc
10//   PLATFORMOSVER = 20
11//   PLATFORMID = 12616 (0x3148) // Found @ 0xfffe0130
12//   MAXRAMADDR = 0x03ffffff
13//   KEYSYS = d3                 // Found @ 0xffff31c8
14//   NEED_ENCODED_DISKBOOT = 1   // Found @ 0xffff31a8
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(GetZoomLensCurrentPoint               ,0xff95783c) //102        *** != 0xff957d84
19//NSTUB(GetZoomLensCurrentPosition            ,0xff9576b8) //102        *** != 0xff957d88
20//NSTUB(Lseek                                 ,0xff825ecc) //101        *** != 0xff825f94
21//NSTUB(Read                                  ,0xff81a2c8) //101        *** != 0xff825e34
22//NSTUB(SetParameterData                      ,0xff972f14) //  1 59%    *** != 0xff972f9c
23// ERROR: UIFS_WriteFirmInfoToFile is not found.           //--- ---    *** != 0x00000000
24//NSTUB(kbd_pwr_off                           ,0xff84dc38) //  2 67%    *** != 0x00000000
25// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0x00000000
26//NSTUB(rename                                ,0xff8255a0) //  1        *** != 0xff825e60
27//NSTUB(srand                                 ,0xff81e828) //  1        *** != 0xff81bdb4
28//NSTUB(write                                 ,0xff825e38) //101        *** != 0xff81a328
29
30// Check of modemap from 'platform/CAMERA/shooting.c':
31// Firmware modemap table found @ff87c16c -> ff878420 -> ff971b64 -> ffa450e8 -> ffaefee8
32// No problems found with modemap table.
33
34// Values below can be overridden in 'stubs_min.S':
35DEF(physw_status                            ,0x00011abc) // Found @0xff823990
36DEF(physw_run                               ,0x00001cd8) // Found @0xff82366c
37DEF(levent_table                            ,0xffac65dc) // Found @0xffac65dc
38DEF(FlashParamsTable                        ,0xffaf0088) // Found @0xffaf0088
39DEF(movie_status                            ,0x000058a0) // Found @0xff862c60
40DEF(canon_menu_active                       ,0x00006e3c) // Found @0xff8970dc
41DEF(canon_shoot_menu_active                 ,0x0000c05d) // Found @0xff982648
42DEF(playrec_mode                            ,0x00005aa0) // Found @0xff869d1c
43DEF(zoom_status                             ,0x000068f8) // Found @0xff886424
44DEF(some_flag_for_af_scan                   ,0x0000ecbc) // Found @0xffa3e2bc
45DEF(focus_busy                              ,0x0000b27c) // Found @0xff9507e0
46//DEF(recreview_hold                          ,0x000067c4) // Found @0xff882ac8, ** != ** stubs_min = 0x0000be2c (0xBE2C)
47
48// Values below go in 'lib.c':
49//void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xff84a0b4
50//void *vid_get_viewport_fb()      { return (void*)0x10d29360; }             // Found @0xffa104a0
51//char *camera_jpeg_count_str()    { return (char*)0x00058304; }             // Found @0xff9be610
52//long hook_raw_size()             { return 0x009dcce0; }                    // Found @0xffa11fa8
53//int get_flash_params_count(void) { return 0x6f; }                          // Found @0xff973064
54
55// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
56//#define SD_READONLY_FLAG    0x00020000 // Found @0xffa9ceb8, levent 0x90a
57//#define SD_READONLY_IDX     2
58//#define USB_MASK            0x00200000 // Found @0xffa9ced8, levent 0x902
59//#define USB_IDX             2
60
61// Keymap values for kbd.c. Additional keys may be present, only common values included here.
62//static KeyMap keymap[] = {
63//    { 0, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffa9cdb0, levent 0x01
64//    { 0, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffa9cdb0, levent 0x01
65//    { 0, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffa9cda8, levent 0x00
66//    { 1, KEY_LEFT            ,0x00001000 }, // Found @0xffa9ce28, levent 0x06
67//    { 1, KEY_SET             ,0x00010000 }, // Found @0xffa9ce40, levent 0x08
68//    { 1, KEY_DISPLAY         ,0x00020000 }, // Found @0xffa9ce48, levent 0x0a
69//    { 1, KEY_MENU            ,0x00040000 }, // Found @0xffa9ce50, levent 0x09
70//    { 1, KEY_DOWN            ,0x00080000 }, // Found @0xffa9ce58, levent 0x05
71//    { 1, KEY_UP              ,0x00100000 }, // Found @0xffa9ce60, levent 0x04
72//    { 1, KEY_RIGHT           ,0x00200000 }, // Found @0xffa9ce68, levent 0x07
73//    { 0, 0, 0 }
74//};
75
76// Values below go in 'platform_camera.h':
77//#define CAM_DRYOS         1
78//#define CAM_RAW_ROWPIX    *** Not Found ***
79//#define CAM_RAW_ROWS      *** Not Found ***
80//#undef  CAM_UNCACHED_BIT
81//#define CAM_UNCACHED_BIT  0x10000000 // Found @0xff82add8
82
83// Misc stuff
84DEF(ctypes, 0xffa9644e)
85
86// For capt_seq.c
87//static long *nrflag = (long*)(0xb704);       // Found @ ff9610bc
88
89// Stubs below matched 100%.
90//    Name                                     Address                Comp to stubs_entry_2.S
91NSTUB(AllocateMemory                          ,0xffa41170) //103
92NSTUB(AllocateUncacheableMemory               ,0xff82ad9c) //112
93NSTUB(Close                                   ,0xff825d8c) //101
94NSTUB(CreateTask                              ,0xff81b9c4) //101
95NSTUB(DebugAssert                             ,0xff81bd94) //111
96NSTUB(DeleteDirectory_Fut                     ,0xff8256d8) //  1
97NSTUB(DeleteFile_Fut                          ,0xff8255f4) //112
98NSTUB(DoAFLock                                ,0xff827c90) //103
99NSTUB(EnterToCompensationEVF                  ,0xff828070) //104
100NSTUB(ExecuteEventProcedure                   ,0xff81bf64) //  1
101NSTUB(ExitFromCompensationEVF                 ,0xff828164) //104
102NSTUB(ExitTask                                ,0xff81bc54) //101
103NSTUB(ExpCtrlTool_StartContiAE                ,0xff838ea0) //104
104NSTUB(ExpCtrlTool_StopContiAE                 ,0xff838f48) //104
105NSTUB(Fclose_Fut                              ,0xff825770) //101
106NSTUB(Feof_Fut                                ,0xff82595c) //  1
107NSTUB(Fflush_Fut                              ,0xff825998) //  1
108NSTUB(Fgets_Fut                               ,0xff8258c4) //  1
109NSTUB(Fopen_Fut                               ,0xff825730) //101
110NSTUB(Fread_Fut                               ,0xff82581c) //101
111NSTUB(FreeMemory                              ,0xffa4115c) //103
112NSTUB(FreeUncacheableMemory                   ,0xff82add0) //112
113NSTUB(Fseek_Fut                               ,0xff825910) //101
114NSTUB(Fwrite_Fut                              ,0xff825870) //101
115NSTUB(GetBatteryTemperature                   ,0xff85062c) //102
116NSTUB(GetCCDTemperature                       ,0xff8505bc) //102
117NSTUB(GetCurrentAvValue                       ,0xff952e5c) //102
118NSTUB(GetDrive_ClusterSize                    ,0xff856dd0) //  1
119NSTUB(GetDrive_FreeClusters                   ,0xff856e70) //  1
120NSTUB(GetDrive_TotalClusters                  ,0xff856e04) //  1
121NSTUB(GetFocusLensSubjectDistance             ,0xff95126c) //102
122NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff951568) //  1
123NSTUB(GetKbdState                             ,0xff84daec) //109
124NSTUB(GetMemInfo                              ,0xff813ca8) //  1
125NSTUB(GetOpticalTemperature                   ,0xff85069c) //102
126NSTUB(GetParameterData                        ,0xff973028) //101
127NSTUB(GetPropertyCase                         ,0xff874864) //101
128NSTUB(GetSystemTime                           ,0xffa4126c) //  1
129NSTUB(GiveSemaphore                           ,0xff81b930) //112
130NSTUB(IsStrobeChargeCompleted                 ,0xff8db5fc) //102
131NSTUB(LocalTime                               ,0xff8706cc) //  1
132NSTUB(LockMainPower                           ,0xff877df8) //103
133NSTUB(MakeDirectory_Fut                       ,0xff825668) //  1
134NSTUB(MoveFocusLensToDistance                 ,0xffa0d4e4) //102
135NSTUB(MoveIrisWithAv                          ,0xff9537b8) //102
136NSTUB(MoveZoomLensWithPoint                   ,0xff957bfc) //102
137NSTUB(NewTaskShell                            ,0xff874330) //103
138NSTUB(Open                                    ,0xff825d64) //101
139NSTUB(PB2Rec                                  ,0xff87b3e0) //104
140NSTUB(PT_MoveDigitalZoomToWide                ,0xff86ba2c) //103
141NSTUB(PT_MoveOpticalZoomAt                    ,0xff86b9f8) //103
142NSTUB(PT_PlaySound                            ,0xff86b5a4) //103
143NSTUB(PostLogicalEventForNotPowerType         ,0xff87617c) //103
144NSTUB(PostLogicalEventToUI                    ,0xff8761c8) //103
145NSTUB(PutInNdFilter                           ,0xffa0bdc8) //102
146NSTUB(PutOutNdFilter                          ,0xffa0be00) //102
147NSTUB(ReadFastDir                             ,0xffa279c8) //  1
148NSTUB(Rec2PB                                  ,0xff87b420) //104
149NSTUB(RefreshPhysicalScreen                   ,0xff8b2e58) //101
150NSTUB(Remove                                  ,0xff825dd4) //  1
151NSTUB(RenameFile_Fut                          ,0xff8255a0) //  1
152NSTUB(Restart                                 ,0xff82cde4) //106
153NSTUB(SetAE_ShutterSpeed                      ,0xffa0f680) //102
154NSTUB(SetAutoShutdownTime                     ,0xff877f58) //103
155NSTUB(SetCurrentCaptureModeType               ,0xff87f94c) //101
156NSTUB(SetFileAttributes                       ,0xff8260b8) //  1
157NSTUB(SetFileTimeStamp                        ,0xff826068) //  1
158NSTUB(SetLogicalEventActive                   ,0xff877bb4) //  1
159NSTUB(SetPropertyCase                         ,0xff874774) //101
160NSTUB(SetScriptMode                           ,0xff877c04) //101
161NSTUB(SleepTask                               ,0xff82ac20) //101
162NSTUB(TakeSemaphore                           ,0xff81b860) //101
163NSTUB(TurnOffBackLight                        ,0xff888468) //104
164NSTUB(TurnOnBackLight                         ,0xff888450) //104
165NSTUB(UnlockAF                                ,0xff827cfc) //103
166NSTUB(UnlockMainPower                         ,0xff877d54) //103
167NSTUB(UpdateMBROnFlash                        ,0xff856b98) //105
168NSTUB(VbattGet                                ,0xff8222cc) //101
169NSTUB(Write                                   ,0xff825e38) //101
170NSTUB(WriteSDCard                             ,0xff9441ec) //108
171NSTUB(_log                                    ,0xffa93fc0) //111
172NSTUB(_log10                                  ,0xffa92f04) //112
173NSTUB(_pow                                    ,0xffa93074) //114
174NSTUB(_sqrt                                   ,0xffa95328) //  1
175NSTUB(add_ptp_handler                         ,0xff8f048c) //  1
176NSTUB(apex2us                                 ,0xff9caf14) //  4
177NSTUB(close                                   ,0xff81a0e0) //  1
178NSTUB(closedir                                ,0xffa27a98) //  1
179NSTUB(err_init_task                           ,0xff814f00) //  4
180NSTUB(exmem_alloc                             ,0xff8714ec) //101
181NSTUB(free                                    ,0xff813b00) //112
182NSTUB(kbd_p1_f                                ,0xff823a6c) //109
183NSTUB(kbd_p1_f_cont                           ,0xff823a78) //109
184NSTUB(kbd_p2_f                                ,0xff82330c) //109
185NSTUB(kbd_read_keys                           ,0xff823990) //109
186NSTUB(kbd_read_keys_r2                        ,0xff84d4ac) //109
187NSTUB(lseek                                   ,0xff825ecc) //101
188NSTUB(malloc                                  ,0xff813a2c) //112
189NSTUB(memcmp                                  ,0xff81e72c) //101
190NSTUB(memcpy                                  ,0xff8b32c8) //101
191NSTUB(memset                                  ,0xffa64c5c) //101
192NSTUB(mkdir                                   ,0xff826130) //  1
193// ALT: NSTUB(mkdir, 0xff8261d0) // 1 32/0
194NSTUB(mktime_ext                              ,0xff8b3b34) //  1
195NSTUB(open                                    ,0xff81a030) //  1
196NSTUB(opendir                                 ,0xffa27934) //  1
197NSTUB(openfastdir                             ,0xffa27934) //  1
198NSTUB(qsort                                   ,0xff9ca2ec) //  1
199NSTUB(rand                                    ,0xff81e834) //  1
200NSTUB(read                                    ,0xff81a2c8) //101
201NSTUB(reboot_fw_update                        ,0xffa2f824) //  1
202NSTUB(set_control_event                       ,0xff877988) //  1
203NSTUB(stat                                    ,0xff825f98) //  1
204NSTUB(strcat                                  ,0xff8b31f4) //  1
205NSTUB(strchr                                  ,0xff8b327c) //  1
206NSTUB(strcmp                                  ,0xff81e6c4) //101
207NSTUB(strcpy                                  ,0xff81e670) //101
208NSTUB(strftime                                ,0xff8b353c) //  1
209NSTUB(strlen                                  ,0xff81e708) //101
210NSTUB(strncmp                                 ,0xff8b3230) //  1
211NSTUB(strncpy                                 ,0xff81e688) //  1
212NSTUB(strrchr                                 ,0xff8b32a0) //  1
213NSTUB(strtol                                  ,0xff831dac) //101
214NSTUB(strtolx                                 ,0xff831bb0) //109
215  DEF(task_CaptSeq                            ,0xff866d48) //107
216  DEF(task_ExpDrv                             ,0xff8d3888) //110
217  DEF(task_InitFileModules                    ,0xff87bff0) //107
218  DEF(task_MovieRecord                        ,0xff862f10) //107
219  DEF(task_PhySw                              ,0xff823668) //107
220NSTUB(time                                    ,0xff870bd0) //  2
221NSTUB(vsprintf                                ,0xff81e5f0) //  1
Note: See TracBrowser for help on using the repository browser.