source: trunk/platform/ixus120_sd940/sub/103b/stubs_entry.S @ 1291

Revision 1291, 15.1 KB checked in by philmoz, 22 months ago (diff)

Replacement for gensig/finsig for DryOS based cameras - see http://chdk.setepontos.com/index.php?topic=6560.0

  • 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.03B
7// Canon PowerShot SD940 IS
8
9// Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S'
10//    Name                                     Address      Rule  %  Comp to stubs_entry_2.S
11//NSTUB(SetScriptMode                         ,0xff88a838) //101        *** != 0xff810f4c
12//NSTUB(kbd_pwr_off                           ,0xff858e10) //  2 64%    *** != 0x00000000
13// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0x00000000
14
15// Check of modemap from 'platform/CAMERA/shooting.c':
16// Firmware modemap table found @ff88e6a0 -> ff88ae50 -> ff96a358 -> ffa75a10 -> ffb97124
17// No problems found with modemap table.
18
19// Values below go in 'stubs_min.S':
20//DEF(physw_status                            ,0x00031b78) // Found @0xff833554,          stubs_min = 0x00031b78 (0x31B78)
21//DEF(physw_run                               ,0x00001c44) // Found @0xff8331c8,          stubs_min = 0x00001c44 (0x1C38+0x0C)
22//DEF(levent_table                            ,0xffb41f44) // Found @0xffb41f44,          stubs_min = 0xffb41f44 (0xFFB41F44)
23//DEF(FlashParamsTable                        ,0xffb9730c) // Found @0xffb9730c,          stubs_min = 0xffb9730c (0xFFB9730C)
24//DEF(movie_status                            ,0x00006260) // Found @0xff93d36c,          stubs_min = 0x00006260 (0x6228+0x38)
25//DEF(full_screen_refresh                     ,0x00008bb0) // Found @0xff9cf9e0
26//DEF(canon_menu_active                       ,0x00002d48) // Found @0xff8854e0,          stubs_min = 0x00002d48 (0x2D44+4)
27//DEF(canon_shoot_menu_active                 ,0x00007751) // Found @0xff97b9c0,          stubs_min = 0x00007751 (0x7750+1)
28//DEF(playrec_mode                            ,0x00002a7c) // Found @0xff877af0,          stubs_min = 0x00002a7c (0x2A78+0x4)
29//DEF(zoom_status                             ,0x0000b9dc) // Found @0xffa782a8,          stubs_min = 0x0000b9dc (0xB9DC)
30//DEF(some_flag_for_af_scan                   ,0x0000673c) // Found @0xff94035c,          stubs_min = 0x0000673c (0x673C)
31
32// Values below go in 'lib.c':
33//void *vid_get_bitmap_fb()        { return (void*)0x403f1000; } // Found @0xff8532dc
34//void *vid_get_viewport_fb()      { return (void*)0x4088b700; } // Found @0xffad4764
35//char *camera_jpeg_count_str()    { return (char*)0x000700b0; } // Found @0xff9c413c
36//long hook_raw_size()             { return 0x011ca240; }        // Found @0xffad6eec
37//int get_flash_params_count(void) { return 0x84; }              // Found @0xff96b414
38
39// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
40//#define SD_READONLY_FLAG    0x00020000 // Found @0xffb0c784, levent 0x90a
41//#define SD_READONLY_IDX     2
42//#define USB_FLAG            0x00080000 // Found @0xffb0c79c, levent 0x902
43//#define USB_IDX             2
44
45// Keymap values for kbd.c. Additional keys may be present, only common values included here.
46//static KeyMap keymap[] = {
47//    { 0, KEY_SET         ,0x00000004 }, // Found @0xffb0c6c4, levent 0x08
48//    { 0, KEY_DISPLAY     ,0x00000008 }, // Found @0xffb0c6d0, levent 0x0a
49//    { 2, KEY_MENU        ,0x00000001 }, // Found @0xffb0c6e8, levent 0x09
50//    { 2, KEY_ZOOM_IN     ,0x00000004 }, // Found @0xffb0c6f4, levent 0x02
51//    { 2, KEY_ZOOM_OUT    ,0x00000008 }, // Found @0xffb0c700, levent 0x03
52//    { 2, KEY_LEFT        ,0x00000010 }, // Found @0xffb0c70c, levent 0x06
53//    { 2, KEY_RIGHT       ,0x00000020 }, // Found @0xffb0c718, levent 0x07
54//    { 2, KEY_DOWN        ,0x00000040 }, // Found @0xffb0c724, levent 0x05
55//    { 2, KEY_UP          ,0x00000080 }, // Found @0xffb0c730, levent 0x04
56//    { 2, KEY_SHOOT_HALF  ,0x00000100 }, // Found @0xffb0c73c, levent 0x00
57//    { 2, KEY_SHOOT_FULL  ,0x00000300 }, // Found @0xffb0c748, levent 0x01
58//    { 0, 0, 0 }
59//};
60
61// Values below go in 'platform_camera.h':
62//#define CAM_DRYOS         1
63//#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
64//#define CAM_RAW_ROWPIX    4080 // Found @0xff9111fc
65//#define CAM_RAW_ROWS      3048 // Found @0xff911204
66//#undef  CAM_UNCACHED_BIT
67//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff8388dc
68
69// Stubs below matched 100%.
70//    Name                                     Address                Comp to stubs_entry_2.S
71NSTUB(AllocateMemory                          ,0xffa69ce4) //101
72NSTUB(AllocateUncacheableMemory               ,0xff838898) //112
73NSTUB(Close                                   ,0xff8353b4) //101
74NSTUB(CreateTask                              ,0xff81e5b4) //101
75NSTUB(DebugAssert                             ,0xff81e88c) //111
76NSTUB(DeleteFile_Fut                          ,0xff834d40) //112
77//NSTUB(DoAFLock                              ,0xff83687c) //102            == 0xff83687c
78//NSTUB(EnterToCompensationEVF                ,0xff8369d4) //104            == 0xff8369d4
79NSTUB(ExecuteEventProcedure                   ,0xff880c04) //  1
80//NSTUB(ExitFromCompensationEVF               ,0xff836a18) //104            == 0xff836a18
81//NSTUB(ExitTask                              ,0xff81e844) //101            == 0xff81e844
82//NSTUB(ExpCtrlTool_StartContiAE              ,0xff844034) //104            == 0xff844034
83NSTUB(ExpCtrlTool_StopContiAE                 ,0xff84410c) //104
84NSTUB(Fclose_Fut                              ,0xff834ebc) //101
85NSTUB(Feof_Fut                                ,0xff8350a8) //  1
86NSTUB(Fflush_Fut                              ,0xff8350e4) //  1
87NSTUB(Fgets_Fut                               ,0xff835010) //  1
88NSTUB(Fopen_Fut                               ,0xff834e7c) //101
89NSTUB(Fread_Fut                               ,0xff834f68) //101
90NSTUB(FreeMemory                              ,0xffa69cdc) //101
91//NSTUB(FreeUncacheableMemory                 ,0xff8388d8) //112            == 0xff8388d8
92NSTUB(Fseek_Fut                               ,0xff83505c) //101
93NSTUB(Fwrite_Fut                              ,0xff834fbc) //101
94//NSTUB(GetBatteryTemperature                 ,0xff85bd0c) //102            == 0xff85bd0c
95//NSTUB(GetCCDTemperature                     ,0xff85bc98) //102            == 0xff85bc98
96//NSTUB(GetCurrentAvValue                     ,0xff936564) //102            == 0xff936564
97NSTUB(GetDrive_ClusterSize                    ,0xff868774) //  3
98NSTUB(GetDrive_FreeClusters                   ,0xff8687d4) //  3
99NSTUB(GetDrive_TotalClusters                  ,0xff8687a8) //  3
100//NSTUB(GetFocusLensSubjectDistance           ,0xff935730) //102            == 0xff935730
101NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff935b78) //  3
102//NSTUB(GetImageFolder                        ,0xff919028) //106            == 0xff919028
103NSTUB(GetKbdState                             ,0xff858df8) //109
104NSTUB(GetMemInfo                              ,0xff81a070) //  3
105//NSTUB(GetOpticalTemperature                 ,0xff85bd80) //102            == 0xff85bd80
106//NSTUB(GetParameterData                      ,0xff96b3d4) //101            == 0xff96b3d4
107//NSTUB(GetPropertyCase                       ,0xff884954) //102            == 0xff884954
108//NSTUB(GetSystemTime                         ,0xffa69d3c) //101            == 0xffa69d3c
109//NSTUB(GetZoomLensCurrentPoint               ,0xff93a7b4) //102            == 0xff93a7b4
110//NSTUB(GetZoomLensCurrentPosition            ,0xffa5d94c) //102            == 0xffa5d94c
111NSTUB(GiveSemaphore                           ,0xff8382b4) //112
112//NSTUB(IsStrobeChargeCompleted               ,0xff8bc274) //102            == 0xff8bc274
113//NSTUB(LEDDrive                              ,0xff8582f4) //103            == 0xff8582f4
114NSTUB(LocalTime                               ,0xff87e578) //  1
115//NSTUB(LockMainPower                         ,0xff88aa6c) //103            == 0xff88aa6c
116//NSTUB(Lseek                                 ,0xff8354d0) //101            == 0xff8354d0
117//NSTUB(MakeDirectory_Fut                     ,0xff834db4) //  1            == 0xff834db4
118//NSTUB(MoveFocusLensToDistance               ,0xffad10f0) //102            == 0xffad10f0
119NSTUB(MoveIrisWithAv                          ,0xffa67824) //102
120//NSTUB(MoveZoomLensWithPoint                 ,0xffa67db0) //102            == 0xffa67db0
121//NSTUB(NewTaskShell                          ,0xff884418) //103            == 0xff884418
122NSTUB(Open                                    ,0xff83535c) //101
123NSTUB(PB2Rec                                  ,0xff88da08) //104
124NSTUB(PT_MoveDigitalZoomToWide                ,0xff870940) //102
125NSTUB(PT_MoveOpticalZoomAt                    ,0xff870918) //102
126//NSTUB(PT_PlaySound                          ,0xff879714) //102            == 0xff879714
127//NSTUB(PostLogicalEventForNotPowerType       ,0xff88a2a4) //103            == 0xff88a2a4
128//NSTUB(PostLogicalEventToUI                  ,0xff88a2f0) //103            == 0xff88a2f0
129//NSTUB(PutInNdFilter                         ,0xffa67c14) //102            == 0xffa67c14
130//NSTUB(PutOutNdFilter                        ,0xffa67c38) //102            == 0xffa67c38
131NSTUB(Read                                    ,0xff81ab78) //101
132NSTUB(ReadFastDir                             ,0xffa4d104) //  3
133NSTUB(Rec2PB                                  ,0xff88da48) //104
134//NSTUB(RefreshPhysicalScreen                 ,0xff9d1eb0) //104            == 0xff9d1eb0
135//NSTUB(Remove                                ,0xff8353e8) //  4            == 0xff8353e8
136//NSTUB(RenameFile_Fut                        ,0xff834cac) //  4            == 0xff834cac
137NSTUB(Restart                                 ,0xff839ff0) //106
138//NSTUB(ScreenLock                            ,0xff9d1c88) // 10            == 0xff9d1c88
139//NSTUB(ScreenUnlock                          ,0xff9d1cc8) //  3            == 0xff9d1cc8
140NSTUB(SetAE_ShutterSpeed                      ,0xffad38dc) //102
141//NSTUB(SetAutoShutdownTime                   ,0xff88aae0) //103            == 0xff88aae0
142//NSTUB(SetCurrentCaptureModeType             ,0xff891b18) //101            == 0xff891b18
143//NSTUB(SetFileTimeStamp                      ,0xff835640) //  3            == 0xff835640
144//NSTUB(SetLogicalEventActive                 ,0xff88a7e8) //101            == 0xff88a7e8
145//NSTUB(SetParameterData                      ,0xff96b344) //101            == 0xff96b344
146//NSTUB(SetPropertyCase                       ,0xff884858) //102            == 0xff884858
147//NSTUB(SleepTask                             ,0xff83851c) //101            == 0xff83851c
148//NSTUB(TakeSemaphore                         ,0xff8381e4) //101            == 0xff8381e4
149//NSTUB(TurnOffBackLight                      ,0xff897658) //104            == 0xff897658
150//NSTUB(TurnOnBackLight                       ,0xff897640) //104            == 0xff897640
151//NSTUB(UIFS_WriteFirmInfoToFile              ,0xff956748) //105            == 0xff956748
152//NSTUB(UnlockAF                              ,0xff8368b4) //102            == 0xff8368b4
153//NSTUB(UnlockMainPower                       ,0xff88a9c0) //103            == 0xff88a9c0
154//NSTUB(UnsetZoomForMovie                     ,0xff9712f0) //104            == 0xff9712f0
155NSTUB(UpdateMBROnFlash                        ,0xff8685f4) //  3
156NSTUB(VbattGet                                ,0xff831df4) //103
157NSTUB(Write                                   ,0xff835444) //101
158//NSTUB(WriteSDCard                           ,0xff92666c) //108            == 0xff92666c
159NSTUB(_log                                    ,0xffb08d00) //111
160NSTUB(_log10                                  ,0xffb07c44) //112
161NSTUB(_pow                                    ,0xffb07db4) //114
162NSTUB(_sqrt                                   ,0xffb0a068) //  1
163NSTUB(add_ptp_handler                         ,0xffa16e50) //  3
164//NSTUB(apex2us                               ,0xff9d53a0) //  4            == 0xff9d53a0
165NSTUB(close                                   ,0xff81a990) //  1
166NSTUB(closedir                                ,0xffa4cf8c) //  3
167NSTUB(err_init_task                           ,0xff815f28) //  4
168NSTUB(exmem_alloc                             ,0xff87f438) //103
169//NSTUB(free                                  ,0xff814138) //112            == 0xff814138
170//NSTUB(kbd_p1_f                              ,0xff8335d0) //109            == 0xff8335d0
171//NSTUB(kbd_p1_f_cont                         ,0xff8335dc) //109            == 0xff8335dc
172NSTUB(kbd_p2_f                                ,0xff832e94) //109
173//NSTUB(kbd_read_keys                         ,0xff833554) //109            == 0xff833554
174//NSTUB(kbd_read_keys_r2                      ,0xff8587b8) //109            == 0xff8587b8
175NSTUB(lseek                                   ,0xff8354d0) //101
176NSTUB(malloc                                  ,0xff8140dc) //112
177NSTUB(memcmp                                  ,0xff8203d8) //101
178NSTUB(memcpy                                  ,0xff83de48) //101
179NSTUB(memset                                  ,0xff9d43f0) //101
180NSTUB(mkdir                                   ,0xff835828) //  3
181NSTUB(mktime_ext                              ,0xff89eaa4) //  1
182NSTUB(open                                    ,0xff81a8e0) //  1
183NSTUB(opendir                                 ,0xffa4cfd0) //  3
184//NSTUB(openfastdir                           ,0xffa4cfd0) //  3            == 0xffa4cfd0
185NSTUB(qsort                                   ,0xffab5718) //  1
186//NSTUB(rand                                  ,0xff8204e0) //  1            == 0xff8204e0
187NSTUB(read                                    ,0xff81ab78) //101
188//NSTUB(readfastdir                           ,0xffa4d104) //  3            == 0xffa4d104
189//NSTUB(reboot_fw_update                      ,0xffa52614) //  1            == 0xffa52614
190//NSTUB(rename                                ,0xff834cac) //  4            == 0xff834cac
191//NSTUB(set_control_event                     ,0xff88a50c) //111            == 0xff88a50c
192//NSTUB(srand                                 ,0xff8204d4) //  1            == 0xff8204d4
193//NSTUB(stat                                  ,0xff83550c) //  3            == 0xff83550c
194// ALT: NSTUB(stat, 0xff865bb8) // 3 31/0
195//NSTUB(strcat                                ,0xff89e260) //  1            == 0xff89e260
196//NSTUB(strchr                                ,0xff813fc0) //  1            == 0xff813fc0
197NSTUB(strcmp                                  ,0xff820394) //101
198NSTUB(strcpy                                  ,0xff82037c) //101
199NSTUB(strftime                                ,0xff89e4ac) //  1
200NSTUB(strlen                                  ,0xff81400c) //101
201NSTUB(strncmp                                 ,0xff813f74) //  1
202//NSTUB(strncpy                               ,0xff813f38) //  1            == 0xff813f38
203//NSTUB(strrchr                               ,0xff813fe4) //  1            == 0xff813fe4
204//NSTUB(strtol                                ,0xff83e128) //101            == 0xff83e128
205NSTUB(strtolx                                 ,0xff83df2c) //109
206  DEF(task_CaptSeq                            ,0xff872f90) //107
207  DEF(task_ExpDrv                             ,0xff8b2f80) //110
208  DEF(task_InitFileModules                    ,0xff88e52c) //107
209  DEF(task_MovieRecord                        ,0xff93d654) //107
210  DEF(task_PhySw                              ,0xff8331c4) //107
211//NSTUB(time                                  ,0xff87eaf0) //  2            == 0xff87eaf0
212NSTUB(vsprintf                                ,0xff820340) //  1
213//NSTUB(write                                 ,0xff835444) //101            == 0xff835444
Note: See TracBrowser for help on using the repository browser.