source: trunk/platform/ixus310_elph500hs/sub/101c/stubs_entry.S @ 1787

Revision 1787, 14.1 KB checked in by philmoz, 14 months ago (diff)

Updates for finsig_dryos.c:

  • fix to correctly find addresses in code copied to RAM
  • add live view palette values for some recent cameras
  • add live view bitmap values for some recent cameras
  • 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 500 HS
8
9// Values for makefile.inc
10//   PLATFORMID = 12837 (0x3225) // Found @ 0xfff40040
11//   MAXRAMADDR = 0x07ffffff
12//   KEYSYS = d4c                // Found @ 0xffff3610
13//   NEED_ENCODED_DISKBOOT = 6   // Found @ 0xffff3620
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                             ,0xff0560cc) //  2 60%
18// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0x00000000
19//NSTUB(reboot_fw_update                      ,0xff2e99d0) //  6 83%    *** != 0xff2e99cc
20
21// Check of modemap from 'platform/CAMERA/shooting.c':
22// Firmware modemap table found @ff090c3c -> ff08d864 -> ff1af368 -> ff320acc -> ff4ce700
23// No problems found with modemap table.
24
25// Values below can be overridden in 'stubs_min.S':
26DEF(physw_status                            ,0x00034d4c) // Found @0xff024e2c
27DEF(physw_run                               ,0x00001c3c) // Found @0xff0249cc
28DEF(levent_table                            ,0xff4214e0) // Found @0xff4214e0
29DEF(FlashParamsTable                        ,0xff4ce940) // Found @0xff4ce940
30DEF(movie_status                            ,0x000070dc) // Found @0xff17e974
31DEF(full_screen_refresh                     ,0x0000a424) // Found @0xff244a14
32DEF(canon_menu_active                       ,0x000032f8) // Found @0xff0887f4
33DEF(canon_shoot_menu_active                 ,0x000087c9) // Found @0xff1c867c
34DEF(playrec_mode                            ,0x00003030) // Found @0xff07abf4
35DEF(zoom_status                             ,0x0000e7c0) // Found @0xff324484
36DEF(some_flag_for_af_scan                   ,0x000074e0) // Found @0xff183040
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                         ,0xfff4a30c) // Found @0xfff4a30c
41DEF(zoom_busy                               ,0x00007000) // Found @0xff179af8
42DEF(focus_busy                              ,0x00006e70) // Found @0xff173e9c
43DEF(recreview_hold                          ,0x0000391c) // Found @0xff098530
44DEF(palette_control                         ,0x0000a424) // Found @0xff244990
45DEF(active_palette_buffer                   ,0x0000a42c) // Found @0xff244994
46DEF(palette_buffer                          ,0x000c7dec) // Found @0xff244e6c
47DEF(bitmap_buffer                           ,0x0000a464) // Found @0xff249aec
48DEF(active_bitmap_buffer                    ,0x0000a45c) // Found @0xff249af0
49
50// Values below go in 'lib.c':
51//void *vid_get_bitmap_fb()        { return (void*)0x40471000; }             // Found @0xff04f54c
52//void *vid_get_viewport_fb()      { return (void*)0x405d7980; }             // Found @0xff38b5d8
53//void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2ce8+0x58)); } // Found @0xff06a728 & 0xff06a760
54//char *camera_jpeg_count_str()    { return (char*)0x000c75f4; }             // Found @0xff236e4c
55//long hook_raw_size()             { return 0x0123eaf0; }                    // Found @0xff38eaec
56//int get_flash_params_count(void) { return 0xa0; }                          // Found @0xff1b03a0
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 @0xff3d14a4, levent 0x90a
60//#define SD_READONLY_IDX     2
61//#define USB_MASK            0x04000000 // Found @0xff3d14c4, 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//    { 1, KEY_ZOOM_IN         ,0x00001000 }, // Found @0xff3d145c, levent 0x02
67//    { 1, KEY_ZOOM_OUT        ,0x00008000 }, // Found @0xff3d1464, levent 0x03
68//    { 2, KEY_SHOOT_FULL      ,0x00000a00 }, // Found @0xff3d147c, levent 0x01
69//    { 2, KEY_SHOOT_FULL_ONLY ,0x00000800 }, // Found @0xff3d147c, levent 0x01
70//    { 2, KEY_SHOOT_HALF      ,0x00000200 }, // Found @0xff3d1474, levent 0x00
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 @0xff14a154
79//#define CAM_RAW_ROWS      3060 // Found @0xff14a160
80//#undef  CAM_UNCACHED_BIT
81//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff02b914
82
83// Misc stuff
84DEF(ctypes, 0xff3cea36)
85
86// For capt_seq.c
87//static long *nrflag = (long*)(0x7514+0x08);  // Found @ ff18775c & ff1877c8
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                          ,0xff30fae4) //101
93NSTUB(AllocateUncacheableMemory               ,0xff02b8cc) //112
94NSTUB(Close                                   ,0xff027690) //101
95NSTUB(CreateTask                              ,0xff00e9b0) //101
96NSTUB(DebugAssert                             ,0xff00ec88) //111
97NSTUB(DeleteDirectory_Fut                     ,0xff02708c) //  1
98NSTUB(DeleteFile_Fut                          ,0xff026fa8) //112
99NSTUB(DoAFLock                                ,0xff028edc) //102
100NSTUB(EnterToCompensationEVF                  ,0xff029138) //104
101NSTUB(ExecuteEventProcedure                   ,0xff083fe0) //  1
102NSTUB(ExitFromCompensationEVF                 ,0xff02917c) //104
103NSTUB(ExitTask                                ,0xff00ec40) //101
104NSTUB(ExpCtrlTool_StartContiAE                ,0xff037f50) //104
105NSTUB(ExpCtrlTool_StopContiAE                 ,0xff038028) //104
106NSTUB(Fclose_Fut                              ,0xff027124) //101
107NSTUB(Feof_Fut                                ,0xff027310) //  1
108NSTUB(Fflush_Fut                              ,0xff02734c) //  1
109NSTUB(Fgets_Fut                               ,0xff027278) //  6
110NSTUB(Fopen_Fut                               ,0xff0270e4) //101
111NSTUB(Fread_Fut                               ,0xff0271d0) //101
112NSTUB(FreeMemory                              ,0xff30fadc) //101
113NSTUB(FreeUncacheableMemory                   ,0xff02b90c) //112
114NSTUB(Fseek_Fut                               ,0xff0272c4) //101
115NSTUB(Fwrite_Fut                              ,0xff027224) //101
116NSTUB(GetBatteryTemperature                   ,0xff0597d4) //102
117NSTUB(GetCCDTemperature                       ,0xff059760) //102
118NSTUB(GetCurrentAvValue                       ,0xff17678c) //102
119NSTUB(GetDrive_ClusterSize                    ,0xff0680d8) //  6
120NSTUB(GetDrive_FreeClusters                   ,0xff068130) //  6
121NSTUB(GetDrive_TotalClusters                  ,0xff068108) //  6
122NSTUB(GetFocusLensSubjectDistance             ,0xff174b20) //102
123NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff174f80) //  3
124NSTUB(GetImageFolder                          ,0xff1510ec) //  6
125NSTUB(GetKbdState                             ,0xff0560b4) //109
126NSTUB(GetMemInfo                              ,0xff00a29c) //  3
127NSTUB(GetOpticalTemperature                   ,0xff059848) //102
128NSTUB(GetParameterData                        ,0xff1b0360) //101
129NSTUB(GetPropertyCase                         ,0xff087d48) //102
130NSTUB(GetSystemTime                           ,0xff30fb3c) //101
131NSTUB(GetZoomLensCurrentPoint                 ,0xff179f70) //102
132NSTUB(GetZoomLensCurrentPosition              ,0xff2f9ac8) //102
133NSTUB(GiveSemaphore                           ,0xff02b2c4) //112
134NSTUB(IsStrobeChargeCompleted                 ,0xff0dabe0) //102
135NSTUB(LEDDrive                                ,0xff0555f8) //101
136NSTUB(LocalTime                               ,0xff081870) //  6
137NSTUB(LockMainPower                           ,0xff08d454) //103
138NSTUB(Lseek                                   ,0xff0278ac) //101
139NSTUB(MakeDirectory_Fut                       ,0xff02701c) //  6
140NSTUB(MakeSDCardBootable                      ,0xff068368) //105
141NSTUB(MoveFocusLensToDistance                 ,0xff3878d4) //102
142NSTUB(MoveIrisWithAv                          ,0xff30bc30) //102
143NSTUB(MoveZoomLensWithPoint                   ,0xff30c4fc) //102
144NSTUB(NewTaskShell                            ,0xff087790) //101
145NSTUB(Open                                    ,0xff0275c8) //101
146NSTUB(PB2Rec                                  ,0xff090114) //104
147NSTUB(PT_MoveDigitalZoomToWide                ,0xff072364) //102
148NSTUB(PT_MoveOpticalZoomAt                    ,0xff07233c) //102
149NSTUB(PT_PlaySound                            ,0xff07cc4c) //  6
150NSTUB(PostLogicalEventForNotPowerType         ,0xff08cbfc) //103
151NSTUB(PostLogicalEventToUI                    ,0xff08cc48) //103
152NSTUB(PutInNdFilter                           ,0xff30c344) //102
153NSTUB(PutOutNdFilter                          ,0xff30c368) //102
154NSTUB(Read                                    ,0xff00ad58) //101
155NSTUB(ReadFastDir                             ,0xff2e4530) //  6
156NSTUB(Rec2PB                                  ,0xff090154) //104
157NSTUB(RefreshPhysicalScreen                   ,0xff0a3f10) //104
158NSTUB(Remove                                  ,0xff027804) //  6
159NSTUB(RenameFile_Fut                          ,0xff026f14) //  6
160NSTUB(Restart                                 ,0xff02d0e0) //106
161NSTUB(ScreenLock                              ,0xff0a5108) //  4
162NSTUB(ScreenUnlock                            ,0xff0a516c) //  3
163NSTUB(SetAE_ShutterSpeed                      ,0xff38a750) //102
164NSTUB(SetAutoShutdownTime                     ,0xff08d4c8) //103
165NSTUB(SetCurrentCaptureModeType               ,0xff095608) //101
166NSTUB(SetFileAttributes                       ,0xff027a94) //  6
167NSTUB(SetFileTimeStamp                        ,0xff027a1c) //  6
168NSTUB(SetLogicalEventActive                   ,0xff08d1bc) //101
169NSTUB(SetParameterData                        ,0xff1b02d0) //101
170NSTUB(SetPropertyCase                         ,0xff087c2c) //102
171NSTUB(SetScriptMode                           ,0xff08d20c) //101
172NSTUB(SleepTask                               ,0xff02b570) //101
173NSTUB(TakeSemaphore                           ,0xff02b1f4) //101
174NSTUB(TurnOffBackLight                        ,0xff09b938) //104
175NSTUB(TurnOnBackLight                         ,0xff09b920) //104
176NSTUB(UIFS_WriteFirmInfoToFile                ,0xff19e09c) //101
177NSTUB(UnlockAF                                ,0xff028f14) //102
178NSTUB(UnlockMainPower                         ,0xff08d3a8) //103
179NSTUB(VbattGet                                ,0xff023004) //101
180NSTUB(Write                                   ,0xff0276e4) //101
181NSTUB(WriteSDCard                             ,0xff163f5c) //108
182NSTUB(_log                                    ,0xff3cb220) //111
183NSTUB(_log10                                  ,0xff3cb760) //112
184NSTUB(_pow                                    ,0xff3cb8d8) //114
185NSTUB(_sqrt                                   ,0xff3cd838) //  6
186NSTUB(add_ptp_handler                         ,0xff28ee4c) //  6
187NSTUB(apex2us                                 ,0xff24e4e4) //  4
188NSTUB(close                                   ,0xff00abb4) //  6
189NSTUB(closedir                                ,0xff2e438c) //  4
190NSTUB(err_init_task                           ,0xff005fd4) //  4
191NSTUB(exmem_alloc                             ,0xff082838) //101
192NSTUB(free                                    ,0xff004244) //112
193NSTUB(kbd_p1_f                                ,0xff024ea8) //109
194NSTUB(kbd_p1_f_cont                           ,0xff024eb4) //109
195NSTUB(kbd_p2_f                                ,0xff02469c) //109
196NSTUB(kbd_read_keys                           ,0xff024e2c) //109
197NSTUB(kbd_read_keys_r2                        ,0xff055ad0) //109
198NSTUB(lseek                                   ,0xff0278ac) //101
199NSTUB(malloc                                  ,0xff0041ec) //112
200NSTUB(memcmp                                  ,0xff0108e8) //101
201NSTUB(memcpy                                  ,0xff030fbc) //101
202NSTUB(memset                                  ,0xff24cfd8) //101
203NSTUB(mkdir                                   ,0xff027b2c) //  6
204NSTUB(mktime_ext                              ,0xff0a5f80) //  1
205NSTUB(open                                    ,0xff00ab04) //  6
206NSTUB(opendir                                 ,0xff2e43dc) //  6
207NSTUB(openfastdir                             ,0xff2e43dc) //  6
208NSTUB(qsort                                   ,0xff24d5e0) //  6
209NSTUB(rand                                    ,0xff24d118) //  6
210NSTUB(read                                    ,0xff00ad58) //101
211NSTUB(rename                                  ,0xff026f14) //  6
212NSTUB(set_control_event                       ,0xff08ce6c) //111
213NSTUB(srand                                   ,0xff24d10c) //  6
214NSTUB(stat                                    ,0xff0278f4) //  3
215NSTUB(strcat                                  ,0xff0a5738) //  1
216NSTUB(strchr                                  ,0xff0040b8) //  1
217NSTUB(strcmp                                  ,0xff0108a4) //101
218NSTUB(strcpy                                  ,0xff01088c) //101
219NSTUB(strftime                                ,0xff0a5980) //113
220NSTUB(strlen                                  ,0xff004104) //101
221NSTUB(strncmp                                 ,0xff00406c) //  1
222NSTUB(strncpy                                 ,0xff004030) //  1
223NSTUB(strrchr                                 ,0xff0040dc) //  1
224NSTUB(strtol                                  ,0xff0312bc) //101
225NSTUB(strtolx                                 ,0xff0310c0) //109
226  DEF(task_CaptSeq                            ,0xff074f1c) //110
227  DEF(task_ExpDrv                             ,0xff0bdd18) //110
228  DEF(task_InitFileModules                    ,0xff090ab0) //110
229  DEF(task_MovieRecord                        ,0xff17fc00) //110
230  DEF(task_PhySw                              ,0xff0249c8) //110
231NSTUB(time                                    ,0xff081e4c) //  6
232NSTUB(vsprintf                                ,0xff01084c) //  6
233NSTUB(write                                   ,0xff0276e4) //101
Note: See TracBrowser for help on using the repository browser.