source: trunk/platform/sx1/sub/200h/stubs_entry.S @ 1424

Revision 1424, 13.8 KB checked in by philmoz, 18 months ago (diff)

Add SX120IS 1.00b BETA version from CHDK-DE.
Improved finsig_dryos.c for 'UpdateMBROnFlash' and 'MakeSDCardBootable' functions (works correctly for SX120IS).

  • Property svn:eol-style set to native
RevLine 
[736]1// !!! THIS FILE IS GENERATED. DO NOT EDIT. !!!
2#include "stubs_asm.h"
3
[1291]4// Camera info:
[1385]5//   DRYOS R31 (DRYOS version 2.3, release #0031)
6//   Firmware Ver GM2.00H
7//   Canon PowerShot SX1 IS
[1391]8
9// Values for makefile.inc
10//   PLATFORMID = 12693 (0x3195) // Found @ 0xfffe0130
[1385]11//   MAXRAMADDR = 0x07ffffff
[1391]12//   KEYSYS = d4                 // Found @ 0xffff3674
13//   NEED_ENCODED_DISKBOOT = 1   // Found @ 0xffff3684
[1291]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(ExitFromCompensationEVF               ,0xff825b88) //104        *** != 0xff825bac
18//NSTUB(kbd_pwr_off                           ,0xff84da28) //  2 60%    *** != 0xff81093c
19// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0xff81093c
20//NSTUB(rename                                ,0xff82329c) //  1        *** != 0xff823b18
21//NSTUB(write                                 ,0xff823af0) //101        *** != 0xff819aac
22
23// Check of modemap from 'platform/CAMERA/shooting.c':
24// Firmware modemap table found @ff889430 -> ff885968 -> ff98bf94 -> ffaa2ff8 -> ffbbb0cc
25// Current modemap entry not found in firmware - MODE_VIDEO_STD            3622
26
27// Values below go in 'stubs_min.S':
28//DEF(physw_status                            ,0x00012da4) // Found @0xff821af4,          stubs_min = 0x00012da4 (0x12DA4)
29//DEF(physw_run                               ,0x00001c30) // Found @0xff821768,          stubs_min = 0x00001c30 (0x1C24+0x0C)
30//DEF(levent_table                            ,0xffb89f4c) // Found @0xffb89f4c,          stubs_min = 0xffb89f4c (0xFFB89F4C)
31//DEF(FlashParamsTable                        ,0xffbbb2a4) // Found @0xffbbb2a4,          stubs_min = 0xffbbb2a4 (0xFFBBB2A4)
32//DEF(movie_status                            ,0x000055a8) // Found @0xff867b10,          stubs_min = 0x000055a8 (0x5570+0x38)
33//DEF(canon_menu_active                       ,0x00005a5c) // Found @0xff87e710,          stubs_min = 0x00005a5c (0x5A58+4)
34//DEF(canon_shoot_menu_active                 ,0x0000b819) // Found @0xff9a688c,          stubs_min = 0x0000b819 (0xB818+1)
35//DEF(playrec_mode                            ,0x000057c4) // Found @0xff8716c8,          stubs_min = 0x000057c4 (0x57C0+0x4)
36//DEF(zoom_status                             ,0x0000f2a0) // Found @0xffaa4d24,          stubs_min = 0x0000f2a0 (0xF2A0)
37//DEF(some_flag_for_af_scan                   ,0x0000a5e8) // Found @0xff95e58c
38
39// Values below go in 'lib.c':
40//void *vid_get_bitmap_fb()        { return (void*)0x40471000; } // Found @0xff84807c
41//void *vid_get_viewport_fb()      { return (void*)0x4133bb10; } // Found @0xffafc454
42//char *camera_jpeg_count_str()    { return (char*)0x0005ced4; } // Found @0xff9ed730
43//long hook_raw_size()             { return 0x01076d90; }        // Found @0xffafe94c
44//int get_flash_params_count(void) { return 0x79; }              // Found @0xff98d594
45
46// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
47//#define SD_READONLY_FLAG    0x00020000 // Found @0xffb36734, levent 0x90a
48//#define SD_READONLY_IDX     2
[1397]49//#define USB_MASK            0x00040000 // Found @0xffb36740, levent 0x902
[1291]50//#define USB_IDX             2
51
52// Keymap values for kbd.c. Additional keys may be present, only common values included here.
53//static KeyMap keymap[] = {
[1397]54//    { 0, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffb365cc, levent 0x01
55//    { 0, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffb365cc, levent 0x01
56//    { 0, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffb365c0, levent 0x00
57//    { 1, KEY_SET             ,0x00000100 }, // Found @0xffb3665c, levent 0x08
58//    { 1, KEY_DISPLAY         ,0x00000200 }, // Found @0xffb36668, levent 0x0a
59//    { 1, KEY_UP              ,0x00000400 }, // Found @0xffb36674, levent 0x04
60//    { 1, KEY_DOWN            ,0x00000800 }, // Found @0xffb36680, levent 0x05
61//    { 1, KEY_RIGHT           ,0x00001000 }, // Found @0xffb3668c, levent 0x07
62//    { 1, KEY_LEFT            ,0x00002000 }, // Found @0xffb36698, levent 0x06
63//    { 1, KEY_MENU            ,0x00004000 }, // Found @0xffb366a4, levent 0x09
[1291]64//    { 0, 0, 0 }
65//};
66
67// Values below go in 'platform_camera.h':
68//#define CAM_DRYOS         1
69//#define CAM_RAW_ROWPIX    4152 // Found @0xffaf52d8
70//#define CAM_RAW_ROWS      2772 // Found @0xffaf52dc
71//#undef  CAM_UNCACHED_BIT
72//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff8280b0
73
74// Stubs below matched 100%.
75//    Name                                     Address                Comp to stubs_entry_2.S
76NSTUB(AllocateMemory                          ,0xffa91b9c) //101
77NSTUB(AllocateUncacheableMemory               ,0xff82806c) //112
78NSTUB(Close                                   ,0xff823a44) //101
79NSTUB(CreateTask                              ,0xff81aef4) //101
80NSTUB(DebugAssert                             ,0xff81b1cc) //111
81NSTUB(DeleteFile_Fut                          ,0xff8232f0) //112
82//NSTUB(DoAFLock                              ,0xff825898) //102            == 0xff825898
83//NSTUB(EnterToCompensationEVF                ,0xff825b44) //104            == 0xff825b44
84NSTUB(ExecuteEventProcedure                   ,0xff879ea0) //  1
85NSTUB(ExitTask                                ,0xff81b184) //101
86NSTUB(ExpCtrlTool_StartContiAE                ,0xff8312a4) //104
87NSTUB(ExpCtrlTool_StopContiAE                 ,0xff8313e8) //104
88NSTUB(Fclose_Fut                              ,0xff82346c) //101
89NSTUB(Feof_Fut                                ,0xff823658) //  1
90NSTUB(Fflush_Fut                              ,0xff823694) //  1
91NSTUB(Fgets_Fut                               ,0xff8235c0) //  1
92NSTUB(Fopen_Fut                               ,0xff82342c) //101
93NSTUB(Fread_Fut                               ,0xff823518) //101
94NSTUB(FreeMemory                              ,0xffa91b94) //101
95NSTUB(FreeUncacheableMemory                   ,0xff8280ac) //112
96NSTUB(Fseek_Fut                               ,0xff82360c) //101
97NSTUB(Fwrite_Fut                              ,0xff82356c) //101
98NSTUB(GetBatteryTemperature                   ,0xff850b00) //102
99NSTUB(GetCCDTemperature                       ,0xff850a90) //102
100NSTUB(GetCurrentAvValue                       ,0xff94f5d4) //102
101//NSTUB(GetDrive_ClusterSize                  ,0xff85e284) //  1            == 0xff85e284
102//NSTUB(GetDrive_FreeClusters                 ,0xff85e2ec) //  1            == 0xff85e2ec
103//NSTUB(GetDrive_TotalClusters                ,0xff85e2b8) //  1            == 0xff85e2b8
104NSTUB(GetFocusLensSubjectDistance             ,0xff94da5c) //102
105NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff94dd68) //  3
106NSTUB(GetKbdState                             ,0xff84d880) //109
107NSTUB(GetMemInfo                              ,0xff813c24) //  1
108NSTUB(GetOpticalTemperature                   ,0xff850b70) //102
109NSTUB(GetParameterData                        ,0xff98d554) //101
110NSTUB(GetPropertyCase                         ,0xff87dbcc) //102
111NSTUB(GetSystemTime                           ,0xffa91bf4) //101
112//NSTUB(GetZoomLensCurrentPoint               ,0xff9548a8) //102            == 0xff9548a8
113//NSTUB(GetZoomLensCurrentPosition            ,0xffa820f8) //102            == 0xffa820f8
114NSTUB(GiveSemaphore                           ,0xff827a88) //112
115NSTUB(IsStrobeChargeCompleted                 ,0xff8bdbdc) //102
116//NSTUB(LEDDrive                              ,0xff84cc34) //103            == 0xff84cc34
117NSTUB(LocalTime                               ,0xff87763c) //  1
118NSTUB(LockMainPower                           ,0xff885580) //103
119NSTUB(Lseek                                   ,0xff823b84) //101
120NSTUB(MakeDirectory_Fut                       ,0xff823364) //  1
121NSTUB(MoveFocusLensToDistance                 ,0xffaf8794) //102
122NSTUB(MoveIrisWithAv                          ,0xffa8c384) //102
123NSTUB(MoveZoomLensWithPoint                   ,0xffa8caac) //102
124NSTUB(NewTaskShell                            ,0xff87d674) //103
125NSTUB(Open                                    ,0xff823a1c) //101
126//NSTUB(PB2Rec                                ,0xff888840) //104            == 0xff888840
127NSTUB(PT_MoveDigitalZoomToWide                ,0xff8697c0) //102
128NSTUB(PT_MoveOpticalZoomAt                    ,0xff869798) //102
129NSTUB(PT_PlaySound                            ,0xff869110) //102
130//NSTUB(PostLogicalEventForNotPowerType       ,0xff88328c) //103            == 0xff88328c
131NSTUB(PostLogicalEventToUI                    ,0xff8832d8) //103
132NSTUB(PutInNdFilter                           ,0xffa8c930) //102
133NSTUB(PutOutNdFilter                          ,0xffa8c954) //102
134NSTUB(Read                                    ,0xff819a4c) //101
135NSTUB(ReadFastDir                             ,0xffa6fe64) //  1
136//NSTUB(Rec2PB                                ,0xff8871b8) //104            == 0xff8871b8
137//NSTUB(RefreshPhysicalScreen                 ,0xff9fa6fc) //104            == 0xff9fa6fc
138NSTUB(Remove                                  ,0xff823a8c) //  1
139NSTUB(RenameFile_Fut                          ,0xff82329c) //  1
140//NSTUB(Restart                               ,0xff8298f0) //106            == 0xff8298f0
141NSTUB(SetAE_ShutterSpeed                      ,0xffafb614) //102
142NSTUB(SetAutoShutdownTime                     ,0xff8855f4) //103
143NSTUB(SetCurrentCaptureModeType               ,0xff88d348) //101
144NSTUB(SetFileTimeStamp                        ,0xff823d20) //  1
145NSTUB(SetLogicalEventActive                   ,0xff885240) //101
146NSTUB(SetParameterData                        ,0xff98d430) //101
147NSTUB(SetPropertyCase                         ,0xff87dac4) //102
148//NSTUB(SetScriptMode                         ,0xff885290) //101            == 0xff885290
149NSTUB(SleepTask                               ,0xff827cf0) //101
150NSTUB(TakeSemaphore                           ,0xff8279b8) //101
151//NSTUB(TurnOffBackLight                      ,0xff893fc8) //104            == 0xff893fc8
152NSTUB(TurnOnBackLight                         ,0xff893fb0) //104
153NSTUB(UIFS_WriteFirmInfoToFile                ,0xff978be0) //103
154//NSTUB(UnlockAF                              ,0xff8258d0) //102            == 0xff8258d0
155NSTUB(UnlockMainPower                         ,0xff8854d4) //103
[1424]156NSTUB(UpdateMBROnFlash                        ,0xff85e0c4) //105
[1291]157//NSTUB(VbattGet                              ,0xff82046c) //103            == 0xff82046c
158NSTUB(Write                                   ,0xff823af0) //101
159//NSTUB(WriteSDCard                           ,0xff93dd0c) //108            == 0xff93dd0c
160NSTUB(_log                                    ,0xffb28344) //111
161NSTUB(_log10                                  ,0xffb26fd0) //112
162NSTUB(_pow                                    ,0xffb27140) //114
163NSTUB(_sqrt                                   ,0xffb29fa0) //  1
164NSTUB(add_ptp_handler                         ,0xffa3afbc) //  3
165//NSTUB(apex2us                               ,0xff9fdbc8) //  4            == 0xff9fdbc8
166NSTUB(close                                   ,0xff819864) //  1
167NSTUB(closedir                                ,0xffa6ff34) //  1
168NSTUB(err_init_task                           ,0xff814e80) //  4
169NSTUB(exmem_alloc                             ,0xff87857c) //103
170NSTUB(free                                    ,0xff813a7c) //112
171NSTUB(kbd_p1_f                                ,0xff821bf0) //109
172NSTUB(kbd_p1_f_cont                           ,0xff821bfc) //109
173NSTUB(kbd_p2_f                                ,0xff821408) //109
174NSTUB(kbd_read_keys                           ,0xff821af4) //109
175NSTUB(kbd_read_keys_r2                        ,0xff84d130) //109
176NSTUB(lseek                                   ,0xff823b84) //101
177NSTUB(malloc                                  ,0xff8139a8) //112
178NSTUB(memcmp                                  ,0xff81cba4) //101
179NSTUB(memcpy                                  ,0xff8a0984) //101
180NSTUB(memset                                  ,0xff9fcf00) //101
181NSTUB(mkdir                                   ,0xff823de8) //  1
182// ALT: NSTUB(mkdir, 0xff823e88) // 1 32/0
183NSTUB(mktime_ext                              ,0xff8a11f0) //  1
184NSTUB(open                                    ,0xff8197b4) //  1
185NSTUB(opendir                                 ,0xffa6fdd0) //  1
186NSTUB(openfastdir                             ,0xffa6fdd0) //  1
187//NSTUB(qsort                                 ,0xffae3d50) //  1            == 0xffae3d50
188NSTUB(rand                                    ,0xff81ccac) //  1
189NSTUB(read                                    ,0xff819a4c) //101
190NSTUB(readfastdir                             ,0xffa6fe64) //  1
191NSTUB(reboot_fw_update                        ,0xffa77864) //  5
192NSTUB(set_control_event                       ,0xff884e9c) //111
193NSTUB(srand                                   ,0xff81cca0) //  1
194NSTUB(stat                                    ,0xff823c50) //  1
195NSTUB(strcat                                  ,0xff8a0798) //  1
196//NSTUB(strchr                                ,0xff8a0820) //  1            == 0xff8a0820
197NSTUB(strcmp                                  ,0xff81cb3c) //101
198NSTUB(strcpy                                  ,0xff81cb24) //101
199NSTUB(strftime                                ,0xff8a0bf8) //  1
200NSTUB(strlen                                  ,0xff81cb80) //101
201NSTUB(strncmp                                 ,0xff8a07d4) //  1
202NSTUB(strncpy                                 ,0xff82dbf8) //  1
203//NSTUB(strrchr                               ,0xff9fced8) //  1            == 0xff9fced8
204NSTUB(strtol                                  ,0xff82de30) //101
205NSTUB(strtolx                                 ,0xff82dc34) //109
206  DEF(task_CaptSeq                            ,0xff86cb80) //110
207  DEF(task_ExpDrv                             ,0xff8b3e4c) //110
208  DEF(task_InitFileModules                    ,0xff8892bc) //107
209  DEF(task_MovieRecord                        ,0xff867d90) //107
210  DEF(task_PhySw                              ,0xff821764) //107
211NSTUB(time                                    ,0xff877c1c) //  2
212NSTUB(vsprintf                                ,0xff81cae8) //  1
Note: See TracBrowser for help on using the repository browser.