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

Revision 1737, 14.2 KB checked in by reyalp, 14 months ago (diff)

update with r1722-r1736 from trunk

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