source: trunk/platform/s95/sub/100e/stubs_entry.S @ 1787

Revision 1787, 14.7 KB checked in by philmoz, 14 months ago (diff)

Updates for finsig_dryos.c:

  • fix to correctly find addresses in code copied to RAM
  • add live view palette values for some recent cameras
  • add live view bitmap values for some recent cameras
  • 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 R45 (DRYOS version 2.3, release #0045)
6//   Firmware Ver GM1.00E
7//   Canon PowerShot S95
8
9// Values for makefile.inc
10//   PLATFORMID = 12818 (0x3212) // Found @ 0xfffe0130
11//   MAXRAMADDR = 0x07ffffff
12//   KEYSYS = d4b                // Found @ 0xffff3624
13//   NEED_ENCODED_DISKBOOT = 5   // Found @ 0xffff3634
14
15// Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S'
16//    Name                                     Address      Rule  %  Comp to stubs_entry_2.S
17//NSTUB(kbd_pwr_off                           ,0xff865728) //  2 60%    *** != 0x00000000
18// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0x00000000
19
20// Check of modemap from 'platform/CAMERA/shooting.c':
21// Firmware modemap table found @ff8a0c14 -> ff89d474 -> ff9ba93c -> ffb0f180 -> ffc7210c
22// No problems found with modemap table.
23
24// Values below can be overridden in 'stubs_min.S':
25DEF(physw_status                            ,0x00034cb4) // Found @0xff83498c
26DEF(physw_run                               ,0x00001c3c) // Found @0xff834580
27DEF(levent_table                            ,0xffbf5c5c) // Found @0xffbf5c5c
28DEF(FlashParamsTable                        ,0xffc72314) // Found @0xffc72314
29DEF(movie_status                            ,0x0000716c) // Found @0xff98612c
30DEF(full_screen_refresh                     ,0x0000a0d4) // Found @0xffa47614
31DEF(canon_menu_active                       ,0x00003250) // Found @0xff896fc0
32DEF(canon_shoot_menu_active                 ,0x00008759) // Found @0xff9d7df8
33DEF(playrec_mode                            ,0x00002f78) // Found @0xff88910c
34DEF(zoom_status                             ,0x0000835c) // Found @0xff9c3384
35DEF(some_flag_for_af_scan                   ,0x00007534) // Found @0xff9894b4
36// focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
37// each entry contains 3 int value(s), the first is the zoom focus length.
38// there are 10 entries in the table - set NUM_FL to 10
39DEF(focus_len_table                         ,0xfffe2d2c) // Found @0xfffe2d2c
40DEF(zoom_busy                               ,0x00007084) // Found @0xff9809c4
41DEF(focus_busy                              ,0x00006f30) // Found @0xff97bec4
42//DEF(recreview_hold                          ,0x00003e14) // Found @0xff8a8648, ** != ** stubs_min = 0x0000828c (0x81f8+0x94)
43DEF(palette_control                         ,0x0000a0d4) // Found @0xffa47590
44DEF(active_palette_buffer                   ,0x0000a0dc) // Found @0xffa47594
45DEF(palette_buffer                          ,0x000bc434) // Found @0xffa47ac8
46DEF(bitmap_buffer                           ,0x0000a110) // Found @0xffa4c778
47DEF(active_bitmap_buffer                    ,0x0000a108) // Found @0xffa4c77c
48
49// Values below go in 'lib.c':
50//void *vid_get_bitmap_fb()        { return (void*)0x40471000; }             // Found @0xff85e704
51//void *vid_get_viewport_fb()      { return (void*)0x40587700; }             // Found @0xffb619c4
52//void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2c20+0x58)); } // Found @0xff87822c & 0xff878264
53//char *camera_jpeg_count_str()    { return (char*)0x000bbc9c; }             // Found @0xffa3acc4
54//long hook_raw_size()             { return 0x00ee9200; }                    // Found @0xffb64e84
55//int get_flash_params_count(void) { return 0x9a; }                          // Found @0xff9bbed4
56
57// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
58//#define SD_READONLY_FLAG    0x00020000 // Found @0xffba524c, levent 0x90a
59//#define SD_READONLY_IDX     2
60//#define USB_MASK            0x04000000 // Found @0xffba5274, levent 0x902
61//#define USB_IDX             2
62
63// Keymap values for kbd.c. Additional keys may be present, only common values included here.
64//static KeyMap keymap[] = {
65//    { 1, KEY_ZOOM_IN         ,0x00000010 }, // Found @0xffba51b4, levent 0x02
66//    { 1, KEY_ZOOM_OUT        ,0x00000020 }, // Found @0xffba51bc, levent 0x03
67//    { 1, KEY_LEFT            ,0x00000100 }, // Found @0xffba51d4, levent 0x06
68//    { 1, KEY_RIGHT           ,0x00000200 }, // Found @0xffba51dc, levent 0x07
69//    { 1, KEY_DOWN            ,0x00000400 }, // Found @0xffba51e4, levent 0x05
70//    { 1, KEY_DISPLAY         ,0x00001000 }, // Found @0xffba51f4, levent 0x0a
71//    { 1, KEY_MENU            ,0x00002000 }, // Found @0xffba51fc, levent 0x09
72//    { 1, KEY_UP              ,0x00004000 }, // Found @0xffba5204, levent 0x04
73//    { 1, KEY_SET             ,0x00008000 }, // Found @0xffba520c, levent 0x08
74//    { 2, KEY_SHOOT_FULL      ,0x00000300 }, // Found @0xffba521c, levent 0x01
75//    { 2, KEY_SHOOT_FULL_ONLY ,0x00000200 }, // Found @0xffba521c, levent 0x01
76//    { 2, KEY_SHOOT_HALF      ,0x00000100 }, // Found @0xffba5214, levent 0x00
77//    { 0, 0, 0 }
78//};
79
80// Values below go in 'platform_camera.h':
81//#define CAM_DRYOS         1
82//#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
83//#define CAM_RAW_ROWPIX    3744 // Found @0xff956f20
84//#define CAM_RAW_ROWS      2784 // Found @0xff956f28
85//#undef  CAM_UNCACHED_BIT
86//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff83ae0c
87
88// Misc stuff
89DEF(ctypes, 0xffba399e)
90
91// For capt_seq.c
92//static long *nrflag = (long*)(0x757c+0x08);  // Found @ ff98e1fc & ff98e214
93//#define NR_AUTO (0)                          // have to explictly reset value back to 0 to enable auto
94
95// Stubs below matched 100%.
96//    Name                                     Address                Comp to stubs_entry_2.S
97NSTUB(AllocateMemory                          ,0xffafacdc) //101
98NSTUB(AllocateUncacheableMemory               ,0xff83adc8) //112
99NSTUB(Close                                   ,0xff837030) //101
100NSTUB(CreateTask                              ,0xff81e8a0) //101
101NSTUB(DebugAssert                             ,0xff81eb78) //111
102NSTUB(DeleteDirectory_Fut                     ,0xff836a8c) //  1
103NSTUB(DeleteFile_Fut                          ,0xff8369a8) //112
104NSTUB(DoAFLock                                ,0xff8388a0) //102
105NSTUB(EnterToCompensationEVF                  ,0xff838b40) //104
106NSTUB(ExecuteEventProcedure                   ,0xff89270c) //  1
107NSTUB(ExitFromCompensationEVF                 ,0xff838be4) //104
108NSTUB(ExitTask                                ,0xff81eb30) //101
109NSTUB(ExpCtrlTool_StartContiAE                ,0xff84734c) //104
110NSTUB(ExpCtrlTool_StopContiAE                 ,0xff8474e4) //104
111NSTUB(Fclose_Fut                              ,0xff836b24) //101
112NSTUB(Feof_Fut                                ,0xff836d10) //  1
113NSTUB(Fflush_Fut                              ,0xff836d4c) //  1
114NSTUB(Fgets_Fut                               ,0xff836c78) //  1
115NSTUB(Fopen_Fut                               ,0xff836ae4) //101
116NSTUB(Fread_Fut                               ,0xff836bd0) //101
117NSTUB(FreeMemory                              ,0xffafacd4) //101
118NSTUB(FreeUncacheableMemory                   ,0xff83ae08) //112
119NSTUB(Fseek_Fut                               ,0xff836cc4) //101
120NSTUB(Fwrite_Fut                              ,0xff836c24) //101
121NSTUB(GetBatteryTemperature                   ,0xff869038) //102
122NSTUB(GetCCDTemperature                       ,0xff868fc4) //102
123NSTUB(GetCurrentAvValue                       ,0xff97e4b4) //102
124NSTUB(GetDrive_ClusterSize                    ,0xff8769c8) //  4
125NSTUB(GetDrive_FreeClusters                   ,0xff876a28) //  4
126NSTUB(GetDrive_TotalClusters                  ,0xff8769fc) //  3
127NSTUB(GetFocusLensSubjectDistance             ,0xff97cb44) //102
128NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff97cf90) //  3
129NSTUB(GetImageFolder                          ,0xff95e84c) //106
130NSTUB(GetKbdState                             ,0xff8655f0) //109
131NSTUB(GetMemInfo                              ,0xff81a264) //  3
132NSTUB(GetOpticalTemperature                   ,0xff8690ac) //102
133NSTUB(GetParameterData                        ,0xff9bbe98) //101
134NSTUB(GetPropertyCase                         ,0xff896414) //102
135NSTUB(GetSystemTime                           ,0xffafad34) //101
136NSTUB(GetZoomLensCurrentPoint                 ,0xff980d38) //102
137NSTUB(GetZoomLensCurrentPosition              ,0xffae90e8) //102
138NSTUB(GiveSemaphore                           ,0xff83a7e4) //112
139NSTUB(IsStrobeChargeCompleted                 ,0xff8eae58) //102
140NSTUB(LEDDrive                                ,0xff86491c) //103
141NSTUB(LocalTime                               ,0xff88fff4) //  1
142NSTUB(LockMainPower                           ,0xff89d078) //103
143NSTUB(Lseek                                   ,0xff83714c) //101
144NSTUB(MakeDirectory_Fut                       ,0xff836a1c) //  1
145NSTUB(MoveFocusLensToDistance                 ,0xffb5e3ec) //102
146NSTUB(MoveIrisWithAv                          ,0xffaf7268) //102
147NSTUB(MoveZoomLensWithPoint                   ,0xffaf7954) //102
148NSTUB(NewTaskShell                            ,0xff895e30) //103
149NSTUB(Open                                    ,0xff836fc4) //101
150NSTUB(PB2Rec                                  ,0xff8a0008) //104
151NSTUB(PT_MoveDigitalZoomToWide                ,0xff8806a4) //102
152NSTUB(PT_MoveOpticalZoomAt                    ,0xff88067c) //102
153NSTUB(PT_PlaySound                            ,0xff88b0a8) //  4
154NSTUB(PostLogicalEventForNotPowerType         ,0xff89aa88) //103
155NSTUB(PostLogicalEventToUI                    ,0xff89aad4) //103
156NSTUB(PutInNdFilter                           ,0xffb5c10c) //102
157NSTUB(PutOutNdFilter                          ,0xffb5c144) //102
158NSTUB(Read                                    ,0xff81ad74) //101
159NSTUB(ReadFastDir                             ,0xffad4130) //  4
160NSTUB(Rec2PB                                  ,0xff8a0048) //104
161NSTUB(RefreshPhysicalScreen                   ,0xff8b6c8c) //104
162NSTUB(Remove                                  ,0xff837064) //  4
163NSTUB(RenameFile_Fut                          ,0xff836914) //  4
164NSTUB(Restart                                 ,0xff83c5b8) //106
165NSTUB(ScreenLock                              ,0xff8b7e50) //  4
166NSTUB(ScreenUnlock                            ,0xff8b7eb4) //  9
167NSTUB(SetAE_ShutterSpeed                      ,0xffb60b3c) //102
168NSTUB(SetAutoShutdownTime                     ,0xff89d0ec) //103
169NSTUB(SetCurrentCaptureModeType               ,0xff8a5444) //101
170NSTUB(SetFileAttributes                       ,0xff837328) //  3
171NSTUB(SetFileTimeStamp                        ,0xff8372cc) //  4
172NSTUB(SetLogicalEventActive                   ,0xff89cdb4) //101
173NSTUB(SetParameterData                        ,0xff9bbd70) //101
174NSTUB(SetPropertyCase                         ,0xff8962ec) //102
175NSTUB(SetScriptMode                           ,0xff89ce04) //101
176NSTUB(SleepTask                               ,0xff83aa4c) //101
177NSTUB(TakeSemaphore                           ,0xff83a714) //101
178NSTUB(TurnOffBackLight                        ,0xff8af278) //104
179NSTUB(TurnOnBackLight                         ,0xff8af260) //104
180NSTUB(UIFS_WriteFirmInfoToFile                ,0xff9a7d60) //101
181NSTUB(UnlockAF                                ,0xff8388d8) //102
182NSTUB(UnlockMainPower                         ,0xff89cfcc) //103
183NSTUB(UnsetZoomForMovie                       ,0xff8ab114) //104
184NSTUB(UpdateMBROnFlash                        ,0xff876848) //105
185NSTUB(VbattGet                                ,0xff833188) //103
186NSTUB(Write                                   ,0xff8370c0) //101
187NSTUB(WriteSDCard                             ,0xff96dd64) //108
188NSTUB(_log                                    ,0xffba0aac) //111
189NSTUB(_log10                                  ,0xffb9f738) //112
190NSTUB(_pow                                    ,0xffb9f8a8) //114
191NSTUB(_sqrt                                   ,0xffba26b4) //  1
192NSTUB(add_ptp_handler                         ,0xffa8e7f4) //  3
193NSTUB(apex2us                                 ,0xffa50d88) //  4
194NSTUB(close                                   ,0xff81ab8c) //  1
195NSTUB(closedir                                ,0xffad3f8c) //  4
196NSTUB(err_init_task                           ,0xff815fd4) //  4
197NSTUB(exmem_alloc                             ,0xff890f40) //103
198NSTUB(free                                    ,0xff814244) //112
199NSTUB(kbd_p1_f                                ,0xff834a04) //109
200NSTUB(kbd_p1_f_cont                           ,0xff834a10) //109
201NSTUB(kbd_p2_f                                ,0xff83424c) //109
202NSTUB(kbd_read_keys                           ,0xff83498c) //109
203NSTUB(kbd_read_keys_r2                        ,0xff864ee8) //109
204NSTUB(lseek                                   ,0xff83714c) //101
205NSTUB(malloc                                  ,0xff8141e8) //112
206NSTUB(memcmp                                  ,0xff8206e0) //101
207NSTUB(memcpy                                  ,0xff840588) //101
208NSTUB(memset                                  ,0xffa4fd70) //101
209NSTUB(mkdir                                   ,0xff8374cc) //  4
210NSTUB(mktime_ext                              ,0xff8b8c58) //  1
211NSTUB(open                                    ,0xff81aadc) //  1
212NSTUB(opendir                                 ,0xffad3fdc) //  4
213NSTUB(openfastdir                             ,0xffad3fdc) //  4
214NSTUB(qsort                                   ,0xffb4be88) //  4
215NSTUB(rand                                    ,0xffa4feb0) //  4
216NSTUB(read                                    ,0xff81ad74) //101
217NSTUB(reboot_fw_update                        ,0xffad9550) //  4
218NSTUB(rename                                  ,0xff836914) //  4
219NSTUB(set_control_event                       ,0xff89c9a4) //111
220NSTUB(srand                                   ,0xffa4fea4) //  4
221NSTUB(stat                                    ,0xff837194) //  3
222NSTUB(strcat                                  ,0xff8b8414) //  1
223NSTUB(strchr                                  ,0xff8140b4) //  1
224NSTUB(strcmp                                  ,0xff82069c) //101
225NSTUB(strcpy                                  ,0xff820684) //101
226NSTUB(strftime                                ,0xff8b8660) //113
227NSTUB(strlen                                  ,0xff814100) //101
228NSTUB(strncmp                                 ,0xff814068) //  1
229NSTUB(strncpy                                 ,0xff81402c) //  1
230NSTUB(strrchr                                 ,0xff8140d8) //  1
231NSTUB(strtol                                  ,0xff840868) //101
232NSTUB(strtolx                                 ,0xff84066c) //109
233  DEF(task_CaptSeq                            ,0xff88322c) //107
234  DEF(task_ExpDrv                             ,0xff8cf1a8) //110
235  DEF(task_InitFileModules                    ,0xff8a0aa0) //107
236  DEF(task_MovieRecord                        ,0xff986420) //107
237  DEF(task_PhySw                              ,0xff83457c) //107
238  DEF(task_RotaryEncoder                      ,0xff865894) //107
239NSTUB(time                                    ,0xff8905d4) //  2
240NSTUB(vsprintf                                ,0xff820648) //  4
241NSTUB(write                                   ,0xff8370c0) //101
Note: See TracBrowser for help on using the repository browser.