source: trunk/platform/sx20/sub/102d/stubs_entry.S @ 1444

Revision 1444, 14.8 KB checked in by philmoz, 18 months ago (diff)

Updates for finsig_dryos.c:

  • The 'ctypes' array used in generic/wrappers.c exists in the firmware for dryos cameras. finsig_dryos.c now adds an entry for this to stubs_entry.S so the array is no longer needed in the CHDK code.
  • Values from stubs_min.S that are correctly found by finsig_dryos.c can be removed from stubs_min.S. The entries will then be included in stubs_entry.S (as is done for stubs_entry_2.S). stubs_min.S cleaned up for G12, SX30, SX40 and IXUS310.
  • Property svn:eol-style set to native
RevLine 
[919]1// !!! THIS FILE IS GENERATED. DO NOT EDIT. !!!
2#include "stubs_asm.h"
3
[1291]4// Camera info:
[1385]5//   DRYOS R39 (DRYOS version 2.3, release #0039)
6//   Firmware Ver GM1.02D
7//   Canon PowerShot SX20 IS
[1391]8
9// Values for makefile.inc
10//   PLATFORMID = 12772 (0x31e4) // Found @ 0xfffe0130
[1385]11//   MAXRAMADDR = 0x03ffffff
[1391]12//   KEYSYS = d4                 // Found @ 0xffff35a0
13//   NEED_ENCODED_DISKBOOT = 3   // Found @ 0xffff35b0
[1291]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//NSTUB(DoAFLock                              ,0xff836a9c) //102        *** != 0xff879704
18//NSTUB(SetFileTimeStamp                      ,0xff835508) //  3        *** != 0xff810b04
19//NSTUB(TurnOffBackLight                      ,0xff8a5b30) //104        *** != 0xff89b6f4
20//NSTUB(UIFS_WriteFirmInfoToFile              ,0xff979b78) //105        *** != 0xdeadc0de
21//NSTUB(UnlockAF                              ,0xff836b38) //102        *** != 0xff879714
22//NSTUB(VbattGet                              ,0xff831cec) //103        *** != 0xff95d27c
23//NSTUB(kbd_pwr_off                           ,0xff85f2c4) //  2 60%    *** != 0xff810b04
24// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0xff810b04
25//NSTUB(openfastdir                           ,0xffa7d5a0) //  3        *** != 0xdeadc0de
26//NSTUB(readfastdir                           ,0xffa7d6d4) //  3        *** != 0xdeadc0de
27//NSTUB(rename                                ,0xff834b74) //  4        *** != 0xdeadc0de
28
29// Check of modemap from 'platform/CAMERA/shooting.c':
30// Firmware modemap table found @ff89aa90 -> ff8972e0 -> ff98f1e0 -> ffaac914 -> ffbe87b4
31// No problems found with modemap table.
32
[1444]33// Values below can be overridden in 'stubs_min.S':
[1291]34//DEF(physw_status                            ,0x00032464) // Found @0xff83341c,          stubs_min = 0x00032464 (0x32464)
35//DEF(physw_run                               ,0x00001c44) // Found @0xff83308c,          stubs_min = 0x00001c44 (0x1C38+0xC)
36//DEF(levent_table                            ,0xffba33a8) // Found @0xffba33a8,          stubs_min = 0xffba33a8 (0xFFBA33A8)
37//DEF(FlashParamsTable                        ,0xffbe899c) // Found @0xffbe899c,          stubs_min = 0xffbe899c (0xFFBE899C)
38//DEF(movie_status                            ,0x00002c30) // Found @0xff878e00,          stubs_min = 0x00002c30 (0x2BF8+0x38)
39//DEF(full_screen_refresh                     ,0x00009cf4) // Found @0xffa02778,          stubs_min = 0x00009cf4 (0x9CF4)
40//DEF(canon_menu_active                       ,0x0000312c) // Found @0xff88fee0,          stubs_min = 0x0000312c (0x3128+4)
41//DEF(canon_shoot_menu_active                 ,0x00008845) // Found @0xff9aa1e4,          stubs_min = 0x00008845 (0x8844+1)
[1399]42//DEF(playrec_mode                            ,0x00002e58) // Found @0xff882278,          stubs_min = 0x00002e58 (0x2E54+0x4)
[1291]43//DEF(zoom_status                             ,0x0000c6c0) // Found @0xffaaf648,          stubs_min = 0x0000c6c0 (0xC6C0)
[1444]44DEF(some_flag_for_af_scan                   ,0x00007934) // Found @0xff95fd00
[1291]45
46// Values below go in 'lib.c':
47//void *vid_get_bitmap_fb()        { return (void*)0x403f1000; } // Found @0xff859684
48//void *vid_get_viewport_fb()      { return (void*)0x41020120; } // Found @0xffb03448
49//char *camera_jpeg_count_str()    { return (char*)0x00072dfc; } // Found @0xff9f7368
50//long hook_raw_size()             { return 0x011ca240; }        // Found @0xffb05bac
51//int get_flash_params_count(void) { return 0x84; }              // Found @0xff9907e0
52
53// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
54//#define SD_READONLY_FLAG    0x00020000 // Found @0xffb44d84, levent 0x90a
55//#define SD_READONLY_IDX     2
[1397]56//#define USB_MASK            0x00040000 // Found @0xffb44d90, levent 0x902
[1291]57//#define USB_IDX             2
58
59// Keymap values for kbd.c. Additional keys may be present, only common values included here.
60//static KeyMap keymap[] = {
[1397]61//    { 0, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffb44c1c, levent 0x01
62//    { 0, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffb44c1c, levent 0x01
63//    { 0, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffb44c10, levent 0x00
64//    { 1, KEY_SET             ,0x00000100 }, // Found @0xffb44cac, levent 0x08
65//    { 1, KEY_DISPLAY         ,0x00000200 }, // Found @0xffb44cb8, levent 0x0a
66//    { 1, KEY_UP              ,0x00000400 }, // Found @0xffb44cc4, levent 0x04
67//    { 1, KEY_DOWN            ,0x00000800 }, // Found @0xffb44cd0, levent 0x05
68//    { 1, KEY_RIGHT           ,0x00001000 }, // Found @0xffb44cdc, levent 0x07
69//    { 1, KEY_LEFT            ,0x00002000 }, // Found @0xffb44ce8, levent 0x06
70//    { 1, KEY_MENU            ,0x00004000 }, // Found @0xffb44cf4, levent 0x09
[1291]71//    { 0, 0, 0 }
72//};
73
74// Values below go in 'platform_camera.h':
75//#define CAM_DRYOS         1
76//#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
77//#define CAM_RAW_ROWPIX    4080 // Found @0xff92b724
78//#define CAM_RAW_ROWS      3048 // Found @0xff92b72c
79//#undef  CAM_UNCACHED_BIT
80//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff838e2c
81
[1444]82// Misc stuff
83DEF(ctypes, 0xffb3a416)
84
[1291]85// Stubs below matched 100%.
86//    Name                                     Address                Comp to stubs_entry_2.S
87NSTUB(AllocateMemory                          ,0xffa9b828) //101
88NSTUB(AllocateUncacheableMemory               ,0xff838de8) //112
89NSTUB(Close                                   ,0xff83527c) //101
90NSTUB(CreateTask                              ,0xff81e5b4) //101
91NSTUB(DebugAssert                             ,0xff81e88c) //111
92NSTUB(DeleteFile_Fut                          ,0xff834c08) //112
93//NSTUB(EnterToCompensationEVF                ,0xff836d84) //104            == 0xff836d84
94NSTUB(ExecuteEventProcedure                   ,0xff88b598) //  1
95//NSTUB(ExitFromCompensationEVF               ,0xff836dc8) //104            == 0xff836dc8
96//NSTUB(ExitTask                              ,0xff81e844) //101            == 0xff81e844
97NSTUB(ExpCtrlTool_StartContiAE                ,0xff84465c) //104
98NSTUB(ExpCtrlTool_StopContiAE                 ,0xff844734) //104
99NSTUB(Fclose_Fut                              ,0xff834d84) //101
100NSTUB(Feof_Fut                                ,0xff834f70) //  1
101NSTUB(Fflush_Fut                              ,0xff834fac) //  1
102NSTUB(Fgets_Fut                               ,0xff834ed8) //  1
103NSTUB(Fopen_Fut                               ,0xff834d44) //101
104NSTUB(Fread_Fut                               ,0xff834e30) //101
105NSTUB(FreeMemory                              ,0xffa9b820) //101
106NSTUB(FreeUncacheableMemory                   ,0xff838e28) //112
107NSTUB(Fseek_Fut                               ,0xff834f24) //101
108NSTUB(Fwrite_Fut                              ,0xff834e84) //101
109//NSTUB(GetBatteryTemperature                 ,0xff862744) //102            == 0xff862744
110//NSTUB(GetCCDTemperature                     ,0xff8626d0) //102            == 0xff8626d0
111NSTUB(GetCurrentAvValue                       ,0xff9526d8) //102
112NSTUB(GetDrive_ClusterSize                    ,0xff86f1c8) //  3
113NSTUB(GetDrive_FreeClusters                   ,0xff86f228) //  3
114NSTUB(GetDrive_TotalClusters                  ,0xff86f1fc) //  3
115NSTUB(GetFocusLensSubjectDistance             ,0xff950bcc) //102
116NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff951000) //  3
117NSTUB(GetImageFolder                          ,0xff933568) //106
118NSTUB(GetKbdState                             ,0xff85f11c) //109
119NSTUB(GetMemInfo                              ,0xff81a070) //  3
120//NSTUB(GetOpticalTemperature                 ,0xff8627b8) //102            == 0xff8627b8
121NSTUB(GetParameterData                        ,0xff9907a0) //101
122NSTUB(GetPropertyCase                         ,0xff88f32c) //102
123//NSTUB(GetSystemTime                         ,0xffa9b880) //101            == 0xffa9b880
124//NSTUB(GetZoomLensCurrentPoint               ,0xff956864) //102            == 0xff956864
125//NSTUB(GetZoomLensCurrentPosition            ,0xffa8ed0c) //102            == 0xffa8ed0c
126NSTUB(GiveSemaphore                           ,0xff838804) //112
127NSTUB(IsStrobeChargeCompleted                 ,0xff8ce3f4) //102
128//NSTUB(LEDDrive                              ,0xff85e338) //103            == 0xff85e338
129NSTUB(LocalTime                               ,0xff888f0c) //  1
130//NSTUB(LockMainPower                         ,0xff896efc) //103            == 0xff896efc
131//NSTUB(Lseek                                 ,0xff835398) //101            == 0xff835398
132NSTUB(MakeDirectory_Fut                       ,0xff834c7c) //  1
133NSTUB(MoveFocusLensToDistance                 ,0xffaff710) //102
134NSTUB(MoveIrisWithAv                          ,0xffa971a8) //102
135NSTUB(MoveZoomLensWithPoint                   ,0xffa978d0) //102
136//NSTUB(NewTaskShell                          ,0xff88edf0) //103            == 0xff88edf0
137NSTUB(Open                                    ,0xff835224) //101
138//NSTUB(PB2Rec                                ,0xff899e38) //104            == 0xff899e38
139NSTUB(PT_MoveDigitalZoomToWide                ,0xff8796b4) //102
140NSTUB(PT_MoveOpticalZoomAt                    ,0xff87968c) //102
141//NSTUB(PT_PlaySound                          ,0xff8840a8) //102            == 0xff8840a8
142//NSTUB(PostLogicalEventForNotPowerType       ,0xff894df8) //103            == 0xff894df8
143//NSTUB(PostLogicalEventToUI                  ,0xff894e44) //103            == 0xff894e44
144NSTUB(PutInNdFilter                           ,0xffa97754) //102
145NSTUB(PutOutNdFilter                          ,0xffa97778) //102
146NSTUB(Read                                    ,0xff81ab78) //101
147NSTUB(ReadFastDir                             ,0xffa7d6d4) //  3
148//NSTUB(Rec2PB                                ,0xff8988a4) //104            == 0xff8988a4
149//NSTUB(RefreshPhysicalScreen                 ,0xffa04ad8) //104            == 0xffa04ad8
150//NSTUB(Remove                                ,0xff8352b0) //  4            == 0xff8352b0
151//NSTUB(RenameFile_Fut                        ,0xff834b74) //  4            == 0xff834b74
152//NSTUB(Restart                               ,0xff83a53c) //106            == 0xff83a53c
153NSTUB(ScreenLock                              ,0xffa04aa4) //  8
154NSTUB(ScreenUnlock                            ,0xffa04b48) //  8
155NSTUB(SetAE_ShutterSpeed                      ,0xffb025c0) //102
156//NSTUB(SetAutoShutdownTime                   ,0xff896f70) //103            == 0xff896f70
157//NSTUB(SetCurrentCaptureModeType             ,0xff89eb78) //101            == 0xff89eb78
158//NSTUB(SetLogicalEventActive                 ,0xff896c4c) //101            == 0xff896c4c
159NSTUB(SetParameterData                        ,0xff99067c) //101
160//NSTUB(SetPropertyCase                       ,0xff88f230) //102            == 0xff88f230
161//NSTUB(SetScriptMode                         ,0xff896c9c) //101            == 0xff896c9c
162//NSTUB(SleepTask                             ,0xff838a6c) //101            == 0xff838a6c
163//NSTUB(TakeSemaphore                         ,0xff838734) //101            == 0xff838734
164//NSTUB(TurnOnBackLight                       ,0xff8a5b18) //104            == 0xff8a5b18
165//NSTUB(UnlockMainPower                       ,0xff896e50) //103            == 0xff896e50
[1424]166NSTUB(UpdateMBROnFlash                        ,0xff86f048) //105
[1291]167NSTUB(Write                                   ,0xff83530c) //101
168//NSTUB(WriteSDCard                           ,0xff940c34) //108            == 0xff940c34
169NSTUB(_log                                    ,0xffb37ed8) //111
170NSTUB(_log10                                  ,0xffb36e1c) //112
171NSTUB(_pow                                    ,0xffb36f8c) //114
172NSTUB(_sqrt                                   ,0xffb39240) //  1
173//NSTUB(add_ptp_handler                       ,0xffa49320) //  3            == 0xffa49320
174//NSTUB(apex2us                               ,0xffa08264) //  4            == 0xffa08264
175NSTUB(close                                   ,0xff81a990) //  1
176NSTUB(closedir                                ,0xffa7d55c) //  3
177NSTUB(err_init_task                           ,0xff815f28) //  4
178//NSTUB(exmem_alloc                           ,0xff889dcc) //103            == 0xff889dcc
179NSTUB(free                                    ,0xff814138) //112
180//NSTUB(kbd_p1_f                              ,0xff833498) //109            == 0xff833498
181NSTUB(kbd_p1_f_cont                           ,0xff8334a4) //109
182NSTUB(kbd_p2_f                                ,0xff832d58) //109
183NSTUB(kbd_read_keys                           ,0xff83341c) //109
184NSTUB(kbd_read_keys_r2                        ,0xff85e850) //109
185NSTUB(lseek                                   ,0xff835398) //101
186NSTUB(malloc                                  ,0xff8140dc) //112
187NSTUB(memcmp                                  ,0xff8203d8) //101
188NSTUB(memcpy                                  ,0xff83e458) //101
189NSTUB(memset                                  ,0xffa072b4) //101
190NSTUB(mkdir                                   ,0xff8356f0) //  3
191NSTUB(mktime_ext                              ,0xff8ad110) //  1
192NSTUB(open                                    ,0xff81a8e0) //  1
193NSTUB(opendir                                 ,0xffa7d5a0) //  3
194NSTUB(qsort                                   ,0xffaeb65c) //  1
195NSTUB(rand                                    ,0xff8204e0) //  1
196NSTUB(read                                    ,0xff81ab78) //101
197NSTUB(reboot_fw_update                        ,0xffa82be4) //  1
198NSTUB(set_control_event                       ,0xff8968a0) //111
199NSTUB(srand                                   ,0xff8204d4) //  1
200NSTUB(stat                                    ,0xff8353d4) //  3
201// ALT: NSTUB(stat, 0xff86c60c) // 3 31/0
202//NSTUB(strcat                                ,0xff8ac8cc) //  1            == 0xff8ac8cc
203NSTUB(strchr                                  ,0xff813fc0) //  1
204NSTUB(strcmp                                  ,0xff820394) //101
205NSTUB(strcpy                                  ,0xff82037c) //101
206NSTUB(strftime                                ,0xff8acb18) //  1
207NSTUB(strlen                                  ,0xff81400c) //101
208NSTUB(strncmp                                 ,0xff813f74) //  1
209NSTUB(strncpy                                 ,0xff813f38) //  1
210//NSTUB(strrchr                               ,0xff813fe4) //  1            == 0xff813fe4
211NSTUB(strtol                                  ,0xff83e738) //101
212NSTUB(strtolx                                 ,0xff83e53c) //109
213  DEF(task_CaptSeq                            ,0xff87cd90) //107
214  DEF(task_ExpDrv                             ,0xff8c1480) //110
215  DEF(task_InitFileModules                    ,0xff89a91c) //107
216  DEF(task_MovieRecord                        ,0xff879084) //107
217  DEF(task_PhySw                              ,0xff833088) //107
218  DEF(task_RotaryEncoder                      ,0xff85f3cc) //107
219//NSTUB(time                                  ,0xff889484) //  2            == 0xff889484
220NSTUB(vsprintf                                ,0xff820340) //  1
[1342]221NSTUB(write                                   ,0xff83530c) //101
Note: See TracBrowser for help on using the repository browser.