source: trunk/platform/ixus970_sd890/sub/100f/stubs_entry.S @ 1291

Revision 1291, 13.4 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 R23 (DRYOS version 2.3, release #0023)
6// Firmware Ver GM1.00F
7// Canon PowerShot SD890 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(PutInNdFilter                         ,0xffa2ab90) //102        *** != 0xffa83868
12//NSTUB(PutOutNdFilter                        ,0xffa2abb4) //102        *** != 0xffa8389c
13//NSTUB(rename                                ,0xff8235e8) //  1        *** != 0xff823e64
14//NSTUB(write                                 ,0xff823e3c) //101        *** != 0xff81a0f4
15
16// Check of modemap from 'platform/CAMERA/shooting.c':
17// Firmware modemap table found @ff87907c -> ff875820 -> ff95c828 -> ffa3ee38 -> ffaf9518
18// No problems found with modemap table.
19
20// Values below go in 'stubs_min.S':
21//DEF(physw_status                            ,0x00010650) // Found @0xff821e38,          stubs_min = 0x00010650 (0x10650)
22//DEF(physw_run                               ,0x00001c00) // Found @0xff821ad0,          stubs_min = 0x00001c00 (0x1BF4+0xC)
23//DEF(levent_table                            ,0xffad4084) // Found @0xffad4084,          stubs_min = 0xffad4084 (0xFFAD4084)
24//DEF(FlashParamsTable                        ,0xffaf96d8) // Found @0xffaf96d8,          stubs_min = 0xffaf96d8 (0xFFAF96D8)
25//DEF(movie_status                            ,0x000053cc) // Found @0xff859cfc,          stubs_min = 0x000053cc (0x5390+0x3C)
26//DEF(canon_menu_active                       ,0x000099e0) // Found @0xff950108,          stubs_min = 0x000099e0 (0x99DC+4)
27//DEF(canon_shoot_menu_active                 ,0x00009fd9) // Found @0xff96cce0,          stubs_min = 0x00009fd9 (0x9FD8+1)
28//DEF(playrec_mode                            ,0x0000555c) // Found @0xff8610f4,          stubs_min = 0x0000555c (0x5558+0x4)
29//DEF(zoom_status                             ,0x0000d4a4) // Found @0xffa40638,          stubs_min = 0x0000d4a4 (0xD4A4)
30//DEF(some_flag_for_af_scan                   ,0x0000d228) // Found @0xffa2b508,          stubs_min = 0x0000d228 (0xD228)
31
32// Values below go in 'lib.c':
33//void *vid_get_bitmap_fb()        { return (void*)0x10361000; } // Found @0xff83e89c
34//void *vid_get_viewport_fb()      { return (void*)0x1065adc0; } // Found @0xffa88a6c
35//char *camera_jpeg_count_str()    { return (char*)0x0004ca80; } // Found @0xff9a6f4c
36//long hook_raw_size()             { return 0x00ec04f0; }        // Found @0xffa8acf0
37//int get_flash_params_count(void) { return 0x73; }              // Found @0xff95d8e4
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 @0xffab16e8, levent 0x90a
41//#define SD_READONLY_IDX     2
42//#define USB_FLAG            0x00040000 // Found @0xffab16f4, 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//    { 2, KEY_SHOOT_HALF  ,0x00000001 }, // Found @0xffab1640, levent 0x00
48//    { 2, KEY_SHOOT_FULL  ,0x00000003 }, // Found @0xffab164c, levent 0x01
49//    { 2, KEY_ZOOM_IN     ,0x00000004 }, // Found @0xffab1658, levent 0x02
50//    { 2, KEY_ZOOM_OUT    ,0x00000008 }, // Found @0xffab1664, levent 0x03
51//    { 2, KEY_LEFT        ,0x00000010 }, // Found @0xffab1670, levent 0x06
52//    { 2, KEY_RIGHT       ,0x00000020 }, // Found @0xffab167c, levent 0x07
53//    { 2, KEY_DOWN        ,0x00000040 }, // Found @0xffab1688, levent 0x05
54//    { 2, KEY_UP          ,0x00000080 }, // Found @0xffab1694, levent 0x04
55//    { 2, KEY_SET         ,0x00000100 }, // Found @0xffab16a0, levent 0x08
56//    { 2, KEY_DISPLAY     ,0x00000200 }, // Found @0xffab16ac, levent 0x0a
57//    { 2, KEY_MENU        ,0x00000400 }, // Found @0xffab16b8, levent 0x09
58//    { 0, 0, 0 }
59//};
60
61// Values below go in 'platform_camera.h':
62//#define CAM_DRYOS         1
63//#define CAM_RAW_ROWPIX    3720 // Found @0xffa8248c
64//#define CAM_RAW_ROWS      2772 // Found @0xffa82494
65//#undef  CAM_UNCACHED_BIT
66//#define CAM_UNCACHED_BIT  0x10000000 // Found @0xff8285a4
67
68// Stubs below matched 100%.
69//    Name                                     Address                Comp to stubs_entry_2.S
70NSTUB(AllocateMemory                          ,0xffa2e3a0) //101
71NSTUB(AllocateUncacheableMemory               ,0xff828568) //112
72NSTUB(Close                                   ,0xff823d90) //101
73NSTUB(CreateTask                              ,0xff81b818) //101
74//NSTUB(DebugAssert                           ,0xff81bcf0) //111            == 0xff81bcf0
75NSTUB(DeleteFile_Fut                          ,0xff82363c) //112
76//NSTUB(DoAFLock                              ,0xff825b84) //102            == 0xff825b84
77NSTUB(EnterToCompensationEVF                  ,0xff825e80) //104
78NSTUB(ExecuteEventProcedure                   ,0xff86938c) //  1
79NSTUB(ExitFromCompensationEVF                 ,0xff825ed0) //104
80NSTUB(ExitTask                                ,0xff81baa8) //101
81NSTUB(ExpCtrlTool_StartContiAE                ,0xff832b00) //104
82NSTUB(ExpCtrlTool_StopContiAE                 ,0xff832c44) //104
83NSTUB(Fclose_Fut                              ,0xff8237b8) //101
84NSTUB(Feof_Fut                                ,0xff8239a4) //  1
85NSTUB(Fflush_Fut                              ,0xff8239e0) //  1
86NSTUB(Fgets_Fut                               ,0xff82390c) //  1
87NSTUB(Fopen_Fut                               ,0xff823778) //101
88NSTUB(Fread_Fut                               ,0xff823864) //101
89NSTUB(FreeMemory                              ,0xffa2e398) //101
90NSTUB(FreeUncacheableMemory                   ,0xff82859c) //112
91NSTUB(Fseek_Fut                               ,0xff823958) //101
92NSTUB(Fwrite_Fut                              ,0xff8238b8) //101
93NSTUB(GetBatteryTemperature                   ,0xff84539c) //102
94NSTUB(GetCCDTemperature                       ,0xff84532c) //102
95NSTUB(GetCurrentAvValue                       ,0xff92facc) //102
96NSTUB(GetDrive_ClusterSize                    ,0xff84f2bc) //  1
97NSTUB(GetDrive_FreeClusters                   ,0xff84f324) //  1
98NSTUB(GetDrive_TotalClusters                  ,0xff84f2f0) //  1
99NSTUB(GetFocusLensSubjectDistance             ,0xff92ebc4) //102
100NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff92eed0) //  1
101NSTUB(GetKbdState                             ,0xff8428e4) //109
102NSTUB(GetMemInfo                              ,0xff813c40) //  1
103NSTUB(GetOpticalTemperature                   ,0xff84540c) //102
104NSTUB(GetParameterData                        ,0xff95d8a4) //101
105NSTUB(GetPropertyCase                         ,0xff86cf8c) //102
106NSTUB(GetSystemTime                           ,0xffa2e3f8) //101
107NSTUB(GetZoomLensCurrentPoint                 ,0xff932d74) //102
108NSTUB(GetZoomLensCurrentPosition              ,0xffa24448) //102
109NSTUB(GiveSemaphore                           ,0xff81b77c) //112
110NSTUB(IsStrobeChargeCompleted                 ,0xff8bd988) //102
111//NSTUB(LEDDrive                              ,0xff842068) //103            == 0xff842068
112NSTUB(LocalTime                               ,0xff866a50) //  1
113NSTUB(LockMainPower                           ,0xff875438) //103
114NSTUB(Lseek                                   ,0xff823ed0) //101
115NSTUB(MakeDirectory_Fut                       ,0xff8236b0) //  1
116NSTUB(MoveFocusLensToDistance                 ,0xffa855a8) //102
117NSTUB(MoveIrisWithAv                          ,0xffa2a7a8) //102
118NSTUB(MoveZoomLensWithPoint                   ,0xffa2ad2c) //102
119NSTUB(NewTaskShell                            ,0xff86ca50) //103
120NSTUB(Open                                    ,0xff823d68) //101
121//NSTUB(PB2Rec                                ,0xff878454) //104            == 0xff878454
122NSTUB(PT_MoveDigitalZoomToWide                ,0xff85bb68) //102
123NSTUB(PT_MoveOpticalZoomAt                    ,0xff85bb40) //102
124NSTUB(PT_PlaySound                            ,0xff85b1c4) //102
125//NSTUB(PostLogicalEventForNotPowerType       ,0xff8731f8) //103            == 0xff8731f8
126//NSTUB(PostLogicalEventToUI                  ,0xff873244) //103            == 0xff873244
127NSTUB(Read                                    ,0xff81a094) //101
128NSTUB(ReadFastDir                             ,0xffa13470) //  1
129//NSTUB(Rec2PB                                ,0xff876e58) //104            == 0xff876e58
130NSTUB(RefreshPhysicalScreen                   ,0xff9b1258) //104
131NSTUB(Remove                                  ,0xff823dd8) //  1
132NSTUB(RenameFile_Fut                          ,0xff8235e8) //  1
133NSTUB(Restart                                 ,0xff829de0) //106
134NSTUB(SetAE_ShutterSpeed                      ,0xffa87c7c) //102
135NSTUB(SetAutoShutdownTime                     ,0xff8754ac) //103
136NSTUB(SetCurrentCaptureModeType               ,0xff87c2b8) //101
137NSTUB(SetFileTimeStamp                        ,0xff82406c) //  1
138NSTUB(SetLogicalEventActive                   ,0xff875118) //  1
139NSTUB(SetParameterData                        ,0xff95d814) //101
140NSTUB(SetPropertyCase                         ,0xff86ce8c) //102
141//NSTUB(SetScriptMode                         ,0xff875168) //101            == 0xff875168
142NSTUB(SleepTask                               ,0xff8283ec) //101
143NSTUB(TakeSemaphore                           ,0xff81b6ac) //101
144NSTUB(TurnOffBackLight                        ,0xff881cac) //104
145NSTUB(TurnOnBackLight                         ,0xff881c94) //104
146NSTUB(UIFS_WriteFirmInfoToFile                ,0xff951064) //103
147//NSTUB(UnlockAF                              ,0xff825bc8) //102            == 0xff825bc8
148NSTUB(UnlockMainPower                         ,0xff87538c) //103
149//NSTUB(UnsetZoomForMovie                     ,0xff962e40) //104            == 0xff962e40
150NSTUB(UpdateMBROnFlash                        ,0xff84f0fc) //  1
151NSTUB(VbattGet                                ,0xff82071c) //103
152NSTUB(Write                                   ,0xff823e3c) //101
153//NSTUB(WriteSDCard                           ,0xff922764) //108            == 0xff922764
154NSTUB(_log                                    ,0xffaaec70) //111
155NSTUB(_log10                                  ,0xffaadbb4) //112
156NSTUB(_pow                                    ,0xffaadd24) //114
157NSTUB(_sqrt                                   ,0xffab0090) //  1
158NSTUB(add_ptp_handler                         ,0xff9e1a94) //  1
159//NSTUB(apex2us                               ,0xff9b2794) //  4            == 0xff9b2794
160NSTUB(close                                   ,0xff819eac) //  1
161NSTUB(closedir                                ,0xffa13540) //  1
162NSTUB(err_init_task                           ,0xff814e98) //  4
163NSTUB(exmem_alloc                             ,0xff867b74) //103
164NSTUB(free                                    ,0xff813a98) //112
165NSTUB(kbd_p1_f                                ,0xff821f3c) //109
166NSTUB(kbd_p1_f_cont                           ,0xff821f48) //109
167NSTUB(kbd_p2_f                                ,0xff821770) //109
168NSTUB(kbd_pwr_off                             ,0xff842968) //  2
169NSTUB(kbd_pwr_on                              ,0xff842918) //  2
170NSTUB(kbd_read_keys                           ,0xff821e38) //109
171NSTUB(kbd_read_keys_r2                        ,0xff842490) //109
172NSTUB(lseek                                   ,0xff823ed0) //101
173NSTUB(malloc                                  ,0xff8139c4) //112
174NSTUB(memcmp                                  ,0xff81d844) //101
175NSTUB(memcpy                                  ,0xff894328) //101
176NSTUB(memset                                  ,0xff9b160c) //101
177NSTUB(mkdir                                   ,0xff824134) //  1
178// ALT: NSTUB(mkdir, 0xff8241d4) // 1 32/0
179NSTUB(mktime_ext                              ,0xff894b94) //  1
180NSTUB(open                                    ,0xff819dfc) //  1
181NSTUB(opendir                                 ,0xffa133dc) //  1
182NSTUB(openfastdir                             ,0xffa133dc) //  1
183NSTUB(qsort                                   ,0xff9b1b14) //  1
184NSTUB(rand                                    ,0xff81d94c) //  1
185NSTUB(read                                    ,0xff81a094) //101
186NSTUB(readfastdir                             ,0xffa13470) //  1
187NSTUB(reboot_fw_update                        ,0xffa1ae70) //  5
188NSTUB(set_control_event                       ,0xff874d94) //  1
189NSTUB(srand                                   ,0xff81d940) //  1
190NSTUB(stat                                    ,0xff823f9c) //  1
191NSTUB(strcat                                  ,0xff894114) //  1
192NSTUB(strchr                                  ,0xff89419c) //  1
193NSTUB(strcmp                                  ,0xff81d7dc) //101
194NSTUB(strcpy                                  ,0xff81d7c4) //101
195NSTUB(strftime                                ,0xff89459c) //  1
196NSTUB(strlen                                  ,0xff81d820) //101
197NSTUB(strncmp                                 ,0xff894150) //  1
198NSTUB(strncpy                                 ,0xff82e1fc) //  1
199//NSTUB(strrchr                               ,0xff8941c0) //  1            == 0xff8941c0
200NSTUB(strtol                                  ,0xff82e434) //101
201NSTUB(strtolx                                 ,0xff82e238) //109
202  DEF(task_CaptSeq                            ,0xff85dfc0) //107
203  DEF(task_ExpDrv                             ,0xff8b67e8) //110
204  DEF(task_InitFileModules                    ,0xff878f08) //107
205  DEF(task_MovieRecord                        ,0xff859f88) //107
206  DEF(task_PhySw                              ,0xff821acc) //107
207NSTUB(time                                    ,0xff866f54) //  2
208NSTUB(vsprintf                                ,0xff81d744) //  1
Note: See TracBrowser for help on using the repository browser.