source: trunk/platform/a590/sub/101b/stubs_entry.S @ 1385

Revision 1385, 13.4 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 R23 (DRYOS version 2.3, release #0023)
6//   Firmware Ver GM1.01B
7//   Canon PowerShot A590 IS
8//   PLATFORMID = 12662 (0x3176)
9//   MAXRAMADDR = 0x01ffffff
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
13NSTUB(kbd_pwr_off                             ,0xffc356b8) //  2 67%
14NSTUB(kbd_pwr_on                              ,0xffc35678) //  2 86%
15//NSTUB(rename                                ,0xffc133e0) //  1        *** != 0xffc13c5c
16//NSTUB(write                                 ,0xffc13c34) //101        *** != 0xffc0a1bc
17
18// Check of modemap from 'platform/CAMERA/shooting.c':
19// Firmware modemap table found @ffc65928 -> ffc62504 -> ffd3423c -> ffdfe960 -> ffeaed68
20// Mode 32791 in firmware but not in current modemap
21
22// Values below go in 'stubs_min.S':
23//DEF(physw_status                            ,0x0000f11c) // Found @0xffc11c30,          stubs_min = 0x0000f11c (0xF11C)
24//DEF(physw_run                               ,0x00001bf0) // Found @0xffc118cc,          stubs_min = 0x00001bf0 (0x1BF0)
25//DEF(levent_table                            ,0xffe8de14) // Found @0xffe8de14,          stubs_min = 0xffe8de14 (0xFFE8DE14)
26//DEF(FlashParamsTable                        ,0xffeaef24) // Found @0xffeaef24,          stubs_min = 0xffeaef24 (0xFFEAEF24)
27//DEF(movie_status                            ,0x000053c8) // Found @0xffc4b958,          stubs_min = 0x000053c8 (0x53c8)
28//DEF(canon_menu_active                       ,0x00008d20) // Found @0xffd29ef8,          stubs_min = 0x00008d20 (0x8D20)
29//DEF(canon_shoot_menu_active                 ,0x00009641) // Found @0xffd444a4,          stubs_min = 0x00009641 (0x9641)
30//DEF(playrec_mode                            ,0x00005538) // Found @0xffc52108,          stubs_min = 0x00005538 (0x5534+4)
31//DEF(zoom_status                             ,0x0000bfbc) // Found @0xffe00160,          stubs_min = 0x0000bfbc (0xBFBC)
32//DEF(some_flag_for_af_scan                   ,0x0000bd3c) // Found @0xffdee824,          stubs_min = 0x0000bd3c (0xBD3C)
33
34// Values below go in 'lib.c':
35//void *vid_get_bitmap_fb()        { return (void*)0x10361000; } // Found @0xffc31338
36//void *vid_get_viewport_fb()      { return (void*)0x10659e80; } // Found @0xffe42a2c
37//char *camera_jpeg_count_str()    { return (char*)0x00049344; } // Found @0xffd727b0
38//long hook_raw_size()             { return 0x009e6fc4; }        // Found @0xffe44cb8
39//int get_flash_params_count(void) { return 0x73; }              // Found @0xffd352f8
40
41// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
42//#define SD_READONLY_FLAG    0x00020000 // Found @0xffe6ed9c, levent 0x90a
43//#define SD_READONLY_IDX     2
44//#define USB_FLAG            0x00040000 // Found @0xffe6eda8, levent 0x902
45//#define USB_IDX             2
46
47// Keymap values for kbd.c. Additional keys may be present, only common values included here.
48//static KeyMap keymap[] = {
49//    { 1, KEY_SHOOT_HALF  ,0x40000000 }, // Found @0xffe6ecb8, levent 0x00
50//    { 1, KEY_SHOOT_FULL  ,0xc0000000 }, // Found @0xffe6ecc4, levent 0x01
51//    { 2, KEY_ZOOM_IN     ,0x00000004 }, // Found @0xffe6ece8, levent 0x02
52//    { 2, KEY_ZOOM_OUT    ,0x00000008 }, // Found @0xffe6ecf4, levent 0x03
53//    { 2, KEY_UP          ,0x00000010 }, // Found @0xffe6ed00, levent 0x04
54//    { 2, KEY_DOWN        ,0x00000020 }, // Found @0xffe6ed0c, levent 0x05
55//    { 2, KEY_RIGHT       ,0x00000040 }, // Found @0xffe6ed18, levent 0x07
56//    { 2, KEY_LEFT        ,0x00000080 }, // Found @0xffe6ed24, levent 0x06
57//    { 2, KEY_SET         ,0x00000100 }, // Found @0xffe6ed30, levent 0x08
58//    { 2, KEY_MENU        ,0x00000200 }, // Found @0xffe6ed3c, levent 0x09
59//    { 2, KEY_DISPLAY     ,0x00000400 }, // Found @0xffe6ed48, levent 0x0a
60//    { 0, 0, 0 }
61//};
62
63// Values below go in 'platform_camera.h':
64//#define CAM_DRYOS         1
65//#define CAM_RAW_ROWPIX    3336 // Found @0xffe3c23c
66//#define CAM_RAW_ROWS      2490 // Found @0xffe3c240
67//#undef  CAM_UNCACHED_BIT
68//#define CAM_UNCACHED_BIT  0x10000000 // Found @0xffc18320
69
70// Stubs below matched 100%.
71//    Name                                     Address                Comp to stubs_entry_2.S
72NSTUB(AllocateMemory                          ,0xffdf1d70) //101
73NSTUB(AllocateUncacheableMemory               ,0xffc182e4) //112
74NSTUB(Close                                   ,0xffc13b88) //101
75NSTUB(CreateTask                              ,0xffc0b8e0) //101
76NSTUB(DebugAssert                             ,0xffc0bdb8) //111
77NSTUB(DeleteFile_Fut                          ,0xffc13434) //112
78//NSTUB(DoAFLock                              ,0xffc15b04) //102            == 0xffc15b04
79NSTUB(EnterToCompensationEVF                  ,0xffc15f54) //104
80//NSTUB(ExecuteEventProcedure                 ,0xffc59eb4) //  1            == 0xffc59eb4
81//NSTUB(ExitFromCompensationEVF               ,0xffc15fa4) //104            == 0xffc15fa4
82NSTUB(ExitTask                                ,0xffc0bb70) //101
83//NSTUB(ExpCtrlTool_StartContiAE              ,0xffc21f10) //104            == 0xffc21f10
84NSTUB(ExpCtrlTool_StopContiAE                 ,0xffc22054) //104
85NSTUB(Fclose_Fut                              ,0xffc135b0) //101
86NSTUB(Feof_Fut                                ,0xffc1379c) //  1
87NSTUB(Fflush_Fut                              ,0xffc137d8) //  1
88NSTUB(Fgets_Fut                               ,0xffc13704) //  1
89NSTUB(Fopen_Fut                               ,0xffc13570) //101
90NSTUB(Fread_Fut                               ,0xffc1365c) //101
91NSTUB(FreeMemory                              ,0xffdf1d68) //101
92NSTUB(FreeUncacheableMemory                   ,0xffc18318) //112
93NSTUB(Fseek_Fut                               ,0xffc13750) //101
94NSTUB(Fwrite_Fut                              ,0xffc136b0) //101
95NSTUB(GetBatteryTemperature                   ,0xffc377b4) //102
96NSTUB(GetCCDTemperature                       ,0xffc37744) //102
97NSTUB(GetCurrentAvValue                       ,0xffd0ce14) //102
98NSTUB(GetDrive_ClusterSize                    ,0xffc41688) //  1
99NSTUB(GetDrive_FreeClusters                   ,0xffc416f0) //  1
100NSTUB(GetDrive_TotalClusters                  ,0xffc416bc) //  1
101NSTUB(GetFocusLensSubjectDistance             ,0xffd0b310) //102
102NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xffd0b61c) //  1
103NSTUB(GetKbdState                             ,0xffc35644) //109
104NSTUB(GetMemInfo                              ,0xffc03c40) //  1
105NSTUB(GetOpticalTemperature                   ,0xffc37824) //102
106NSTUB(GetParameterData                        ,0xffd352b8) //101
107NSTUB(GetPropertyCase                         ,0xffc5dab4) //102
108NSTUB(GetSystemTime                           ,0xffdf1dc8) //101
109NSTUB(GetZoomLensCurrentPoint                 ,0xffd0fcc0) //102
110NSTUB(GetZoomLensCurrentPosition              ,0xffde89dc) //102
111NSTUB(GiveSemaphore                           ,0xffc0b844) //112
112NSTUB(IsStrobeChargeCompleted                 ,0xffc9e3f0) //102
113//NSTUB(LEDDrive                              ,0xffc34ce0) //103            == 0xffc34ce0
114NSTUB(LocalTime                               ,0xffc57bd4) //  1
115NSTUB(LockMainPower                           ,0xffc6211c) //103
116NSTUB(Lseek                                   ,0xffc13cc8) //101
117NSTUB(MakeDirectory_Fut                       ,0xffc134a8) //  1
118NSTUB(MoveFocusLensToDistance                 ,0xffe3f558) //102
119NSTUB(MoveIrisWithAv                          ,0xffded980) //102
120NSTUB(MoveZoomLensWithPoint                   ,0xffdedfc8) //102
121NSTUB(NewTaskShell                            ,0xffc5d578) //103
122NSTUB(Open                                    ,0xffc13b60) //101
123NSTUB(PB2Rec                                  ,0xffc64d3c) //104
124NSTUB(PT_MoveDigitalZoomToWide                ,0xffc4cfcc) //102
125NSTUB(PT_MoveOpticalZoomAt                    ,0xffc4cfa4) //102
126NSTUB(PT_PlaySound                            ,0xffc4c8b8) //102
127NSTUB(PostLogicalEventForNotPowerType         ,0xffc6178c) //103
128NSTUB(PostLogicalEventToUI                    ,0xffc617d8) //103
129NSTUB(PutInNdFilter                           ,0xffe3d8d4) //102
130NSTUB(PutOutNdFilter                          ,0xffe3d90c) //102
131NSTUB(Read                                    ,0xffc0a15c) //101
132NSTUB(ReadFastDir                             ,0xffdd96bc) //  1
133NSTUB(Rec2PB                                  ,0xffc64d6c) //104
134NSTUB(RefreshPhysicalScreen                   ,0xffd7c830) //104
135NSTUB(Remove                                  ,0xffc13bd0) //  1
136NSTUB(RenameFile_Fut                          ,0xffc133e0) //  1
137NSTUB(Restart                                 ,0xffc19b5c) //106
138NSTUB(SetAE_ShutterSpeed                      ,0xffe41c3c) //102
139NSTUB(SetAutoShutdownTime                     ,0xffc62190) //103
140NSTUB(SetCurrentCaptureModeType               ,0xffc68210) //101
141NSTUB(SetFileTimeStamp                        ,0xffc13e64) //  1
142NSTUB(SetLogicalEventActive                   ,0xffc61eb8) //  1
143NSTUB(SetParameterData                        ,0xffd35228) //101
144NSTUB(SetPropertyCase                         ,0xffc5d9b4) //102
145//NSTUB(SetScriptMode                         ,0xffc61f08) //101            == 0xffc61f08
146NSTUB(SleepTask                               ,0xffc18168) //101
147NSTUB(TakeSemaphore                           ,0xffc0b774) //101
148NSTUB(TurnOffBackLight                        ,0xffc6c570) //104
149NSTUB(TurnOnBackLight                         ,0xffc6c558) //104
150NSTUB(UIFS_WriteFirmInfoToFile                ,0xffd2aa58) //103
151//NSTUB(UnlockAF                              ,0xffc15c1c) //102            == 0xffc15c1c
152NSTUB(UnlockMainPower                         ,0xffc62070) //103
153//NSTUB(UnsetZoomForMovie                     ,0xffd3a34c) //104            == 0xffd3a34c
154NSTUB(UpdateMBROnFlash                        ,0xffc414c8) //  1
155NSTUB(VbattGet                                ,0xffc105f4) //103
156NSTUB(Write                                   ,0xffc13c34) //101
157//NSTUB(WriteSDCard                           ,0xffd01548) //108            == 0xffd01548
158NSTUB(_log                                    ,0xffe67dd8) //111
159NSTUB(_log10                                  ,0xffe66d1c) //112
160NSTUB(_pow                                    ,0xffe66e8c) //114
161NSTUB(_sqrt                                   ,0xffe69140) //  1
162NSTUB(add_ptp_handler                         ,0xffdaa4e4) //  1
163//NSTUB(apex2us                               ,0xffd7dd6c) //  4            == 0xffd7dd6c
164NSTUB(close                                   ,0xffc09f74) //  1
165NSTUB(closedir                                ,0xffdd978c) //  1
166NSTUB(err_init_task                           ,0xffc04e98) //  4
167//NSTUB(exmem_alloc                           ,0xffc5869c) //103            == 0xffc5869c
168NSTUB(free                                    ,0xffc03a98) //112
169NSTUB(kbd_p1_f                                ,0xffc11d34) //109
170NSTUB(kbd_p1_f_cont                           ,0xffc11d40) //109
171NSTUB(kbd_p2_f                                ,0xffc1156c) //109
172NSTUB(kbd_read_keys                           ,0xffc11c30) //109
173NSTUB(kbd_read_keys_r2                        ,0xffc35104) //109
174NSTUB(lseek                                   ,0xffc13cc8) //101
175NSTUB(malloc                                  ,0xffc039c4) //112
176NSTUB(memcmp                                  ,0xffc0d90c) //101
177NSTUB(memcpy                                  ,0xffc74f88) //101
178NSTUB(memset                                  ,0xffd7cbe4) //101
179NSTUB(mkdir                                   ,0xffc13f2c) //  1
180// ALT: NSTUB(mkdir, 0xffc13fcc) // 1 32/0
181NSTUB(mktime_ext                              ,0xffc757f4) //  1
182NSTUB(open                                    ,0xffc09ec4) //  1
183NSTUB(opendir                                 ,0xffdd9628) //  1
184NSTUB(openfastdir                             ,0xffdd9628) //  1
185NSTUB(qsort                                   ,0xffd7d0ec) //  1
186NSTUB(rand                                    ,0xffc0da14) //  1
187NSTUB(read                                    ,0xffc0a15c) //101
188NSTUB(readfastdir                             ,0xffdd96bc) //  1
189NSTUB(reboot_fw_update                        ,0xffdddf90) //  5
190NSTUB(set_control_event                       ,0xffc61c0c) //  1
191NSTUB(srand                                   ,0xffc0da08) //  1
192NSTUB(stat                                    ,0xffc13d94) //  1
193NSTUB(strcat                                  ,0xffc74d74) //  1
194NSTUB(strchr                                  ,0xffc74dfc) //  1
195NSTUB(strcmp                                  ,0xffc0d8a4) //101
196NSTUB(strcpy                                  ,0xffc0d88c) //101
197NSTUB(strftime                                ,0xffc751fc) //  1
198NSTUB(strlen                                  ,0xffc0d8e8) //101
199NSTUB(strncmp                                 ,0xffc74db0) //  1
200NSTUB(strncpy                                 ,0xffc1dcc8) //  1
201NSTUB(strrchr                                 ,0xffc74e20) //  1
202NSTUB(strtol                                  ,0xffc1df00) //101
203NSTUB(strtolx                                 ,0xffc1dd04) //109
204  DEF(task_CaptSeq                            ,0xffc4f0f8) //107
205  DEF(task_ExpDrv                             ,0xffc973e4) //110
206  DEF(task_InitFileModules                    ,0xffc657b4) //107
207  DEF(task_MovieRecord                        ,0xffc4bbbc) //107
208  DEF(task_PhySw                              ,0xffc118c8) //107
209NSTUB(time                                    ,0xffc57a88) //  1
210NSTUB(vsprintf                                ,0xffc0d80c) //  1
Note: See TracBrowser for help on using the repository browser.