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

Revision 1911, 14.7 KB checked in by reyalp, 11 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 R47 (DRYOS version 2.3, release #0047)
6//   Firmware Ver GM1.01C
7//   Canon PowerShot ELPH 300HS
8
9// Values for makefile.inc
10//   PLATFORMOSVER = 47
11//   PLATFORMID = 12841 (0x3229) // Found @ 0xfffe0040
12//   MAXRAMADDR = 0x07ffffff
13//   KEYSYS = d4c                // Found @ 0xffff3620
14//   NEED_ENCODED_DISKBOOT = 6   // Found @ 0xffff3630
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
18NSTUB(kbd_pwr_off                             ,0xff865570) //  2 60%
19// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0x00000000
20
21// Check of modemap from 'platform/CAMERA/shooting.c':
22// Firmware modemap table found @ff89e7f8 -> ff89b194 -> ff9b139c -> ffb04210 -> ffc4ee68
23// No problems found with modemap table.
24
25// Values below can be overridden in 'stubs_min.S':
26DEF(physw_status                            ,0x0003418c) // Found @0xff834e18
27DEF(physw_run                               ,0x00001c3c) // Found @0xff8349bc
28DEF(levent_table                            ,0xffbeb230) // Found @0xffbeb230
29DEF(FlashParamsTable                        ,0xffc4f0a8) // Found @0xffc4f0a8
30DEF(movie_status                            ,0x00006dcc) // Found @0xff984bd0
31DEF(full_screen_refresh                     ,0x00009d00) // Found @0xffa32dfc
32DEF(canon_menu_active                       ,0x00003210) // Found @0xff896910
33DEF(canon_shoot_menu_active                 ,0x000083d9) // Found @0xff9c8c1c
34DEF(playrec_mode                            ,0x00002f38) // Found @0xff888774
35DEF(zoom_status                             ,0x0000ded8) // Found @0xffb078cc
36DEF(some_flag_for_af_scan                   ,0x000071cc) // Found @0xff989240
37// focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
38// each entry contains 3 int value(s), the first is the zoom focus length.
39// there are 64 entries in the table - set NUM_FL to 64
40DEF(focus_len_table                         ,0xfffea288) // Found @0xfffea288
41DEF(zoom_busy                               ,0x00006cf4) // Found @0xff97fd74
42DEF(focus_busy                              ,0x00006b68) // Found @0xff97af60
43DEF(recreview_hold                          ,0x00003828) // Found @0xff8a6510
44DEF(palette_control                         ,0x00009d00) // Found @0xffa32d78
45DEF(active_palette_buffer                   ,0x00009d08) // Found @0xffa32d7c
46DEF(palette_buffer                          ,0x000bb254) // Found @0xffa33254
47DEF(bitmap_buffer                           ,0x00009d40) // Found @0xffa36ca0
48DEF(active_bitmap_buffer                    ,0x00009d38) // Found @0xffa36ca4
49
50// Values below go in 'lib.c':
51//void *vid_get_bitmap_fb()        { return (void*)0x40471000; }             // Found @0xff85fd1c
52//void *vid_get_viewport_fb()      { return (void*)0x405c6b80; }             // Found @0xffb5e148
53//void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2c08+0x58)); } // Found @0xff878880 & 0xff8788b8
54//char *camera_jpeg_count_str()    { return (char*)0x000babac; }             // Found @0xffa2a298
55//long hook_raw_size()             { return 0x0123eaf0; }                    // Found @0xffb61640
56//int get_flash_params_count(void) { return 0xa0; }                          // Found @0xff9b23d4
57
58// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
59//#define SD_READONLY_FLAG    0x00020000 // Found @0xffba2be0, levent 0x90a
60//#define SD_READONLY_IDX     2
61//#define USB_MASK            0x04000000 // Found @0xffba2c00, levent 0x902
62//#define USB_IDX             2
63
64// Keymap values for kbd.c. Additional keys may be present, only common values included here.
65//static KeyMap keymap[] = {
66//    { 2, KEY_SHOOT_FULL      ,0x00000300 }, // Found @0xffba2ba8, levent 0x01
67//    { 2, KEY_SHOOT_FULL_ONLY ,0x00000200 }, // Found @0xffba2ba8, levent 0x01
68//    { 2, KEY_SHOOT_HALF      ,0x00000100 }, // Found @0xffba2ba0, levent 0x00
69//    { 2, KEY_MENU            ,0x00000001 }, // Found @0xffba2b60, levent 0x09
70//    { 2, KEY_SET             ,0x00000002 }, // Found @0xffba2b68, levent 0x08
71//    { 2, KEY_ZOOM_IN         ,0x00000004 }, // Found @0xffba2b70, levent 0x02
72//    { 2, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffba2b78, levent 0x03
73//    { 2, KEY_LEFT            ,0x00000010 }, // Found @0xffba2b80, levent 0x06
74//    { 2, KEY_RIGHT           ,0x00000020 }, // Found @0xffba2b88, levent 0x07
75//    { 2, KEY_DOWN            ,0x00000040 }, // Found @0xffba2b90, levent 0x05
76//    { 2, KEY_UP              ,0x00000080 }, // Found @0xffba2b98, levent 0x04
77//    { 0, 0, 0 }
78//};
79
80// Values below go in 'platform_camera.h':
81//#define CAM_DRYOS         1
82//#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
83//#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher
84//#define CAM_RAW_ROWPIX    4168 // Found @0xff952bb4
85//#define CAM_RAW_ROWS      3060 // Found @0xff952bc0
86//#undef  CAM_UNCACHED_BIT
87//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff83c0f0
88
89// Misc stuff
90DEF(ctypes, 0xffba0112)
91
92// For capt_seq.c
93//static long *nrflag = (long*)(0x7200+0x08);  // Found @ ff98da20 & ff98da84
94//#define NR_AUTO (0)                          // have to explictly reset value back to 0 to enable auto
95
96// Stubs below matched 100%.
97//    Name                                     Address                Comp to stubs_entry_2.S
98NSTUB(AllocateMemory                          ,0xffaf2508) //101
99NSTUB(AllocateUncacheableMemory               ,0xff83c0a8) //112
100NSTUB(Close                                   ,0xff8383e8) //101
101NSTUB(CreateTask                              ,0xff81e9b0) //101
102NSTUB(DebugAssert                             ,0xff81ec88) //111
103NSTUB(DeleteDirectory_Fut                     ,0xff837de4) //  1
104NSTUB(DeleteFile_Fut                          ,0xff837d00) //112
105NSTUB(DoAFLock                                ,0xff839c28) //102
106NSTUB(EnterToCompensationEVF                  ,0xff839e84) //104
107NSTUB(ExecuteEventProcedure                   ,0xff8920f8) //  1
108NSTUB(ExitFromCompensationEVF                 ,0xff839ec8) //104
109NSTUB(ExitTask                                ,0xff81ec40) //101
110NSTUB(ExpCtrlTool_StartContiAE                ,0xff848730) //104
111NSTUB(ExpCtrlTool_StopContiAE                 ,0xff848808) //104
112NSTUB(Fclose_Fut                              ,0xff837e7c) //101
113NSTUB(Feof_Fut                                ,0xff838068) //  1
114NSTUB(Fflush_Fut                              ,0xff8380a4) //  1
115NSTUB(Fgets_Fut                               ,0xff837fd0) //  6
116NSTUB(Fopen_Fut                               ,0xff837e3c) //101
117NSTUB(Fread_Fut                               ,0xff837f28) //101
118NSTUB(FreeMemory                              ,0xffaf2500) //101
119NSTUB(FreeUncacheableMemory                   ,0xff83c0e8) //112
120NSTUB(Fseek_Fut                               ,0xff83801c) //101
121NSTUB(Fwrite_Fut                              ,0xff837f7c) //101
122NSTUB(GetBatteryTemperature                   ,0xff868d7c) //102
123NSTUB(GetCCDTemperature                       ,0xff868d08) //102
124NSTUB(GetCurrentAvValue                       ,0xff97cb48) //102
125NSTUB(GetDrive_ClusterSize                    ,0xff87630c) //  6
126NSTUB(GetDrive_FreeClusters                   ,0xff876364) //  6
127NSTUB(GetDrive_TotalClusters                  ,0xff87633c) //  6
128NSTUB(GetFocusLensSubjectDistance             ,0xff97bbe4) //102
129NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff97c044) //  3
130NSTUB(GetImageFolder                          ,0xff959b4c) //  6
131NSTUB(GetKbdState                             ,0xff865558) //109
132NSTUB(GetMemInfo                              ,0xff81a29c) //  3
133NSTUB(GetOpticalTemperature                   ,0xff868df0) //102
134NSTUB(GetParameterData                        ,0xff9b2394) //101
135NSTUB(GetPropertyCase                         ,0xff895e60) //102
136NSTUB(GetSystemTime                           ,0xffaf2560) //101
137NSTUB(GetVRAMHPixelsSize                      ,0xff856300) //102
138NSTUB(GetVRAMVPixelsSize                      ,0xff85630c) //102
139NSTUB(GetZoomLensCurrentPoint                 ,0xff9801ec) //102
140NSTUB(GetZoomLensCurrentPosition              ,0xffadcc9c) //102
141NSTUB(GiveSemaphore                           ,0xff83baa0) //112
142NSTUB(IsStrobeChargeCompleted                 ,0xff8e8b94) //102
143NSTUB(LEDDrive                                ,0xff864a7c) //101
144NSTUB(LocalTime                               ,0xff88f988) //  6
145NSTUB(LockMainPower                           ,0xff89ad84) //103
146NSTUB(Lseek                                   ,0xff838604) //101
147NSTUB(MakeDirectory_Fut                       ,0xff837d74) //  6
148NSTUB(MakeSDCardBootable                      ,0xff87659c) //105
149NSTUB(MoveFocusLensToDistance                 ,0xffb5a444) //102
150NSTUB(MoveIrisWithAv                          ,0xffaeecd8) //102
151NSTUB(MoveZoomLensWithPoint                   ,0xffaef390) //102
152NSTUB(NewTaskShell                            ,0xff8958a8) //101
153NSTUB(Open                                    ,0xff838320) //101
154NSTUB(PB2Rec                                  ,0xff89dd28) //104
155NSTUB(PT_MoveDigitalZoomToWide                ,0xff87fbcc) //102
156NSTUB(PT_MoveOpticalZoomAt                    ,0xff87fba4) //102
157NSTUB(PT_PlaySound                            ,0xff88a774) //  6
158NSTUB(PostLogicalEventForNotPowerType         ,0xff89a540) //103
159NSTUB(PostLogicalEventToUI                    ,0xff89a58c) //103
160NSTUB(PutInNdFilter                           ,0xffaef1d8) //102
161NSTUB(PutOutNdFilter                          ,0xffaef1fc) //102
162NSTUB(Read                                    ,0xff81ad58) //101
163NSTUB(ReadFastDir                             ,0xffaca2bc) //  6
164NSTUB(Rec2PB                                  ,0xff89dd68) //104
165NSTUB(RefreshPhysicalScreen                   ,0xff8b1da0) //104
166NSTUB(Remove                                  ,0xff83855c) //  6
167NSTUB(RenameFile_Fut                          ,0xff837c6c) //  6
168NSTUB(Restart                                 ,0xff83d8bc) //106
169NSTUB(ScreenLock                              ,0xff8b2f98) //  4
170NSTUB(ScreenUnlock                            ,0xff8b2ffc) //  3
171NSTUB(SetAE_ShutterSpeed                      ,0xffb5d2c0) //102
172NSTUB(SetAutoShutdownTime                     ,0xff89adf8) //103
173NSTUB(SetCurrentCaptureModeType               ,0xff8a3510) //101
174NSTUB(SetFileAttributes                       ,0xff8387ec) //  6
175NSTUB(SetFileTimeStamp                        ,0xff838774) //  6
176NSTUB(SetLogicalEventActive                   ,0xff89aaec) //101
177NSTUB(SetParameterData                        ,0xff9b2304) //101
178NSTUB(SetPropertyCase                         ,0xff895d44) //102
179NSTUB(SetScriptMode                           ,0xff89ab3c) //101
180NSTUB(SleepTask                               ,0xff83bd4c) //101
181NSTUB(TakeSemaphore                           ,0xff83b9d0) //101
182NSTUB(TurnOffBackLight                        ,0xff8aa31c) //104
183NSTUB(TurnOnBackLight                         ,0xff8aa304) //104
184NSTUB(UIFS_WriteFirmInfoToFile                ,0xff9a2184) //101
185NSTUB(UnlockAF                                ,0xff839c60) //102
186NSTUB(UnlockMainPower                         ,0xff89acd8) //103
187NSTUB(VbattGet                                ,0xff833050) //101
188NSTUB(Write                                   ,0xff83843c) //101
189NSTUB(WriteSDCard                             ,0xff96b024) //108
190NSTUB(_log                                    ,0xffb9cc38) //111
191NSTUB(_log10                                  ,0xffb9d178) //112
192NSTUB(_pow                                    ,0xffb9d2f0) //114
193NSTUB(_sqrt                                   ,0xffb9ef14) //  6
194NSTUB(add_ptp_handler                         ,0xffa7be20) //  6
195NSTUB(apex2us                                 ,0xffa3b18c) //  4
196NSTUB(close                                   ,0xff81abb4) //  6
197NSTUB(closedir                                ,0xffaca118) //  4
198NSTUB(err_init_task                           ,0xff815fd4) //  4
199NSTUB(exmem_alloc                             ,0xff890950) //101
200NSTUB(free                                    ,0xff814244) //112
201NSTUB(kbd_p1_f                                ,0xff834e94) //109
202NSTUB(kbd_p1_f_cont                           ,0xff834ea0) //109
203NSTUB(kbd_p2_f                                ,0xff83468c) //109
204NSTUB(kbd_read_keys                           ,0xff834e18) //109
205NSTUB(kbd_read_keys_r2                        ,0xff864f74) //109
206NSTUB(lseek                                   ,0xff838604) //101
207NSTUB(malloc                                  ,0xff8141ec) //112
208NSTUB(memcmp                                  ,0xff820934) //101
209NSTUB(memcpy                                  ,0xff84179c) //101
210NSTUB(memset                                  ,0xffa3a18c) //101
211NSTUB(mkdir                                   ,0xff838884) //  6
212NSTUB(mktime_ext                              ,0xff8b3e10) //  1
213NSTUB(open                                    ,0xff81ab04) //  6
214NSTUB(opendir                                 ,0xffaca168) //  6
215NSTUB(openfastdir                             ,0xffaca168) //  6
216NSTUB(qsort                                   ,0xffb3d698) //  6
217NSTUB(rand                                    ,0xffa3a2cc) //  6
218NSTUB(read                                    ,0xff81ad58) //101
219NSTUB(reboot_fw_update                        ,0xffacf758) //  6
220NSTUB(rename                                  ,0xff837c6c) //  6
221NSTUB(set_control_event                       ,0xff89a7b0) //111
222NSTUB(srand                                   ,0xffa3a2c0) //  6
223NSTUB(stat                                    ,0xff83864c) //  3
224NSTUB(strcat                                  ,0xff8b35c8) //  1
225NSTUB(strchr                                  ,0xff8140b8) //  1
226NSTUB(strcmp                                  ,0xff8208f0) //101
227NSTUB(strcpy                                  ,0xff8208d8) //101
228NSTUB(strftime                                ,0xff8b3810) //113
229NSTUB(strlen                                  ,0xff814104) //101
230NSTUB(strncmp                                 ,0xff81406c) //  1
231NSTUB(strncpy                                 ,0xff814030) //  1
232NSTUB(strrchr                                 ,0xff8140dc) //  1
233NSTUB(strtol                                  ,0xff841a9c) //101
234NSTUB(strtolx                                 ,0xff8418a0) //109
235  DEF(task_CaptSeq                            ,0xff882920) //110
236  DEF(task_ExpDrv                             ,0xff8cbcbc) //110
237  DEF(task_InitFileModules                    ,0xff89e66c) //110
238  DEF(task_MovieRecord                        ,0xff985e5c) //110
239  DEF(task_PhySw                              ,0xff8349b8) //110
240NSTUB(time                                    ,0xff88ff64) //  6
241NSTUB(vsprintf                                ,0xff820898) //  6
242NSTUB(write                                   ,0xff83843c) //101
Note: See TracBrowser for help on using the repository browser.