source: trunk/platform/g10/sub/102a/stubs_entry.S @ 1453

Revision 1453, 13.5 KB checked in by philmoz, 18 months ago (diff)

Minor updates:

  • Fix for G10 & G12 needing custom hack in lens_set_focus_pos function (undefine CAM_CAN_SD_OVER_NOT_IN_MF for these cameras instead).
  • Fix for recreview_hold value for G10 & SD940 (IXUS120)
  • Add CAM_SHOW_OSD_IN_SHOOT_MENU for SX30 & sx40hs/platform_camera.h
  • Property svn:eol-style set to native
RevLine 
[1329]1// !!! THIS FILE IS GENERATED. DO NOT EDIT. !!!
2#include "stubs_asm.h"
3
4// Camera info:
[1385]5//   DRYOS R31 (DRYOS version 2.3, release #0031)
6//   Firmware Ver GM1.02A
7//   Canon PowerShot G10
[1391]8
9// Values for makefile.inc
10//   PLATFORMID = 12687 (0x318f) // Found @ 0xfffe0130
[1385]11//   MAXRAMADDR = 0x07ffffff
[1391]12//   KEYSYS = d4                 // Found @ 0xffff368c
13//   NEED_ENCODED_DISKBOOT = 1   // Found @ 0xffff369c
[1329]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(kbd_pwr_off                           ,0xff84b174) //  2 60%        == 0xff84b174
18// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0xff81093c
19
20// Check of modemap from 'platform/CAMERA/shooting.c':
21// Firmware modemap table found @ff88301c -> ff87f310 -> ff970650 -> ffa7aa78 -> ffb75040
22// No problems found with modemap table.
23
[1444]24// Values below can be overridden in 'stubs_min.S':
[1453]25DEF(physw_status                            ,0x00011cb8) // Found @0xff821c28
26DEF(physw_run                               ,0x00001c2c) // Found @0xff82189c
27DEF(levent_table                            ,0xffb43a90) // Found @0xffb43a90
28DEF(FlashParamsTable                        ,0xffb75220) // Found @0xffb75220
29DEF(movie_status                            ,0x00005418) // Found @0xff8629c4
30DEF(canon_menu_active                       ,0x00005868) // Found @0xff8782dc
31DEF(canon_shoot_menu_active                 ,0x0000a8ad) // Found @0xff987994
32DEF(playrec_mode                            ,0x000055d0) // Found @0xff86b300
33DEF(zoom_status                             ,0x0000e0b0) // Found @0xffa7c758
34DEF(some_flag_for_af_scan                   ,0x000096f8) // Found @0xff946b5c
[1448]35// focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
36// each entry contains 3 int value(s), the first is the zoom focus length.
37// there are 14 entries in the table - set NUM_FL to 14
[1453]38DEF(focus_len_table                         ,0xfffe2a8c) // Found @0xfffe2a8c
39DEF(zoom_busy                               ,0x00008d44) // Found @0xff93e458
40DEF(focus_busy                              ,0x00008c44) // Found @0xff938b44
41DEF(recreview_hold                          ,0x00006274) // Found @0xff888be8
[1329]42
43// Values below go in 'lib.c':
44//void *vid_get_bitmap_fb()        { return (void*)0x40471000; } // Found @0xff846a4c
45//void *vid_get_viewport_fb()      { return (void*)0x40816dc0; } // Found @0xffad4d84
46//char *camera_jpeg_count_str()    { return (char*)0x0004c95c; } // Found @0xff9cccf0
47//long hook_raw_size()             { return 0x01574d00; }        // Found @0xffad7140
48//int get_flash_params_count(void) { return 0x78; }              // Found @0xff971c50
49
50// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
51//#define SD_READONLY_FLAG    0x00020000 // Found @0xffb0f954, levent 0x90a
52//#define SD_READONLY_IDX     2
[1397]53//#define USB_MASK            0x00040000 // Found @0xffb0f960, levent 0x902
[1329]54//#define USB_IDX             2
55
56// Keymap values for kbd.c. Additional keys may be present, only common values included here.
57//static KeyMap keymap[] = {
[1397]58//    { 0, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffb0f7d4, levent 0x01
59//    { 0, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffb0f7d4, levent 0x01
60//    { 0, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffb0f7c8, levent 0x00
61//    { 1, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffb0f840, levent 0x03
62//    { 1, KEY_ZOOM_IN         ,0x00000010 }, // Found @0xffb0f84c, levent 0x02
63//    { 1, KEY_LEFT            ,0x00000400 }, // Found @0xffb0f894, levent 0x06
64//    { 1, KEY_SET             ,0x00000800 }, // Found @0xffb0f8a0, levent 0x08
65//    { 1, KEY_RIGHT           ,0x00001000 }, // Found @0xffb0f8ac, levent 0x07
66//    { 1, KEY_DOWN            ,0x00002000 }, // Found @0xffb0f8b8, levent 0x05
67//    { 1, KEY_UP              ,0x00004000 }, // Found @0xffb0f8c4, levent 0x04
68//    { 1, KEY_DISPLAY         ,0x00020000 }, // Found @0xffb0f8e8, levent 0x0a
69//    { 1, KEY_MENU            ,0x00040000 }, // Found @0xffb0f8f4, levent 0x09
[1329]70//    { 0, 0, 0 }
71//};
72
73// Values below go in 'platform_camera.h':
74//#define CAM_DRYOS         1
75//#define CAM_RAW_ROWPIX    4480 // Found @0xffacde4c
76//#define CAM_RAW_ROWS      3348 // Found @0xffacde50
77//#undef  CAM_UNCACHED_BIT
78//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff828844
79
[1444]80// Misc stuff
81DEF(ctypes, 0xffb0964a)
82
[1329]83// Stubs below matched 100%.
84//    Name                                     Address                Comp to stubs_entry_2.S
85NSTUB(AllocateMemory                          ,0xffa6886c) //101
86NSTUB(AllocateUncacheableMemory               ,0xff828800) //112
87NSTUB(Close                                   ,0xff824088) //101
88NSTUB(CreateTask                              ,0xff81aef4) //101
89NSTUB(DebugAssert                             ,0xff81b1cc) //111
90NSTUB(DeleteFile_Fut                          ,0xff823934) //112
91NSTUB(DoAFLock                                ,0xff825e48) //102
92NSTUB(EnterToCompensationEVF                  ,0xff826110) //104
93NSTUB(ExecuteEventProcedure                   ,0xff873ae4) //  1
94NSTUB(ExitFromCompensationEVF                 ,0xff826154) //104
95NSTUB(ExitTask                                ,0xff81b184) //101
96NSTUB(ExpCtrlTool_StartContiAE                ,0xff831950) //104
97NSTUB(ExpCtrlTool_StopContiAE                 ,0xff831a94) //104
98NSTUB(Fclose_Fut                              ,0xff823ab0) //101
99NSTUB(Feof_Fut                                ,0xff823c9c) //  1
100NSTUB(Fflush_Fut                              ,0xff823cd8) //  1
101NSTUB(Fgets_Fut                               ,0xff823c04) //  1
102NSTUB(Fopen_Fut                               ,0xff823a70) //101
103NSTUB(Fread_Fut                               ,0xff823b5c) //101
104NSTUB(FreeMemory                              ,0xffa68864) //101
105NSTUB(FreeUncacheableMemory                   ,0xff828840) //112
106NSTUB(Fseek_Fut                               ,0xff823c50) //101
107NSTUB(Fwrite_Fut                              ,0xff823bb0) //101
108NSTUB(GetBatteryTemperature                   ,0xff84dc90) //102
109NSTUB(GetCCDTemperature                       ,0xff84dc20) //102
110NSTUB(GetCurrentAvValue                       ,0xff93b378) //102
111NSTUB(GetDrive_ClusterSize                    ,0xff859f90) //  1
112NSTUB(GetDrive_FreeClusters                   ,0xff859ff8) //  1
113NSTUB(GetDrive_TotalClusters                  ,0xff859fc4) //  1
114NSTUB(GetFocusLensSubjectDistance             ,0xff939848) //102
115NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff939c30) //  3
116NSTUB(GetKbdState                             ,0xff84afbc) //109
117NSTUB(GetMemInfo                              ,0xff813c24) //  1
118NSTUB(GetOpticalTemperature                   ,0xff84dd00) //102
119NSTUB(GetParameterData                        ,0xff971c10) //101
120NSTUB(GetPropertyCase                         ,0xff8777cc) //102
121NSTUB(GetSystemTime                           ,0xffa688c4) //101
122NSTUB(GetZoomLensCurrentPoint                 ,0xff93e7c8) //102
123NSTUB(GetZoomLensCurrentPosition              ,0xffa5dcb8) //102
124NSTUB(GiveSemaphore                           ,0xff82821c) //112
125NSTUB(IsStrobeChargeCompleted                 ,0xff8b4794) //102
126NSTUB(LEDDrive                                ,0xff84a53c) //103
127NSTUB(LocalTime                               ,0xff871280) //  1
128NSTUB(LockMainPower                           ,0xff87ef28) //103
129NSTUB(Lseek                                   ,0xff8241c8) //101
130NSTUB(MakeDirectory_Fut                       ,0xff8239a8) //  1
131NSTUB(MoveFocusLensToDistance                 ,0xffad17b8) //102
132NSTUB(MoveIrisWithAv                          ,0xffa65290) //102
133NSTUB(MoveZoomLensWithPoint                   ,0xffa659a8) //102
134NSTUB(NewTaskShell                            ,0xff877274) //103
135NSTUB(Open                                    ,0xff824060) //101
136NSTUB(PB2Rec                                  ,0xff8822ec) //104
137NSTUB(PT_MoveDigitalZoomToWide                ,0xff864344) //102
138NSTUB(PT_MoveOpticalZoomAt                    ,0xff86431c) //102
139NSTUB(PT_PlaySound                            ,0xff863c98) //102
140NSTUB(PostLogicalEventForNotPowerType         ,0xff87ccec) //103
141NSTUB(PostLogicalEventToUI                    ,0xff87cd38) //103
142NSTUB(PutInNdFilter                           ,0xffa6580c) //102
143NSTUB(PutOutNdFilter                          ,0xffa65830) //102
144NSTUB(Read                                    ,0xff819a4c) //101
145NSTUB(ReadFastDir                             ,0xffa4a194) //  1
146NSTUB(Rec2PB                                  ,0xff880c28) //104
147//NSTUB(RefreshPhysicalScreen                 ,0xff9dae58) //104            == 0xff9dae58
148NSTUB(Remove                                  ,0xff8240d0) //  1
149NSTUB(RenameFile_Fut                          ,0xff8238e0) //  1
150NSTUB(Restart                                 ,0xff82a074) //106
151NSTUB(SetAE_ShutterSpeed                      ,0xffad3f88) //102
152NSTUB(SetAutoShutdownTime                     ,0xff87ef9c) //103
153NSTUB(SetCurrentCaptureModeType               ,0xff885d94) //101
154NSTUB(SetFileTimeStamp                        ,0xff824364) //  1
155NSTUB(SetLogicalEventActive                   ,0xff87ec78) //101
156NSTUB(SetParameterData                        ,0xff971aec) //101
157NSTUB(SetPropertyCase                         ,0xff8776c4) //102
158NSTUB(SetScriptMode                           ,0xff87ecc8) //101
159NSTUB(SleepTask                               ,0xff828484) //101
160NSTUB(TakeSemaphore                           ,0xff82814c) //101
161NSTUB(TurnOffBackLight                        ,0xff88c57c) //104
162NSTUB(TurnOnBackLight                         ,0xff88c564) //104
163NSTUB(UIFS_WriteFirmInfoToFile                ,0xff95fddc) //103
164NSTUB(UnlockAF                                ,0xff825e9c) //102
165NSTUB(UnlockMainPower                         ,0xff87ee7c) //103
166NSTUB(UnsetZoomForMovie                       ,0xff977ed4) //104
[1424]167NSTUB(UpdateMBROnFlash                        ,0xff859dd0) //105
[1329]168NSTUB(VbattGet                                ,0xff820574) //103
169NSTUB(Write                                   ,0xff824134) //101
170NSTUB(WriteSDCard                             ,0xff92a7c0) //108
171NSTUB(_log                                    ,0xffb068c8) //111
172NSTUB(_log10                                  ,0xffb05554) //112
173NSTUB(_pow                                    ,0xffb056c4) //114
174NSTUB(_sqrt                                   ,0xffb08524) //  1
175NSTUB(add_ptp_handler                         ,0xffa15950) //  3
176NSTUB(apex2us                                 ,0xff9dc33c) //  4
177NSTUB(close                                   ,0xff819864) //  1
178NSTUB(closedir                                ,0xffa4a264) //  1
179NSTUB(err_init_task                           ,0xff814e80) //  4
180NSTUB(exmem_alloc                             ,0xff8721c0) //103
181NSTUB(free                                    ,0xff813a7c) //112
182NSTUB(kbd_p1_f                                ,0xff821d24) //109
183NSTUB(kbd_p1_f_cont                           ,0xff821d30) //109
184NSTUB(kbd_p2_f                                ,0xff82153c) //109
185NSTUB(kbd_read_keys                           ,0xff821c28) //109
186NSTUB(kbd_read_keys_r2                        ,0xff84a99c) //109
187NSTUB(lseek                                   ,0xff8241c8) //101
188NSTUB(malloc                                  ,0xff8139a8) //112
189NSTUB(memcmp                                  ,0xff81cbb0) //101
190NSTUB(memcpy                                  ,0xff899344) //101
191NSTUB(memset                                  ,0xff9db1ac) //101
192NSTUB(mkdir                                   ,0xff82442c) //  1
193// ALT: NSTUB(mkdir, 0xff8244cc) // 1 32/0
194NSTUB(mktime_ext                              ,0xff899bb0) //  1
195NSTUB(open                                    ,0xff8197b4) //  1
196NSTUB(opendir                                 ,0xffa4a100) //  1
197NSTUB(openfastdir                             ,0xffa4a100) //  1
198NSTUB(qsort                                   ,0xff9db6b4) //  1
199NSTUB(rand                                    ,0xff81ccb8) //  1
200NSTUB(read                                    ,0xff819a4c) //101
201NSTUB(readfastdir                             ,0xffa4a194) //  1
202NSTUB(reboot_fw_update                        ,0xffa51b94) //  5
203NSTUB(rename                                  ,0xff8238e0) //  1
204NSTUB(set_control_event                       ,0xff87e8dc) //111
205NSTUB(srand                                   ,0xff81ccac) //  1
206NSTUB(stat                                    ,0xff824294) //  1
207NSTUB(strcat                                  ,0xff899158) //  1
208NSTUB(strchr                                  ,0xff8991e0) //  1
209NSTUB(strcmp                                  ,0xff81cb48) //101
210NSTUB(strcpy                                  ,0xff81cb30) //101
211NSTUB(strftime                                ,0xff8995b8) //  1
212NSTUB(strlen                                  ,0xff81cb8c) //101
213NSTUB(strncmp                                 ,0xff899194) //  1
214NSTUB(strncpy                                 ,0xff82e2bc) //  1
215NSTUB(strrchr                                 ,0xff9db184) //  1
216NSTUB(strtol                                  ,0xff82e4f4) //101
217NSTUB(strtolx                                 ,0xff82e2f8) //109
218  DEF(task_CaptSeq                            ,0xff866bfc) //107
219  DEF(task_ExpDrv                             ,0xff8ab0e0) //110
220  DEF(task_InitFileModules                    ,0xff882ea8) //107
221  DEF(task_MovieRecord                        ,0xff862c0c) //107
222  DEF(task_PhySw                              ,0xff821898) //107
223NSTUB(time                                    ,0xff871860) //  2
224NSTUB(vsprintf                                ,0xff81caf4) //  1
225NSTUB(write                                   ,0xff824134) //101
Note: See TracBrowser for help on using the repository browser.