source: trunk/platform/sx230hs/sub/100c/stubs_entry.S @ 1787

Revision 1787, 15.3 KB checked in by philmoz, 15 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 R47 (DRYOS version 2.3, release #0047)
6//   Firmware Ver GM1.00C
7//   Canon PowerShot SX230 HS
8
9// Values for makefile.inc
10//   PLATFORMID = 12840 (0x3228) // Found @ 0xfff40040
11//   MAXRAMADDR = 0x07ffffff
12//   KEYSYS = d4c                // Found @ 0xffff3610
13//   NEED_ENCODED_DISKBOOT = 6   // Found @ 0xffff3620
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(Restart                               ,0xff02d4cc) //106        *** != 0xff02d3d0
18//NSTUB(kbd_pwr_off                           ,0xff0577e4) //  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 @ff097164 -> ff093588 -> ff1b82c8 -> ff32314c -> ff4954a0
23// Mode 16936 in firmware but not in current modemap
24// Mode 16938 in firmware but not in current modemap
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// Current modemap entry not found in firmware - MODE_SCN_POSTER_EFFECT    8743
30// Current modemap entry not found in firmware - MODE_SCN_SUPER_VIVID      8742
31// Current modemap entry not found in firmware - MODE_SCN_COLOR_SWAP       8734
32// Current modemap entry not found in firmware - MODE_SCN_COLOR_ACCENT     8733
33
34// Values below can be overridden in 'stubs_min.S':
35DEF(physw_status                            ,0x000358e8) // Found @0xff024d10
36DEF(physw_run                               ,0x00001c44) // Found @0xff0248a4
37DEF(levent_table                            ,0xff42121c) // Found @0xff42121c
38DEF(FlashParamsTable                        ,0xff4956ec) // Found @0xff4956ec
39DEF(movie_status                            ,0x00008624) // Found @0xff18c580
40DEF(full_screen_refresh                     ,0x0000b440) // Found @0xff244890
41DEF(canon_menu_active                       ,0x000042d4) // Found @0xff08ca84
42DEF(canon_shoot_menu_active                 ,0x00009995) // Found @0xff1d45b4
43DEF(playrec_mode                            ,0x00004008) // Found @0xff07ed14
44//DEF(zoom_status                             ,0x0000f6bc) // Found @0xff326800, ** != ** stubs_min = 0x0000f69c (0x0000f69c)
45DEF(some_flag_for_af_scan                   ,0x00008a28) // Found @0xff190c5c
46// focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
47// each entry contains 3 int value(s), the first is the zoom focus length.
48// there are 126 entries in the table - set NUM_FL to 126
49DEF(focus_len_table                         ,0xfff4a3dc) // Found @0xfff4a3dc
50DEF(zoom_busy                               ,0x00008548) // Found @0xff187708
51DEF(focus_busy                              ,0x000083c4) // Found @0xff181c8c
52//DEF(recreview_hold                          ,0x00004e04) // Found @0xff0a00d8, ** != ** stubs_min = 0x0000956c (0x947C+0xF0)
53DEF(palette_control                         ,0x0000b440) // Found @0xff24480c
54DEF(active_palette_buffer                   ,0x0000b448) // Found @0xff244810
55DEF(palette_buffer                          ,0x000ceb38) // Found @0xff244ce8
56DEF(bitmap_buffer                           ,0x0000b480) // Found @0xff249960
57DEF(active_bitmap_buffer                    ,0x0000b478) // Found @0xff249964
58
59// Values below go in 'lib.c':
60//void *vid_get_bitmap_fb()        { return (void*)0x40471000; }             // Found @0xff0514b4
61//void *vid_get_viewport_fb()      { return (void*)0x405d7980; }             // Found @0xff37c474
62//void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x3cd0+0x58)); } // Found @0xff06e82c & 0xff06e864
63//char *camera_jpeg_count_str()    { return (char*)0x000ce488; }             // Found @0xff239850
64//long hook_raw_size()             { return 0x0123eaf0; }                    // Found @0xff37f988
65//int get_flash_params_count(void) { return 0xa0; }                          // Found @0xff1b9300
66
67// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
68//#define SD_READONLY_FLAG    0x00020000 // Found @0xff3bcf0c, levent 0x90a
69//#define SD_READONLY_IDX     2
70//#define USB_MASK            0x04000000 // Found @0xff3bcf44, levent 0x902
71//#define USB_IDX             2
72
73// Keymap values for kbd.c. Additional keys may be present, only common values included here.
74//static KeyMap keymap[] = {
75//    { 0, KEY_DISPLAY         ,0x00000800 }, // Found @0xff3bce7c, levent 0x0a
76//    { 0, KEY_UP              ,0x00001000 }, // Found @0xff3bce84, levent 0x04
77//    { 0, KEY_RIGHT           ,0x00004000 }, // Found @0xff3bce94, levent 0x07
78//    { 0, KEY_SET             ,0x00010000 }, // Found @0xff3bcea4, levent 0x08
79//    { 0, KEY_DOWN            ,0x00020000 }, // Found @0xff3bceac, levent 0x05
80//    { 0, KEY_MENU            ,0x00040000 }, // Found @0xff3bceb4, levent 0x09
81//    { 2, KEY_LEFT            ,0x00000100 }, // Found @0xff3bcee4, levent 0x06
82//    { 2, KEY_SHOOT_FULL      ,0x00002002 }, // Found @0xff3bced4, levent 0x01
83//    { 2, KEY_SHOOT_HALF      ,0x00002000 }, // Found @0xff3bcef4, levent 0x00
84//    { 2, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xff3bced4, levent 0x01
85//    { 0, 0, 0 }
86//};
87
88// Values below go in 'platform_camera.h':
89//#define CAM_DRYOS         1
90//#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
91//#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher
92//#define CAM_RAW_ROWPIX    4168 // Found @0xff156314
93//#define CAM_RAW_ROWS      3060 // Found @0xff156320
94//#undef  CAM_UNCACHED_BIT
95//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff02bcb8
96
97// Misc stuff
98DEF(ctypes, 0xff3ba346)
99
100// For capt_seq.c
101//static long *nrflag = (long*)(0x8a64+0x08);  // Found @ ff1958e8 & ff195954
102//#define NR_AUTO (0)                          // have to explictly reset value back to 0 to enable auto
103
104// Stubs below matched 100%.
105//    Name                                     Address                Comp to stubs_entry_2.S
106NSTUB(AllocateMemory                          ,0xff311904) //101
107NSTUB(AllocateUncacheableMemory               ,0xff02bc70) //112
108NSTUB(Close                                   ,0xff027ae4) //101
109NSTUB(CreateTask                              ,0xff00e9a8) //101
110NSTUB(DebugAssert                             ,0xff00ec80) //111
111NSTUB(DeleteDirectory_Fut                     ,0xff026e50) //  1
112NSTUB(DeleteFile_Fut                          ,0xff026d6c) //112
113NSTUB(DoAFLock                                ,0xff029004) //102
114NSTUB(EnterToCompensationEVF                  ,0xff0292a0) //104
115NSTUB(ExecuteEventProcedure                   ,0xff088174) //  1
116NSTUB(ExitFromCompensationEVF                 ,0xff0292e4) //104
117NSTUB(ExitTask                                ,0xff00ec38) //101
118NSTUB(ExpCtrlTool_StartContiAE                ,0xff03857c) //104
119NSTUB(ExpCtrlTool_StopContiAE                 ,0xff038654) //104
120NSTUB(Fclose_Fut                              ,0xff026ee8) //101
121NSTUB(Feof_Fut                                ,0xff0270d4) //  1
122NSTUB(Fflush_Fut                              ,0xff027110) //  1
123NSTUB(Fgets_Fut                               ,0xff02703c) //  6
124NSTUB(Fopen_Fut                               ,0xff026ea8) //101
125NSTUB(Fread_Fut                               ,0xff026f94) //101
126NSTUB(FreeMemory                              ,0xff3118fc) //101
127NSTUB(FreeUncacheableMemory                   ,0xff02bcb0) //112
128NSTUB(Fseek_Fut                               ,0xff027088) //101
129NSTUB(Fwrite_Fut                              ,0xff026fe8) //101
130NSTUB(GetBatteryTemperature                   ,0xff05e554) //102
131NSTUB(GetCCDTemperature                       ,0xff05e4e0) //102
132NSTUB(GetCurrentAvValue                       ,0xff184680) //102
133NSTUB(GetDrive_ClusterSize                    ,0xff06c2dc) //  6
134NSTUB(GetDrive_FreeClusters                   ,0xff06c334) //  6
135NSTUB(GetDrive_TotalClusters                  ,0xff06c30c) //  6
136NSTUB(GetFocusLensSubjectDistance             ,0xff182910) //102
137NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff182d70) //  3
138NSTUB(GetImageFolder                          ,0xff15d268) //  6
139NSTUB(GetKbdState                             ,0xff0576ac) //109
140NSTUB(GetMemInfo                              ,0xff00a29c) //  3
141NSTUB(GetOpticalTemperature                   ,0xff05e5c8) //102
142NSTUB(GetParameterData                        ,0xff1b92c0) //101
143NSTUB(GetPropertyCase                         ,0xff08bf58) //102
144NSTUB(GetSystemTime                           ,0xff31195c) //101
145NSTUB(GetZoomLensCurrentPoint                 ,0xff187b80) //102
146NSTUB(GetZoomLensCurrentPosition              ,0xff2fb048) //102
147NSTUB(GiveSemaphore                           ,0xff02b668) //112
148NSTUB(IsStrobeChargeCompleted                 ,0xff0e2d10) //102
149NSTUB(LEDDrive                                ,0xff056a24) //101
150NSTUB(LocalTime                               ,0xff085a08) //  6
151NSTUB(LockMainPower                           ,0xff093178) //103
152NSTUB(Lseek                                   ,0xff02766c) //101
153NSTUB(MakeDirectory_Fut                       ,0xff026de0) //  6
154NSTUB(MakeSDCardBootable                      ,0xff06c5e8) //105
155NSTUB(MoveFocusLensToDistance                 ,0xff378764) //102
156NSTUB(MoveIrisWithAv                          ,0xff30d974) //102
157NSTUB(MoveZoomLensWithPoint                   ,0xff30e138) //102
158NSTUB(NewTaskShell                            ,0xff08b908) //101
159NSTUB(Open                                    ,0xff0273e8) //101
160NSTUB(PB2Rec                                  ,0xff096484) //104
161NSTUB(PT_MoveDigitalZoomToWide                ,0xff075c88) //102
162NSTUB(PT_MoveOpticalZoomAt                    ,0xff075c60) //102
163NSTUB(PT_PlaySound                            ,0xff080de4) //  6
164NSTUB(PostLogicalEventForNotPowerType         ,0xff090c90) //103
165NSTUB(PostLogicalEventToUI                    ,0xff090cdc) //103
166NSTUB(PutInNdFilter                           ,0xff3763a8) //102
167NSTUB(PutOutNdFilter                          ,0xff3763e0) //102
168NSTUB(Read                                    ,0xff00ad58) //101
169NSTUB(ReadFastDir                             ,0xff2e6f5c) //  6
170NSTUB(Rec2PB                                  ,0xff0964c4) //104
171NSTUB(RefreshPhysicalScreen                   ,0xff0abfec) //104
172NSTUB(Remove                                  ,0xff0275d0) //  6
173NSTUB(RenameFile_Fut                          ,0xff026cd8) //  6
174NSTUB(ScreenLock                              ,0xff0ad1b4) //  4
175NSTUB(ScreenUnlock                            ,0xff0ad218) //  3
176NSTUB(SetAE_ShutterSpeed                      ,0xff37b5ec) //102
177NSTUB(SetAutoShutdownTime                     ,0xff0931ec) //103
178NSTUB(SetCurrentCaptureModeType               ,0xff09cd4c) //101
179NSTUB(SetFileAttributes                       ,0xff027854) //  6
180NSTUB(SetFileTimeStamp                        ,0xff0277dc) //  6
181NSTUB(SetLogicalEventActive                   ,0xff092eb4) //101
182NSTUB(SetParameterData                        ,0xff1b9230) //101
183NSTUB(SetPropertyCase                         ,0xff08be2c) //102
184NSTUB(SetScriptMode                           ,0xff092f04) //101
185NSTUB(SleepTask                               ,0xff02b914) //101
186NSTUB(TakeSemaphore                           ,0xff02b598) //101
187NSTUB(TurnOffBackLight                        ,0xff0a4200) //104
188NSTUB(TurnOnBackLight                         ,0xff0a41e8) //104
189NSTUB(UIFS_WriteFirmInfoToFile                ,0xff1a994c) //101
190NSTUB(UnlockAF                                ,0xff02903c) //102
191NSTUB(UnlockMainPower                         ,0xff0930cc) //103
192NSTUB(VbattGet                                ,0xff023074) //101
193NSTUB(Write                                   ,0xff0274b0) //101
194NSTUB(WriteSDCard                             ,0xff171d24) //108
195NSTUB(_log                                    ,0xff3b6dc8) //111
196NSTUB(_log10                                  ,0xff3b7290) //112
197NSTUB(_pow                                    ,0xff3b73f4) //114
198NSTUB(_sqrt                                   ,0xff3b915c) //  6
199NSTUB(add_ptp_handler                         ,0xff291c68) //  6
200NSTUB(apex2us                                 ,0xff24de4c) //  4
201NSTUB(close                                   ,0xff00abb4) //  6
202NSTUB(closedir                                ,0xff2e6db8) //  4
203NSTUB(err_init_task                           ,0xff005fd4) //  4
204NSTUB(exmem_alloc                             ,0xff0869d0) //101
205NSTUB(free                                    ,0xff004244) //112
206NSTUB(kbd_p1_f                                ,0xff024d8c) //109
207NSTUB(kbd_p1_f_cont                           ,0xff024d98) //109
208NSTUB(kbd_p2_f                                ,0xff024574) //109
209NSTUB(kbd_read_keys                           ,0xff024d10) //109
210NSTUB(kbd_read_keys_r2                        ,0xff056ef0) //109
211NSTUB(lseek                                   ,0xff02766c) //101
212NSTUB(malloc                                  ,0xff0041ec) //112
213NSTUB(memcmp                                  ,0xff010928) //101
214NSTUB(memcpy                                  ,0xff031584) //101
215NSTUB(memset                                  ,0xff24ce4c) //101
216NSTUB(mkdir                                   ,0xff0278ec) //  6
217NSTUB(mktime_ext                              ,0xff0ae114) //  1
218NSTUB(open                                    ,0xff00ab04) //  6
219NSTUB(opendir                                 ,0xff2e6e08) //  6
220NSTUB(openfastdir                             ,0xff2e6e08) //  6
221NSTUB(qsort                                   ,0xff36386c) //  6
222NSTUB(rand                                    ,0xff24cf8c) //  6
223NSTUB(read                                    ,0xff00ad58) //101
224NSTUB(reboot_fw_update                        ,0xff2ec3f4) //  6
225NSTUB(rename                                  ,0xff026cd8) //  6
226NSTUB(set_control_event                       ,0xff092aac) //111
227NSTUB(srand                                   ,0xff24cf80) //  6
228NSTUB(stat                                    ,0xff0276b4) //  3
229NSTUB(strcat                                  ,0xff0ad8cc) //  1
230NSTUB(strchr                                  ,0xff0040b8) //  1
231NSTUB(strcmp                                  ,0xff0108e4) //101
232NSTUB(strcpy                                  ,0xff0108cc) //101
233NSTUB(strftime                                ,0xff0adb14) //113
234NSTUB(strlen                                  ,0xff004104) //101
235NSTUB(strncmp                                 ,0xff00406c) //  1
236NSTUB(strncpy                                 ,0xff004030) //  1
237NSTUB(strrchr                                 ,0xff0040dc) //  1
238NSTUB(strtol                                  ,0xff031884) //101
239NSTUB(strtolx                                 ,0xff031688) //109
240  DEF(task_CaptSeq                            ,0xff078bc8) //110
241  DEF(task_ExpDrv                             ,0xff0c5e4c) //110
242  DEF(task_InitFileModules                    ,0xff096fd8) //110
243  DEF(task_MovieRecord                        ,0xff18d7c0) //110
244  DEF(task_PhySw                              ,0xff0248a0) //110
245  DEF(task_RotaryEncoder                      ,0xff057998) //110
246NSTUB(time                                    ,0xff085fa4) //  6
247NSTUB(vsprintf                                ,0xff01088c) //  6
248NSTUB(write                                   ,0xff0274b0) //101
Note: See TracBrowser for help on using the repository browser.