source: trunk/platform/sx20/sub/100f/stubs_entry.S @ 1424

Revision 1424, 13.7 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
Line 
1// !!! THIS FILE IS GENERATED. DO NOT EDIT. !!!
2#include "stubs_asm.h"
3
4// Camera info:
5//   DRYOS R39 (DRYOS version 2.3, release #0039)
6//   Firmware Ver GM1.00F
7//   Canon PowerShot SX20 IS
8
9// Values for makefile.inc
10//   PLATFORMID = 12772 (0x31e4) // Found @ 0xfffe0130
11//   MAXRAMADDR = 0x03ffffff
12//   KEYSYS = d4                 // Found @ 0xffff35a0
13//   NEED_ENCODED_DISKBOOT = 3   // Found @ 0xffff35b0
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(DoAFLock                              ,0xff836a9c) //102        *** != 0xff8796b4
18//NSTUB(SetFileTimeStamp                      ,0xff835508) //  3        *** != 0x00000000
19//NSTUB(TurnOffBackLight                      ,0xff8a5ae0) //104        *** != 0xff89b6a4
20//NSTUB(UIFS_WriteFirmInfoToFile              ,0xff9799e8) //105        *** != 0xdeadc0de
21//NSTUB(UnlockAF                              ,0xff836b38) //102        *** != 0xff8796c4
22//NSTUB(VbattGet                              ,0xff831cec) //103        *** != 0xff95d0ec
23//NSTUB(kbd_pwr_off                           ,0xff85f2c4) //  2 60%    *** != 0x00000000
24// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0x00000000
25//NSTUB(openfastdir                           ,0xffa7d358) //  3        *** != 0xdeadc0de
26
27// Check of modemap from 'platform/CAMERA/shooting.c':
28// Firmware modemap table found @ff89aa40 -> ff897290 -> ff98f050 -> ffaac6cc -> ffbe856c
29// No problems found with modemap table.
30
31// Values below go in 'stubs_min.S':
32//DEF(physw_status                            ,0x00032444) // Found @0xff83341c,          stubs_min = 0x00032444 (0x32444)
33//DEF(physw_run                               ,0x00001c44) // Found @0xff83308c,          stubs_min = 0x00001c44 (0x1C38+0x0C)
34//DEF(levent_table                            ,0xffba3160) // Found @0xffba3160, ** != ** stubs_min = 0xff98ceac (0xFF98CEAC)
35//DEF(FlashParamsTable                        ,0xffbe8754) // Found @0xffbe8754, ** != ** stubs_min = 0xffb7454c (0xFFB7454C)
36//DEF(movie_status                            ,0x00002c30) // Found @0xff878db0,          stubs_min = 0x00002c30 (0x2BF8+0x38)
37//DEF(full_screen_refresh                     ,0x00009cec) // Found @0xffa025cc,          stubs_min = 0x00009cec (0x9CEC)
38//DEF(canon_menu_active                       ,0x0000312c) // Found @0xff88fe90,          stubs_min = 0x0000312c (0x3128+4)
39//DEF(canon_shoot_menu_active                 ,0x00008839) // Found @0xff9aa038,          stubs_min = 0x00008839 (0x8838+1)
40//DEF(playrec_mode                            ,0x00002e58) // Found @0xff882228,          stubs_min = 0x00002e58 (0x2E54+0x4)
41//DEF(zoom_status                             ,0x0000c6b8) // Found @0xffaaf400,          stubs_min = 0x0000c6b8 (0xC6B8)
42//DEF(some_flag_for_af_scan                   ,0x0000792c) // Found @0xff95fb70
43
44// Values below go in 'lib.c':
45//void *vid_get_bitmap_fb()        { return (void*)0x403f1000; } // Found @0xff859684
46//void *vid_get_viewport_fb()      { return (void*)0x41020120; } // Found @0xffb03200
47//char *camera_jpeg_count_str()    { return (char*)0x00072db0; } // Found @0xff9f71bc
48//long hook_raw_size()             { return 0x011ca240; }        // Found @0xffb05964
49//int get_flash_params_count(void) { return 0x84; }              // Found @0xff990650
50
51// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
52//#define SD_READONLY_FLAG    0x00020000 // Found @0xffb44b3c, levent 0x90a
53//#define SD_READONLY_IDX     2
54//#define USB_MASK            0x00040000 // Found @0xffb44b48, levent 0x902
55//#define USB_IDX             2
56
57// Keymap values for kbd.c. Additional keys may be present, only common values included here.
58//static KeyMap keymap[] = {
59//    { 0, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffb449d4, levent 0x01
60//    { 0, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffb449d4, levent 0x01
61//    { 0, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffb449c8, levent 0x00
62//    { 1, KEY_SET             ,0x00000100 }, // Found @0xffb44a64, levent 0x08
63//    { 1, KEY_DISPLAY         ,0x00000200 }, // Found @0xffb44a70, levent 0x0a
64//    { 1, KEY_UP              ,0x00000400 }, // Found @0xffb44a7c, levent 0x04
65//    { 1, KEY_DOWN            ,0x00000800 }, // Found @0xffb44a88, levent 0x05
66//    { 1, KEY_RIGHT           ,0x00001000 }, // Found @0xffb44a94, levent 0x07
67//    { 1, KEY_LEFT            ,0x00002000 }, // Found @0xffb44aa0, levent 0x06
68//    { 1, KEY_MENU            ,0x00004000 }, // Found @0xffb44aac, levent 0x09
69//    { 0, 0, 0 }
70//};
71
72// Values below go in 'platform_camera.h':
73//#define CAM_DRYOS         1
74//#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
75//#define CAM_RAW_ROWPIX    4080 // Found @0xff92b700
76//#define CAM_RAW_ROWS      3048 // Found @0xff92b708
77//#undef  CAM_UNCACHED_BIT
78//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff838e2c
79
80// Stubs below matched 100%.
81//    Name                                     Address                Comp to stubs_entry_2.S
82NSTUB(AllocateMemory                          ,0xffa9b5e0) //101
83NSTUB(AllocateUncacheableMemory               ,0xff838de8) //112
84NSTUB(Close                                   ,0xff83527c) //101
85NSTUB(CreateTask                              ,0xff81e5b4) //101
86NSTUB(DebugAssert                             ,0xff81e88c) //111
87NSTUB(DeleteFile_Fut                          ,0xff834c08) //112
88NSTUB(EnterToCompensationEVF                  ,0xff836d84) //104
89NSTUB(ExecuteEventProcedure                   ,0xff88b548) //  1
90NSTUB(ExitFromCompensationEVF                 ,0xff836dc8) //104
91NSTUB(ExitTask                                ,0xff81e844) //101
92NSTUB(ExpCtrlTool_StartContiAE                ,0xff84465c) //104
93NSTUB(ExpCtrlTool_StopContiAE                 ,0xff844734) //104
94NSTUB(Fclose_Fut                              ,0xff834d84) //101
95NSTUB(Feof_Fut                                ,0xff834f70) //  1
96NSTUB(Fflush_Fut                              ,0xff834fac) //  1
97NSTUB(Fgets_Fut                               ,0xff834ed8) //  1
98NSTUB(Fopen_Fut                               ,0xff834d44) //101
99NSTUB(Fread_Fut                               ,0xff834e30) //101
100NSTUB(FreeMemory                              ,0xffa9b5d8) //101
101NSTUB(FreeUncacheableMemory                   ,0xff838e28) //112
102NSTUB(Fseek_Fut                               ,0xff834f24) //101
103NSTUB(Fwrite_Fut                              ,0xff834e84) //101
104NSTUB(GetBatteryTemperature                   ,0xff862744) //102
105NSTUB(GetCCDTemperature                       ,0xff8626d0) //102
106NSTUB(GetCurrentAvValue                       ,0xff952548) //102
107NSTUB(GetDrive_ClusterSize                    ,0xff86f1c8) //  3
108NSTUB(GetDrive_FreeClusters                   ,0xff86f228) //  3
109NSTUB(GetDrive_TotalClusters                  ,0xff86f1fc) //  3
110NSTUB(GetFocusLensSubjectDistance             ,0xff950a3c) //102
111NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff950e70) //  3
112NSTUB(GetImageFolder                          ,0xff933544) //106
113NSTUB(GetKbdState                             ,0xff85f11c) //109
114NSTUB(GetMemInfo                              ,0xff81a070) //  3
115NSTUB(GetOpticalTemperature                   ,0xff8627b8) //102
116NSTUB(GetParameterData                        ,0xff990610) //101
117NSTUB(GetPropertyCase                         ,0xff88f2dc) //102
118NSTUB(GetSystemTime                           ,0xffa9b638) //101
119NSTUB(GetZoomLensCurrentPoint                 ,0xff9566d4) //102
120NSTUB(GetZoomLensCurrentPosition              ,0xffa8eac4) //102
121NSTUB(GiveSemaphore                           ,0xff838804) //112
122NSTUB(IsStrobeChargeCompleted                 ,0xff8ce3ac) //102
123NSTUB(LEDDrive                                ,0xff85e338) //103
124NSTUB(LocalTime                               ,0xff888ebc) //  1
125NSTUB(LockMainPower                           ,0xff896eac) //103
126NSTUB(Lseek                                   ,0xff835398) //101
127NSTUB(MakeDirectory_Fut                       ,0xff834c7c) //  1
128NSTUB(MoveFocusLensToDistance                 ,0xffaff4c8) //102
129NSTUB(MoveIrisWithAv                          ,0xffa96f60) //102
130NSTUB(MoveZoomLensWithPoint                   ,0xffa97688) //102
131NSTUB(NewTaskShell                            ,0xff88eda0) //103
132NSTUB(Open                                    ,0xff835224) //101
133NSTUB(PB2Rec                                  ,0xff899de8) //104
134NSTUB(PT_MoveDigitalZoomToWide                ,0xff879664) //102
135NSTUB(PT_MoveOpticalZoomAt                    ,0xff87963c) //102
136NSTUB(PT_PlaySound                            ,0xff884058) //102
137NSTUB(PostLogicalEventForNotPowerType         ,0xff894da8) //103
138NSTUB(PostLogicalEventToUI                    ,0xff894df4) //103
139NSTUB(PutInNdFilter                           ,0xffa9750c) //102
140NSTUB(PutOutNdFilter                          ,0xffa97530) //102
141NSTUB(Read                                    ,0xff81ab78) //101
142NSTUB(ReadFastDir                             ,0xffa7d48c) //  3
143NSTUB(Rec2PB                                  ,0xff898854) //104
144NSTUB(RefreshPhysicalScreen                   ,0xffa0492c) //104
145NSTUB(Remove                                  ,0xff8352b0) //  4
146NSTUB(RenameFile_Fut                          ,0xff834b74) //  4
147NSTUB(Restart                                 ,0xff83a53c) //106
148NSTUB(ScreenLock                              ,0xffa048f8) //  8
149NSTUB(ScreenUnlock                            ,0xffa0499c) //  8
150NSTUB(SetAE_ShutterSpeed                      ,0xffb02378) //102
151NSTUB(SetAutoShutdownTime                     ,0xff896f20) //103
152NSTUB(SetCurrentCaptureModeType               ,0xff89eb28) //101
153NSTUB(SetLogicalEventActive                   ,0xff896bfc) //101
154NSTUB(SetParameterData                        ,0xff9904ec) //101
155NSTUB(SetPropertyCase                         ,0xff88f1e0) //102
156NSTUB(SetScriptMode                           ,0xff896c4c) //101
157NSTUB(SleepTask                               ,0xff838a6c) //101
158NSTUB(TakeSemaphore                           ,0xff838734) //101
159NSTUB(TurnOnBackLight                         ,0xff8a5ac8) //104
160NSTUB(UnlockMainPower                         ,0xff896e00) //103
161NSTUB(UpdateMBROnFlash                        ,0xff86f048) //105
162NSTUB(Write                                   ,0xff83530c) //101
163NSTUB(WriteSDCard                             ,0xff940bac) //108
164NSTUB(_log                                    ,0xffb37c90) //111
165NSTUB(_log10                                  ,0xffb36bd4) //112
166NSTUB(_pow                                    ,0xffb36d44) //114
167NSTUB(_sqrt                                   ,0xffb38ff8) //  1
168NSTUB(add_ptp_handler                         ,0xffa49168) //  3
169NSTUB(apex2us                                 ,0xffa080b8) //  4
170NSTUB(close                                   ,0xff81a990) //  1
171NSTUB(closedir                                ,0xffa7d314) //  3
172NSTUB(err_init_task                           ,0xff815f28) //  4
173NSTUB(exmem_alloc                             ,0xff889d7c) //103
174NSTUB(free                                    ,0xff814138) //112
175NSTUB(kbd_p1_f                                ,0xff833498) //109
176NSTUB(kbd_p1_f_cont                           ,0xff8334a4) //109
177NSTUB(kbd_p2_f                                ,0xff832d58) //109
178NSTUB(kbd_read_keys                           ,0xff83341c) //109
179NSTUB(kbd_read_keys_r2                        ,0xff85e850) //109
180NSTUB(lseek                                   ,0xff835398) //101
181NSTUB(malloc                                  ,0xff8140dc) //112
182NSTUB(memcmp                                  ,0xff8203d8) //101
183NSTUB(memcpy                                  ,0xff83e458) //101
184NSTUB(memset                                  ,0xffa07108) //101
185NSTUB(mkdir                                   ,0xff8356f0) //  3
186NSTUB(mktime_ext                              ,0xff8ad0d0) //  1
187NSTUB(open                                    ,0xff81a8e0) //  1
188NSTUB(opendir                                 ,0xffa7d358) //  3
189NSTUB(qsort                                   ,0xffaeb414) //  1
190NSTUB(rand                                    ,0xff8204e0) //  1
191NSTUB(read                                    ,0xff81ab78) //101
192NSTUB(readfastdir                             ,0xffa7d48c) //  3
193NSTUB(reboot_fw_update                        ,0xffa8299c) //  1
194NSTUB(rename                                  ,0xff834b74) //  4
195NSTUB(set_control_event                       ,0xff896850) //111
196NSTUB(srand                                   ,0xff8204d4) //  1
197NSTUB(stat                                    ,0xff8353d4) //  3
198// ALT: NSTUB(stat, 0xff86c60c) // 3 31/0
199NSTUB(strcat                                  ,0xff8ac88c) //  1
200NSTUB(strchr                                  ,0xff813fc0) //  1
201NSTUB(strcmp                                  ,0xff820394) //101
202NSTUB(strcpy                                  ,0xff82037c) //101
203NSTUB(strftime                                ,0xff8acad8) //  1
204NSTUB(strlen                                  ,0xff81400c) //101
205NSTUB(strncmp                                 ,0xff813f74) //  1
206NSTUB(strncpy                                 ,0xff813f38) //  1
207NSTUB(strrchr                                 ,0xff813fe4) //  1
208NSTUB(strtol                                  ,0xff83e738) //101
209NSTUB(strtolx                                 ,0xff83e53c) //109
210  DEF(task_CaptSeq                            ,0xff87cd40) //107
211  DEF(task_ExpDrv                             ,0xff8c1440) //110
212  DEF(task_InitFileModules                    ,0xff89a8cc) //107
213  DEF(task_MovieRecord                        ,0xff879034) //107
214  DEF(task_PhySw                              ,0xff833088) //107
215  DEF(task_RotaryEncoder                      ,0xff85f3cc) //107
216NSTUB(time                                    ,0xff889434) //  2
217NSTUB(vsprintf                                ,0xff820340) //  1
218NSTUB(write                                   ,0xff83530c) //101
Note: See TracBrowser for help on using the repository browser.