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

Revision 1911, 14.4 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 R43 (DRYOS version 2.3, release #0043)
6//   Firmware Ver GM1.00D
7//   Canon PowerShot A490
8
9// Values for makefile.inc
10//   PLATFORMOSVER = 43
11//   PLATFORMID = 12784 (0x31f0) // Found @ 0xfffe0130
12//   MAXRAMADDR = 0x01ffffff
13//   KEYSYS = d4a                // Found @ 0xffff1a0c
14//   NEED_ENCODED_DISKBOOT = 4   // Found @ 0xffff1a1c
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(EnterToCompensationEVF                ,0xffc27608) //104        *** != 0xffc27604
19//NSTUB(GetBatteryTemperature                 ,0xffc45624) //102        *** != 0xffc00b20
20//NSTUB(GetDrive_FreeClusters                 ,0xffc23810) //  3        *** != 0xffc5131c
21// ALT: NSTUB(GetDrive_FreeClusters, 0xffc5131c) // 4 9/0
22//NSTUB(SetScriptMode                         ,0xffc6caf4) //101        *** != 0xffc00f70
23//NSTUB(TurnOffBackLight                      ,0xffc77d38) //104        *** != 0xffc77f4c
24//NSTUB(kbd_pwr_off                           ,0xffc435ec) //  2 64%    *** != 0x00000000
25// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0x00000000
26//NSTUB(kbd_read_keys_r2                      ,0xffc42fb8) //109        *** != 0xffc42fb0
27//NSTUB(rename                                ,0xffc259f0) //  4        *** != 0xffc261e8
28
29// Check of modemap from 'platform/CAMERA/shooting.c':
30// Firmware modemap table found @ffc705d8 -> ffc6d124 -> ffd2df78 -> ffe07c8c -> ffeca51c
31// No problems found with modemap table.
32
33// Values below can be overridden in 'stubs_min.S':
34DEF(physw_status                            ,0x0002e754) // Found @0xffc23b2c
35DEF(physw_run                               ,0x00001bf0) // Found @0xffc23790
36DEF(levent_table                            ,0xffe9fe64) // Found @0xffe9fe64
37DEF(FlashParamsTable                        ,0xffeca70c) // Found @0xffeca70c
38DEF(movie_status                            ,0x00005470) // Found @0xffd0c5f4
39DEF(full_screen_refresh                     ,0x000072e8) // Found @0xffd79414
40DEF(canon_menu_active                       ,0x00002a3c) // Found @0xffc69fd8
41DEF(canon_shoot_menu_active                 ,0x00006571) // Found @0xffd3f9c0
42DEF(playrec_mode                            ,0x00002798) // Found @0xffc5d7d8
43DEF(zoom_status                             ,0x000095a8) // Found @0xffe0ab68
44DEF(some_flag_for_af_scan                   ,0x00005818) // Found @0xffd0ef60
45// focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
46// each entry contains 3 int value(s), the first is the zoom focus length.
47// there are 7 entries in the table - set NUM_FL to 7
48DEF(focus_len_table                         ,0xfffe2990) // Found @0xfffe2990
49DEF(zoom_busy                               ,0x000053f0) // Found @0xffd09850
50DEF(focus_busy                              ,0x00005300) // Found @0xffd06e88
51DEF(recreview_hold                          ,0x0000302c) // Found @0xffc7578c
52
53// Values below go in 'lib.c':
54//void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xffc3f024
55//void *vid_get_viewport_fb()      { return (void*)0x10648cc0; }             // Found @0xffe53bd0
56//void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2540+0x54)); } // Found @0xffc528c4 & 0xffc528fc
57//char *camera_jpeg_count_str()    { return (char*)0x0007571c; }             // Found @0xffd70a4c
58//long hook_raw_size()             { return 0x00ec04f0; }                    // Found @0xffe56f58
59//int get_flash_params_count(void) { return 0x94; }                          // Found @0xffd2f034
60
61// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
62//#define SD_READONLY_FLAG    0x00040000 // Found @0xffe820bc, levent 0x90a
63//#define SD_READONLY_IDX     2
64//#define USB_MASK            0x00080000 // Found @0xffe820c8, levent 0x902
65//#define USB_IDX             2
66
67// Keymap values for kbd.c. Additional keys may be present, only common values included here.
68//static KeyMap keymap[] = {
69//    { 2, KEY_RIGHT           ,0x00000004 }, // Found @0xffe8205c, levent 0x07
70//    { 2, KEY_ZOOM_OUT        ,0x00000040 }, // Found @0xffe82080, levent 0x03
71//    { 2, KEY_ZOOM_IN         ,0x00000080 }, // Found @0xffe8208c, levent 0x02
72//    { 2, KEY_SET             ,0x00000100 }, // Found @0xffe82098, levent 0x08
73//    { 2, KEY_UP              ,0x00100000 }, // Found @0xffe820d4, levent 0x04
74//    { 2, KEY_DOWN            ,0x00200000 }, // Found @0xffe820e0, levent 0x05
75//    { 2, KEY_LEFT            ,0x00400000 }, // Found @0xffe820ec, levent 0x06
76//    { 2, KEY_MENU            ,0x01000000 }, // Found @0xffe82104, levent 0x09
77//    { 2, KEY_SHOOT_FULL      ,0x00000030 }, // Found @0xffe82074, levent 0x01
78//    { 2, KEY_SHOOT_FULL_ONLY ,0x00000020 }, // Found @0xffe82074, levent 0x01
79//    { 2, KEY_SHOOT_HALF      ,0x00000010 }, // Found @0xffe82068, levent 0x00
80//    { 0, 0, 0 }
81//};
82
83// Values below go in 'platform_camera.h':
84//#define CAM_DRYOS         1
85//#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
86//#define CAM_RAW_ROWPIX    3720 // Found @0xffcea048
87//#define CAM_RAW_ROWS      2772 // Found @0xffcea054
88//#undef  CAM_UNCACHED_BIT
89//#define CAM_UNCACHED_BIT  0x10000000 // Found @0xffc29320
90
91// Misc stuff
92DEF(ctypes, 0xffe81956)
93
94// For capt_seq.c
95//static long *nrflag = (long*)(0x5800-0x08);  // Found @ ffd10d74 & ffd10d90
96
97// Stubs below matched 100%.
98//    Name                                     Address                Comp to stubs_entry_2.S
99NSTUB(AllocateMemory                          ,0xffdfa3a8) //101
100NSTUB(AllocateUncacheableMemory               ,0xffc292dc) //112
101NSTUB(Close                                   ,0xffc2610c) //101
102NSTUB(CreateTask                              ,0xffc0f1a8) //101
103NSTUB(DebugAssert                             ,0xffc0f680) //111
104NSTUB(DeleteDirectory_Fut                     ,0xffc25b68) //  1
105NSTUB(DeleteFile_Fut                          ,0xffc25a84) //112
106NSTUB(DoAFLock                                ,0xffc27558) //102
107NSTUB(ExecuteEventProcedure                   ,0xffc65748) //  1
108NSTUB(ExitFromCompensationEVF                 ,0xffc2764c) //104
109NSTUB(ExitTask                                ,0xffc0f438) //101
110NSTUB(ExpCtrlTool_StartContiAE                ,0xffc34ce8) //104
111NSTUB(ExpCtrlTool_StopContiAE                 ,0xffc34dc0) //104
112NSTUB(Fclose_Fut                              ,0xffc25c00) //101
113NSTUB(Feof_Fut                                ,0xffc25dec) //  1
114NSTUB(Fflush_Fut                              ,0xffc25e28) //  1
115NSTUB(Fgets_Fut                               ,0xffc25d54) //  1
116NSTUB(Fopen_Fut                               ,0xffc25bc0) //101
117NSTUB(Fread_Fut                               ,0xffc25cac) //101
118NSTUB(FreeMemory                              ,0xffdfa3a0) //101
119NSTUB(FreeUncacheableMemory                   ,0xffc2931c) //112
120NSTUB(Fseek_Fut                               ,0xffc25da0) //101
121NSTUB(Fwrite_Fut                              ,0xffc25d00) //101
122NSTUB(GetCCDTemperature                       ,0xffc455b0) //102
123NSTUB(GetCurrentAvValue                       ,0xffd08708) //102
124NSTUB(GetDrive_ClusterSize                    ,0xffc512bc) //  4
125NSTUB(GetDrive_TotalClusters                  ,0xffc512f0) //  3
126NSTUB(GetFocusLensSubjectDistance             ,0xffd07a00) //102
127NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xffd07e58) //  3
128NSTUB(GetImageFolder                          ,0xffcf1008) //106
129NSTUB(GetKbdState                             ,0xffc435d4) //109
130NSTUB(GetMemInfo                              ,0xffc0a7f8) //  3
131NSTUB(GetOpticalTemperature                   ,0xffc4569c) //102
132NSTUB(GetParameterData                        ,0xffd2eff4) //101
133NSTUB(GetPropertyCase                         ,0xffc69454) //102
134NSTUB(GetSystemTime                           ,0xffdfa400) //101
135NSTUB(GetVRAMHPixelsSize                      ,0xffcb69ac) //102
136NSTUB(GetVRAMVPixelsSize                      ,0xffcb69b8) //102
137NSTUB(GetZoomLensCurrentPoint                 ,0xffd09bc8) //102
138NSTUB(GetZoomLensCurrentPosition              ,0xffdf2444) //102
139NSTUB(GiveSemaphore                           ,0xffc0f104) //112
140NSTUB(IsStrobeChargeCompleted                 ,0xffca6fa0) //102
141NSTUB(LEDDrive                                ,0xffc42bc8) //103
142NSTUB(LocalTime                               ,0xffc63458) //  1
143NSTUB(LockMainPower                           ,0xffc6cd2c) //103
144NSTUB(Lseek                                   ,0xffc26228) //101
145NSTUB(MakeDirectory_Fut                       ,0xffc25af8) //  1
146NSTUB(MoveFocusLensToDistance                 ,0xffe50650) //102
147NSTUB(MoveIrisWithAv                          ,0xffdf7ae8) //102
148NSTUB(MoveZoomLensWithPoint                   ,0xffdf8074) //102
149NSTUB(NewTaskShell                            ,0xffc68e60) //103
150NSTUB(Open                                    ,0xffc260a0) //101
151NSTUB(PB2Rec                                  ,0xffc6f998) //104
152NSTUB(PT_MoveDigitalZoomToWide                ,0xffc57098) //102
153NSTUB(PT_MoveOpticalZoomAt                    ,0xffc57070) //102
154NSTUB(PT_PlaySound                            ,0xffc5f2d8) //  7
155NSTUB(PostLogicalEventForNotPowerType         ,0xffc6c55c) //103
156NSTUB(PostLogicalEventToUI                    ,0xffc6c5a8) //103
157NSTUB(PutInNdFilter                           ,0xffdf7ed8) //102
158NSTUB(PutOutNdFilter                          ,0xffdf7efc) //102
159NSTUB(Read                                    ,0xffc0b308) //101
160NSTUB(ReadFastDir                             ,0xffde8e40) //  4
161NSTUB(Rec2PB                                  ,0xffc6f9d8) //104
162NSTUB(RefreshPhysicalScreen                   ,0xffd79df0) //104
163NSTUB(Remove                                  ,0xffc26140) //  4
164NSTUB(RenameFile_Fut                          ,0xffc259f0) //  4
165NSTUB(Restart                                 ,0xffc2aab4) //106
166NSTUB(ScreenLock                              ,0xffd7af9c) //  3
167NSTUB(ScreenUnlock                            ,0xffd7afe0) //  7
168NSTUB(SetAE_ShutterSpeed                      ,0xffe52de0) //102
169NSTUB(SetAutoShutdownTime                     ,0xffc6cda0) //103
170NSTUB(SetCurrentCaptureModeType               ,0xffc730bc) //101
171NSTUB(SetFileAttributes                       ,0xffc26404) //  3
172NSTUB(SetFileTimeStamp                        ,0xffc263a8) //  4
173NSTUB(SetLogicalEventActive                   ,0xffc6caa4) //101
174NSTUB(SetParameterData                        ,0xffd2ef64) //101
175NSTUB(SetPropertyCase                         ,0xffc69324) //102
176NSTUB(SleepTask                               ,0xffc29160) //101
177NSTUB(TakeSemaphore                           ,0xffc0f034) //101
178NSTUB(TurnOnBackLight                         ,0xffc77d20) //104
179NSTUB(UIFS_WriteFirmInfoToFile                ,0xffd1f768) //101
180NSTUB(UnlockAF                                ,0xffc27590) //102
181NSTUB(UnlockMainPower                         ,0xffc6cc80) //103
182NSTUB(UnsetZoomForMovie                       ,0xffd354b4) //104
183NSTUB(UpdateMBROnFlash                        ,0xffc5113c) //105
184NSTUB(VbattGet                                ,0xffc22be4) //103
185NSTUB(Write                                   ,0xffc2619c) //101
186NSTUB(WriteSDCard                             ,0xffcfc6fc) //108
187NSTUB(_log                                    ,0xffe7f4b8) //111
188NSTUB(_log10                                  ,0xffe7e3fc) //112
189NSTUB(_pow                                    ,0xffe7e56c) //114
190NSTUB(_sqrt                                   ,0xffe80820) //  1
191NSTUB(add_ptp_handler                         ,0xffdbd2d4) //  3
192NSTUB(apex2us                                 ,0xffd7c2ec) //  4
193NSTUB(close                                   ,0xffc0b120) //  1
194NSTUB(closedir                                ,0xffde8c9c) //  4
195NSTUB(err_init_task                           ,0xffc05f50) //  4
196NSTUB(exmem_alloc                             ,0xffc640f8) //103
197NSTUB(free                                    ,0xffc04160) //112
198NSTUB(kbd_p1_f                                ,0xffc23ba8) //109
199NSTUB(kbd_p1_f_cont                           ,0xffc23bb4) //109
200NSTUB(kbd_p2_f                                ,0xffc2345c) //109
201NSTUB(kbd_read_keys                           ,0xffc23b2c) //109
202NSTUB(lseek                                   ,0xffc26228) //101
203NSTUB(malloc                                  ,0xffc04104) //112
204NSTUB(memcmp                                  ,0xffc11318) //101
205NSTUB(memcpy                                  ,0xffc2e864) //101
206NSTUB(memset                                  ,0xffd7b324) //101
207NSTUB(mkdir                                   ,0xffc265a8) //  4
208NSTUB(mktime_ext                              ,0xffc7cb50) //  1
209NSTUB(open                                    ,0xffc0b070) //  1
210NSTUB(opendir                                 ,0xffde8cec) //  4
211NSTUB(openfastdir                             ,0xffde8cec) //  4
212NSTUB(qsort                                   ,0xffe39368) //  4
213NSTUB(rand                                    ,0xffc11420) //  1
214NSTUB(read                                    ,0xffc0b308) //101
215NSTUB(reboot_fw_update                        ,0xffdea6b4) //  1
216NSTUB(set_control_event                       ,0xffc6c7c4) //111
217NSTUB(srand                                   ,0xffc11414) //  1
218NSTUB(stat                                    ,0xffc26270) //  3
219NSTUB(strcat                                  ,0xffc7c30c) //  1
220NSTUB(strchr                                  ,0xffc03fe8) //  1
221NSTUB(strcmp                                  ,0xffc112d4) //101
222NSTUB(strcpy                                  ,0xffc112bc) //101
223NSTUB(strftime                                ,0xffc7c558) //113
224NSTUB(strlen                                  ,0xffc04034) //101
225NSTUB(strncmp                                 ,0xffc03f9c) //  1
226NSTUB(strncpy                                 ,0xffc03f60) //  1
227NSTUB(strrchr                                 ,0xffc0400c) //  1
228NSTUB(strtol                                  ,0xffc2eb44) //101
229NSTUB(strtolx                                 ,0xffc2e948) //109
230  DEF(task_CaptSeq                            ,0xffc5914c) //107
231  DEF(task_ExpDrv                             ,0xffc91338) //110
232  DEF(task_InitFileModules                    ,0xffc70464) //107
233  DEF(task_MovieRecord                        ,0xffd0c848) //107
234  DEF(task_PhySw                              ,0xffc2378c) //107
235NSTUB(time                                    ,0xffc6330c) //  1
236NSTUB(vsprintf                                ,0xffc11280) //  4
237NSTUB(write                                   ,0xffc2619c) //101
Note: See TracBrowser for help on using the repository browser.