source: branches/release-1_0/platform/sx220hs/sub/100a/stubs_entry.S @ 1637

Revision 1637, 14.8 KB checked in by philmoz, 16 months ago (diff)

Re-align CHDK and CHDK-DE code base (part 1) - http://chdk.setepontos.com/index.php?topic=7601.0

  • add a1000, include a3300, ixus1000 and ixus230 in auto build
  • align signature finder code and stubs files
  • align files with just white space differences
  • 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.00A
7//   Canon PowerShot SX220 HS
8
9// Values for makefile.inc
10//   PLATFORMID = 12844 (0x322c) // 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// ERROR: SetFileAttributes is not found.                  //--- ---    *** != 0x00000000
18//NSTUB(kbd_pwr_off                           ,0xff0565ac) //  2 60%    *** != 0x00000000
19// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0x00000000
20//NSTUB(write                                 ,0xff0270d8) //101        *** != 0xff00adb8
21
22// Check of modemap from 'platform/CAMERA/shooting.c':
23// Firmware modemap table found @ff0953cc -> ff091c94 -> ff1b2368 -> ff318d34 -> ff48a450
24// Current modemap entry not found in firmware - MODE_SCN_MONOCHROME       8754
25// Current modemap entry not found in firmware - MODE_SCN_TOY_CAMERA       8751
26// Current modemap entry not found in firmware - MODE_SCN_SUPER_VIVID      8742
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_COLOR_SWAP       8734
31// Current modemap entry not found in firmware - MODE_SCN_COLOR_ACCENT     8733
32
33// Values below can be overridden in 'stubs_min.S':
34DEF(physw_status                            ,0x000357a8) // Found @0xff024960
35DEF(physw_run                               ,0x00001c40) // Found @0xff0244f4
36DEF(levent_table                            ,0xff41646c) // Found @0xff41646c
37DEF(FlashParamsTable                        ,0xff48a69c) // Found @0xff48a69c
38DEF(movie_status                            ,0x00008594) // Found @0xff187064
39DEF(full_screen_refresh                     ,0x0000b35c) // Found @0xff23d628
40DEF(canon_menu_active                       ,0x00004274) // Found @0xff08b3f4
41DEF(canon_shoot_menu_active                 ,0x000098e9) // Found @0xff1ce4f8
42DEF(playrec_mode                            ,0x00003fa8) // Found @0xff07d778
43DEF(zoom_status                             ,0x0000f5c4) // Found @0xff31c3ec
44DEF(some_flag_for_af_scan                   ,0x00008998) // Found @0xff18b738
45// focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
46// each entry contains 3 int value(s), the first is the zoom focus length.
47// there are 126 entries in the table - set NUM_FL to 126
48DEF(focus_len_table                         ,0xfff4a3dc) // Found @0xfff4a3dc
49DEF(zoom_busy                               ,0x000084bc) // Found @0xff1821e8
50DEF(focus_busy                              ,0x00008338) // Found @0xff17c768
51//DEF(recreview_hold                          ,0x00004d80) // Found @0xff09e130, ** != ** stubs_min = 0x000094c4 (0x93D4+0xF0)
52
53// Values below go in 'lib.c':
54//void *vid_get_bitmap_fb()        { return (void*)0x40471000; }             // Found @0xff050f20
55//void *vid_get_viewport_fb()      { return (void*)0x405d7980; }             // Found @0xff371e8c
56//void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x3c70+0x58)); } // Found @0xff06d2c8 & 0xff06d300
57//char *camera_jpeg_count_str()    { return (char*)0x000ca790; }             // Found @0xff2327fc
58//long hook_raw_size()             { return 0x0123eaf0; }                    // Found @0xff3753a0
59//int get_flash_params_count(void) { return 0xa0; }                          // Found @0xff1b33a0
60
61// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
62//#define SD_READONLY_FLAG    0x00020000 // Found @0xff3b189c, levent 0x90a
63//#define SD_READONLY_IDX     2
64//#define USB_MASK            0x04000000 // Found @0xff3b18cc, levent 0x902
65//#define USB_IDX             2
66
67// Keymap values for kbd.c. Additional keys may be present, only common values included here.
68//static KeyMap keymap[] = {
69//    { 0, KEY_DISPLAY         ,0x00000800 }, // Found @0xff3b180c, levent 0x0a
70//    { 0, KEY_UP              ,0x00001000 }, // Found @0xff3b1814, levent 0x04
71//    { 0, KEY_RIGHT           ,0x00004000 }, // Found @0xff3b1824, levent 0x07
72//    { 0, KEY_SET             ,0x00010000 }, // Found @0xff3b1834, levent 0x08
73//    { 0, KEY_DOWN            ,0x00020000 }, // Found @0xff3b183c, levent 0x05
74//    { 0, KEY_MENU            ,0x00040000 }, // Found @0xff3b1844, levent 0x09
75//    { 2, KEY_LEFT            ,0x00000100 }, // Found @0xff3b1874, levent 0x06
76//    { 2, KEY_SHOOT_FULL      ,0x00002002 }, // Found @0xff3b1864, levent 0x01
77//    { 2, KEY_SHOOT_HALF      ,0x00002000 }, // Found @0xff3b1884, levent 0x00
78//    { 2, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xff3b1864, levent 0x01
79//    { 0, 0, 0 }
80//};
81
82// Values below go in 'platform_camera.h':
83//#define CAM_DRYOS         1
84//#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
85//#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher
86//#define CAM_RAW_ROWPIX    4168 // Found @0xff15290c
87//#define CAM_RAW_ROWS      3060 // Found @0xff152918
88//#undef  CAM_UNCACHED_BIT
89//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff02b88c
90
91// Misc stuff
92DEF(ctypes, 0xff3aff12)
93
94// For capt_seq.c
95//static long *nrflag = (long*)(0x89d4+0x08);  // Found @ ff1903bc & ff190428
96//#define NR_AUTO (0)                          // have to explictly reset value back to 0 to enable auto
97
98// Stubs below matched 100%.
99//    Name                                     Address                Comp to stubs_entry_2.S
100NSTUB(AllocateMemory                          ,0xff3075d0) //101
101NSTUB(AllocateUncacheableMemory               ,0xff02b844) //112
102NSTUB(Close                                   ,0xff027084) //101
103NSTUB(CreateTask                              ,0xff00e9b0) //101
104NSTUB(DebugAssert                             ,0xff00ec88) //111
105NSTUB(DeleteDirectory_Fut                     ,0xff026a80) //  1
106NSTUB(DeleteFile_Fut                          ,0xff02699c) //112
107NSTUB(DoAFLock                                ,0xff028bd8) //102
108NSTUB(EnterToCompensationEVF                  ,0xff028e74) //104
109NSTUB(ExecuteEventProcedure                   ,0xff086bdc) //  1
110NSTUB(ExitFromCompensationEVF                 ,0xff028eb8) //104
111NSTUB(ExitTask                                ,0xff00ec40) //101
112NSTUB(ExpCtrlTool_StartContiAE                ,0xff037fe4) //104
113NSTUB(ExpCtrlTool_StopContiAE                 ,0xff0380bc) //104
114NSTUB(Fclose_Fut                              ,0xff026b18) //101
115NSTUB(Feof_Fut                                ,0xff026d04) //  1
116NSTUB(Fflush_Fut                              ,0xff026d40) //  1
117NSTUB(Fgets_Fut                               ,0xff026c6c) //  6
118NSTUB(Fopen_Fut                               ,0xff026ad8) //101
119NSTUB(Fread_Fut                               ,0xff026bc4) //101
120NSTUB(FreeMemory                              ,0xff3075c8) //101
121NSTUB(FreeUncacheableMemory                   ,0xff02b884) //112
122NSTUB(Fseek_Fut                               ,0xff026cb8) //101
123NSTUB(Fwrite_Fut                              ,0xff026c18) //101
124NSTUB(GetBatteryTemperature                   ,0xff05d010) //102
125NSTUB(GetCCDTemperature                       ,0xff05cf9c) //102
126NSTUB(GetCurrentAvValue                       ,0xff17f15c) //102
127NSTUB(GetDrive_ClusterSize                    ,0xff06adbc) //  6
128NSTUB(GetDrive_FreeClusters                   ,0xff06ae14) //  6
129NSTUB(GetDrive_TotalClusters                  ,0xff06adec) //  6
130NSTUB(GetFocusLensSubjectDistance             ,0xff17d3ec) //102
131NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff17d84c) //  3
132NSTUB(GetImageFolder                          ,0xff1598b8) //  6
133NSTUB(GetKbdState                             ,0xff056474) //109
134NSTUB(GetMemInfo                              ,0xff00a29c) //  3
135NSTUB(GetOpticalTemperature                   ,0xff05d084) //102
136NSTUB(GetParameterData                        ,0xff1b3360) //101
137NSTUB(GetPropertyCase                         ,0xff08a944) //102
138NSTUB(GetSystemTime                           ,0xff307628) //101
139NSTUB(GetZoomLensCurrentPoint                 ,0xff182660) //102
140NSTUB(GetZoomLensCurrentPosition              ,0xff2f14cc) //102
141NSTUB(GiveSemaphore                           ,0xff02b23c) //112
142NSTUB(IsStrobeChargeCompleted                 ,0xff0e0cd0) //102
143NSTUB(LEDDrive                                ,0xff0557c0) //101
144NSTUB(LocalTime                               ,0xff08446c) //  6
145NSTUB(LockMainPower                           ,0xff091884) //103
146NSTUB(Lseek                                   ,0xff0272a0) //101
147NSTUB(MakeDirectory_Fut                       ,0xff026a10) //  6
148NSTUB(MakeSDCardBootable                      ,0xff06b04c) //105
149NSTUB(MoveFocusLensToDistance                 ,0xff36e188) //102
150NSTUB(MoveIrisWithAv                          ,0xff303638) //102
151NSTUB(MoveZoomLensWithPoint                   ,0xff303dfc) //102
152NSTUB(NewTaskShell                            ,0xff08a38c) //101
153NSTUB(Open                                    ,0xff026fbc) //101
154NSTUB(PB2Rec                                  ,0xff094a5c) //104
155NSTUB(PT_MoveDigitalZoomToWide                ,0xff0746e8) //102
156NSTUB(PT_MoveOpticalZoomAt                    ,0xff0746c0) //102
157NSTUB(PT_PlaySound                            ,0xff07f848) //  6
158NSTUB(PostLogicalEventForNotPowerType         ,0xff08f3a8) //103
159NSTUB(PostLogicalEventToUI                    ,0xff08f3f4) //103
160NSTUB(PutInNdFilter                           ,0xff36bdd4) //102
161NSTUB(PutOutNdFilter                          ,0xff36be0c) //102
162NSTUB(Read                                    ,0xff00ad58) //101
163NSTUB(ReadFastDir                             ,0xff2dd404) //  6
164NSTUB(Rec2PB                                  ,0xff0931fc) //104
165NSTUB(RefreshPhysicalScreen                   ,0xff0aa058) //104
166NSTUB(Remove                                  ,0xff0271f8) //  6
167NSTUB(RenameFile_Fut                          ,0xff026908) //  6
168NSTUB(Restart                                 ,0xff02d058) //106
169NSTUB(ScreenLock                              ,0xff0ab250) //  4
170NSTUB(ScreenUnlock                            ,0xff0ab2b4) //  3
171NSTUB(SetAE_ShutterSpeed                      ,0xff371004) //102
172NSTUB(SetAutoShutdownTime                     ,0xff0918f8) //103
173NSTUB(SetCurrentCaptureModeType               ,0xff09ae08) //101
174NSTUB(SetFileTimeStamp                        ,0xff027410) //  6
175NSTUB(SetLogicalEventActive                   ,0xff0915c0) //101
176NSTUB(SetParameterData                        ,0xff1b32d0) //101
177NSTUB(SetPropertyCase                         ,0xff08a828) //102
178NSTUB(SetScriptMode                           ,0xff091610) //101
179NSTUB(SleepTask                               ,0xff02b4e8) //101
180NSTUB(TakeSemaphore                           ,0xff02b16c) //101
181NSTUB(TurnOffBackLight                        ,0xff0a21b8) //104
182NSTUB(TurnOnBackLight                         ,0xff0a21a0) //104
183NSTUB(UIFS_WriteFirmInfoToFile                ,0xff1a4414) //101
184NSTUB(UnlockAF                                ,0xff028c10) //102
185NSTUB(UnlockMainPower                         ,0xff0917d8) //103
186NSTUB(VbattGet                                ,0xff023040) //101
187NSTUB(Write                                   ,0xff0270d8) //101
188NSTUB(WriteSDCard                             ,0xff16c828) //108
189NSTUB(_log                                    ,0xff3ac778) //111
190NSTUB(_log10                                  ,0xff3accb8) //112
191NSTUB(_pow                                    ,0xff3ace30) //114
192NSTUB(_sqrt                                   ,0xff3aed14) //  6
193NSTUB(add_ptp_handler                         ,0xff28aa1c) //  6
194NSTUB(apex2us                                 ,0xff246bec) //  4
195NSTUB(close                                   ,0xff00abb4) //  6
196NSTUB(closedir                                ,0xff2dd260) //  4
197NSTUB(err_init_task                           ,0xff005fd4) //  4
198NSTUB(exmem_alloc                             ,0xff085434) //101
199NSTUB(free                                    ,0xff004244) //112
200NSTUB(kbd_p1_f                                ,0xff0249dc) //109
201NSTUB(kbd_p1_f_cont                           ,0xff0249e8) //109
202NSTUB(kbd_p2_f                                ,0xff0241c4) //109
203NSTUB(kbd_read_keys                           ,0xff024960) //109
204NSTUB(kbd_read_keys_r2                        ,0xff055c78) //109
205NSTUB(lseek                                   ,0xff0272a0) //101
206NSTUB(malloc                                  ,0xff0041ec) //112
207NSTUB(memcmp                                  ,0xff0108f4) //101
208NSTUB(memcpy                                  ,0xff030fec) //101
209NSTUB(memset                                  ,0xff245bec) //101
210NSTUB(mkdir                                   ,0xff027520) //  6
211NSTUB(mktime_ext                              ,0xff0ac0c8) //  1
212NSTUB(open                                    ,0xff00ab04) //  6
213NSTUB(opendir                                 ,0xff2dd2b0) //  6
214NSTUB(openfastdir                             ,0xff2dd2b0) //  6
215NSTUB(qsort                                   ,0xff359478) //  6
216NSTUB(rand                                    ,0xff245d2c) //  6
217NSTUB(read                                    ,0xff00ad58) //101
218NSTUB(reboot_fw_update                        ,0xff2e28a0) //  6
219NSTUB(rename                                  ,0xff026908) //  6
220NSTUB(set_control_event                       ,0xff0911b8) //111
221NSTUB(srand                                   ,0xff245d20) //  6
222NSTUB(stat                                    ,0xff0272e8) //  3
223NSTUB(strcat                                  ,0xff0ab880) //  1
224NSTUB(strchr                                  ,0xff0040b8) //  1
225NSTUB(strcmp                                  ,0xff0108b0) //101
226NSTUB(strcpy                                  ,0xff010898) //101
227NSTUB(strftime                                ,0xff0abac8) //113
228NSTUB(strlen                                  ,0xff004104) //101
229NSTUB(strncmp                                 ,0xff00406c) //  1
230NSTUB(strncpy                                 ,0xff004030) //  1
231NSTUB(strrchr                                 ,0xff0040dc) //  1
232NSTUB(strtol                                  ,0xff0312ec) //101
233NSTUB(strtolx                                 ,0xff0310f0) //109
234  DEF(task_CaptSeq                            ,0xff077628) //110
235  DEF(task_ExpDrv                             ,0xff0c3e54) //110
236  DEF(task_InitFileModules                    ,0xff095240) //110
237  DEF(task_MovieRecord                        ,0xff1882f0) //110
238  DEF(task_PhySw                              ,0xff0244f0) //110
239  DEF(task_RotaryEncoder                      ,0xff05671c) //110
240NSTUB(time                                    ,0xff084a48) //  6
241NSTUB(vsprintf                                ,0xff010858) //  6
Note: See TracBrowser for help on using the repository browser.