source: trunk/platform/sx30/sub/100h/stubs_entry.S @ 1448

Revision 1448, 13.6 KB checked in by philmoz, 18 months ago (diff)

Update to finsig_dryos.c to find additional values from stubs_min.S:

  • finds focus_len_table for most cameras with CAM_DNG_LENS_INFO defined
  • finds zoom_busy and focus_busy values
  • finds recreview_hold value. Note the value found for this does not match the existing value for most cameras. The value found for recreview_hold has been confirmed correct for the G10, G12, SX30, SX40, IXUS120 & IXUS310.
  • 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 R45 (DRYOS version 2.3, release #0045)
6//   Firmware Ver GM1.00H
7//   Canon PowerShot SX30 IS
8
9// Values for makefile.inc
10//   PLATFORMID = 12816 (0x3210) // Found @ 0xfffe0130
11//   MAXRAMADDR = 0x07ffffff
12//   KEYSYS = d4b                // Found @ 0xffff3680
13//   NEED_ENCODED_DISKBOOT = 5   // Found @ 0xffff3690
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                           ,0xff865b9c) //  2 60%    *** != 0xff810b1c
18// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0xff810b1c
19
20// Check of modemap from 'platform/CAMERA/shooting.c':
21// Firmware modemap table found @ff8a3cc0 -> ff8a068c -> ff9c1110 -> ffb00d0c -> ffc67954
22// No problems found with modemap table.
23
24// Values below can be overridden in 'stubs_min.S':
25DEF(physw_status                            ,0x00034594) // Found @0xff8349f0
26DEF(physw_run                               ,0x00001c3c) // Found @0xff8345ec
27DEF(levent_table                            ,0xffc0e88c) // Found @0xffc0e88c
28DEF(FlashParamsTable                        ,0xffc67b58) // Found @0xffc67b58
29DEF(movie_status                            ,0x00003524) // Found @0xff882fc8
30DEF(full_screen_refresh                     ,0x0000b198) // Found @0xffa46958
31DEF(canon_menu_active                       ,0x00003a2c) // Found @0xff89a56c
32DEF(canon_shoot_menu_active                 ,0x00009901) // Found @0xff9de9ac
33DEF(playrec_mode                            ,0x00003758) // Found @0xff88c718
34DEF(zoom_status                             ,0x0000e7c4) // Found @0xffb04790
35DEF(some_flag_for_af_scan                   ,0x000085cc) // Found @0xff991078
36// focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
37// each entry contains 1 int value, which is the the zoom focus length.
38// there are 201 entries in the table - set NUM_FL to 201
39DEF(focus_len_table                         ,0xfffea5cc) // Found @0xfffea5cc
40DEF(zoom_busy                               ,0x00003448) // Found @0xff87e640
41DEF(focus_busy                              ,0x00007a74) // Found @0xff97df38
42DEF(recreview_hold                          ,0x0000468c) // Found @0xff8ac610
43
44// Values below go in 'lib.c':
45//void *vid_get_bitmap_fb()        { return (void*)0x40471000; } // Found @0xff85ed30
46//void *vid_get_viewport_fb()      { return (void*)0x40587700; } // Found @0xffb56ae0
47//char *camera_jpeg_count_str()    { return (char*)0x000cf2fc; } // Found @0xffa3bb3c
48//long hook_raw_size()             { return 0x014eb7e0; }        // Found @0xffb59fa0
49//int get_flash_params_count(void) { return 0x9a; }              // Found @0xff9c26a8
50
51// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
52//#define SD_READONLY_FLAG    0x00020000 // Found @0xffb97a1c, levent 0x90a
53//#define SD_READONLY_IDX     2
54//#define USB_MASK            0x04000000 // Found @0xffb97a4c, levent 0x902
55//#define USB_IDX             2
56
57// Keymap values for kbd.c. Additional keys may be present, only common values included here.
58//static KeyMap keymap[] = {
59//    { 0, KEY_UP              ,0x00000400 }, // Found @0xffb97954, levent 0x04
60//    { 0, KEY_DOWN            ,0x00000800 }, // Found @0xffb9795c, levent 0x05
61//    { 0, KEY_LEFT            ,0x00001000 }, // Found @0xffb97964, levent 0x06
62//    { 0, KEY_RIGHT           ,0x00002000 }, // Found @0xffb9796c, levent 0x07
63//    { 0, KEY_SET             ,0x00004000 }, // Found @0xffb97974, levent 0x08
64//    { 0, KEY_DISPLAY         ,0x00020000 }, // Found @0xffb9798c, levent 0x0a
65//    { 0, KEY_MENU            ,0x00040000 }, // Found @0xffb97994, levent 0x09
66//    { 2, KEY_SHOOT_FULL      ,0x00000300 }, // Found @0xffb979f4, levent 0x01
67//    { 2, KEY_SHOOT_FULL_ONLY ,0x00000200 }, // Found @0xffb979f4, levent 0x01
68//    { 2, KEY_SHOOT_HALF      ,0x00000100 }, // Found @0xffb979ec, levent 0x00
69//    { 0, 0, 0 }
70//};
71
72// Values below go in 'platform_camera.h':
73//#define CAM_DRYOS         1
74//#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
75//#define CAM_RAW_ROWPIX    4464 // Found @0xff957868
76//#define CAM_RAW_ROWS      3276 // Found @0xff957874
77//#undef  CAM_UNCACHED_BIT
78//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff83afdc
79
80// Misc stuff
81DEF(ctypes, 0xffb961be)
82
83// Stubs below matched 100%.
84//    Name                                     Address                Comp to stubs_entry_2.S
85NSTUB(AllocateMemory                          ,0xffaee008) //101
86NSTUB(AllocateUncacheableMemory               ,0xff83af98) //112
87NSTUB(Close                                   ,0xff8370dc) //101
88NSTUB(CreateTask                              ,0xff81e8a0) //101
89NSTUB(DebugAssert                             ,0xff81eb78) //111
90NSTUB(DeleteFile_Fut                          ,0xff836a54) //112
91NSTUB(DoAFLock                                ,0xff838ab8) //102
92NSTUB(EnterToCompensationEVF                  ,0xff838d44) //104
93NSTUB(ExecuteEventProcedure                   ,0xff895cc0) //  1
94NSTUB(ExitFromCompensationEVF                 ,0xff838d88) //104
95NSTUB(ExitTask                                ,0xff81eb30) //101
96NSTUB(ExpCtrlTool_StartContiAE                ,0xff8474fc) //104
97NSTUB(ExpCtrlTool_StopContiAE                 ,0xff847688) //104
98NSTUB(Fclose_Fut                              ,0xff836bd0) //101
99NSTUB(Feof_Fut                                ,0xff836dbc) //  1
100NSTUB(Fflush_Fut                              ,0xff836df8) //  1
101NSTUB(Fgets_Fut                               ,0xff836d24) //  1
102NSTUB(Fopen_Fut                               ,0xff836b90) //101
103NSTUB(Fread_Fut                               ,0xff836c7c) //101
104NSTUB(FreeMemory                              ,0xffaee000) //101
105NSTUB(FreeUncacheableMemory                   ,0xff83afd8) //112
106NSTUB(Fseek_Fut                               ,0xff836d70) //101
107NSTUB(Fwrite_Fut                              ,0xff836cd0) //101
108NSTUB(GetBatteryTemperature                   ,0xff8697ac) //102
109NSTUB(GetCCDTemperature                       ,0xff869738) //102
110NSTUB(GetCurrentAvValue                       ,0xff98067c) //102
111NSTUB(GetDrive_ClusterSize                    ,0xff87724c) //  4
112NSTUB(GetDrive_FreeClusters                   ,0xff8772ac) //  4
113NSTUB(GetDrive_TotalClusters                  ,0xff877280) //  3
114NSTUB(GetFocusLensSubjectDistance             ,0xff97ea7c) //102
115NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff97eef4) //  3
116NSTUB(GetImageFolder                          ,0xff95f0ec) //106
117NSTUB(GetKbdState                             ,0xff865a28) //109
118NSTUB(GetMemInfo                              ,0xff81a264) //  3
119NSTUB(GetOpticalTemperature                   ,0xff869820) //102
120NSTUB(GetParameterData                        ,0xff9c266c) //101
121NSTUB(GetPropertyCase                         ,0xff8999c8) //102
122NSTUB(GetSystemTime                           ,0xffaee060) //101
123NSTUB(GetZoomLensCurrentPoint                 ,0xff87e9c4) //102
124NSTUB(GetZoomLensCurrentPosition              ,0xff9864a8) //102
125NSTUB(GiveSemaphore                           ,0xff83a9b4) //112
126NSTUB(IsStrobeChargeCompleted                 ,0xff8ec168) //102
127NSTUB(LEDDrive                                ,0xff864bd4) //103
128NSTUB(LocalTime                               ,0xff8935a8) //  1
129NSTUB(LockMainPower                           ,0xff8a0290) //103
130NSTUB(Lseek                                   ,0xff8371f8) //101
131NSTUB(MakeDirectory_Fut                       ,0xff836ac8) //  1
132NSTUB(MoveFocusLensToDistance                 ,0xffb52e10) //102
133NSTUB(MoveIrisWithAv                          ,0xffae8e14) //102
134NSTUB(MoveZoomLensWithPoint                   ,0xffae950c) //102
135NSTUB(NewTaskShell                            ,0xff8993e4) //103
136NSTUB(Open                                    ,0xff837070) //101
137NSTUB(PB2Rec                                  ,0xff8a30f8) //104
138NSTUB(PT_MoveDigitalZoomToWide                ,0xff883c2c) //102
139NSTUB(PT_MoveOpticalZoomAt                    ,0xff883c04) //102
140NSTUB(PT_PlaySound                            ,0xff88e65c) //  4
141NSTUB(PostLogicalEventForNotPowerType         ,0xff89e028) //103
142NSTUB(PostLogicalEventToUI                    ,0xff89e074) //103
143NSTUB(PutInNdFilter                           ,0xffb50a84) //102
144NSTUB(PutOutNdFilter                          ,0xffb50abc) //102
145NSTUB(Read                                    ,0xff81ad74) //101
146NSTUB(ReadFastDir                             ,0xffacde84) //  4
147NSTUB(Rec2PB                                  ,0xff8a1b3c) //104
148NSTUB(RefreshPhysicalScreen                   ,0xff8b8110) //104
149NSTUB(Remove                                  ,0xff837110) //  4
150NSTUB(RenameFile_Fut                          ,0xff8369c0) //  4
151NSTUB(Restart                                 ,0xff83c788) //106
152NSTUB(ScreenLock                              ,0xff8b9340) //  4
153NSTUB(ScreenUnlock                            ,0xff8b93a4) //  3
154NSTUB(SetAE_ShutterSpeed                      ,0xffb55c58) //102
155NSTUB(SetAutoShutdownTime                     ,0xff8a0304) //103
156NSTUB(SetCurrentCaptureModeType               ,0xff8a9228) //101
157NSTUB(SetFileTimeStamp                        ,0xff837378) //  4
158NSTUB(SetLogicalEventActive                   ,0xff89ffcc) //101
159NSTUB(SetParameterData                        ,0xff9c2544) //101
160NSTUB(SetPropertyCase                         ,0xff8998a0) //102
161NSTUB(SetScriptMode                           ,0xff8a001c) //101
162NSTUB(SleepTask                               ,0xff83ac1c) //101
163NSTUB(TakeSemaphore                           ,0xff83a8e4) //101
164NSTUB(TurnOffBackLight                        ,0xff8b0598) //104
165NSTUB(TurnOnBackLight                         ,0xff8b0580) //104
166NSTUB(UIFS_WriteFirmInfoToFile                ,0xff9aed10) //101
167NSTUB(UnlockAF                                ,0xff838af0) //102
168NSTUB(UnlockMainPower                         ,0xff8a01e4) //103
169NSTUB(UpdateMBROnFlash                        ,0xff8770cc) //105
170NSTUB(VbattGet                                ,0xff833178) //103
171NSTUB(Write                                   ,0xff83716c) //101
172NSTUB(WriteSDCard                             ,0xff96dab0) //108
173NSTUB(_log                                    ,0xffb93b08) //111
174NSTUB(_log10                                  ,0xffb92a4c) //112
175NSTUB(_pow                                    ,0xffb92bbc) //114
176NSTUB(_sqrt                                   ,0xffb94ed4) //  1
177NSTUB(add_ptp_handler                         ,0xffa8ea38) //  3
178NSTUB(apex2us                                 ,0xffa4e848) //  4
179NSTUB(close                                   ,0xff81ab8c) //  1
180NSTUB(closedir                                ,0xffacdce0) //  4
181NSTUB(err_init_task                           ,0xff815fd4) //  4
182NSTUB(exmem_alloc                             ,0xff8944f4) //103
183NSTUB(free                                    ,0xff814244) //112
184NSTUB(kbd_p1_f                                ,0xff834a68) //109
185NSTUB(kbd_p1_f_cont                           ,0xff834a74) //109
186NSTUB(kbd_p2_f                                ,0xff8342b8) //109
187NSTUB(kbd_read_keys                           ,0xff8349f0) //109
188NSTUB(kbd_read_keys_r2                        ,0xff8651a4) //109
189NSTUB(lseek                                   ,0xff8371f8) //101
190NSTUB(malloc                                  ,0xff8141e8) //112
191NSTUB(memcmp                                  ,0xff8206d0) //101
192NSTUB(memcpy                                  ,0xff840750) //101
193NSTUB(memset                                  ,0xffa4d844) //101
194NSTUB(mkdir                                   ,0xff837578) //  4
195NSTUB(mktime_ext                              ,0xff8ba260) //  1
196NSTUB(open                                    ,0xff81aadc) //  1
197NSTUB(opendir                                 ,0xffacdd30) //  4
198NSTUB(openfastdir                             ,0xffacdd30) //  4
199NSTUB(qsort                                   ,0xffb4065c) //  4
200NSTUB(rand                                    ,0xffa4d984) //  4
201NSTUB(read                                    ,0xff81ad74) //101
202NSTUB(readfastdir                             ,0xffacde84) //  4
203NSTUB(reboot_fw_update                        ,0xffad32a4) //  4
204NSTUB(rename                                  ,0xff8369c0) //  4
205NSTUB(set_control_event                       ,0xff89fbbc) //111
206NSTUB(srand                                   ,0xffa4d978) //  4
207NSTUB(stat                                    ,0xff837240) //  3
208NSTUB(strcat                                  ,0xff8b9a1c) //  1
209NSTUB(strchr                                  ,0xff8140b4) //  1
210NSTUB(strcmp                                  ,0xff82068c) //101
211NSTUB(strcpy                                  ,0xff820674) //101
212NSTUB(strftime                                ,0xff8b9c68) //113
213NSTUB(strlen                                  ,0xff814100) //101
214NSTUB(strncmp                                 ,0xff814068) //  1
215NSTUB(strncpy                                 ,0xff81402c) //  1
216NSTUB(strrchr                                 ,0xff8140d8) //  1
217NSTUB(strtol                                  ,0xff840a30) //101
218NSTUB(strtolx                                 ,0xff840834) //109
219  DEF(task_CaptSeq                            ,0xff8868c0) //107
220  DEF(task_ExpDrv                             ,0xff8d0818) //110
221  DEF(task_InitFileModules                    ,0xff8a3b4c) //107
222  DEF(task_MovieRecord                        ,0xff883348) //107
223  DEF(task_PhySw                              ,0xff8345e8) //107
224  DEF(task_RotaryEncoder                      ,0xff865d08) //107
225NSTUB(time                                    ,0xff893b88) //  2
226NSTUB(vsprintf                                ,0xff820638) //  4
227NSTUB(write                                   ,0xff83716c) //101
Note: See TracBrowser for help on using the repository browser.