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

Revision 1385, 14.5 KB checked in by philmoz, 19 months ago (diff)

Update for DRYOS signature finder (finsig_dryos.c):

  • Fix camera name finder for R49 cameras
  • Add PLATFORMID and MAXRAMADDR values in camera info section

Also fix SVN properties for IXUS 1000 files & folders.

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