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

Revision 1911, 14.8 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 R31 (DRYOS version 2.3, release #0031)
6//   Firmware Ver GM1.00C
7//   Canon PowerShot SD780 IS
8
9// Values for makefile.inc
10//   PLATFORMOSVER = 31
11//   PLATFORMID = 12738 (0x31c2) // Found @ 0xfffe0130
12//   MAXRAMADDR = 0x03ffffff
13//   KEYSYS = d4                 // Found @ 0xffff3584
14//   NEED_ENCODED_DISKBOOT = 2   // Found @ 0xffff3594
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                             ,0xff843204) //  2 64%
19// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0x00000000
20
21// Check of modemap from 'platform/CAMERA/shooting.c':
22// Firmware modemap table found @ff877f44 -> ff8746ec -> ff9442b0 -> ffa4a604 -> ffb2e4d0
23// Mode 16390 in firmware but not in current modemap
24// Mode 16904 in firmware but not in current modemap
25// Mode 16906 in firmware but not in current modemap
26// Mode 16923 in firmware but not in current modemap
27// Mode 16924 in firmware but not in current modemap
28// Mode 16413 in firmware but not in current modemap
29// Mode 16408 in firmware but not in current modemap
30// Mode 16406 in firmware but not in current modemap
31// Mode  2600 in firmware but not in current modemap
32// Mode  2601 in firmware but not in current modemap
33// Current modemap entry not found in firmware - MODE_LANDSCAPE           32780
34// Current modemap entry not found in firmware - MODE_SCN_NIGHT_SCENE     16398
35// Current modemap entry not found in firmware - MODE_VIDEO_SPEED          2598
36// Current modemap entry not found in firmware - MODE_VIDEO_STD            2597
37
38// Values below can be overridden in 'stubs_min.S':
39DEF(physw_status                            ,0x0000e238) // Found @0xff821dcc
40DEF(physw_run                               ,0x00001c34) // Found @0xff821a40
41DEF(levent_table                            ,0xffb009f0) // Found @0xffb009f0
42DEF(FlashParamsTable                        ,0xffb2e6ac) // Found @0xffb2e6ac
43DEF(movie_status                            ,0x00005b10) // Found @0xff91a3c4
44DEF(canon_menu_active                       ,0x00002ca0) // Found @0xff86edcc
45DEF(canon_shoot_menu_active                 ,0x00006e29) // Found @0xff953cac
46DEF(playrec_mode                            ,0x00002a08) // Found @0xff862160
47DEF(zoom_status                             ,0x0000ac68) // Found @0xffa4be34
48DEF(some_flag_for_af_scan                   ,0x00006068) // Found @0xff91d6b8
49// focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
50// each entry contains 3 int value(s), the first is the zoom focus length.
51// there are 7 entries in the table - set NUM_FL to 7
52DEF(focus_len_table                         ,0xfffe2a8c) // Found @0xfffe2a8c
53DEF(zoom_busy                               ,0x00005a3c) // Found @0xff9166f4
54DEF(focus_busy                              ,0x00005938) // Found @0xff9115c8
55//DEF(recreview_hold                          ,0x0000328c) // Found @0xff87dd40, ** != ** stubs_min = 0x00006c0c (0x6C0C)
56
57// Values below go in 'lib.c':
58//void *vid_get_bitmap_fb()        { return (void*)0x403f1000; }             // Found @0xff83dae4
59//void *vid_get_viewport_fb()      { return (void*)0x415f3570; }             // Found @0xffa97de8
60//void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x26f4+0x58)); } // Found @0xff853cb4 & 0xff853cec
61//char *camera_jpeg_count_str()    { return (char*)0x00033110; }             // Found @0xff98fafc
62//long hook_raw_size()             { return 0x011ca240; }                    // Found @0xffa9a374
63//int get_flash_params_count(void) { return 0x7a; }                          // Found @0xff94536c
64
65// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
66//#define SD_READONLY_FLAG    0x00020000 // Found @0xffacd584, levent 0x90a
67//#define SD_READONLY_IDX     2
68//#define USB_MASK            0x00080000 // Found @0xffacd59c, levent 0x902
69//#define USB_IDX             2
70
71// Keymap values for kbd.c. Additional keys may be present, only common values included here.
72//static KeyMap keymap[] = {
73//    { 0, KEY_LEFT            ,0x00000001 }, // Found @0xffacd47c, levent 0x06
74//    { 0, KEY_RIGHT           ,0x00000002 }, // Found @0xffacd488, levent 0x07
75//    { 0, KEY_DOWN            ,0x00000004 }, // Found @0xffacd494, levent 0x05
76//    { 0, KEY_UP              ,0x00000008 }, // Found @0xffacd4a0, levent 0x04
77//    { 1, KEY_MENU            ,0x00000800 }, // Found @0xffacd4ac, levent 0x09
78//    { 1, KEY_SET             ,0x00004000 }, // Found @0xffacd4b8, levent 0x08
79//    { 2, KEY_SHOOT_FULL      ,0x00001001 }, // Found @0xffacd548, levent 0x01
80//    { 2, KEY_DISPLAY         ,0x00000040 }, // Found @0xffacd530, levent 0x0a
81//    { 2, KEY_SHOOT_FULL_ONLY ,0x00001000 }, // Found @0xffacd548, levent 0x01
82//    { 2, KEY_ZOOM_OUT        ,0x00002000 }, // Found @0xffacd554, levent 0x03
83//    { 2, KEY_ZOOM_IN         ,0x00004000 }, // Found @0xffacd560, levent 0x02
84//    { 2, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffacd4f4, levent 0x00
85//    { 0, 0, 0 }
86//};
87
88// Values below go in 'platform_camera.h':
89//#define CAM_DRYOS         1
90//#define CAM_RAW_ROWPIX    4080 // Found @0xff8e6184
91//#define CAM_RAW_ROWS      3048 // Found @0xff8e6188
92//#undef  CAM_UNCACHED_BIT
93//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff82748c
94
95// Misc stuff
96DEF(ctypes, 0xffacc2ea)
97
98// For capt_seq.c
99//static long *nrflag = (long*)(0x6050-0x08);  // Found @ ff91f644 & ff91f660
100
101// Stubs below matched 100%.
102//    Name                                     Address                Comp to stubs_entry_2.S
103NSTUB(AllocateMemory                          ,0xffa3df5c) //101
104NSTUB(AllocateUncacheableMemory               ,0xff827448) //112
105NSTUB(Close                                   ,0xff823c98) //101
106NSTUB(CreateTask                              ,0xff81afac) //101
107NSTUB(DebugAssert                             ,0xff81b284) //111
108NSTUB(DeleteDirectory_Fut                     ,0xff823628) //  1
109NSTUB(DeleteFile_Fut                          ,0xff823544) //112
110NSTUB(DoAFLock                                ,0xff825334) //102
111NSTUB(EnterToCompensationEVF                  ,0xff825420) //104
112NSTUB(ExecuteEventProcedure                   ,0xff86a518) //  1
113NSTUB(ExitFromCompensationEVF                 ,0xff825464) //104
114NSTUB(ExitTask                                ,0xff81b23c) //101
115NSTUB(ExpCtrlTool_StartContiAE                ,0xff82ff40) //104
116NSTUB(ExpCtrlTool_StopContiAE                 ,0xff830084) //104
117NSTUB(Fclose_Fut                              ,0xff8236c0) //101
118NSTUB(Feof_Fut                                ,0xff8238ac) //  1
119NSTUB(Fflush_Fut                              ,0xff8238e8) //  1
120NSTUB(Fgets_Fut                               ,0xff823814) //  1
121NSTUB(Fopen_Fut                               ,0xff823680) //101
122NSTUB(Fread_Fut                               ,0xff82376c) //101
123NSTUB(FreeMemory                              ,0xffa3df54) //101
124NSTUB(FreeUncacheableMemory                   ,0xff827488) //112
125NSTUB(Fseek_Fut                               ,0xff823860) //101
126NSTUB(Fwrite_Fut                              ,0xff8237c0) //101
127NSTUB(GetBatteryTemperature                   ,0xff845f30) //102
128NSTUB(GetCCDTemperature                       ,0xff845ebc) //102
129NSTUB(GetCurrentAvValue                       ,0xff913380) //102
130NSTUB(GetDrive_ClusterSize                    ,0xff8523e8) //  5
131NSTUB(GetDrive_FreeClusters                   ,0xff852440) //  5
132NSTUB(GetDrive_TotalClusters                  ,0xff852414) //  5
133NSTUB(GetFocusLensSubjectDistance             ,0xff912430) //102
134NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff91280c) //  3
135NSTUB(GetKbdState                             ,0xff8431ec) //109
136NSTUB(GetMemInfo                              ,0xff813be4) //  1
137NSTUB(GetOpticalTemperature                   ,0xff845fa4) //102
138NSTUB(GetParameterData                        ,0xff94532c) //101
139NSTUB(GetPropertyCase                         ,0xff86e284) //102
140NSTUB(GetSystemTime                           ,0xffa3dfb4) //101
141NSTUB(GetVRAMHPixelsSize                      ,0xff8b1568) //102
142NSTUB(GetVRAMVPixelsSize                      ,0xff8b1574) //102
143NSTUB(GetZoomLensCurrentPoint                 ,0xff916a6c) //102
144NSTUB(GetZoomLensCurrentPosition              ,0xffa31844) //102
145NSTUB(GiveSemaphore                           ,0xff826e64) //112
146NSTUB(IsStrobeChargeCompleted                 ,0xff8a35c8) //102
147NSTUB(LEDDrive                                ,0xff842698) //103
148NSTUB(LocalTime                               ,0xff867f08) //  1
149NSTUB(LockMainPower                           ,0xff874304) //103
150NSTUB(Lseek                                   ,0xff823dd8) //101
151NSTUB(MakeDirectory_Fut                       ,0xff8235b8) //  1
152NSTUB(MoveFocusLensToDistance                 ,0xffa94780) //102
153NSTUB(MoveIrisWithAv                          ,0xffa3c0b4) //102
154NSTUB(MoveZoomLensWithPoint                   ,0xffa3c640) //102
155NSTUB(NewTaskShell                            ,0xff86dd28) //103
156NSTUB(Open                                    ,0xff823c70) //101
157NSTUB(PB2Rec                                  ,0xff8772bc) //104
158NSTUB(PT_MoveDigitalZoomToWide                ,0xff85b138) //102
159NSTUB(PT_MoveOpticalZoomAt                    ,0xff85b110) //102
160NSTUB(PT_PlaySound                            ,0xff85ad20) //102
161NSTUB(PostLogicalEventForNotPowerType         ,0xff87392c) //103
162NSTUB(PostLogicalEventToUI                    ,0xff873978) //103
163NSTUB(PutInNdFilter                           ,0xffa3c4a4) //102
164NSTUB(PutOutNdFilter                          ,0xffa3c4c8) //102
165NSTUB(Read                                    ,0xff819ae4) //101
166NSTUB(ReadFastDir                             ,0xffa1fd94) //  1
167NSTUB(Rec2PB                                  ,0xff8772fc) //104
168NSTUB(RefreshPhysicalScreen                   ,0xff99cf18) //104
169NSTUB(Remove                                  ,0xff823ce0) //  1
170NSTUB(RenameFile_Fut                          ,0xff8234f0) //  1
171NSTUB(Restart                                 ,0xff828b98) //106
172NSTUB(SetAE_ShutterSpeed                      ,0xffa96f60) //102
173NSTUB(SetAutoShutdownTime                     ,0xff874378) //103
174NSTUB(SetCurrentCaptureModeType               ,0xff87b2c0) //101
175NSTUB(SetFileAttributes                       ,0xff823fc4) //  1
176NSTUB(SetFileTimeStamp                        ,0xff823f74) //  1
177NSTUB(SetLogicalEventActive                   ,0xff874080) //101
178NSTUB(SetParameterData                        ,0xff94529c) //101
179NSTUB(SetPropertyCase                         ,0xff86e17c) //102
180NSTUB(SetScriptMode                           ,0xff8740d0) //101
181NSTUB(SleepTask                               ,0xff8270cc) //101
182NSTUB(TakeSemaphore                           ,0xff826d94) //101
183NSTUB(TurnOffBackLight                        ,0xff8810a0) //104
184NSTUB(TurnOnBackLight                         ,0xff881088) //104
185NSTUB(UIFS_WriteFirmInfoToFile                ,0xff931e7c) //101
186NSTUB(UnlockAF                                ,0xff82536c) //102
187NSTUB(UnlockMainPower                         ,0xff874258) //103
188NSTUB(UnsetZoomForMovie                       ,0xff94afc4) //104
189NSTUB(UpdateMBROnFlash                        ,0xff852240) //105
190NSTUB(VbattGet                                ,0xff820644) //103
191NSTUB(Write                                   ,0xff823d44) //101
192NSTUB(WriteSDCard                             ,0xff903b38) //108
193NSTUB(_log                                    ,0xffac9580) //111
194NSTUB(_log10                                  ,0xffac820c) //112
195NSTUB(_pow                                    ,0xffac837c) //114
196NSTUB(_sqrt                                   ,0xffacb124) //  1
197NSTUB(add_ptp_handler                         ,0xff9eabdc) //  3
198NSTUB(apex2us                                 ,0xff9a010c) //  4
199NSTUB(close                                   ,0xff8198fc) //  1
200NSTUB(closedir                                ,0xffa1fe64) //  1
201NSTUB(err_init_task                           ,0xff814e2c) //  4
202NSTUB(exmem_alloc                             ,0xff868dc8) //103
203NSTUB(free                                    ,0xff813a3c) //112
204NSTUB(kbd_p1_f                                ,0xff821e48) //109
205NSTUB(kbd_p1_f_cont                           ,0xff821e54) //109
206NSTUB(kbd_p2_f                                ,0xff82170c) //109
207NSTUB(kbd_read_keys                           ,0xff821dcc) //109
208NSTUB(kbd_read_keys_r2                        ,0xff842b6c) //109
209NSTUB(lseek                                   ,0xff823dd8) //101
210NSTUB(malloc                                  ,0xff813968) //112
211NSTUB(memcmp                                  ,0xff81cc5c) //101
212NSTUB(memcpy                                  ,0xff887900) //101
213NSTUB(memset                                  ,0xff99f3f4) //101
214NSTUB(mkdir                                   ,0xff82403c) //  1
215// ALT: NSTUB(mkdir, 0xff8240dc) // 1 32/0
216NSTUB(mktime_ext                              ,0xff88816c) //  1
217NSTUB(open                                    ,0xff81984c) //  1
218NSTUB(opendir                                 ,0xffa1fd00) //  1
219NSTUB(openfastdir                             ,0xffa1fd00) //  1
220NSTUB(qsort                                   ,0xffa79a4c) //  1
221NSTUB(rand                                    ,0xff81cd64) //  1
222NSTUB(read                                    ,0xff819ae4) //101
223NSTUB(reboot_fw_update                        ,0xffa27444) //  5
224NSTUB(rename                                  ,0xff8234f0) //  1
225NSTUB(set_control_event                       ,0xff873db4) //111
226NSTUB(srand                                   ,0xff81cd58) //  1
227NSTUB(stat                                    ,0xff823ea4) //  1
228NSTUB(strcat                                  ,0xff887714) //  1
229NSTUB(strchr                                  ,0xff88779c) //  1
230NSTUB(strcmp                                  ,0xff81cbf4) //101
231NSTUB(strcpy                                  ,0xff81cbdc) //101
232NSTUB(strftime                                ,0xff887b74) //  1
233NSTUB(strlen                                  ,0xff81cc38) //101
234NSTUB(strncmp                                 ,0xff887750) //  1
235NSTUB(strncpy                                 ,0xff82cd3c) //  1
236NSTUB(strrchr                                 ,0xff99f3cc) //  1
237NSTUB(strtol                                  ,0xff82cf74) //101
238NSTUB(strtolx                                 ,0xff82cd78) //109
239  DEF(task_CaptSeq                            ,0xff85d754) //107
240  DEF(task_ExpDrv                             ,0xff899cc4) //110
241  DEF(task_InitFileModules                    ,0xff877dd0) //107
242  DEF(task_MovieRecord                        ,0xff91a6ac) //107
243  DEF(task_PhySw                              ,0xff821a3c) //107
244NSTUB(time                                    ,0xff868480) //  2
245NSTUB(vsprintf                                ,0xff81cba0) //  1
246NSTUB(write                                   ,0xff823d44) //101
Note: See TracBrowser for help on using the repository browser.