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

Revision 1911, 14.0 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 A1100 IS
8
9// Values for makefile.inc
10//   PLATFORMOSVER = 31
11//   PLATFORMID = 12739 (0x31c3) // Found @ 0xfffe0130
12//   MAXRAMADDR = 0x03ffffff
13//   KEYSYS = d4                 // Found @ 0xffff1d04
14//   NEED_ENCODED_DISKBOOT = 2   // Found @ 0xffff1d14
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(ExpCtrlTool_StopContiAE               ,0xffc1f9c4) //104        *** != 0xffc1faac
19//NSTUB(SetAE_ShutterSpeed                    ,0xffe425b8) //102        *** != 0xffe3d994
20//NSTUB(kbd_pwr_off                           ,0xffc30b9c) //  2 64%    *** != 0xffc30b40
21NSTUB(kbd_pwr_on                              ,0xffc30b5c) //  2 82%
22
23// Check of modemap from 'platform/CAMERA/shooting.c':
24// Firmware modemap table found @ffc6067c -> ffc5d0d0 -> ffd1ba78 -> ffdfeb44 -> ffebbd0c
25// Mode 16398 in firmware but not in current modemap
26
27// Values below can be overridden in 'stubs_min.S':
28DEF(physw_status                            ,0x0000c624) // Found @0xffc11a0c
29DEF(physw_run                               ,0x00001c24) // Found @0xffc11680
30DEF(levent_table                            ,0xffe93cdc) // Found @0xffe93cdc
31DEF(FlashParamsTable                        ,0xffebbee0) // Found @0xffebbee0
32DEF(movie_status                            ,0x00005630) // Found @0xffcf8080
33DEF(canon_menu_active                       ,0x00002b7c) // Found @0xffc59f18
34DEF(canon_shoot_menu_active                 ,0x000068c9) // Found @0xffd2bd58
35DEF(playrec_mode                            ,0x000028f0) // Found @0xffc4d504
36DEF(zoom_status                             ,0x000098d0) // Found @0xffe00374
37DEF(some_flag_for_af_scan                   ,0x00005af4) // Found @0xffcfa7a4
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                               ,0x00005560) // Found @0xffcf4788
43DEF(focus_busy                              ,0x00005478) // Found @0xffcefa8c
44//DEF(recreview_hold                          ,0x000030e0) // Found @0xffc65938, ** != ** stubs_min = 0xffc00414 (0xFFC00414)
45
46// Values below go in 'lib.c':
47//void *vid_get_bitmap_fb()        { return (void*)0x403f1000; }             // Found @0xffc2c594
48//void *vid_get_viewport_fb()      { return (void*)0x4076fcc0; }             // Found @0xffe433a8
49//void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2630+0x58)); } // Found @0xffc404f0 & 0xffc40528
50//char *camera_jpeg_count_str()    { return (char*)0x0002f4a8; }             // Found @0xffd60210
51//long hook_raw_size()             { return 0x011e4ee0; }                    // Found @0xffe45910
52//int get_flash_params_count(void) { return 0x7a; }                          // Found @0xffd1cb34
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 @0xffe70c7c, levent 0x90a
56//#define SD_READONLY_IDX     2
57//#define USB_MASK            0x00040000 // Found @0xffe70c88, 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//    { 1, KEY_UP              ,0x00000100 }, // Found @0xffe70b68, levent 0x04
63//    { 1, KEY_DOWN            ,0x00000200 }, // Found @0xffe70b74, levent 0x05
64//    { 1, KEY_RIGHT           ,0x00000400 }, // Found @0xffe70b80, levent 0x07
65//    { 1, KEY_LEFT            ,0x00000800 }, // Found @0xffe70b8c, levent 0x06
66//    { 1, KEY_SET             ,0x00001000 }, // Found @0xffe70b98, levent 0x08
67//    { 1, KEY_MENU            ,0x00002000 }, // Found @0xffe70ba4, levent 0x09
68//    { 1, KEY_DISPLAY         ,0x00004000 }, // Found @0xffe70bb0, levent 0x0a
69//    { 2, KEY_ZOOM_IN         ,0x00000040 }, // Found @0xffe70c28, levent 0x02
70//    { 2, KEY_ZOOM_OUT        ,0x00000080 }, // Found @0xffe70c34, levent 0x03
71//    { 2, KEY_SHOOT_FULL      ,0x00000030 }, // Found @0xffe70c1c, levent 0x01
72//    { 2, KEY_SHOOT_FULL_ONLY ,0x00000020 }, // Found @0xffe70c1c, levent 0x01
73//    { 2, KEY_SHOOT_HALF      ,0x00000010 }, // Found @0xffe70c10, 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    4104 // Found @0xffcc7c84
80//#define CAM_RAW_ROWS      3048 // Found @0xffcc7c8c
81//#undef  CAM_UNCACHED_BIT
82//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xffc16e84
83
84// Misc stuff
85DEF(ctypes, 0xffe6fa66)
86
87// For capt_seq.c
88//static long *nrflag = (long*)(0x5ae0-0x08);  // Found @ ffcfc4d4 & ffcfc4f0
89
90// Stubs below matched 100%.
91//    Name                                     Address                Comp to stubs_entry_2.S
92NSTUB(AllocateMemory                          ,0xffdf53ac) //101
93NSTUB(AllocateUncacheableMemory               ,0xffc16e40) //112
94NSTUB(Close                                   ,0xffc138e0) //101
95NSTUB(CreateTask                              ,0xffc0afac) //101
96NSTUB(DebugAssert                             ,0xffc0b284) //111
97NSTUB(DeleteDirectory_Fut                     ,0xffc13270) //  1
98NSTUB(DeleteFile_Fut                          ,0xffc1318c) //112
99NSTUB(DoAFLock                                ,0xffc14f40) //102
100NSTUB(EnterToCompensationEVF                  ,0xffc14ff0) //104
101NSTUB(ExecuteEventProcedure                   ,0xffc555c0) //  1
102NSTUB(ExitFromCompensationEVF                 ,0xffc15034) //104
103NSTUB(ExitTask                                ,0xffc0b23c) //101
104NSTUB(ExpCtrlTool_StartContiAE                ,0xffc1f880) //104
105NSTUB(Fclose_Fut                              ,0xffc13308) //101
106NSTUB(Feof_Fut                                ,0xffc134f4) //  1
107NSTUB(Fflush_Fut                              ,0xffc13530) //  1
108NSTUB(Fgets_Fut                               ,0xffc1345c) //  1
109NSTUB(Fopen_Fut                               ,0xffc132c8) //101
110NSTUB(Fread_Fut                               ,0xffc133b4) //101
111NSTUB(FreeMemory                              ,0xffdf53a4) //101
112NSTUB(FreeUncacheableMemory                   ,0xffc16e80) //112
113NSTUB(Fseek_Fut                               ,0xffc134a8) //101
114NSTUB(Fwrite_Fut                              ,0xffc13408) //101
115NSTUB(GetBatteryTemperature                   ,0xffc32c44) //102
116NSTUB(GetCCDTemperature                       ,0xffc32bd0) //102
117NSTUB(GetCurrentAvValue                       ,0xffcf18a8) //102
118NSTUB(GetDrive_ClusterSize                    ,0xffc3ed84) //  5
119NSTUB(GetDrive_FreeClusters                   ,0xffc3eddc) //  5
120NSTUB(GetDrive_TotalClusters                  ,0xffc3edb0) //  5
121NSTUB(GetFocusLensSubjectDistance             ,0xffcf08f4) //102
122NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xffcf0cd4) //  3
123NSTUB(GetKbdState                             ,0xffc30b28) //109
124NSTUB(GetMemInfo                              ,0xffc03be4) //  1
125NSTUB(GetOpticalTemperature                   ,0xffc32cbc) //102
126NSTUB(GetParameterData                        ,0xffd1caf4) //101
127NSTUB(GetPropertyCase                         ,0xffc593fc) //102
128NSTUB(GetSystemTime                           ,0xffdf5404) //101
129NSTUB(GetVRAMHPixelsSize                      ,0xffc959f0) //102
130NSTUB(GetVRAMVPixelsSize                      ,0xffc959fc) //102
131NSTUB(GetZoomLensCurrentPoint                 ,0xffcf4b00) //102
132NSTUB(GetZoomLensCurrentPosition              ,0xffded338) //102
133NSTUB(GiveSemaphore                           ,0xffc1685c) //112
134NSTUB(IsStrobeChargeCompleted                 ,0xffc870ec) //102
135NSTUB(LEDDrive                                ,0xffc30088) //103
136NSTUB(LocalTime                               ,0xffc53284) //  1
137NSTUB(LockMainPower                           ,0xffc5cce8) //103
138NSTUB(Lseek                                   ,0xffc13a20) //101
139NSTUB(MakeDirectory_Fut                       ,0xffc13200) //  1
140NSTUB(MoveFocusLensToDistance                 ,0xffe3fdd8) //102
141NSTUB(MoveIrisWithAv                          ,0xffdf2648) //102
142NSTUB(MoveZoomLensWithPoint                   ,0xffdf2bd4) //102
143NSTUB(NewTaskShell                            ,0xffc58ea8) //103
144NSTUB(Open                                    ,0xffc138b8) //101
145NSTUB(PB2Rec                                  ,0xffc5e760) //104
146NSTUB(PT_MoveDigitalZoomToWide                ,0xffc46da8) //102
147NSTUB(PT_MoveOpticalZoomAt                    ,0xffc46d80) //102
148NSTUB(PT_PlaySound                            ,0xffc469bc) //102
149NSTUB(PostLogicalEventForNotPowerType         ,0xffc5c310) //103
150NSTUB(PostLogicalEventToUI                    ,0xffc5c35c) //103
151NSTUB(PutInNdFilter                           ,0xffdf2a38) //102
152NSTUB(PutOutNdFilter                          ,0xffdf2a5c) //102
153NSTUB(Read                                    ,0xffc09ae4) //101
154NSTUB(ReadFastDir                             ,0xffddf844) //  1
155NSTUB(Rec2PB                                  ,0xffc5fb48) //104
156NSTUB(RefreshPhysicalScreen                   ,0xffd6b630) //104
157NSTUB(Remove                                  ,0xffc13928) //  1
158NSTUB(RenameFile_Fut                          ,0xffc13138) //  1
159NSTUB(Restart                                 ,0xffc18594) //106
160NSTUB(SetAutoShutdownTime                     ,0xffc5cd5c) //103
161NSTUB(SetCurrentCaptureModeType               ,0xffc632cc) //101
162NSTUB(SetFileAttributes                       ,0xffc13c0c) //  1
163NSTUB(SetFileTimeStamp                        ,0xffc13bbc) //  1
164NSTUB(SetLogicalEventActive                   ,0xffc5ca64) //101
165NSTUB(SetParameterData                        ,0xffd1ca64) //101
166NSTUB(SetPropertyCase                         ,0xffc592f8) //102
167NSTUB(SetScriptMode                           ,0xffc5cab4) //101
168NSTUB(SleepTask                               ,0xffc16ac4) //101
169NSTUB(TakeSemaphore                           ,0xffc1678c) //101
170NSTUB(TurnOffBackLight                        ,0xffc67d48) //104
171NSTUB(TurnOnBackLight                         ,0xffc67d30) //104
172NSTUB(UIFS_WriteFirmInfoToFile                ,0xffd0d490) //101
173NSTUB(UnlockAF                                ,0xffc14f78) //102
174NSTUB(UnlockMainPower                         ,0xffc5cc3c) //103
175NSTUB(UnsetZoomForMovie                       ,0xffd226ec) //104
176NSTUB(UpdateMBROnFlash                        ,0xffc3ebdc) //105
177NSTUB(VbattGet                                ,0xffc10318) //103
178NSTUB(Write                                   ,0xffc1398c) //101
179NSTUB(WriteSDCard                             ,0xffce4748) //108
180NSTUB(_log                                    ,0xffe6d86c) //111
181NSTUB(_log10                                  ,0xffe6c7b0) //112
182NSTUB(_pow                                    ,0xffe6c920) //114
183NSTUB(_sqrt                                   ,0xffe6ebd4) //  1
184NSTUB(add_ptp_handler                         ,0xffdb1584) //  3
185NSTUB(apex2us                                 ,0xffd6c6e8) //  4
186NSTUB(close                                   ,0xffc098fc) //  1
187NSTUB(closedir                                ,0xffddf914) //  1
188NSTUB(err_init_task                           ,0xffc04e2c) //  4
189NSTUB(exmem_alloc                             ,0xffc53eb8) //103
190NSTUB(free                                    ,0xffc03a3c) //112
191NSTUB(kbd_p1_f                                ,0xffc11a90) //109
192NSTUB(kbd_p1_f_cont                           ,0xffc11a9c) //109
193NSTUB(kbd_p2_f                                ,0xffc1134c) //109
194NSTUB(kbd_read_keys                           ,0xffc11a0c) //109
195NSTUB(kbd_read_keys_r2                        ,0xffc304a4) //109
196NSTUB(lseek                                   ,0xffc13a20) //101
197NSTUB(malloc                                  ,0xffc03968) //112
198NSTUB(memcmp                                  ,0xffc0cc60) //101
199NSTUB(memcpy                                  ,0xffc6b9dc) //101
200NSTUB(memset                                  ,0xffd6b9d0) //101
201NSTUB(mkdir                                   ,0xffc13c84) //  1
202// ALT: NSTUB(mkdir, 0xffc13d24) // 1 32/0
203NSTUB(mktime_ext                              ,0xffc6c248) //  1
204NSTUB(open                                    ,0xffc0984c) //  1
205NSTUB(opendir                                 ,0xffddf7b0) //  1
206NSTUB(openfastdir                             ,0xffddf7b0) //  1
207NSTUB(qsort                                   ,0xffe265e4) //  1
208NSTUB(rand                                    ,0xffc0cd68) //  1
209NSTUB(read                                    ,0xffc09ae4) //101
210NSTUB(reboot_fw_update                        ,0xffde3328) //  5
211NSTUB(rename                                  ,0xffc13138) //  1
212NSTUB(set_control_event                       ,0xffc5c798) //111
213NSTUB(srand                                   ,0xffc0cd5c) //  1
214NSTUB(stat                                    ,0xffc13aec) //  1
215NSTUB(strcat                                  ,0xffc6b7f0) //  1
216NSTUB(strchr                                  ,0xffc6b878) //  1
217NSTUB(strcmp                                  ,0xffc0cbf8) //101
218NSTUB(strcpy                                  ,0xffc0cbe0) //101
219NSTUB(strftime                                ,0xffc6bc50) //  1
220NSTUB(strlen                                  ,0xffc0cc3c) //101
221NSTUB(strncmp                                 ,0xffc6b82c) //  1
222NSTUB(strncpy                                 ,0xffc1c67c) //  1
223NSTUB(strrchr                                 ,0xffd6b9a8) //  1
224NSTUB(strtol                                  ,0xffc1c8b4) //101
225NSTUB(strtolx                                 ,0xffc1c6b8) //109
226  DEF(task_CaptSeq                            ,0xffc49060) //107
227  DEF(task_ExpDrv                             ,0xffc7ddcc) //110
228  DEF(task_InitFileModules                    ,0xffc60508) //107
229  DEF(task_MovieRecord                        ,0xffcf82d4) //107
230  DEF(task_PhySw                              ,0xffc1167c) //107
231NSTUB(time                                    ,0xffc53138) //  1
232NSTUB(vsprintf                                ,0xffc0cba4) //  1
233NSTUB(write                                   ,0xffc1398c) //101
Note: See TracBrowser for help on using the repository browser.