source: branches/release-1_0/platform/ixus230_elph310hs/sub/100e/stubs_entry.S @ 1937

Revision 1937, 14.4 KB checked in by reyalp, 11 months ago (diff)

Merged revision(s) 1936 from trunk:
add ixus230_elph310hs 100e support from mrks (patch by waterwingz) in http://chdk.setepontos.com/index.php?topic=650.msg86912#msg86912

  • 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 R49 (DRYOS version 2.3, release #0049)
6//   Firmware Ver GM1.00E
7//   Canon IXUS 230 HS
8
9// Values for makefile.inc
10//   PLATFORMID = 12855 (0x3237) // Found @ 0xfff40040
11//   MAXRAMADDR = 0x07ffffff
12//   KEYSYS = d4c                // Found @ 0xffff360c
13//   NEED_ENCODED_DISKBOOT = 7   // Found @ 0xffff361c
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
17NSTUB(kbd_pwr_off                             ,0xff057fc8) //  2 60%
18// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0x00000000
19
20// Check of modemap from 'platform/CAMERA/shooting.c':
21// Firmware modemap table found @ff0931a8 -> ff08fab8 -> ff1b3bd0 -> ff301264 -> ff457cb8
22// No problems found with modemap table.
23
24// Values below can be overridden in 'stubs_min.S':
25DEF(physw_status                            ,0x00034108) // Found @0xff025814
26DEF(physw_run                               ,0x00001c4c) // Found @0xff0253ac
27DEF(levent_table                            ,0xff3f7e40) // Found @0xff3f7e40
28DEF(FlashParamsTable                        ,0xff457f10) // Found @0xff457f10
29DEF(movie_status                            ,0x00006d04) // Found @0xff1854e0
30DEF(full_screen_refresh                     ,0x00009a2c) // Found @0xff22fce0
31DEF(canon_menu_active                       ,0x00003284) // Found @0xff08ae14
32DEF(canon_shoot_menu_active                 ,0x000083bd) // Found @0xff1d0b64
33DEF(playrec_mode                            ,0x00002fb0) // Found @0xff07cb48
34DEF(zoom_status                             ,0x0000dacc) // Found @0xff304b78
35// focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
36// each entry contains 2 int value(s), the first is the zoom focus length.
37// there are 127 entries in the table - set NUM_FL to 127
38DEF(focus_len_table                         ,0xfff4abc8) // Found @0xfff4abc8
39DEF(zoom_busy                               ,0x00006ba0) // Found @0xff17f438
40DEF(focus_busy                              ,0x00006a40) // Found @0xff17aa94
41DEF(recreview_hold                          ,0x000038ec) // Found @0xff09a5d4
42DEF(palette_control                         ,0x00009a2c) // Found @0xff22fc5c
43DEF(active_palette_buffer                   ,0x00009a34) // Found @0xff22fc60
44DEF(palette_buffer                          ,0x000b9c80) // Found @0xff230128
45DEF(bitmap_buffer                           ,0x00009a70) // Found @0xff23396c
46DEF(active_bitmap_buffer                    ,0x00009a68) // Found @0xff233970
47
48// Values below go in 'lib.c':
49//void *vid_get_bitmap_fb()        { return (void*)0x40471000; }             // Found @0xff053204
50//void *vid_get_viewport_fb()      { return (void*)0x405c6b80; }             // Found @0xff365694
51//void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2c58+0x58)); } // Found @0xff06c234 & 0xff06c26c
52//char *camera_jpeg_count_str()    { return (char*)0x000b9574; }             // Found @0xff2263bc
53//long hook_raw_size()             { return 0x0123eaf0; }                    // Found @0xff3684dc
54//int get_flash_params_count(void) { return 0x9f; }                          // Found @0xff1b4c80
55
56// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
57//#define SD_READONLY_FLAG    0x00020000 // Found @0xff3a8090, levent 0x20a
58//#define SD_READONLY_IDX     2
59//#define USB_MASK            0x04000000 // Found @0xff3a80b0, levent 0x202
60//#define USB_IDX             2
61
62// Keymap values for kbd.c. Additional keys may be present, only common values included here.
63//static KeyMap keymap[] = {
64//    { 2, KEY_SHOOT_FULL      ,0x00000300 }, // Found @0xff3a8058, levent 0x01
65//    { 2, KEY_SHOOT_FULL_ONLY ,0x00000200 }, // Found @0xff3a8058, levent 0x01
66//    { 2, KEY_SHOOT_HALF      ,0x00000100 }, // Found @0xff3a8050, levent 0x00
67//    { 2, KEY_MENU            ,0x00000001 }, // Found @0xff3a8010, levent 0x09
68//    { 2, KEY_SET             ,0x00000002 }, // Found @0xff3a8018, levent 0x08
69//    { 2, KEY_ZOOM_IN         ,0x00000004 }, // Found @0xff3a8020, levent 0x02
70//    { 2, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xff3a8028, levent 0x03
71//    { 2, KEY_LEFT            ,0x00000010 }, // Found @0xff3a8030, levent 0x06
72//    { 2, KEY_RIGHT           ,0x00000020 }, // Found @0xff3a8038, levent 0x07
73//    { 2, KEY_DOWN            ,0x00000040 }, // Found @0xff3a8040, levent 0x05
74//    { 2, KEY_UP              ,0x00000080 }, // Found @0xff3a8048, levent 0x04
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_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher
82//#define CAM_RAW_ROWPIX    4168 // Found @0xff14d678
83//#define CAM_RAW_ROWS      3060 // Found @0xff14d684
84//#undef  CAM_UNCACHED_BIT
85//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff02be50
86
87// Misc stuff
88DEF(ctypes, 0xff3a6852)
89
90// For capt_seq.c
91//static long *nrflag = (long*)(0x9b44+0x00);  // Found @ ff23c26c & ff23c2f4
92//#define NR_AUTO (0)                          // have to explictly reset value back to 0 to enable auto
93
94// Stubs below matched 100%.
95//    Name                                     Address                Comp to stubs_entry_2.S
96NSTUB(AllocateMemory                          ,0xff2efd74) //101
97NSTUB(AllocateUncacheableMemory               ,0xff02be08) //112
98NSTUB(Close                                   ,0xff028024) //101
99NSTUB(CreateTask                              ,0xff00eae4) //101
100NSTUB(DebugAssert                             ,0xff00edbc) //111
101NSTUB(DeleteDirectory_Fut                     ,0xff027a20) //  1
102NSTUB(DeleteFile_Fut                          ,0xff02793c) //112
103NSTUB(DoAFLock                                ,0xff0298cc) //102
104NSTUB(EnterToCompensationEVF                  ,0xff029b2c) //104
105NSTUB(ExecuteEventProcedure                   ,0xff0862bc) //  1
106NSTUB(ExitFromCompensationEVF                 ,0xff029b70) //104
107NSTUB(ExitTask                                ,0xff00ed74) //101
108NSTUB(ExpCtrlTool_StartContiAE                ,0xff037a8c) //104
109NSTUB(ExpCtrlTool_StopContiAE                 ,0xff037b6c) //104
110NSTUB(Fclose_Fut                              ,0xff027ab8) //101
111NSTUB(Feof_Fut                                ,0xff027ca4) //  1
112NSTUB(Fflush_Fut                              ,0xff027ce0) //  1
113NSTUB(Fgets_Fut                               ,0xff027c0c) //  6
114NSTUB(Fopen_Fut                               ,0xff027a78) //101
115NSTUB(Fread_Fut                               ,0xff027b64) //101
116NSTUB(FreeMemory                              ,0xff2efd6c) //101
117NSTUB(FreeUncacheableMemory                   ,0xff02be48) //112
118NSTUB(Fseek_Fut                               ,0xff027c58) //101
119NSTUB(Fwrite_Fut                              ,0xff027bb8) //101
120NSTUB(GetBatteryTemperature                   ,0xff05b944) //102
121NSTUB(GetCCDTemperature                       ,0xff05b8d0) //102
122NSTUB(GetCurrentAvValue                       ,0xff17c8dc) //102
123NSTUB(GetDrive_ClusterSize                    ,0xff069cb0) //  6
124NSTUB(GetDrive_FreeClusters                   ,0xff069d08) //  6
125NSTUB(GetDrive_TotalClusters                  ,0xff069ce0) //  6
126NSTUB(GetFocusLensSubjectDistance             ,0xff17b810) //102
127NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff17bc60) //  3
128NSTUB(GetImageFolder                          ,0xff156c74) //  6
129NSTUB(GetKbdState                             ,0xff057fb0) //109
130NSTUB(GetMemInfo                              ,0xff00a2ac) //  3
131NSTUB(GetOpticalTemperature                   ,0xff05b9b8) //102
132NSTUB(GetParameterData                        ,0xff1b4c40) //101
133NSTUB(GetPropertyCase                         ,0xff08a35c) //102
134NSTUB(GetSystemTime                           ,0xff2efdcc) //101
135NSTUB(GetZoomLensCurrentPoint                 ,0xff17f8b0) //102
136NSTUB(GetZoomLensCurrentPosition              ,0xff2dbd18) //102
137NSTUB(GiveSemaphore                           ,0xff02b800) //112
138NSTUB(IsStrobeChargeCompleted                 ,0xff0de288) //102
139NSTUB(LEDDrive                                ,0xff057508) //101
140NSTUB(LocalTime                               ,0xff083b54) //  6
141NSTUB(LockMainPower                           ,0xff08f6b0) //103
142NSTUB(Lseek                                   ,0xff028240) //101
143NSTUB(MakeDirectory_Fut                       ,0xff0279b0) //  6
144NSTUB(MakeSDCardBootable                      ,0xff069f40) //105
145NSTUB(MoveFocusLensToDistance                 ,0xff3618d4) //102
146NSTUB(MoveIrisWithAv                          ,0xff2ec0d8) //102
147NSTUB(MoveZoomLensWithPoint                   ,0xff2ec80c) //102
148NSTUB(NewTaskShell                            ,0xff089cdc) //101
149NSTUB(Open                                    ,0xff027f5c) //101
150NSTUB(PB2Rec                                  ,0xff0927cc) //104
151NSTUB(PT_MoveDigitalZoomToWide                ,0xff073c5c) //102
152NSTUB(PT_MoveOpticalZoomAt                    ,0xff073c34) //102
153NSTUB(PT_PlaySound                            ,0xff07e868) //  6
154NSTUB(PostLogicalEventForNotPowerType         ,0xff08eda4) //103
155NSTUB(PostLogicalEventToUI                    ,0xff08edf0) //103
156NSTUB(PutInNdFilter                           ,0xff2ec5e4) //102
157NSTUB(PutOutNdFilter                          ,0xff2ec608) //102
158NSTUB(Read                                    ,0xff00ad68) //101
159NSTUB(ReadFastDir                             ,0xff2c99f8) //  6
160NSTUB(Rec2PB                                  ,0xff09280c) //104
161NSTUB(RefreshPhysicalScreen                   ,0xff0a6da4) //104
162NSTUB(Remove                                  ,0xff028198) //  6
163NSTUB(RenameFile_Fut                          ,0xff0278a8) //  6
164NSTUB(Restart                                 ,0xff02d620) //106
165NSTUB(ScreenLock                              ,0xff0a7f9c) //  4
166NSTUB(ScreenUnlock                            ,0xff0a8000) //  3
167NSTUB(SetAE_ShutterSpeed                      ,0xff36480c) //102
168NSTUB(SetAutoShutdownTime                     ,0xff08f724) //103
169NSTUB(SetCurrentCaptureModeType               ,0xff097c44) //101
170NSTUB(SetFileAttributes                       ,0xff028428) //  6
171NSTUB(SetFileTimeStamp                        ,0xff0283b0) //  6
172NSTUB(SetLogicalEventActive                   ,0xff08f42c) //101
173NSTUB(SetParameterData                        ,0xff1b4bb0) //101
174NSTUB(SetPropertyCase                         ,0xff08a1d4) //102
175NSTUB(SetScriptMode                           ,0xff08f47c) //101
176NSTUB(SleepTask                               ,0xff02baac) //101
177NSTUB(TakeSemaphore                           ,0xff02b730) //101
178NSTUB(TurnOffBackLight                        ,0xff09f01c) //104
179NSTUB(TurnOnBackLight                         ,0xff09f004) //104
180NSTUB(UIFS_WriteFirmInfoToFile                ,0xff1a1c40) //101
181NSTUB(UnlockAF                                ,0xff029904) //102
182NSTUB(UnlockMainPower                         ,0xff08f604) //103
183NSTUB(VbattGet                                ,0xff023148) //101
184NSTUB(Write                                   ,0xff028078) //101
185NSTUB(WriteSDCard                             ,0xff16a9b4) //108
186NSTUB(_log                                    ,0xff3a3378) //111
187NSTUB(_log10                                  ,0xff3a38b8) //112
188NSTUB(_pow                                    ,0xff3a3a30) //114
189NSTUB(_sqrt                                   ,0xff3a5654) //  6
190NSTUB(add_ptp_handler                         ,0xff278404) //  6
191NSTUB(apex2us                                 ,0xff236124) //  4
192NSTUB(close                                   ,0xff00abc4) //  6
193NSTUB(closedir                                ,0xff2c9854) //  4
194NSTUB(err_init_task                           ,0xff006020) //  4
195NSTUB(exmem_alloc                             ,0xff084b14) //101
196NSTUB(free                                    ,0xff004258) //112
197NSTUB(kbd_p1_f                                ,0xff025864) //109
198NSTUB(kbd_p1_f_cont                           ,0xff025870) //109
199NSTUB(kbd_p2_f                                ,0xff025044) //109
200NSTUB(kbd_read_keys                           ,0xff025814) //109
201NSTUB(kbd_read_keys_r2                        ,0xff0579c8) //109
202NSTUB(lseek                                   ,0xff028240) //101
203NSTUB(malloc                                  ,0xff004200) //112
204NSTUB(memcmp                                  ,0xff010a14) //101
205NSTUB(memcpy                                  ,0xff03152c) //101
206NSTUB(memset                                  ,0xff23415c) //101
207NSTUB(mkdir                                   ,0xff0284c0) //  6
208NSTUB(mktime_ext                              ,0xff0a8df0) //  1
209NSTUB(open                                    ,0xff00ab14) //  6
210NSTUB(opendir                                 ,0xff2c98a4) //  6
211NSTUB(openfastdir                             ,0xff2c98a4) //  6
212NSTUB(qsort                                   ,0xff342dfc) //  6
213NSTUB(rand                                    ,0xff234298) //  6
214NSTUB(read                                    ,0xff00ad68) //101
215NSTUB(reboot_fw_update                        ,0xff2cef38) //  6
216NSTUB(rename                                  ,0xff0278a8) //  6
217NSTUB(set_control_event                       ,0xff08f0ec) //111
218NSTUB(srand                                   ,0xff23428c) //  6
219NSTUB(stat                                    ,0xff028288) //  3
220NSTUB(strcat                                  ,0xff0a85a8) //  1
221NSTUB(strchr                                  ,0xff0040cc) //  1
222NSTUB(strcmp                                  ,0xff0109d0) //101
223NSTUB(strcpy                                  ,0xff0109b8) //101
224NSTUB(strftime                                ,0xff0a87f0) //113
225NSTUB(strlen                                  ,0xff004118) //101
226NSTUB(strncmp                                 ,0xff004080) //  1
227NSTUB(strncpy                                 ,0xff004044) //  1
228NSTUB(strrchr                                 ,0xff0040f0) //  1
229NSTUB(strtol                                  ,0xff03182c) //101
230NSTUB(strtolx                                 ,0xff031630) //109
231  DEF(task_CaptSeq                            ,0xff0769f8) //110
232  DEF(task_ExpDrv                             ,0xff0c0e24) //110
233  DEF(task_InitFileModules                    ,0xff09301c) //110
234  DEF(task_MovieRecord                        ,0xff18676c) //110
235  DEF(task_PhySw                              ,0xff0253a8) //110
236NSTUB(time                                    ,0xff084130) //  6
237NSTUB(vsprintf                                ,0xff010978) //  6
238NSTUB(write                                   ,0xff028078) //101
Note: See TracBrowser for help on using the repository browser.