source: trunk/platform/a3300/sub/100a/stubs_entry.S @ 1855

Revision 1855, 15.0 KB checked in by philmoz, 12 months ago (diff)

Add support for new .FI2 file format in SX260HS camera (DryOS R50).

  • 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 R47 (DRYOS version 2.3, release #0047)
6//   Firmware Ver GM1.00A
7//   Canon PowerShot A3300 IS
8
9// Values for makefile.inc
10//   PLATFORMOSVER = 47
11//   PLATFORMID = 12835 (0x3223) // Found @ 0xfffe0040
12//   MAXRAMADDR = 0x03ffffff
13//   KEYSYS = d4c                // Found @ 0xffff3504
14//   NEED_ENCODED_DISKBOOT = 6   // Found @ 0xffff3514
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(kbd_pwr_off                           ,0xff86031c) //  2 60%    *** != 0x00000000
19// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0x00000000
20
21// Check of modemap from 'platform/CAMERA/shooting.c':
22// Firmware modemap table found @ff8959c4 -> ff892270 -> ff9937f8 -> ffac835c -> ffbeea40
23// Current modemap entry not found in firmware - MODE_SCN_POSTER_EFFECT    8743
24// Current modemap entry not found in firmware - MODE_SCN_SUPER_VIVID      8742
25// Current modemap entry not found in firmware - MODE_SCN_MONOCHROME       8754
26// Current modemap entry not found in firmware - MODE_SCN_TOY_CAMERA       8751
27// Current modemap entry not found in firmware - MODE_SCN_MINIATURE        8748
28// Current modemap entry not found in firmware - MODE_SCN_FISHEYE          8747
29
30// Values below can be overridden in 'stubs_min.S':
31DEF(physw_status                            ,0x00032d34) // Found @0xff8345a0
32DEF(physw_run                               ,0x00001c30) // Found @0xff834160
33DEF(levent_table                            ,0xffba1188) // Found @0xffba1188
34DEF(FlashParamsTable                        ,0xffbeec78) // Found @0xffbeec78
35DEF(movie_status                            ,0x00006734) // Found @0xff96962c
36DEF(full_screen_refresh                     ,0x0000916c) // Found @0xffa06cf4
37DEF(canon_menu_active                       ,0x00002f60) // Found @0xff88da44
38DEF(canon_shoot_menu_active                 ,0x00007bf5) // Found @0xff9ada14
39DEF(playrec_mode                            ,0x00002c88) // Found @0xff87fd40
40DEF(zoom_status                             ,0x0000cf5c) // Found @0xffacba30
41DEF(some_flag_for_af_scan                   ,0x00006b0c) // Found @0xff96d344
42// focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
43// each entry contains 3 int value(s), the first is the zoom focus length.
44// there are 12 entries in the table - set NUM_FL to 12
45DEF(focus_len_table                         ,0xfffe2f88) // Found @0xfffe2f88
46DEF(zoom_busy                               ,0x0000665c) // Found @0xff964eb8
47DEF(focus_busy                              ,0x000064d8) // Found @0xff960130
48DEF(recreview_hold                          ,0x00003534) // Found @0xff89af5c
49DEF(palette_control                         ,0x0000916c) // Found @0xffa06c70
50DEF(active_palette_buffer                   ,0x00009174) // Found @0xffa06c74
51DEF(palette_buffer                          ,0x000b477c) // Found @0xffa07028
52
53// Values below go in 'lib.c':
54//void *vid_get_bitmap_fb()        { return (void*)0x403f1000; }             // Found @0xff85b880
55//void *vid_get_viewport_fb()      { return (void*)0x40546b80; }             // Found @0xffb1e2ac
56//void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x29a0+0x58)); } // Found @0xff8713ec & 0xff871424
57//char *camera_jpeg_count_str()    { return (char*)0x000b40d4; }             // Found @0xff9fd850
58//long hook_raw_size()             { return 0x01794300; }                    // Found @0xffb21768
59//int get_flash_params_count(void) { return 0xa0; }                          // Found @0xff994830
60
61// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
62//#define SD_READONLY_FLAG    0x00020000 // Found @0xffb5dcbc, levent 0x90a
63//#define SD_READONLY_IDX     2
64//#define USB_MASK            0x04000000 // Found @0xffb5dcdc, 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_SHOOT_FULL      ,0x00003000 }, // Found @0xffb5dc9c, levent 0x01
70//    { 2, KEY_SHOOT_FULL_ONLY ,0x00002000 }, // Found @0xffb5dc9c, levent 0x01
71//    { 2, KEY_UP              ,0x00000001 }, // Found @0xffb5dc3c, levent 0x04
72//    { 2, KEY_DOWN            ,0x00000002 }, // Found @0xffb5dc44, levent 0x05
73//    { 2, KEY_SHOOT_HALF      ,0x00001000 }, // Found @0xffb5dc94, levent 0x00
74//    { 2, KEY_LEFT            ,0x00000004 }, // Found @0xffb5dc4c, levent 0x06
75//    { 2, KEY_RIGHT           ,0x00000008 }, // Found @0xffb5dc54, levent 0x07
76//    { 2, KEY_SET             ,0x00000010 }, // Found @0xffb5dc5c, levent 0x08
77//    { 2, KEY_DISPLAY         ,0x00000020 }, // Found @0xffb5dc64, levent 0x0a
78//    { 2, KEY_MENU            ,0x00000080 }, // Found @0xffb5dc74, levent 0x09
79//    { 2, KEY_ZOOM_OUT        ,0x00004000 }, // Found @0xffb5dca4, levent 0x03
80//    { 2, KEY_ZOOM_IN         ,0x00008000 }, // Found @0xffb5dcac, levent 0x02
81//    { 0, 0, 0 }
82//};
83
84// Values below go in 'platform_camera.h':
85//#define CAM_DRYOS         1
86//#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
87//#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher
88//#define CAM_RAW_ROWPIX    4704 // Found @0xff93a6e0
89//#define CAM_RAW_ROWS      3504 // Found @0xff93a6ec
90//#undef  CAM_UNCACHED_BIT
91//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff83a714
92
93// Misc stuff
94DEF(ctypes, 0xffb5c59a)
95
96// For capt_seq.c
97//static long *nrflag = (long*)(0x6b40+0x08);  // Found @ ff971604 & ff971648
98//#define NR_AUTO (0)                          // have to explictly reset value back to 0 to enable auto
99
100// Stubs below matched 100%.
101//    Name                                     Address                Comp to stubs_entry_2.S
102NSTUB(AllocateMemory                          ,0xffab6d2c) //101
103NSTUB(AllocateUncacheableMemory               ,0xff83a6cc) //112
104NSTUB(Close                                   ,0xff836cc4) //101
105NSTUB(CreateTask                              ,0xff81e9b0) //101
106NSTUB(DebugAssert                             ,0xff81ec88) //111
107NSTUB(DeleteDirectory_Fut                     ,0xff8366c0) //  1
108NSTUB(DeleteFile_Fut                          ,0xff8365dc) //112
109NSTUB(DoAFLock                                ,0xff838480) //102
110NSTUB(EnterToCompensationEVF                  ,0xff8386dc) //104
111NSTUB(ExecuteEventProcedure                   ,0xff889244) //  1
112NSTUB(ExitFromCompensationEVF                 ,0xff838720) //104
113NSTUB(ExitTask                                ,0xff81ec40) //101
114NSTUB(ExpCtrlTool_StartContiAE                ,0xff846ce0) //104
115NSTUB(ExpCtrlTool_StopContiAE                 ,0xff846db8) //104
116NSTUB(Fclose_Fut                              ,0xff836758) //101
117NSTUB(Feof_Fut                                ,0xff836944) //  1
118NSTUB(Fflush_Fut                              ,0xff836980) //  1
119NSTUB(Fgets_Fut                               ,0xff8368ac) //  6
120NSTUB(Fopen_Fut                               ,0xff836718) //101
121NSTUB(Fread_Fut                               ,0xff836804) //101
122NSTUB(FreeMemory                              ,0xffab6d24) //101
123NSTUB(FreeUncacheableMemory                   ,0xff83a70c) //112
124NSTUB(Fseek_Fut                               ,0xff8368f8) //101
125NSTUB(Fwrite_Fut                              ,0xff836858) //101
126NSTUB(GetBatteryTemperature                   ,0xff86227c) //102
127NSTUB(GetCCDTemperature                       ,0xff862208) //102
128NSTUB(GetCurrentAvValue                       ,0xff961d00) //102
129NSTUB(GetDrive_ClusterSize                    ,0xff86fd50) //  6
130NSTUB(GetDrive_FreeClusters                   ,0xff86fda8) //  6
131NSTUB(GetDrive_TotalClusters                  ,0xff86fd80) //  6
132NSTUB(GetFocusLensSubjectDistance             ,0xff960db4) //102
133NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff961214) //  3
134NSTUB(GetImageFolder                          ,0xff941570) //  6
135NSTUB(GetKbdState                             ,0xff860304) //109
136NSTUB(GetMemInfo                              ,0xff81a29c) //  3
137NSTUB(GetOpticalTemperature                   ,0xff8622f0) //102
138NSTUB(GetParameterData                        ,0xff9947f0) //101
139NSTUB(GetPropertyCase                         ,0xff88cfac) //102
140NSTUB(GetSystemTime                           ,0xffab6d84) //101
141NSTUB(GetZoomLensCurrentPoint                 ,0xff96523c) //102
142NSTUB(GetZoomLensCurrentPosition              ,0xffaa3b04) //102
143NSTUB(GiveSemaphore                           ,0xff83a0c4) //112
144NSTUB(IsStrobeChargeCompleted                 ,0xff8d8c68) //102
145NSTUB(LEDDrive                                ,0xff85f918) //101
146NSTUB(LocalTime                               ,0xff886b34) //  6
147NSTUB(LockMainPower                           ,0xff891e64) //103
148NSTUB(Lseek                                   ,0xff836ee0) //101
149NSTUB(MakeDirectory_Fut                       ,0xff836650) //  6
150NSTUB(MakeSDCardBootable                      ,0xff86ffe0) //105
151NSTUB(MoveFocusLensToDistance                 ,0xffb1a608) //102
152NSTUB(MoveIrisWithAv                          ,0xffab39ec) //102
153NSTUB(MoveZoomLensWithPoint                   ,0xffab40a4) //102
154NSTUB(NewTaskShell                            ,0xff88c9f4) //101
155NSTUB(Open                                    ,0xff836bfc) //101
156NSTUB(PB2Rec                                  ,0xff89502c) //104
157NSTUB(PT_MoveDigitalZoomToWide                ,0xff878398) //102
158NSTUB(PT_MoveOpticalZoomAt                    ,0xff878370) //102
159NSTUB(PT_PlaySound                            ,0xff881b78) //  6
160NSTUB(PostLogicalEventForNotPowerType         ,0xff891630) //103
161NSTUB(PostLogicalEventToUI                    ,0xff89167c) //103
162NSTUB(PutInNdFilter                           ,0xffab3eec) //102
163NSTUB(PutOutNdFilter                          ,0xffab3f10) //102
164NSTUB(Read                                    ,0xff81ad58) //101
165NSTUB(ReadFastDir                             ,0xffa91334) //  6
166NSTUB(Rec2PB                                  ,0xff89506c) //104
167NSTUB(RefreshPhysicalScreen                   ,0xff8a59f0) //104
168NSTUB(Remove                                  ,0xff836e38) //  6
169NSTUB(RenameFile_Fut                          ,0xff836548) //  6
170NSTUB(Restart                                 ,0xff83bedc) //106
171NSTUB(ScreenLock                              ,0xff8a6c28) //  4
172NSTUB(ScreenUnlock                            ,0xff8a6c8c) //  3
173NSTUB(SetAE_ShutterSpeed                      ,0xffb1d484) //102
174NSTUB(SetAutoShutdownTime                     ,0xff891ed8) //103
175NSTUB(SetCurrentCaptureModeType               ,0xff898be4) //101
176NSTUB(SetFileAttributes                       ,0xff8370c8) //  6
177NSTUB(SetFileTimeStamp                        ,0xff837050) //  6
178NSTUB(SetLogicalEventActive                   ,0xff891bdc) //101
179NSTUB(SetParameterData                        ,0xff994760) //101
180NSTUB(SetPropertyCase                         ,0xff88ce90) //102
181NSTUB(SetScriptMode                           ,0xff891c2c) //101
182NSTUB(SleepTask                               ,0xff83a370) //101
183NSTUB(TakeSemaphore                           ,0xff839ff4) //101
184NSTUB(TurnOffBackLight                        ,0xff89e35c) //104
185NSTUB(TurnOnBackLight                         ,0xff89e344) //104
186NSTUB(UIFS_WriteFirmInfoToFile                ,0xff985c74) //101
187NSTUB(UnlockAF                                ,0xff8384b8) //102
188NSTUB(UnlockMainPower                         ,0xff891db8) //103
189NSTUB(UnsetZoomForMovie                       ,0xff99dd04) //104
190NSTUB(VbattGet                                ,0xff832e20) //101
191NSTUB(Write                                   ,0xff836d18) //101
192NSTUB(WriteSDCard                             ,0xff95145c) //108
193NSTUB(_log                                    ,0xffb590c0) //111
194NSTUB(_log10                                  ,0xffb59600) //112
195NSTUB(_pow                                    ,0xffb59778) //114
196NSTUB(_sqrt                                   ,0xffb5b39c) //  6
197NSTUB(add_ptp_handler                         ,0xffa4733c) //  6
198NSTUB(apex2us                                 ,0xffa0c05c) //  4
199NSTUB(close                                   ,0xff81abb4) //  6
200NSTUB(closedir                                ,0xffa91190) //  4
201NSTUB(err_init_task                           ,0xff815fd4) //  4
202NSTUB(exmem_alloc                             ,0xff887afc) //101
203NSTUB(free                                    ,0xff814244) //112
204NSTUB(kbd_p1_f                                ,0xff83461c) //109
205NSTUB(kbd_p1_f_cont                           ,0xff834628) //109
206NSTUB(kbd_p2_f                                ,0xff833e30) //109
207NSTUB(kbd_read_keys                           ,0xff8345a0) //109
208NSTUB(kbd_read_keys_r2                        ,0xff85fd5c) //109
209NSTUB(lseek                                   ,0xff836ee0) //101
210NSTUB(malloc                                  ,0xff8141ec) //112
211NSTUB(memcmp                                  ,0xff8208bc) //101
212NSTUB(memcpy                                  ,0xff83fd4c) //101
213NSTUB(memset                                  ,0xffa0b05c) //101
214NSTUB(mkdir                                   ,0xff837160) //  6
215NSTUB(mktime_ext                              ,0xff8a7a6c) //  1
216NSTUB(open                                    ,0xff81ab04) //  6
217NSTUB(opendir                                 ,0xffa911e0) //  6
218NSTUB(openfastdir                             ,0xffa911e0) //  6
219NSTUB(qsort                                   ,0xffafd50c) //  6
220NSTUB(rand                                    ,0xffa0b19c) //  6
221NSTUB(read                                    ,0xff81ad58) //101
222NSTUB(reboot_fw_update                        ,0xffa967d0) //  6
223NSTUB(rename                                  ,0xff836548) //  6
224NSTUB(set_control_event                       ,0xff8918a0) //111
225NSTUB(srand                                   ,0xffa0b190) //  6
226NSTUB(stat                                    ,0xff836f28) //  3
227NSTUB(strcat                                  ,0xff8a7224) //  1
228NSTUB(strchr                                  ,0xff8140b8) //  1
229NSTUB(strcmp                                  ,0xff820878) //101
230NSTUB(strcpy                                  ,0xff820860) //101
231NSTUB(strftime                                ,0xff8a746c) //113
232NSTUB(strlen                                  ,0xff814104) //101
233NSTUB(strncmp                                 ,0xff81406c) //  1
234NSTUB(strncpy                                 ,0xff814030) //  1
235NSTUB(strrchr                                 ,0xff8140dc) //  1
236NSTUB(strtol                                  ,0xff84004c) //101
237NSTUB(strtolx                                 ,0xff83fe50) //109
238  DEF(task_CaptSeq                            ,0xff87ab40) //110
239  DEF(task_ExpDrv                             ,0xff8be3ec) //110
240  DEF(task_InitFileModules                    ,0xff895844) //110
241  DEF(task_MovieRecord                        ,0xff96a0f8) //110
242  DEF(task_PhySw                              ,0xff83415c) //110
243NSTUB(time                                    ,0xff887110) //  6
244NSTUB(vsprintf                                ,0xff820820) //  6
245NSTUB(write                                   ,0xff836d18) //101
Note: See TracBrowser for help on using the repository browser.