source: branches/reyalp-ptp-live/platform/ixus310_elph500hs/sub/100a/stubs_entry.S @ 1878

Revision 1878, 14.1 KB checked in by reyalp, 12 months ago (diff)

update live view branch to trunk 1874

  • 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.00A
7//   Canon IXUS 310 HS
8
9// Values for makefile.inc
10//   PLATFORMOSVER = 47
11//   PLATFORMID = 12837 (0x3225) // Found @ 0xfff40040
12//   MAXRAMADDR = 0x07ffffff
13//   KEYSYS = d4c                // Found @ 0xffff3610
14//   NEED_ENCODED_DISKBOOT = 6   // Found @ 0xffff3620
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                             ,0xff0560cc) //  2 60%
19// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0x00000000
20//NSTUB(reboot_fw_update                      ,0xff2e99d0) //  6 83%    *** != 0xff2e99cc
21
22// Check of modemap from 'platform/CAMERA/shooting.c':
23// Firmware modemap table found @ff090c3c -> ff08d864 -> ff1af368 -> ff320abc -> ff4ce6f0
24// No problems found with modemap table.
25
26// Values below can be overridden in 'stubs_min.S':
27DEF(physw_status                            ,0x00034d4c) // Found @0xff024e2c
28DEF(physw_run                               ,0x00001c3c) // Found @0xff0249cc
29DEF(levent_table                            ,0xff4214d0) // Found @0xff4214d0
30DEF(FlashParamsTable                        ,0xff4ce930) // Found @0xff4ce930
31DEF(movie_status                            ,0x000070dc) // Found @0xff17e974
32DEF(full_screen_refresh                     ,0x0000a424) // Found @0xff244a14
33DEF(canon_menu_active                       ,0x000032f8) // Found @0xff0887f4
34DEF(canon_shoot_menu_active                 ,0x000087c9) // Found @0xff1c867c
35DEF(playrec_mode                            ,0x00003030) // Found @0xff07abf4
36DEF(zoom_status                             ,0x0000e7c0) // Found @0xff324474
37DEF(some_flag_for_af_scan                   ,0x000074e0) // Found @0xff183040
38// focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
39// each entry contains 3 int value(s), the first is the zoom focus length.
40// there are 64 entries in the table - set NUM_FL to 64
41DEF(focus_len_table                         ,0xfff4a30c) // Found @0xfff4a30c
42DEF(zoom_busy                               ,0x00007000) // Found @0xff179af8
43DEF(focus_busy                              ,0x00006e70) // Found @0xff173e9c
44DEF(recreview_hold                          ,0x0000391c) // Found @0xff098530
45DEF(palette_control                         ,0x0000a424) // Found @0xff244990
46DEF(active_palette_buffer                   ,0x0000a42c) // Found @0xff244994
47DEF(palette_buffer                          ,0x000c7dec) // Found @0xff244e6c
48DEF(bitmap_buffer                           ,0x0000a464) // Found @0xff249aec
49DEF(active_bitmap_buffer                    ,0x0000a45c) // Found @0xff249af0
50
51// Values below go in 'lib.c':
52//void *vid_get_bitmap_fb()        { return (void*)0x40471000; }             // Found @0xff04f54c
53//void *vid_get_viewport_fb()      { return (void*)0x405d7980; }             // Found @0xff38b5c8
54//void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2ce8+0x58)); } // Found @0xff06a728 & 0xff06a760
55//char *camera_jpeg_count_str()    { return (char*)0x000c75f4; }             // Found @0xff236e4c
56//long hook_raw_size()             { return 0x0123eaf0; }                    // Found @0xff38eadc
57//int get_flash_params_count(void) { return 0xa0; }                          // Found @0xff1b03a0
58
59// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
60//#define SD_READONLY_FLAG    0x00020000 // Found @0xff3d1494, levent 0x90a
61//#define SD_READONLY_IDX     2
62//#define USB_MASK            0x04000000 // Found @0xff3d14b4, levent 0x902
63//#define USB_IDX             2
64
65// Keymap values for kbd.c. Additional keys may be present, only common values included here.
66//static KeyMap keymap[] = {
67//    { 1, KEY_ZOOM_IN         ,0x00001000 }, // Found @0xff3d144c, levent 0x02
68//    { 1, KEY_ZOOM_OUT        ,0x00008000 }, // Found @0xff3d1454, levent 0x03
69//    { 2, KEY_SHOOT_FULL      ,0x00000a00 }, // Found @0xff3d146c, levent 0x01
70//    { 2, KEY_SHOOT_FULL_ONLY ,0x00000800 }, // Found @0xff3d146c, levent 0x01
71//    { 2, KEY_SHOOT_HALF      ,0x00000200 }, // Found @0xff3d1464, levent 0x00
72//    { 0, 0, 0 }
73//};
74
75// Values below go in 'platform_camera.h':
76//#define CAM_DRYOS         1
77//#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
78//#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher
79//#define CAM_RAW_ROWPIX    4168 // Found @0xff14a154
80//#define CAM_RAW_ROWS      3060 // Found @0xff14a160
81//#undef  CAM_UNCACHED_BIT
82//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff02b914
83
84// Misc stuff
85DEF(ctypes, 0xff3cea26)
86
87// For capt_seq.c
88//static long *nrflag = (long*)(0x7514+0x08);  // Found @ ff18775c & ff1877c8
89//#define NR_AUTO (0)                          // have to explictly reset value back to 0 to enable auto
90
91// Stubs below matched 100%.
92//    Name                                     Address                Comp to stubs_entry_2.S
93NSTUB(AllocateMemory                          ,0xff30fad4) //101
94NSTUB(AllocateUncacheableMemory               ,0xff02b8cc) //112
95NSTUB(Close                                   ,0xff027690) //101
96NSTUB(CreateTask                              ,0xff00e9b0) //101
97NSTUB(DebugAssert                             ,0xff00ec88) //111
98NSTUB(DeleteDirectory_Fut                     ,0xff02708c) //  1
99NSTUB(DeleteFile_Fut                          ,0xff026fa8) //112
100NSTUB(DoAFLock                                ,0xff028edc) //102
101NSTUB(EnterToCompensationEVF                  ,0xff029138) //104
102NSTUB(ExecuteEventProcedure                   ,0xff083fe0) //  1
103NSTUB(ExitFromCompensationEVF                 ,0xff02917c) //104
104NSTUB(ExitTask                                ,0xff00ec40) //101
105NSTUB(ExpCtrlTool_StartContiAE                ,0xff037f50) //104
106NSTUB(ExpCtrlTool_StopContiAE                 ,0xff038028) //104
107NSTUB(Fclose_Fut                              ,0xff027124) //101
108NSTUB(Feof_Fut                                ,0xff027310) //  1
109NSTUB(Fflush_Fut                              ,0xff02734c) //  1
110NSTUB(Fgets_Fut                               ,0xff027278) //  6
111NSTUB(Fopen_Fut                               ,0xff0270e4) //101
112NSTUB(Fread_Fut                               ,0xff0271d0) //101
113NSTUB(FreeMemory                              ,0xff30facc) //101
114NSTUB(FreeUncacheableMemory                   ,0xff02b90c) //112
115NSTUB(Fseek_Fut                               ,0xff0272c4) //101
116NSTUB(Fwrite_Fut                              ,0xff027224) //101
117NSTUB(GetBatteryTemperature                   ,0xff0597d4) //102
118NSTUB(GetCCDTemperature                       ,0xff059760) //102
119NSTUB(GetCurrentAvValue                       ,0xff17678c) //102
120NSTUB(GetDrive_ClusterSize                    ,0xff0680d8) //  6
121NSTUB(GetDrive_FreeClusters                   ,0xff068130) //  6
122NSTUB(GetDrive_TotalClusters                  ,0xff068108) //  6
123NSTUB(GetFocusLensSubjectDistance             ,0xff174b20) //102
124NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff174f80) //  3
125NSTUB(GetImageFolder                          ,0xff1510ec) //  6
126NSTUB(GetKbdState                             ,0xff0560b4) //109
127NSTUB(GetMemInfo                              ,0xff00a29c) //  3
128NSTUB(GetOpticalTemperature                   ,0xff059848) //102
129NSTUB(GetParameterData                        ,0xff1b0360) //101
130NSTUB(GetPropertyCase                         ,0xff087d48) //102
131NSTUB(GetSystemTime                           ,0xff30fb2c) //101
132NSTUB(GetZoomLensCurrentPoint                 ,0xff179f70) //102
133NSTUB(GetZoomLensCurrentPosition              ,0xff2f9ac8) //102
134NSTUB(GiveSemaphore                           ,0xff02b2c4) //112
135NSTUB(IsStrobeChargeCompleted                 ,0xff0dabe0) //102
136NSTUB(LEDDrive                                ,0xff0555f8) //101
137NSTUB(LocalTime                               ,0xff081870) //  6
138NSTUB(LockMainPower                           ,0xff08d454) //103
139NSTUB(Lseek                                   ,0xff0278ac) //101
140NSTUB(MakeDirectory_Fut                       ,0xff02701c) //  6
141NSTUB(MakeSDCardBootable                      ,0xff068368) //105
142NSTUB(MoveFocusLensToDistance                 ,0xff3878c4) //102
143NSTUB(MoveIrisWithAv                          ,0xff30bc20) //102
144NSTUB(MoveZoomLensWithPoint                   ,0xff30c4ec) //102
145NSTUB(NewTaskShell                            ,0xff087790) //101
146NSTUB(Open                                    ,0xff0275c8) //101
147NSTUB(PB2Rec                                  ,0xff090114) //104
148NSTUB(PT_MoveDigitalZoomToWide                ,0xff072364) //102
149NSTUB(PT_MoveOpticalZoomAt                    ,0xff07233c) //102
150NSTUB(PT_PlaySound                            ,0xff07cc4c) //  6
151NSTUB(PostLogicalEventForNotPowerType         ,0xff08cbfc) //103
152NSTUB(PostLogicalEventToUI                    ,0xff08cc48) //103
153NSTUB(PutInNdFilter                           ,0xff30c334) //102
154NSTUB(PutOutNdFilter                          ,0xff30c358) //102
155NSTUB(Read                                    ,0xff00ad58) //101
156NSTUB(ReadFastDir                             ,0xff2e4530) //  6
157NSTUB(Rec2PB                                  ,0xff090154) //104
158NSTUB(RefreshPhysicalScreen                   ,0xff0a3f10) //104
159NSTUB(Remove                                  ,0xff027804) //  6
160NSTUB(RenameFile_Fut                          ,0xff026f14) //  6
161NSTUB(Restart                                 ,0xff02d0e0) //106
162NSTUB(ScreenLock                              ,0xff0a5108) //  4
163NSTUB(ScreenUnlock                            ,0xff0a516c) //  3
164NSTUB(SetAE_ShutterSpeed                      ,0xff38a740) //102
165NSTUB(SetAutoShutdownTime                     ,0xff08d4c8) //103
166NSTUB(SetCurrentCaptureModeType               ,0xff095608) //101
167NSTUB(SetFileAttributes                       ,0xff027a94) //  6
168NSTUB(SetFileTimeStamp                        ,0xff027a1c) //  6
169NSTUB(SetLogicalEventActive                   ,0xff08d1bc) //101
170NSTUB(SetParameterData                        ,0xff1b02d0) //101
171NSTUB(SetPropertyCase                         ,0xff087c2c) //102
172NSTUB(SetScriptMode                           ,0xff08d20c) //101
173NSTUB(SleepTask                               ,0xff02b570) //101
174NSTUB(TakeSemaphore                           ,0xff02b1f4) //101
175NSTUB(TurnOffBackLight                        ,0xff09b938) //104
176NSTUB(TurnOnBackLight                         ,0xff09b920) //104
177NSTUB(UIFS_WriteFirmInfoToFile                ,0xff19e09c) //101
178NSTUB(UnlockAF                                ,0xff028f14) //102
179NSTUB(UnlockMainPower                         ,0xff08d3a8) //103
180NSTUB(VbattGet                                ,0xff023004) //101
181NSTUB(Write                                   ,0xff0276e4) //101
182NSTUB(WriteSDCard                             ,0xff163f5c) //108
183NSTUB(_log                                    ,0xff3cb210) //111
184NSTUB(_log10                                  ,0xff3cb750) //112
185NSTUB(_pow                                    ,0xff3cb8c8) //114
186NSTUB(_sqrt                                   ,0xff3cd828) //  6
187NSTUB(add_ptp_handler                         ,0xff28ee4c) //  6
188NSTUB(apex2us                                 ,0xff24e4e4) //  4
189NSTUB(close                                   ,0xff00abb4) //  6
190NSTUB(closedir                                ,0xff2e438c) //  4
191NSTUB(err_init_task                           ,0xff005fd4) //  4
192NSTUB(exmem_alloc                             ,0xff082838) //101
193NSTUB(free                                    ,0xff004244) //112
194NSTUB(kbd_p1_f                                ,0xff024ea8) //109
195NSTUB(kbd_p1_f_cont                           ,0xff024eb4) //109
196NSTUB(kbd_p2_f                                ,0xff02469c) //109
197NSTUB(kbd_read_keys                           ,0xff024e2c) //109
198NSTUB(kbd_read_keys_r2                        ,0xff055ad0) //109
199NSTUB(lseek                                   ,0xff0278ac) //101
200NSTUB(malloc                                  ,0xff0041ec) //112
201NSTUB(memcmp                                  ,0xff0108e8) //101
202NSTUB(memcpy                                  ,0xff030fbc) //101
203NSTUB(memset                                  ,0xff24cfd8) //101
204NSTUB(mkdir                                   ,0xff027b2c) //  6
205NSTUB(mktime_ext                              ,0xff0a5f80) //  1
206NSTUB(open                                    ,0xff00ab04) //  6
207NSTUB(opendir                                 ,0xff2e43dc) //  6
208NSTUB(openfastdir                             ,0xff2e43dc) //  6
209NSTUB(qsort                                   ,0xff24d5e0) //  6
210NSTUB(rand                                    ,0xff24d118) //  6
211NSTUB(read                                    ,0xff00ad58) //101
212NSTUB(rename                                  ,0xff026f14) //  6
213NSTUB(set_control_event                       ,0xff08ce6c) //111
214NSTUB(srand                                   ,0xff24d10c) //  6
215NSTUB(stat                                    ,0xff0278f4) //  3
216NSTUB(strcat                                  ,0xff0a5738) //  1
217NSTUB(strchr                                  ,0xff0040b8) //  1
218NSTUB(strcmp                                  ,0xff0108a4) //101
219NSTUB(strcpy                                  ,0xff01088c) //101
220NSTUB(strftime                                ,0xff0a5980) //113
221NSTUB(strlen                                  ,0xff004104) //101
222NSTUB(strncmp                                 ,0xff00406c) //  1
223NSTUB(strncpy                                 ,0xff004030) //  1
224NSTUB(strrchr                                 ,0xff0040dc) //  1
225NSTUB(strtol                                  ,0xff0312bc) //101
226NSTUB(strtolx                                 ,0xff0310c0) //109
227  DEF(task_CaptSeq                            ,0xff074f1c) //110
228  DEF(task_ExpDrv                             ,0xff0bdd18) //110
229  DEF(task_InitFileModules                    ,0xff090ab0) //110
230  DEF(task_MovieRecord                        ,0xff17fc00) //110
231  DEF(task_PhySw                              ,0xff0249c8) //110
232NSTUB(time                                    ,0xff081e4c) //  6
233NSTUB(vsprintf                                ,0xff01084c) //  6
234NSTUB(write                                   ,0xff0276e4) //101
Note: See TracBrowser for help on using the repository browser.