source: trunk/platform/sx30/sub/100l/stubs_entry.S @ 1787

Revision 1787, 14.4 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 R45 (DRYOS version 2.3, release #0045)
6//   Firmware Ver GM1.00L
7//   Canon PowerShot SX30 IS
8
9// Values for makefile.inc
10//   PLATFORMID = 12816 (0x3210) // Found @ 0xfffe0130
11//   MAXRAMADDR = 0x07ffffff
12//   KEYSYS = d4b                // Found @ 0xffff3680
13//   NEED_ENCODED_DISKBOOT = 5   // Found @ 0xffff3690
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                           ,0xff865b9c) //  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 @ff8a3cc4 -> ff8a0690 -> ff9c12b8 -> ffb00eb4 -> ffc67afc
22// No problems found with modemap table.
23
24// Values below can be overridden in 'stubs_min.S':
25DEF(physw_status                            ,0x00034594) // Found @0xff8349f0
26DEF(physw_run                               ,0x00001c3c) // Found @0xff8345ec
27DEF(levent_table                            ,0xffc0ea34) // Found @0xffc0ea34
28DEF(FlashParamsTable                        ,0xffc67d00) // Found @0xffc67d00
29DEF(movie_status                            ,0x00003524) // Found @0xff882fb4
30DEF(full_screen_refresh                     ,0x0000b198) // Found @0xffa46b00
31DEF(canon_menu_active                       ,0x00003a2c) // Found @0xff89a570
32DEF(canon_shoot_menu_active                 ,0x00009901) // Found @0xff9deb54
33DEF(playrec_mode                            ,0x00003758) // Found @0xff88c71c
34DEF(zoom_status                             ,0x0000e7c4) // Found @0xffb04938
35DEF(some_flag_for_af_scan                   ,0x000085cc) // Found @0xff991220
36// focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
37// each entry contains 1 int value, which is the the zoom focus length.
38// there are 201 entries in the table - set NUM_FL to 201
39DEF(focus_len_table                         ,0xfffea5cc) // Found @0xfffea5cc
40DEF(zoom_busy                               ,0x00003448) // Found @0xff87e640
41DEF(focus_busy                              ,0x00007a74) // Found @0xff97df3c
42DEF(recreview_hold                          ,0x0000468c) // Found @0xff8ac614
43DEF(palette_control                         ,0x0000b198) // Found @0xffa46a7c
44DEF(active_palette_buffer                   ,0x0000b1a0) // Found @0xffa46a80
45DEF(palette_buffer                          ,0x000cf9b4) // Found @0xffa46fb4
46DEF(bitmap_buffer                           ,0x0000b1d4) // Found @0xffa4aa0c
47DEF(active_bitmap_buffer                    ,0x0000b1cc) // Found @0xffa4aa10
48
49// Values below go in 'lib.c':
50//void *vid_get_bitmap_fb()        { return (void*)0x40471000; }             // Found @0xff85ed30
51//void *vid_get_viewport_fb()      { return (void*)0x40587700; }             // Found @0xffb56c88
52//void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x32b0+0x58)); } // Found @0xff878ab0 & 0xff878ae8
53//char *camera_jpeg_count_str()    { return (char*)0x000cf2fc; }             // Found @0xffa3bce4
54//long hook_raw_size()             { return 0x014eb7e0; }                    // Found @0xffb5a148
55//int get_flash_params_count(void) { return 0x9a; }                          // Found @0xff9c2850
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 @0xffb97bc4, levent 0x90a
59//#define SD_READONLY_IDX     2
60//#define USB_MASK            0x04000000 // Found @0xffb97bf4, 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//    { 0, KEY_UP              ,0x00000400 }, // Found @0xffb97afc, levent 0x04
66//    { 0, KEY_DOWN            ,0x00000800 }, // Found @0xffb97b04, levent 0x05
67//    { 0, KEY_LEFT            ,0x00001000 }, // Found @0xffb97b0c, levent 0x06
68//    { 0, KEY_RIGHT           ,0x00002000 }, // Found @0xffb97b14, levent 0x07
69//    { 0, KEY_SET             ,0x00004000 }, // Found @0xffb97b1c, levent 0x08
70//    { 0, KEY_DISPLAY         ,0x00020000 }, // Found @0xffb97b34, levent 0x0a
71//    { 0, KEY_MENU            ,0x00040000 }, // Found @0xffb97b3c, levent 0x09
72//    { 2, KEY_SHOOT_FULL      ,0x00000300 }, // Found @0xffb97b9c, levent 0x01
73//    { 2, KEY_SHOOT_FULL_ONLY ,0x00000200 }, // Found @0xffb97b9c, levent 0x01
74//    { 2, KEY_SHOOT_HALF      ,0x00000100 }, // Found @0xffb97b94, levent 0x00
75//    { 0, 0, 0 }
76//};
77
78// Values below go in 'platform_camera.h':
79//#define CAM_DRYOS         1
80//#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
81//#define CAM_RAW_ROWPIX    4464 // Found @0xff95786c
82//#define CAM_RAW_ROWS      3276 // Found @0xff957878
83//#undef  CAM_UNCACHED_BIT
84//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff83afdc
85
86// Misc stuff
87DEF(ctypes, 0xffb96366)
88
89// For capt_seq.c
90//static long *nrflag = (long*)(0x8608+0x08);  // Found @ ff9956d0 & ff9956e8
91//#define NR_AUTO (0)                          // have to explictly reset value back to 0 to enable auto
92
93// Stubs below matched 100%.
94//    Name                                     Address                Comp to stubs_entry_2.S
95NSTUB(AllocateMemory                          ,0xffaee1b0) //101
96NSTUB(AllocateUncacheableMemory               ,0xff83af98) //112
97NSTUB(Close                                   ,0xff8370dc) //101
98NSTUB(CreateTask                              ,0xff81e8a0) //101
99NSTUB(DebugAssert                             ,0xff81eb78) //111
100NSTUB(DeleteDirectory_Fut                     ,0xff836b38) //  1
101NSTUB(DeleteFile_Fut                          ,0xff836a54) //112
102NSTUB(DoAFLock                                ,0xff838ab8) //102
103NSTUB(EnterToCompensationEVF                  ,0xff838d44) //104
104NSTUB(ExecuteEventProcedure                   ,0xff895cc4) //  1
105NSTUB(ExitFromCompensationEVF                 ,0xff838d88) //104
106NSTUB(ExitTask                                ,0xff81eb30) //101
107NSTUB(ExpCtrlTool_StartContiAE                ,0xff8474fc) //104
108NSTUB(ExpCtrlTool_StopContiAE                 ,0xff847688) //104
109NSTUB(Fclose_Fut                              ,0xff836bd0) //101
110NSTUB(Feof_Fut                                ,0xff836dbc) //  1
111NSTUB(Fflush_Fut                              ,0xff836df8) //  1
112NSTUB(Fgets_Fut                               ,0xff836d24) //  1
113NSTUB(Fopen_Fut                               ,0xff836b90) //101
114NSTUB(Fread_Fut                               ,0xff836c7c) //101
115NSTUB(FreeMemory                              ,0xffaee1a8) //101
116NSTUB(FreeUncacheableMemory                   ,0xff83afd8) //112
117NSTUB(Fseek_Fut                               ,0xff836d70) //101
118NSTUB(Fwrite_Fut                              ,0xff836cd0) //101
119NSTUB(GetBatteryTemperature                   ,0xff8697ac) //102
120NSTUB(GetCCDTemperature                       ,0xff869738) //102
121NSTUB(GetCurrentAvValue                       ,0xff980680) //102
122NSTUB(GetDrive_ClusterSize                    ,0xff87724c) //  4
123NSTUB(GetDrive_FreeClusters                   ,0xff8772ac) //  4
124NSTUB(GetDrive_TotalClusters                  ,0xff877280) //  3
125NSTUB(GetFocusLensSubjectDistance             ,0xff97ea80) //102
126NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff97eef8) //  3
127NSTUB(GetImageFolder                          ,0xff95f0f0) //106
128NSTUB(GetKbdState                             ,0xff865a28) //109
129NSTUB(GetMemInfo                              ,0xff81a264) //  3
130NSTUB(GetOpticalTemperature                   ,0xff869820) //102
131NSTUB(GetParameterData                        ,0xff9c2814) //101
132NSTUB(GetPropertyCase                         ,0xff8999cc) //102
133NSTUB(GetSystemTime                           ,0xffaee208) //101
134NSTUB(GetZoomLensCurrentPoint                 ,0xff87e9c4) //102
135NSTUB(GetZoomLensCurrentPosition              ,0xff9864ac) //102
136NSTUB(GiveSemaphore                           ,0xff83a9b4) //112
137NSTUB(IsStrobeChargeCompleted                 ,0xff8ec16c) //102
138NSTUB(LEDDrive                                ,0xff864bd4) //103
139NSTUB(LocalTime                               ,0xff8935ac) //  1
140NSTUB(LockMainPower                           ,0xff8a0294) //103
141NSTUB(Lseek                                   ,0xff8371f8) //101
142NSTUB(MakeDirectory_Fut                       ,0xff836ac8) //  1
143NSTUB(MoveFocusLensToDistance                 ,0xffb52fb8) //102
144NSTUB(MoveIrisWithAv                          ,0xffae8fbc) //102
145NSTUB(MoveZoomLensWithPoint                   ,0xffae96b4) //102
146NSTUB(NewTaskShell                            ,0xff8993e8) //103
147NSTUB(Open                                    ,0xff837070) //101
148NSTUB(PB2Rec                                  ,0xff8a30fc) //104
149NSTUB(PT_MoveDigitalZoomToWide                ,0xff883c30) //102
150NSTUB(PT_MoveOpticalZoomAt                    ,0xff883c08) //102
151NSTUB(PT_PlaySound                            ,0xff88e660) //  4
152NSTUB(PostLogicalEventForNotPowerType         ,0xff89e02c) //103
153NSTUB(PostLogicalEventToUI                    ,0xff89e078) //103
154NSTUB(PutInNdFilter                           ,0xffb50c2c) //102
155NSTUB(PutOutNdFilter                          ,0xffb50c64) //102
156NSTUB(Read                                    ,0xff81ad74) //101
157NSTUB(ReadFastDir                             ,0xfface02c) //  4
158NSTUB(Rec2PB                                  ,0xff8a1b40) //104
159NSTUB(RefreshPhysicalScreen                   ,0xff8b8114) //104
160NSTUB(Remove                                  ,0xff837110) //  4
161NSTUB(RenameFile_Fut                          ,0xff8369c0) //  4
162NSTUB(Restart                                 ,0xff83c788) //106
163NSTUB(ScreenLock                              ,0xff8b9344) //  4
164NSTUB(ScreenUnlock                            ,0xff8b93a8) //  3
165NSTUB(SetAE_ShutterSpeed                      ,0xffb55e00) //102
166NSTUB(SetAutoShutdownTime                     ,0xff8a0308) //103
167NSTUB(SetCurrentCaptureModeType               ,0xff8a922c) //101
168NSTUB(SetFileAttributes                       ,0xff8373d4) //  3
169NSTUB(SetFileTimeStamp                        ,0xff837378) //  4
170NSTUB(SetLogicalEventActive                   ,0xff89ffd0) //101
171NSTUB(SetParameterData                        ,0xff9c26ec) //101
172NSTUB(SetPropertyCase                         ,0xff8998a4) //102
173NSTUB(SetScriptMode                           ,0xff8a0020) //101
174NSTUB(SleepTask                               ,0xff83ac1c) //101
175NSTUB(TakeSemaphore                           ,0xff83a8e4) //101
176NSTUB(TurnOffBackLight                        ,0xff8b059c) //104
177NSTUB(TurnOnBackLight                         ,0xff8b0584) //104
178NSTUB(UIFS_WriteFirmInfoToFile                ,0xff9aeeb8) //101
179NSTUB(UnlockAF                                ,0xff838af0) //102
180NSTUB(UnlockMainPower                         ,0xff8a01e8) //103
181NSTUB(UpdateMBROnFlash                        ,0xff8770cc) //105
182NSTUB(VbattGet                                ,0xff833178) //103
183NSTUB(Write                                   ,0xff83716c) //101
184NSTUB(WriteSDCard                             ,0xff96dab4) //108
185NSTUB(_log                                    ,0xffb93cb0) //111
186NSTUB(_log10                                  ,0xffb92bf4) //112
187NSTUB(_pow                                    ,0xffb92d64) //114
188NSTUB(_sqrt                                   ,0xffb9507c) //  1
189NSTUB(add_ptp_handler                         ,0xffa8ebe0) //  3
190NSTUB(apex2us                                 ,0xffa4e9f0) //  4
191NSTUB(close                                   ,0xff81ab8c) //  1
192NSTUB(closedir                                ,0xffacde88) //  4
193NSTUB(err_init_task                           ,0xff815fd4) //  4
194NSTUB(exmem_alloc                             ,0xff8944f8) //103
195NSTUB(free                                    ,0xff814244) //112
196NSTUB(kbd_p1_f                                ,0xff834a68) //109
197NSTUB(kbd_p1_f_cont                           ,0xff834a74) //109
198NSTUB(kbd_p2_f                                ,0xff8342b8) //109
199NSTUB(kbd_read_keys                           ,0xff8349f0) //109
200NSTUB(kbd_read_keys_r2                        ,0xff8651a4) //109
201NSTUB(lseek                                   ,0xff8371f8) //101
202NSTUB(malloc                                  ,0xff8141e8) //112
203NSTUB(memcmp                                  ,0xff8206d0) //101
204NSTUB(memcpy                                  ,0xff840750) //101
205NSTUB(memset                                  ,0xffa4d9ec) //101
206NSTUB(mkdir                                   ,0xff837578) //  4
207NSTUB(mktime_ext                              ,0xff8ba264) //  1
208NSTUB(open                                    ,0xff81aadc) //  1
209NSTUB(opendir                                 ,0xffacded8) //  4
210NSTUB(openfastdir                             ,0xffacded8) //  4
211NSTUB(qsort                                   ,0xffb40804) //  4
212NSTUB(rand                                    ,0xffa4db2c) //  4
213NSTUB(read                                    ,0xff81ad74) //101
214NSTUB(reboot_fw_update                        ,0xffad344c) //  4
215NSTUB(rename                                  ,0xff8369c0) //  4
216NSTUB(set_control_event                       ,0xff89fbc0) //111
217NSTUB(srand                                   ,0xffa4db20) //  4
218NSTUB(stat                                    ,0xff837240) //  3
219NSTUB(strcat                                  ,0xff8b9a20) //  1
220NSTUB(strchr                                  ,0xff8140b4) //  1
221NSTUB(strcmp                                  ,0xff82068c) //101
222NSTUB(strcpy                                  ,0xff820674) //101
223NSTUB(strftime                                ,0xff8b9c6c) //113
224NSTUB(strlen                                  ,0xff814100) //101
225NSTUB(strncmp                                 ,0xff814068) //  1
226NSTUB(strncpy                                 ,0xff81402c) //  1
227NSTUB(strrchr                                 ,0xff8140d8) //  1
228NSTUB(strtol                                  ,0xff840a30) //101
229NSTUB(strtolx                                 ,0xff840834) //109
230  DEF(task_CaptSeq                            ,0xff8868c4) //107
231  DEF(task_ExpDrv                             ,0xff8d081c) //110
232  DEF(task_InitFileModules                    ,0xff8a3b50) //107
233  DEF(task_MovieRecord                        ,0xff88334c) //107
234  DEF(task_PhySw                              ,0xff8345e8) //107
235  DEF(task_RotaryEncoder                      ,0xff865d08) //107
236NSTUB(time                                    ,0xff893b8c) //  2
237NSTUB(vsprintf                                ,0xff820638) //  4
238NSTUB(write                                   ,0xff83716c) //101
Note: See TracBrowser for help on using the repository browser.