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

Revision 1911, 14.0 KB checked in by reyalp, 12 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.00E
7//   Canon DIGITAL IXUS 980 IS
8
9// Values for makefile.inc
10//   PLATFORMOSVER = 31
11//   PLATFORMID = 12691 (0x3193) // Found @ 0xfffe0130
12//   MAXRAMADDR = 0x07ffffff
13//   KEYSYS = d4                 // Found @ 0xffff363c
14//   NEED_ENCODED_DISKBOOT = 1   // Found @ 0xffff364c
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
18//NSTUB(DoAFLock                              ,0xff8258d0) //102        *** != 0xff863a80
19//NSTUB(UnlockAF                              ,0xff825908) //102        *** != 0xff863a90
20//NSTUB(kbd_pwr_off                           ,0xff84a3a8) //  2 64%    *** != 0x00000000
21// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0x00000000
22
23// Check of modemap from 'platform/CAMERA/shooting.c':
24// Firmware modemap table found @ff8816a8 -> ff87de64 -> ff961a3c -> ffa58654 -> ffb49820
25// No problems found with modemap table.
26
27// Values below can be overridden in 'stubs_min.S':
28DEF(physw_status                            ,0x00011318) // Found @0xff821c24
29DEF(physw_run                               ,0x00001c28) // Found @0xff821898
30DEF(levent_table                            ,0xffb198b0) // Found @0xffb198b0
31DEF(FlashParamsTable                        ,0xffb499f4) // Found @0xffb499f4
32DEF(movie_status                            ,0x000053dc) // Found @0xff861ed0
33DEF(canon_menu_active                       ,0x00005830) // Found @0xff876e48
34DEF(canon_shoot_menu_active                 ,0x0000a351) // Found @0xff973b2c
35DEF(playrec_mode                            ,0x00005594) // Found @0xff869e90
36DEF(zoom_status                             ,0x0000d890) // Found @0xffa59e68
37DEF(some_flag_for_af_scan                   ,0x000093e0) // Found @0xff93be2c
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 8 entries in the table - set NUM_FL to 8
41DEF(focus_len_table                         ,0xfffe2a8c) // Found @0xfffe2a8c
42DEF(zoom_busy                               ,0x00008a1c) // Found @0xff93378c
43DEF(focus_busy                              ,0x00008914) // Found @0xff92e770
44//DEF(recreview_hold                          ,0x000061b8) // Found @0xff887648, ** != ** stubs_min = 0x0000a0a0 (0xA0A0)
45
46// Values below go in 'lib.c':
47//void *vid_get_bitmap_fb()        { return (void*)0x40471000; }             // Found @0xff845f24
48//void *vid_get_viewport_fb()      { return (void*)0x407f6dc0; }             // Found @0xffaadbb8
49//void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x5210+0x58)); } // Found @0xff85af1c & 0xff85af54
50//char *camera_jpeg_count_str()    { return (char*)0x0004af18; }             // Found @0xff9b957c
51//long hook_raw_size()             { return 0x01574d00; }                    // Found @0xffaaff70
52//int get_flash_params_count(void) { return 0x78; }                          // Found @0xff962af8
53
54// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
55//#define SD_READONLY_FLAG    0x00020000 // Found @0xffae86d0, levent 0x90a
56//#define SD_READONLY_IDX     2
57//#define USB_MASK            0x00040000 // Found @0xffae86dc, levent 0x902
58//#define USB_IDX             2
59
60// Keymap values for kbd.c. Additional keys may be present, only common values included here.
61//static KeyMap keymap[] = {
62//    { 2, KEY_ZOOM_IN         ,0x00000004 }, // Found @0xffae8640, levent 0x02
63//    { 2, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffae864c, levent 0x03
64//    { 2, KEY_LEFT            ,0x00000010 }, // Found @0xffae8658, levent 0x06
65//    { 2, KEY_RIGHT           ,0x00000020 }, // Found @0xffae8664, levent 0x07
66//    { 2, KEY_DOWN            ,0x00000040 }, // Found @0xffae8670, levent 0x05
67//    { 2, KEY_UP              ,0x00000080 }, // Found @0xffae867c, levent 0x04
68//    { 2, KEY_SET             ,0x00000100 }, // Found @0xffae8688, levent 0x08
69//    { 2, KEY_DISPLAY         ,0x00000200 }, // Found @0xffae8694, levent 0x0a
70//    { 2, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffae8634, levent 0x01
71//    { 2, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffae8634, levent 0x01
72//    { 2, KEY_MENU            ,0x00000400 }, // Found @0xffae86a0, levent 0x09
73//    { 2, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffae8628, levent 0x00
74//    { 0, 0, 0 }
75//};
76
77// Values below go in 'platform_camera.h':
78//#define CAM_DRYOS         1
79//#define CAM_RAW_ROWPIX    4480 // Found @0xffaa6e8c
80//#define CAM_RAW_ROWS      3348 // Found @0xffaa6e90
81//#undef  CAM_UNCACHED_BIT
82//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff827f80
83
84// Misc stuff
85DEF(ctypes, 0xffae283e)
86
87// For capt_seq.c
88//static long *nrflag = (long*)(0x93cc-0x04);  // Found @ ff93de40 & ff93de58
89
90// Stubs below matched 100%.
91//    Name                                     Address                Comp to stubs_entry_2.S
92NSTUB(AllocateMemory                          ,0xffa49a40) //101
93NSTUB(AllocateUncacheableMemory               ,0xff827f3c) //112
94NSTUB(Close                                   ,0xff823b74) //101
95NSTUB(CreateTask                              ,0xff81aef4) //101
96NSTUB(DebugAssert                             ,0xff81b1cc) //111
97NSTUB(DeleteDirectory_Fut                     ,0xff823504) //  1
98NSTUB(DeleteFile_Fut                          ,0xff823420) //112
99NSTUB(EnterToCompensationEVF                  ,0xff825b7c) //104
100NSTUB(ExecuteEventProcedure                   ,0xff872670) //  1
101NSTUB(ExitFromCompensationEVF                 ,0xff825bc0) //104
102NSTUB(ExitTask                                ,0xff81b184) //101
103NSTUB(ExpCtrlTool_StartContiAE                ,0xff8310e4) //104
104NSTUB(ExpCtrlTool_StopContiAE                 ,0xff831228) //104
105NSTUB(Fclose_Fut                              ,0xff82359c) //101
106NSTUB(Feof_Fut                                ,0xff823788) //  1
107NSTUB(Fflush_Fut                              ,0xff8237c4) //  1
108NSTUB(Fgets_Fut                               ,0xff8236f0) //  1
109NSTUB(Fopen_Fut                               ,0xff82355c) //101
110NSTUB(Fread_Fut                               ,0xff823648) //101
111NSTUB(FreeMemory                              ,0xffa49a38) //101
112NSTUB(FreeUncacheableMemory                   ,0xff827f7c) //112
113NSTUB(Fseek_Fut                               ,0xff82373c) //101
114NSTUB(Fwrite_Fut                              ,0xff82369c) //101
115NSTUB(GetBatteryTemperature                   ,0xff84ce3c) //102
116NSTUB(GetCCDTemperature                       ,0xff84cdcc) //102
117NSTUB(GetCurrentAvValue                       ,0xff9303b0) //102
118NSTUB(GetDrive_ClusterSize                    ,0xff859648) //  1
119NSTUB(GetDrive_FreeClusters                   ,0xff8596b0) //  1
120NSTUB(GetDrive_TotalClusters                  ,0xff85967c) //  1
121NSTUB(GetFocusLensSubjectDistance             ,0xff92f474) //102
122NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff92f85c) //  3
123NSTUB(GetKbdState                             ,0xff84a390) //109
124NSTUB(GetMemInfo                              ,0xff813c24) //  1
125NSTUB(GetOpticalTemperature                   ,0xff84ceac) //102
126NSTUB(GetParameterData                        ,0xff962ab8) //101
127NSTUB(GetPropertyCase                         ,0xff876358) //102
128NSTUB(GetSystemTime                           ,0xffa49a98) //101
129NSTUB(GetVRAMHPixelsSize                      ,0xff83c2a8) //102
130NSTUB(GetVRAMVPixelsSize                      ,0xff83c2b4) //102
131NSTUB(GetZoomLensCurrentPoint                 ,0xff933afc) //102
132NSTUB(GetZoomLensCurrentPosition              ,0xffa4059c) //102
133NSTUB(GiveSemaphore                           ,0xff827958) //112
134NSTUB(IsStrobeChargeCompleted                 ,0xff8b0638) //102
135NSTUB(LEDDrive                                ,0xff849b2c) //103
136NSTUB(LocalTime                               ,0xff86fe0c) //  1
137NSTUB(LockMainPower                           ,0xff87da7c) //103
138NSTUB(Lseek                                   ,0xff823cb4) //101
139NSTUB(MakeDirectory_Fut                       ,0xff823494) //  1
140NSTUB(MoveFocusLensToDistance                 ,0xffaaa5fc) //102
141NSTUB(MoveIrisWithAv                          ,0xffa46ae4) //102
142NSTUB(MoveZoomLensWithPoint                   ,0xffa4706c) //102
143NSTUB(NewTaskShell                            ,0xff875e00) //103
144NSTUB(Open                                    ,0xff823b4c) //101
145NSTUB(PB2Rec                                  ,0xff880ac0) //104
146NSTUB(PT_MoveDigitalZoomToWide                ,0xff863a48) //102
147NSTUB(PT_MoveOpticalZoomAt                    ,0xff863a20) //102
148NSTUB(PT_PlaySound                            ,0xff863398) //102
149NSTUB(PostLogicalEventForNotPowerType         ,0xff87b858) //103
150NSTUB(PostLogicalEventToUI                    ,0xff87b8a4) //103
151NSTUB(PutInNdFilter                           ,0xffa46ed0) //102
152NSTUB(PutOutNdFilter                          ,0xffa46ef4) //102
153NSTUB(Read                                    ,0xff819a4c) //101
154NSTUB(ReadFastDir                             ,0xffa2eb80) //  1
155NSTUB(Rec2PB                                  ,0xff87f458) //104
156NSTUB(RefreshPhysicalScreen                   ,0xff9c7c94) //104
157NSTUB(Remove                                  ,0xff823bbc) //  1
158NSTUB(RenameFile_Fut                          ,0xff8233cc) //  1
159NSTUB(Restart                                 ,0xff8297b0) //106
160NSTUB(SetAE_ShutterSpeed                      ,0xffaacdc8) //102
161NSTUB(SetAutoShutdownTime                     ,0xff87daf0) //103
162NSTUB(SetCurrentCaptureModeType               ,0xff884c28) //101
163NSTUB(SetFileAttributes                       ,0xff823ea0) //  1
164NSTUB(SetFileTimeStamp                        ,0xff823e50) //  1
165NSTUB(SetLogicalEventActive                   ,0xff87d7cc) //101
166NSTUB(SetParameterData                        ,0xff962a28) //101
167NSTUB(SetPropertyCase                         ,0xff876250) //102
168NSTUB(SetScriptMode                           ,0xff87d81c) //101
169NSTUB(SleepTask                               ,0xff827bc0) //101
170NSTUB(TakeSemaphore                           ,0xff827888) //101
171NSTUB(TurnOffBackLight                        ,0xff88aca0) //104
172NSTUB(TurnOnBackLight                         ,0xff88ac88) //104
173NSTUB(UIFS_WriteFirmInfoToFile                ,0xff953ba0) //101
174NSTUB(UnlockMainPower                         ,0xff87d9d0) //103
175NSTUB(UnsetZoomForMovie                       ,0xff9689ec) //104
176NSTUB(UpdateMBROnFlash                        ,0xff859488) //105
177NSTUB(VbattGet                                ,0xff820560) //103
178NSTUB(Write                                   ,0xff823c20) //101
179NSTUB(WriteSDCard                             ,0xff9210a4) //108
180NSTUB(_log                                    ,0xffadfabc) //111
181NSTUB(_log10                                  ,0xffade748) //112
182NSTUB(_pow                                    ,0xffade8b8) //114
183NSTUB(_sqrt                                   ,0xffae1718) //  1
184NSTUB(add_ptp_handler                         ,0xff9fbed8) //  3
185NSTUB(apex2us                                 ,0xff9c8cb0) //  4
186NSTUB(close                                   ,0xff819864) //  1
187NSTUB(closedir                                ,0xffa2ec50) //  1
188NSTUB(err_init_task                           ,0xff814e80) //  4
189NSTUB(exmem_alloc                             ,0xff870d4c) //103
190NSTUB(free                                    ,0xff813a7c) //112
191NSTUB(kbd_p1_f                                ,0xff821d20) //109
192NSTUB(kbd_p1_f_cont                           ,0xff821d2c) //109
193NSTUB(kbd_p2_f                                ,0xff821538) //109
194NSTUB(kbd_read_keys                           ,0xff821c24) //109
195NSTUB(kbd_read_keys_r2                        ,0xff849f24) //109
196NSTUB(lseek                                   ,0xff823cb4) //101
197NSTUB(malloc                                  ,0xff8139a8) //112
198NSTUB(memcmp                                  ,0xff81cba4) //101
199NSTUB(memcpy                                  ,0xff8977a4) //101
200NSTUB(memset                                  ,0xff9c7fe8) //101
201NSTUB(mkdir                                   ,0xff823f18) //  1
202// ALT: NSTUB(mkdir, 0xff823fb8) // 1 32/0
203NSTUB(mktime_ext                              ,0xff898010) //  1
204NSTUB(open                                    ,0xff8197b4) //  1
205NSTUB(opendir                                 ,0xffa2eaec) //  1
206NSTUB(openfastdir                             ,0xffa2eaec) //  1
207NSTUB(qsort                                   ,0xffa93dc0) //  1
208NSTUB(rand                                    ,0xff81ccac) //  1
209NSTUB(read                                    ,0xff819a4c) //101
210NSTUB(reboot_fw_update                        ,0xffa36580) //  5
211NSTUB(rename                                  ,0xff8233cc) //  1
212NSTUB(set_control_event                       ,0xff87d448) //  1
213NSTUB(srand                                   ,0xff81cca0) //  1
214NSTUB(stat                                    ,0xff823d80) //  1
215NSTUB(strcat                                  ,0xff8975b8) //  1
216NSTUB(strchr                                  ,0xff897640) //  1
217NSTUB(strcmp                                  ,0xff81cb3c) //101
218NSTUB(strcpy                                  ,0xff81cb24) //101
219NSTUB(strftime                                ,0xff897a18) //  1
220NSTUB(strlen                                  ,0xff81cb80) //101
221NSTUB(strncmp                                 ,0xff8975f4) //  1
222NSTUB(strncpy                                 ,0xff82da50) //  1
223NSTUB(strrchr                                 ,0xff9c7fc0) //  1
224NSTUB(strtol                                  ,0xff82dc88) //101
225NSTUB(strtolx                                 ,0xff82da8c) //109
226  DEF(task_CaptSeq                            ,0xff865f0c) //107
227  DEF(task_ExpDrv                             ,0xff8a9554) //110
228  DEF(task_InitFileModules                    ,0xff881534) //107
229  DEF(task_MovieRecord                        ,0xff862148) //107
230  DEF(task_PhySw                              ,0xff821894) //107
231NSTUB(time                                    ,0xff8703ec) //  2
232NSTUB(vsprintf                                ,0xff81cae8) //  1
233NSTUB(write                                   ,0xff823c20) //101
Note: See TracBrowser for help on using the repository browser.