source: trunk/platform/ixus200_sd980/sub/101d/stubs_entry.S @ 941

Revision 941, 15.9 KB checked in by rudi_de, 17 months ago (diff)

Aktualisierung auf Rev. 1635 internationaler Branch: Release-1.0
http://trac.assembla.com/chdk/changeset/1635/branches/release-1_0
Danke philmoz!

Betrifft alle DryOS

  • Aktualisierung Signaturfinder für DryOS (finsig_dryos.c)
  • findet Funktion vid_get_viewport_fb_d() und Variable nrflag
  • verbesserte Fehlerbehandlung bei falscher Startadresse
  • stubs_entry.S neu erzeugt
  • 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.01D
7//   Canon PowerShot SD980 IS
8
9// Values for makefile.inc
10//   PLATFORMID = 12773 (0x31e5) // Found @ 0xfffe0130
11//   MAXRAMADDR = 0x03ffffff
12//   KEYSYS = d4                 // Found @ 0xffff3564
13//   NEED_ENCODED_DISKBOOT = 3   // Found @ 0xffff3574
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                             ,0xff85ae98) //  2 64%
18// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0x00000000
19
20// Check of modemap from 'platform/CAMERA/shooting.c':
21// Firmware modemap table found @ff8946c4 -> ff890de4 -> ff978c5c -> ffaab40c -> ffbdab64
22// Mode 32774 in firmware but not in current modemap
23// Mode 33288 in firmware but not in current modemap
24// Mode 33307 in firmware but not in current modemap
25// Mode 33308 in firmware but not in current modemap
26// Mode 32797 in firmware but not in current modemap
27// Mode 32786 in firmware but not in current modemap
28// Mode 32788 in firmware but not in current modemap
29// Mode 32789 in firmware but not in current modemap
30// Mode 32785 in firmware but not in current modemap
31// Mode 33295 in firmware but not in current modemap
32// Mode 32784 in firmware but not in current modemap
33// Mode  2601 in firmware but not in current modemap
34// Mode  2602 in firmware but not in current modemap
35// Current modemap entry not found in firmware - MODE_SCN_COLOR_SWAP      16924
36// Current modemap entry not found in firmware - MODE_SCN_COLOR_ACCENT    16923
37// Current modemap entry not found in firmware - MODE_SCN_ISO_3200        16413
38// Current modemap entry not found in firmware - MODE_SCN_BEACH           16405
39// Current modemap entry not found in firmware - MODE_SCN_SNOW            16404
40// Current modemap entry not found in firmware - MODE_SCN_SUNSET          16402
41// Current modemap entry not found in firmware - MODE_SCN_INDOOR          16401
42// Current modemap entry not found in firmware - MODE_SCN_NIGHT_SCENE     16398
43// Current modemap entry not found in firmware - MODE_SPORTS              33287
44// Current modemap entry not found in firmware - MODE_VIDEO_STD            3622
45// Current modemap entry not found in firmware - MODE_LANDSCAPE           32780
46// Current modemap entry not found in firmware - MODE_M                   32769
47// Current modemap entry not found in firmware - MODE_AV                  32770
48// Current modemap entry not found in firmware - MODE_TV                  32771
49
50// Values below can be overridden in 'stubs_min.S':
51DEF(physw_status                            ,0x00044558) // Found @0xff8335a8
52DEF(physw_run                               ,0x00001c44) // Found @0xff833200
53DEF(levent_table                            ,0xffb7a458) // Found @0xffb7a458
54DEF(FlashParamsTable                        ,0xffbdad4c) // Found @0xffbdad4c
55DEF(movie_status                            ,0x000067e0) // Found @0xff94addc
56DEF(full_screen_refresh                     ,0x0001b2dc) // Found @0xff9f76d8
57DEF(canon_menu_active                       ,0x00002ec8) // Found @0xff889754
58DEF(canon_shoot_menu_active                 ,0x00007b09) // Found @0xff98db68
59DEF(playrec_mode                            ,0x00002bfc) // Found @0xff87bc2c
60DEF(zoom_status                             ,0x0001e3d4) // Found @0xffaade98
61DEF(some_flag_for_af_scan                   ,0x00006cd4) // Found @0xff94ddf8
62// focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
63// each entry contains 3 int value(s), the first is the zoom focus length.
64// there are 12 entries in the table - set NUM_FL to 12
65DEF(focus_len_table                         ,0xfffe2ac8) // Found @0xfffe2ac8
66DEF(zoom_busy                               ,0x0000670c) // Found @0xff946fbc
67DEF(focus_busy                              ,0x00006608) // Found @0xff9420e4
68//DEF(recreview_hold                          ,0x00003818) // Found @0xff89a7c8, ** != ** stubs_min = 0x000077c4 (0x76F4+0xD0)
69
70// Values below go in 'lib.c':
71//void *vid_get_bitmap_fb()        { return (void*)0x40431000; }             // Found @0xff853588
72//void *vid_get_viewport_fb()      { return (void*)0x408cb700; }             // Found @0xffb0ba3c
73//void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x28f0+0x58)); } // Found @0xff86d3a4 & 0xff86d3dc
74//char *camera_jpeg_count_str()    { return (char*)0x00084ca4; }             // Found @0xff9e8c64
75//long hook_raw_size()             { return 0x011ca240; }                    // Found @0xffb0e8cc
76//int get_flash_params_count(void) { return 0x84; }                          // Found @0xff979d18
77
78// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
79//#define SD_READONLY_FLAG    0x00020000 // Found @0xffb406a4, levent 0x90a
80//#define SD_READONLY_IDX     2
81//#define USB_MASK            0x00100000 // Found @0xffb406bc, levent 0x902
82//#define USB_IDX             2
83
84// Keymap values for kbd.c. Additional keys may be present, only common values included here.
85//static KeyMap keymap[] = {
86//    { 2, KEY_SHOOT_FULL      ,0x00000300 }, // Found @0xffb40668, levent 0x01
87//    { 2, KEY_SHOOT_FULL_ONLY ,0x00000200 }, // Found @0xffb40668, levent 0x01
88//    { 2, KEY_SHOOT_HALF      ,0x00000100 }, // Found @0xffb4065c, levent 0x00
89//    { 2, KEY_MENU            ,0x00000001 }, // Found @0xffb405fc, levent 0x09
90//    { 2, KEY_SET             ,0x00000002 }, // Found @0xffb40608, levent 0x08
91//    { 2, KEY_ZOOM_IN         ,0x00000004 }, // Found @0xffb40614, levent 0x02
92//    { 2, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffb40620, levent 0x03
93//    { 2, KEY_LEFT            ,0x00000010 }, // Found @0xffb4062c, levent 0x06
94//    { 2, KEY_RIGHT           ,0x00000020 }, // Found @0xffb40638, levent 0x07
95//    { 2, KEY_DOWN            ,0x00000040 }, // Found @0xffb40644, levent 0x05
96//    { 2, KEY_UP              ,0x00000080 }, // Found @0xffb40650, levent 0x04
97//    { 0, 0, 0 }
98//};
99
100// Values below go in 'platform_camera.h':
101//#define CAM_DRYOS         1
102//#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
103//#define CAM_RAW_ROWPIX    4080 // Found @0xff91c00c
104//#define CAM_RAW_ROWS      3048 // Found @0xff91c014
105//#undef  CAM_UNCACHED_BIT
106//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff838a1c
107
108// Misc stuff
109DEF(ctypes, 0xffb3ecfa)
110
111// For capt_seq.c
112//static long *nrflag = (long*)(0x6cb8-0x08);  // Found @ ff9500c0 & ff9500dc
113
114// Stubs below matched 100%.
115//    Name                                     Address                Comp to stubs_entry_2.S
116NSTUB(AllocateMemory                          ,0xffa9ef6c) //101
117NSTUB(AllocateUncacheableMemory               ,0xff8389d8) //112
118NSTUB(Close                                   ,0xff835408) //101
119NSTUB(CreateTask                              ,0xff81e5b4) //101
120NSTUB(DebugAssert                             ,0xff81e88c) //111
121NSTUB(DeleteDirectory_Fut                     ,0xff834e78) //  1
122NSTUB(DeleteFile_Fut                          ,0xff834d94) //112
123NSTUB(DoAFLock                                ,0xff8368f0) //102
124NSTUB(EnterToCompensationEVF                  ,0xff836ae0) //104
125NSTUB(ExecuteEventProcedure                   ,0xff884e30) //  1
126NSTUB(ExitFromCompensationEVF                 ,0xff836b24) //104
127NSTUB(ExitTask                                ,0xff81e844) //101
128NSTUB(ExpCtrlTool_StartContiAE                ,0xff844254) //104
129NSTUB(ExpCtrlTool_StopContiAE                 ,0xff84432c) //104
130NSTUB(Fclose_Fut                              ,0xff834f10) //101
131NSTUB(Feof_Fut                                ,0xff8350fc) //  1
132NSTUB(Fflush_Fut                              ,0xff835138) //  1
133NSTUB(Fgets_Fut                               ,0xff835064) //  1
134NSTUB(Fopen_Fut                               ,0xff834ed0) //101
135NSTUB(Fread_Fut                               ,0xff834fbc) //101
136NSTUB(FreeMemory                              ,0xffa9ef64) //101
137NSTUB(FreeUncacheableMemory                   ,0xff838a18) //112
138NSTUB(Fseek_Fut                               ,0xff8350b0) //101
139NSTUB(Fwrite_Fut                              ,0xff835010) //101
140NSTUB(GetBatteryTemperature                   ,0xff85e2ac) //102
141NSTUB(GetCCDTemperature                       ,0xff85e238) //102
142NSTUB(GetCurrentAvValue                       ,0xff944888) //102
143NSTUB(GetDrive_ClusterSize                    ,0xff86bb04) //  3
144NSTUB(GetDrive_FreeClusters                   ,0xff86bb64) //  3
145NSTUB(GetDrive_TotalClusters                  ,0xff86bb38) //  3
146NSTUB(GetFocusLensSubjectDistance             ,0xff942e5c) //102
147NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff9432a4) //  3
148NSTUB(GetImageFolder                          ,0xff923e38) //106
149NSTUB(GetKbdState                             ,0xff85ae80) //109
150NSTUB(GetMemInfo                              ,0xff81a070) //  3
151NSTUB(GetOpticalTemperature                   ,0xff85e320) //102
152NSTUB(GetParameterData                        ,0xff979cd8) //101
153NSTUB(GetPropertyCase                         ,0xff888b98) //102
154NSTUB(GetSystemTime                           ,0xffa9efc4) //101
155NSTUB(GetZoomLensCurrentPoint                 ,0xff947330) //102
156NSTUB(GetZoomLensCurrentPosition              ,0xffa906b4) //102
157NSTUB(GiveSemaphore                           ,0xff8383f4) //112
158NSTUB(IsStrobeChargeCompleted                 ,0xff8c3a74) //102
159NSTUB(LEDDrive                                ,0xff85a31c) //103
160NSTUB(LocalTime                               ,0xff8827a4) //  1
161NSTUB(LockMainPower                           ,0xff890a00) //103
162NSTUB(Lseek                                   ,0xff835524) //101
163NSTUB(MakeDirectory_Fut                       ,0xff834e08) //  1
164NSTUB(MoveFocusLensToDistance                 ,0xffb08424) //102
165NSTUB(MoveIrisWithAv                          ,0xffa9c500) //102
166NSTUB(MoveZoomLensWithPoint                   ,0xffa9cb4c) //102
167NSTUB(NewTaskShell                            ,0xff888644) //103
168NSTUB(Open                                    ,0xff8353b0) //101
169NSTUB(PB2Rec                                  ,0xff893a2c) //104
170NSTUB(PT_MoveDigitalZoomToWide                ,0xff87481c) //102
171NSTUB(PT_MoveOpticalZoomAt                    ,0xff8747f4) //102
172NSTUB(PT_PlaySound                            ,0xff87d8f8) //102
173NSTUB(PostLogicalEventForNotPowerType         ,0xff88e808) //103
174NSTUB(PostLogicalEventToUI                    ,0xff88e854) //103
175NSTUB(PutInNdFilter                           ,0xffb06084) //102
176NSTUB(PutOutNdFilter                          ,0xffb060bc) //102
177NSTUB(Read                                    ,0xff81ab78) //101
178NSTUB(ReadFastDir                             ,0xffa7e3b0) //  3
179NSTUB(Rec2PB                                  ,0xff893a6c) //104
180NSTUB(RefreshPhysicalScreen                   ,0xff9f8850) //104
181NSTUB(Remove                                  ,0xff83543c) //  4
182NSTUB(RenameFile_Fut                          ,0xff834d00) //  4
183NSTUB(Restart                                 ,0xff83a130) //106
184NSTUB(ScreenLock                              ,0xff9f9a70) //  3
185NSTUB(ScreenUnlock                            ,0xff9f9a98) //  3
186NSTUB(SetAE_ShutterSpeed                      ,0xffb0abb4) //102
187NSTUB(SetAutoShutdownTime                     ,0xff890a74) //103
188NSTUB(SetCurrentCaptureModeType               ,0xff897d54) //101
189NSTUB(SetFileAttributes                       ,0xff8356d8) //  3
190NSTUB(SetFileTimeStamp                        ,0xff835694) //  3
191NSTUB(SetLogicalEventActive                   ,0xff89074c) //101
192NSTUB(SetParameterData                        ,0xff979c48) //101
193NSTUB(SetPropertyCase                         ,0xff888a94) //102
194NSTUB(SetScriptMode                           ,0xff89079c) //101
195NSTUB(SleepTask                               ,0xff83865c) //101
196NSTUB(TakeSemaphore                           ,0xff838324) //101
197NSTUB(TurnOffBackLight                        ,0xff89e308) //104
198NSTUB(TurnOnBackLight                         ,0xff89e2f0) //104
199NSTUB(UIFS_WriteFirmInfoToFile                ,0xff964484) //105
200NSTUB(UnlockAF                                ,0xff836928) //102
201NSTUB(UnlockMainPower                         ,0xff890954) //103
202NSTUB(UnsetZoomForMovie                       ,0xff97ff94) //104
203NSTUB(UpdateMBROnFlash                        ,0xff86b984) //105
204NSTUB(VbattGet                                ,0xff831e04) //103
205NSTUB(Write                                   ,0xff835498) //101
206NSTUB(WriteSDCard                             ,0xff933a1c) //108
207NSTUB(_log                                    ,0xffb3be28) //111
208NSTUB(_log10                                  ,0xffb3aab4) //112
209NSTUB(_pow                                    ,0xffb3ac24) //114
210NSTUB(_sqrt                                   ,0xffb3daac) //  1
211NSTUB(add_ptp_handler                         ,0xffa3fb48) //  3
212NSTUB(apex2us                                 ,0xff9fd5e8) //  4
213NSTUB(close                                   ,0xff81a990) //  1
214NSTUB(closedir                                ,0xffa7e238) //  3
215NSTUB(err_init_task                           ,0xff815f28) //  4
216NSTUB(exmem_alloc                             ,0xff883664) //103
217NSTUB(free                                    ,0xff814138) //112
218NSTUB(kbd_p1_f                                ,0xff833624) //109
219NSTUB(kbd_p1_f_cont                           ,0xff833630) //109
220NSTUB(kbd_p2_f                                ,0xff832ecc) //109
221NSTUB(kbd_read_keys                           ,0xff8335a8) //109
222NSTUB(kbd_read_keys_r2                        ,0xff85a83c) //109
223NSTUB(lseek                                   ,0xff835524) //101
224NSTUB(malloc                                  ,0xff8140dc) //112
225NSTUB(memcmp                                  ,0xff8203e8) //101
226NSTUB(memcpy                                  ,0xff83df94) //101
227NSTUB(memset                                  ,0xff9fc15c) //101
228NSTUB(mkdir                                   ,0xff83587c) //  3
229NSTUB(mktime_ext                              ,0xff8a5db8) //  1
230NSTUB(open                                    ,0xff81a8e0) //  1
231NSTUB(opendir                                 ,0xffa7e27c) //  3
232NSTUB(openfastdir                             ,0xffa7e27c) //  3
233NSTUB(qsort                                   ,0xff9fc71c) //  1
234NSTUB(rand                                    ,0xff8204f0) //  1
235NSTUB(read                                    ,0xff81ab78) //101
236NSTUB(reboot_fw_update                        ,0xffa838c0) //  1
237NSTUB(rename                                  ,0xff834d00) //  4
238NSTUB(set_control_event                       ,0xff89037c) //111
239NSTUB(srand                                   ,0xff8204e4) //  1
240NSTUB(stat                                    ,0xff835560) //  3
241// ALT: NSTUB(stat, 0xff868f48) // 3 31/0
242NSTUB(strcat                                  ,0xff8a5574) //  1
243NSTUB(strchr                                  ,0xff813fc0) //  1
244NSTUB(strcmp                                  ,0xff8203a4) //101
245NSTUB(strcpy                                  ,0xff82038c) //101
246NSTUB(strftime                                ,0xff8a57c0) //  1
247NSTUB(strlen                                  ,0xff81400c) //101
248NSTUB(strncmp                                 ,0xff813f74) //  1
249NSTUB(strncpy                                 ,0xff813f38) //  1
250NSTUB(strrchr                                 ,0xff813fe4) //  1
251NSTUB(strtol                                  ,0xff83e274) //101
252NSTUB(strtolx                                 ,0xff83e078) //109
253  DEF(task_CaptSeq                            ,0xff876ec0) //107
254  DEF(task_ExpDrv                             ,0xff8ba324) //110
255  DEF(task_InitFileModules                    ,0xff894550) //107
256  DEF(task_MovieRecord                        ,0xff94b0c4) //107
257  DEF(task_PhySw                              ,0xff8331fc) //107
258  DEF(task_RotaryEncoder                      ,0xff85afb0) //107
259NSTUB(time                                    ,0xff882d1c) //  2
260NSTUB(vsprintf                                ,0xff820350) //  1
261NSTUB(write                                   ,0xff835498) //101
Note: See TracBrowser for help on using the repository browser.