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

Revision 1911, 13.9 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.00C
7//   Canon PowerShot SX200 IS
8
9// Values for makefile.inc
10//   PLATFORMOSVER = 31
11//   PLATFORMID = 12736 (0x31c0) // Found @ 0xfffe0130
12//   MAXRAMADDR = 0x03ffffff
13//   KEYSYS = d4                 // Found @ 0xffff356c
14//   NEED_ENCODED_DISKBOOT = 2   // Found @ 0xffff357c
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(GetSystemTime                         ,0xffa695a4) //101        *** != 0xff8606ac
19//NSTUB(kbd_pwr_off                           ,0xff848480) //  2 60%    *** != 0x00000000
20// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0x00000000
21
22// Check of modemap from 'platform/CAMERA/shooting.c':
23// Firmware modemap table found @ff87f990 -> ff87c0c8 -> ff962264 -> ffa751d8 -> ffb6d0a4
24// No problems found with modemap table.
25
26// Values below can be overridden in 'stubs_min.S':
27DEF(physw_status                            ,0x0000f058) // Found @0xff821e24
28DEF(physw_run                               ,0x00001c34) // Found @0xff821a94
29DEF(levent_table                            ,0xffb399f0) // Found @0xffb399f0
30DEF(FlashParamsTable                        ,0xffb6d284) // Found @0xffb6d284
31DEF(movie_status                            ,0x000065c0) // Found @0xff937fd0
32DEF(canon_menu_active                       ,0x00002f10) // Found @0xff874e3c
33DEF(canon_shoot_menu_active                 ,0x0000786d) // Found @0xff97761c
34DEF(playrec_mode                            ,0x00002c70) // Found @0xff868020
35DEF(zoom_status                             ,0x0000b850) // Found @0xffa775d0
36DEF(some_flag_for_af_scan                   ,0x00006af8) // Found @0xff93b340
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 126 entries in the table - set NUM_FL to 126
40DEF(focus_len_table                         ,0xfffe8538) // Found @0xfffe8538
41DEF(zoom_busy                               ,0x000064f0) // Found @0xff9342b4
42DEF(focus_busy                              ,0x000063f8) // Found @0xff92e97c
43//DEF(recreview_hold                          ,0x000038dc) // Found @0xff885a10, ** != ** stubs_min = 0x00007508 (0x7434+0xD4)
44
45// Values below go in 'lib.c':
46//void *vid_get_bitmap_fb()        { return (void*)0x403f1000; }             // Found @0xff842ac8
47//void *vid_get_viewport_fb()      { return (void*)0x415f9e20; }             // Found @0xffac67f0
48//void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2950+0x58)); } // Found @0xff859398 & 0xff8593d0
49//char *camera_jpeg_count_str()    { return (char*)0x0005408c; }             // Found @0xff9c1f28
50//long hook_raw_size()             { return 0x011ca240; }                    // Found @0xffac8d6c
51//int get_flash_params_count(void) { return 0x7a; }                          // Found @0xff963320
52
53// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
54//#define SD_READONLY_FLAG    0x00020000 // Found @0xffafe514, levent 0x90a
55//#define SD_READONLY_IDX     2
56//#define USB_MASK            0x00200000 // Found @0xffafe544, levent 0x902
57//#define USB_IDX             2
58
59// Keymap values for kbd.c. Additional keys may be present, only common values included here.
60//static KeyMap keymap[] = {
61//    { 0, KEY_SHOOT_FULL      ,0x00000300 }, // Found @0xffafe418, levent 0x01
62//    { 0, KEY_SHOOT_FULL_ONLY ,0x00000200 }, // Found @0xffafe418, levent 0x01
63//    { 0, KEY_SHOOT_HALF      ,0x00000100 }, // Found @0xffafe40c, levent 0x00
64//    { 1, KEY_UP              ,0x00000100 }, // Found @0xffafe4a8, levent 0x04
65//    { 1, KEY_LEFT            ,0x00000200 }, // Found @0xffafe4b4, levent 0x06
66//    { 1, KEY_SET             ,0x00000400 }, // Found @0xffafe4c0, levent 0x08
67//    { 1, KEY_MENU            ,0x00000800 }, // Found @0xffafe4cc, levent 0x09
68//    { 1, KEY_DOWN            ,0x00001000 }, // Found @0xffafe4d8, levent 0x05
69//    { 1, KEY_RIGHT           ,0x00002000 }, // Found @0xffafe4e4, levent 0x07
70//    { 1, KEY_DISPLAY         ,0x00008000 }, // Found @0xffafe4fc, levent 0x0a
71//    { 0, 0, 0 }
72//};
73
74// Values below go in 'platform_camera.h':
75//#define CAM_DRYOS         1
76//#define CAM_RAW_ROWPIX    4080 // Found @0xff9025b0
77//#define CAM_RAW_ROWS      3048 // Found @0xff9025b4
78//#undef  CAM_UNCACHED_BIT
79//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff827850
80
81// Misc stuff
82DEF(ctypes, 0xffafd12a)
83
84// For capt_seq.c
85//static long *nrflag = (long*)(0x6ae0-0x08);  // Found @ ff93d410 & ff93d42c
86
87// Stubs below matched 100%.
88//    Name                                     Address                Comp to stubs_entry_2.S
89NSTUB(AllocateMemory                          ,0xffa6954c) //101
90NSTUB(AllocateUncacheableMemory               ,0xff82780c) //112
91NSTUB(Close                                   ,0xff823cf0) //101
92NSTUB(CreateTask                              ,0xff81afac) //101
93NSTUB(DebugAssert                             ,0xff81b284) //111
94NSTUB(DeleteDirectory_Fut                     ,0xff823680) //  1
95NSTUB(DeleteFile_Fut                          ,0xff82359c) //112
96NSTUB(DoAFLock                                ,0xff82560c) //102
97NSTUB(EnterToCompensationEVF                  ,0xff825748) //104
98NSTUB(ExecuteEventProcedure                   ,0xff87057c) //  1
99NSTUB(ExitFromCompensationEVF                 ,0xff8257f4) //104
100NSTUB(ExitTask                                ,0xff81b23c) //101
101NSTUB(ExpCtrlTool_StartContiAE                ,0xff8303c0) //104
102NSTUB(ExpCtrlTool_StopContiAE                 ,0xff830504) //104
103NSTUB(Fclose_Fut                              ,0xff823718) //101
104NSTUB(Feof_Fut                                ,0xff823904) //  1
105NSTUB(Fflush_Fut                              ,0xff823940) //  1
106NSTUB(Fgets_Fut                               ,0xff82386c) //  1
107NSTUB(Fopen_Fut                               ,0xff8236d8) //101
108NSTUB(Fread_Fut                               ,0xff8237c4) //101
109NSTUB(FreeMemory                              ,0xffa69544) //101
110NSTUB(FreeUncacheableMemory                   ,0xff82784c) //112
111NSTUB(Fseek_Fut                               ,0xff8238b8) //101
112NSTUB(Fwrite_Fut                              ,0xff823818) //101
113NSTUB(GetBatteryTemperature                   ,0xff84b5a8) //102
114NSTUB(GetCCDTemperature                       ,0xff84b534) //102
115NSTUB(GetCurrentAvValue                       ,0xff931328) //102
116NSTUB(GetDrive_ClusterSize                    ,0xff857acc) //  5
117NSTUB(GetDrive_FreeClusters                   ,0xff857b24) //  5
118NSTUB(GetDrive_TotalClusters                  ,0xff857af8) //  5
119NSTUB(GetFocusLensSubjectDistance             ,0xff92f7e4) //102
120NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff92fbc0) //  3
121NSTUB(GetKbdState                             ,0xff848340) //109
122NSTUB(GetMemInfo                              ,0xff813be4) //  1
123NSTUB(GetOpticalTemperature                   ,0xff84b61c) //102
124NSTUB(GetParameterData                        ,0xff9632e0) //101
125NSTUB(GetPropertyCase                         ,0xff8742e8) //102
126NSTUB(GetVRAMHPixelsSize                      ,0xff8393a0) //102
127NSTUB(GetVRAMVPixelsSize                      ,0xff8393ac) //102
128NSTUB(GetZoomLensCurrentPoint                 ,0xff93462c) //102
129NSTUB(GetZoomLensCurrentPosition              ,0xffa5cb24) //102
130NSTUB(GiveSemaphore                           ,0xff827228) //112
131NSTUB(IsStrobeChargeCompleted                 ,0xff8abb04) //102
132NSTUB(LEDDrive                                ,0xff847614) //103
133NSTUB(LocalTime                               ,0xff86df6c) //  1
134NSTUB(LockMainPower                           ,0xff87bce0) //103
135NSTUB(Lseek                                   ,0xff823e30) //101
136NSTUB(MakeDirectory_Fut                       ,0xff823610) //  1
137NSTUB(MoveFocusLensToDistance                 ,0xffac3188) //102
138NSTUB(MoveIrisWithAv                          ,0xffa675d8) //102
139NSTUB(MoveZoomLensWithPoint                   ,0xffa67c24) //102
140NSTUB(NewTaskShell                            ,0xff873d8c) //103
141NSTUB(Open                                    ,0xff823cc8) //101
142NSTUB(PB2Rec                                  ,0xff87d780) //104
143NSTUB(PT_MoveDigitalZoomToWide                ,0xff860884) //102
144NSTUB(PT_MoveOpticalZoomAt                    ,0xff86085c) //102
145NSTUB(PT_PlaySound                            ,0xff86046c) //102
146NSTUB(PostLogicalEventForNotPowerType         ,0xff879a08) //103
147NSTUB(PostLogicalEventToUI                    ,0xff879a54) //103
148NSTUB(PutInNdFilter                           ,0xffac0f60) //102
149NSTUB(PutOutNdFilter                          ,0xffac0f98) //102
150NSTUB(Read                                    ,0xff819ae4) //101
151NSTUB(ReadFastDir                             ,0xffa4794c) //  1
152NSTUB(Rec2PB                                  ,0xff87ee50) //104
153NSTUB(RefreshPhysicalScreen                   ,0xff9d4f7c) //104
154NSTUB(Remove                                  ,0xff823d38) //  1
155NSTUB(RenameFile_Fut                          ,0xff823548) //  1
156NSTUB(Restart                                 ,0xff828f5c) //106
157NSTUB(SetAE_ShutterSpeed                      ,0xffac5968) //102
158NSTUB(SetAutoShutdownTime                     ,0xff87bd54) //103
159NSTUB(SetCurrentCaptureModeType               ,0xff882d6c) //101
160NSTUB(SetFileAttributes                       ,0xff82401c) //  1
161NSTUB(SetFileTimeStamp                        ,0xff823fcc) //  1
162NSTUB(SetLogicalEventActive                   ,0xff87ba30) //101
163NSTUB(SetParameterData                        ,0xff963250) //101
164NSTUB(SetPropertyCase                         ,0xff8741e0) //102
165NSTUB(SetScriptMode                           ,0xff87ba80) //101
166NSTUB(SleepTask                               ,0xff827490) //101
167NSTUB(TakeSemaphore                           ,0xff827158) //101
168NSTUB(TurnOffBackLight                        ,0xff889254) //104
169NSTUB(TurnOnBackLight                         ,0xff88923c) //104
170NSTUB(UIFS_WriteFirmInfoToFile                ,0xff94f9d8) //103
171NSTUB(UnlockAF                                ,0xff825644) //102
172NSTUB(UnlockMainPower                         ,0xff87bc34) //103
173NSTUB(UnsetZoomForMovie                       ,0xff969764) //104
174NSTUB(UpdateMBROnFlash                        ,0xff857924) //105
175NSTUB(VbattGet                                ,0xff820644) //103
176NSTUB(Write                                   ,0xff823d9c) //101
177NSTUB(WriteSDCard                             ,0xff920e8c) //108
178NSTUB(_log                                    ,0xffafa3c0) //111
179NSTUB(_log10                                  ,0xffaf904c) //112
180NSTUB(_pow                                    ,0xffaf91bc) //114
181NSTUB(_sqrt                                   ,0xffafbf64) //  1
182NSTUB(add_ptp_handler                         ,0xffa125d4) //  3
183NSTUB(apex2us                                 ,0xff9d8170) //  4
184NSTUB(close                                   ,0xff8198fc) //  1
185NSTUB(closedir                                ,0xffa47a1c) //  1
186NSTUB(err_init_task                           ,0xff814e2c) //  4
187NSTUB(exmem_alloc                             ,0xff86ee2c) //103
188NSTUB(free                                    ,0xff813a3c) //112
189NSTUB(kbd_p1_f                                ,0xff821ea0) //109
190NSTUB(kbd_p1_f_cont                           ,0xff821eac) //109
191NSTUB(kbd_p2_f                                ,0xff821760) //109
192NSTUB(kbd_read_keys                           ,0xff821e24) //109
193NSTUB(kbd_read_keys_r2                        ,0xff847b04) //109
194NSTUB(lseek                                   ,0xff823e30) //101
195NSTUB(malloc                                  ,0xff813968) //112
196NSTUB(memcmp                                  ,0xff81cc5c) //101
197NSTUB(memcpy                                  ,0xff88fe10) //101
198NSTUB(memset                                  ,0xff9d7458) //101
199NSTUB(mkdir                                   ,0xff824094) //  1
200// ALT: NSTUB(mkdir, 0xff824134) // 1 32/0
201NSTUB(mktime_ext                              ,0xff89067c) //  1
202NSTUB(open                                    ,0xff81984c) //  1
203NSTUB(opendir                                 ,0xffa478b8) //  1
204NSTUB(openfastdir                             ,0xffa478b8) //  1
205NSTUB(qsort                                   ,0xffaaf200) //  1
206NSTUB(rand                                    ,0xff81cd64) //  1
207NSTUB(read                                    ,0xff819ae4) //101
208NSTUB(reboot_fw_update                        ,0xffa4effc) //  5
209NSTUB(rename                                  ,0xff823548) //  1
210NSTUB(set_control_event                       ,0xff87b694) //111
211NSTUB(srand                                   ,0xff81cd58) //  1
212NSTUB(stat                                    ,0xff823efc) //  1
213NSTUB(strcat                                  ,0xff88fc24) //  1
214NSTUB(strchr                                  ,0xff88fcac) //  1
215NSTUB(strcmp                                  ,0xff81cbf4) //101
216NSTUB(strcpy                                  ,0xff81cbdc) //101
217NSTUB(strftime                                ,0xff890084) //  1
218NSTUB(strlen                                  ,0xff81cc38) //101
219NSTUB(strncmp                                 ,0xff88fc60) //  1
220NSTUB(strncpy                                 ,0xff82d1bc) //  1
221NSTUB(strrchr                                 ,0xff9d7430) //  1
222NSTUB(strtol                                  ,0xff82d3f4) //101
223NSTUB(strtolx                                 ,0xff82d1f8) //109
224  DEF(task_CaptSeq                            ,0xff86327c) //107
225  DEF(task_ExpDrv                             ,0xff8a2214) //110
226  DEF(task_InitFileModules                    ,0xff87f81c) //107
227  DEF(task_MovieRecord                        ,0xff9382b8) //107
228  DEF(task_PhySw                              ,0xff821a90) //107
229NSTUB(time                                    ,0xff86e4e4) //  2
230NSTUB(vsprintf                                ,0xff81cba0) //  1
231NSTUB(write                                   ,0xff823d9c) //101
Note: See TracBrowser for help on using the repository browser.