source: branches/philmoz/platform/sx40hs/sub/100f/stubs_entry.S @ 1409

Revision 1409, 13.7 KB checked in by philmoz, 18 months ago (diff)

Update of SX40HS 1.00f code from ERR99.

  • 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 R49 (DRYOS version 2.3, release #0049)
6//   Firmware Ver GM1.00F
7//   Canon PowerShot SX40 HS
8
9// Values for makefile.inc
10//   PLATFORMID = 12856 (0x3238) // Found @ 0xfff40040
11//   MAXRAMADDR = 0x0fffffff
12//   KEYSYS = d4c                // Found @ 0xffff3b48
13//   NEED_ENCODED_DISKBOOT = 7   // Found @ 0xffff3b58
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(FreeUncacheableMemory                 ,0xff02bea0) //112        *** != 0x00000000
18//NSTUB(_log                                  ,0xff430340) //111        *** != 0x00000000
19//NSTUB(_log10                                ,0xff430880) //112        *** != 0x00000000
20//NSTUB(free                                  ,0xff004264) //112        *** != 0x00000000
21// ERROR: kbd_pwr_off is not found.                        //--- ---    *** != 0x00000000
22// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0x00000000
23NSTUB(reboot_fw_update                        ,0xff33ee24) //  6 96%
24
25// Check of modemap from 'platform/CAMERA/shooting.c':
26// Firmware modemap table found @ff09bd3c -> ff0985bc -> ff2047c4 -> ff36a8ec -> ff607d14
27// No problems found with modemap table.
28
29// Values below go in 'stubs_min.S':
30//DEF(physw_status                            ,0x00037548) // Found @0xff024dd8,          stubs_min = 0x00037548 (0x00037548)
31//DEF(physw_run                               ,0x00001c10) // Found @0xff024968,          stubs_min = 0x00001c10 (0x00001c10)
32//DEF(levent_table                            ,0xff593a0c) // Found @0xff593a0c,          stubs_min = 0xff593a0c (0xff593a0c)
33//DEF(FlashParamsTable                        ,0xff607f74) // Found @0xff607f74,          stubs_min = 0xff607f74 (0xff607f74)
34//DEF(movie_status                            ,0x00002f1c) // Found @0xff0772a8,          stubs_min = 0x00002f1c (0x2ED8+0x44)
35//DEF(full_screen_refresh                     ,0x0000c2d8) // Found @0xff2917e4,          stubs_min = 0x0000c2d8 (0x0000c2d8)
36//DEF(canon_menu_active                       ,0x000034f0) // Found @0xff091b6c,          stubs_min = 0x000034f0 (0x34EC+4)
37//DEF(canon_shoot_menu_active                 ,0x0000ab6d) // Found @0xff22a708,          stubs_min = 0x0000ab6d (0x0000ab6d)
38//DEF(playrec_mode                            ,0x00003214) // Found @0xff083504,          stubs_min = 0x00003214 (0x00003214)
39//DEF(zoom_status                             ,0x000111f8) // Found @0xff36e6dc,          stubs_min = 0x000111f8 (0x000111f8)
40
41// Values below go in 'lib.c':
42//void *vid_get_bitmap_fb()        { return (void*)0x40685000; } // Found @0xff0515dc
43//void *vid_get_viewport_fb()      { return (void*)0x407dab80; } // Found @0xff3e0b3c
44//char *camera_jpeg_count_str()    { return (char*)0x000df0e8; } // Found @0xff28543c
45//long hook_raw_size()             { return 0x01247a60; }        // Found @0xff3e3940
46//int get_flash_params_count(void) { return 0x9f; }              // Found @0xff205db8
47
48// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
49//#define SD_READONLY_FLAG    0x00000002 // Found @0xff434b6c, levent 0x20a
50//#define SD_READONLY_IDX     1
51//#define USB_MASK            0x40000000 // Found @0xff434be4, levent 0x202
52//#define USB_IDX             2
53
54// Keymap values for kbd.c. Additional keys may be present, only common values included here.
55//static KeyMap keymap[] = {
56//    { 0, KEY_UP              ,0x00000400 }, // Found @0xff434aec, levent 0x04
57//    { 0, KEY_DOWN            ,0x00000800 }, // Found @0xff434af4, levent 0x05
58//    { 0, KEY_LEFT            ,0x00001000 }, // Found @0xff434afc, levent 0x06
59//    { 0, KEY_RIGHT           ,0x00002000 }, // Found @0xff434b04, levent 0x07
60//    { 0, KEY_SET             ,0x00004000 }, // Found @0xff434b0c, levent 0x08
61//    { 0, KEY_DISPLAY         ,0x00020000 }, // Found @0xff434b24, levent 0x0a
62//    { 0, KEY_MENU            ,0x00040000 }, // Found @0xff434b2c, levent 0x09
63//    { 2, KEY_SHOOT_FULL      ,0x0000c000 }, // Found @0xff434bac, levent 0x01
64//    { 2, KEY_SHOOT_FULL_ONLY ,0x00008000 }, // Found @0xff434bac, levent 0x01
65//    { 2, KEY_SHOOT_HALF      ,0x00004000 }, // Found @0xff434ba4, levent 0x00
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_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher
73//#define CAM_RAW_ROWPIX    4176 // Found @0xff18e050
74//#define CAM_RAW_ROWS      3060 // Found @0xff18e05c
75//#undef  CAM_UNCACHED_BIT
76//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff02bea8
77
78// Stubs below matched 100%.
79//    Name                                     Address                Comp to stubs_entry_2.S
80NSTUB(AllocateMemory                          ,0xff359768) //101
81//NSTUB(AllocateUncacheableMemory             ,0xff02be60) //112            == 0xff02be60
82NSTUB(Close                                   ,0xff0275e4) //101
83NSTUB(CreateTask                              ,0xff00eaf0) //101
84NSTUB(DebugAssert                             ,0xff00edc8) //111
85NSTUB(DeleteFile_Fut                          ,0xff026efc) //112
86NSTUB(DoAFLock                                ,0xff029330) //102
87NSTUB(EnterToCompensationEVF                  ,0xff029704) //104
88NSTUB(ExecuteEventProcedure                   ,0xff08d004) //  1
89NSTUB(ExitFromCompensationEVF                 ,0xff029748) //104
90NSTUB(ExitTask                                ,0xff00ed80) //101
91NSTUB(ExpCtrlTool_StartContiAE                ,0xff037bf0) //104
92NSTUB(ExpCtrlTool_StopContiAE                 ,0xff037cd0) //104
93NSTUB(Fclose_Fut                              ,0xff027078) //101
94NSTUB(Feof_Fut                                ,0xff027264) //  1
95NSTUB(Fflush_Fut                              ,0xff0272a0) //  1
96NSTUB(Fgets_Fut                               ,0xff0271cc) //  6
97NSTUB(Fopen_Fut                               ,0xff027038) //101
98NSTUB(Fread_Fut                               ,0xff027124) //101
99NSTUB(FreeMemory                              ,0xff359760) //101
100NSTUB(Fseek_Fut                               ,0xff027218) //101
101NSTUB(Fwrite_Fut                              ,0xff027178) //101
102NSTUB(GetBatteryTemperature                   ,0xff05bbe8) //102
103NSTUB(GetCCDTemperature                       ,0xff05bb74) //102
104NSTUB(GetCurrentAvValue                       ,0xff1bebc0) //102
105NSTUB(GetDrive_ClusterSize                    ,0xff06a60c) //  6
106NSTUB(GetDrive_FreeClusters                   ,0xff06a664) //  6
107NSTUB(GetDrive_TotalClusters                  ,0xff06a63c) //  6
108NSTUB(GetFocusLensSubjectDistance             ,0xff1bca7c) //102
109NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff1bcde8) //  3
110NSTUB(GetImageFolder                          ,0xff197660) //  6
111NSTUB(GetKbdState                             ,0xff057c04) //109
112NSTUB(GetMemInfo                              ,0xff00a2b8) //  3
113NSTUB(GetOpticalTemperature                   ,0xff05bc5c) //102
114NSTUB(GetParameterData                        ,0xff205d78) //101
115NSTUB(GetPropertyCase                         ,0xff0910a4) //102
116NSTUB(GetSystemTime                           ,0xff3597c0) //101
117NSTUB(GetZoomLensCurrentPoint                 ,0xff071ffc) //102
118NSTUB(GetZoomLensCurrentPosition              ,0xff1c4fb8) //102
119NSTUB(GiveSemaphore                           ,0xff02b5e0) //112
120NSTUB(IsStrobeChargeCompleted                 ,0xff0efe04) //102
121NSTUB(LEDDrive                                ,0xff056e58) //101
122NSTUB(LocalTime                               ,0xff08a9c8) //  6
123NSTUB(LockMainPower                           ,0xff0981b4) //103
124NSTUB(Lseek                                   ,0xff027800) //101
125NSTUB(MakeDirectory_Fut                       ,0xff026f70) //  6
126NSTUB(MakeSDCardBootable                      ,0xff06a89c) //  6
127NSTUB(MoveFocusLensToDistance                 ,0xff3dc670) //102
128NSTUB(MoveIrisWithAv                          ,0xff355078) //102
129NSTUB(MoveZoomLensWithPoint                   ,0xff3558d4) //102
130NSTUB(NewTaskShell                            ,0xff090a24) //101
131NSTUB(Open                                    ,0xff02751c) //101
132NSTUB(PB2Rec                                  ,0xff09b3ac) //104
133NSTUB(PT_MoveDigitalZoomToWide                ,0xff0790a8) //102
134NSTUB(PT_MoveOpticalZoomAt                    ,0xff079080) //102
135NSTUB(PT_PlaySound                            ,0xff085438) //  6
136NSTUB(PostLogicalEventForNotPowerType         ,0xff095b98) //103
137NSTUB(PostLogicalEventToUI                    ,0xff095be4) //103
138NSTUB(PutInNdFilter                           ,0xff3da154) //102
139NSTUB(PutOutNdFilter                          ,0xff3da18c) //102
140NSTUB(Read                                    ,0xff00ad74) //101
141NSTUB(ReadFastDir                             ,0xff3396d0) //  6
142NSTUB(Rec2PB                                  ,0xff099b1c) //104
143NSTUB(RefreshPhysicalScreen                   ,0xff0b1a24) //104
144NSTUB(Remove                                  ,0xff027758) //  6
145NSTUB(RenameFile_Fut                          ,0xff026e68) //  6
146//NSTUB(Restart                               ,0xff02d6a0) //106            == 0xff02d6a0
147NSTUB(ScreenLock                              ,0xff0b2c50) //  4
148NSTUB(ScreenUnlock                            ,0xff0b2cb4) //  3
149NSTUB(SetAE_ShutterSpeed                      ,0xff3dfcb4) //102
150NSTUB(SetAutoShutdownTime                     ,0xff098228) //103
151NSTUB(SetCurrentCaptureModeType               ,0xff0a1650) //101
152NSTUB(SetFileTimeStamp                        ,0xff027970) //  6
153NSTUB(SetLogicalEventActive                   ,0xff097ef0) //101
154NSTUB(SetParameterData                        ,0xff205c54) //101
155NSTUB(SetPropertyCase                         ,0xff090f1c) //102
156NSTUB(SetScriptMode                           ,0xff097f8c) //101
157NSTUB(SleepTask                               ,0xff02b88c) //101
158NSTUB(TakeSemaphore                           ,0xff02b510) //101
159NSTUB(TurnOffBackLight                        ,0xff0a96b0) //104
160NSTUB(TurnOnBackLight                         ,0xff0a9698) //104
161NSTUB(UIFS_WriteFirmInfoToFile                ,0xff1f15b8) //101
162NSTUB(UnlockAF                                ,0xff029368) //102
163NSTUB(UnlockMainPower                         ,0xff098108) //103
164NSTUB(VbattGet                                ,0xff022364) //101
165NSTUB(Write                                   ,0xff027638) //101
166NSTUB(WriteSDCard                             ,0xff1ab470) //108
167NSTUB(_pow                                    ,0xff4309f8) //114
168NSTUB(_sqrt                                   ,0xff43261c) //  6
169NSTUB(add_ptp_handler                         ,0xff2dfff4) //  6
170NSTUB(apex2us                                 ,0xff297c28) //  4
171NSTUB(close                                   ,0xff00abd0) //  6
172NSTUB(closedir                                ,0xff33952c) //  4
173NSTUB(err_init_task                           ,0xff00602c) //  4
174NSTUB(exmem_alloc                             ,0xff08b988) //101
175NSTUB(kbd_p1_f                                ,0xff024e28) //109
176//NSTUB(kbd_p1_f_cont                         ,0xff024e34) //109            == 0xff024e34
177NSTUB(kbd_p2_f                                ,0xff024600) //109
178NSTUB(kbd_read_keys                           ,0xff024dd8) //109
179NSTUB(kbd_read_keys_r2                        ,0xff05730c) //109
180NSTUB(lseek                                   ,0xff027800) //101
181//NSTUB(malloc                                ,0xff00420c) //112            == 0xff00420c
182NSTUB(memcmp                                  ,0xff010a48) //101
183NSTUB(memcpy                                  ,0xff03169c) //101
184NSTUB(memset                                  ,0xff295c60) //101
185NSTUB(mkdir                                   ,0xff027a80) //  6
186NSTUB(mktime_ext                              ,0xff0b3bc0) //  1
187NSTUB(open                                    ,0xff00ab20) //  6
188NSTUB(opendir                                 ,0xff33957c) //  6
189NSTUB(openfastdir                             ,0xff33957c) //  6
190NSTUB(qsort                                   ,0xff3ae9d4) //  6
191NSTUB(rand                                    ,0xff295d9c) //  6
192NSTUB(read                                    ,0xff00ad74) //101
193NSTUB(readfastdir                             ,0xff3396d0) //  6
194NSTUB(rename                                  ,0xff026e68) //  6
195NSTUB(set_control_event                       ,0xff097a94) //111
196NSTUB(srand                                   ,0xff295d90) //  6
197NSTUB(stat                                    ,0xff027848) //  3
198NSTUB(strcat                                  ,0xff0b3378) //  1
199NSTUB(strchr                                  ,0xff0040d8) //  1
200NSTUB(strcmp                                  ,0xff010a04) //101
201NSTUB(strcpy                                  ,0xff0109ec) //101
202NSTUB(strftime                                ,0xff0b35c0) //113
203NSTUB(strlen                                  ,0xff004124) //101
204NSTUB(strncmp                                 ,0xff00408c) //  1
205NSTUB(strncpy                                 ,0xff004050) //  1
206NSTUB(strrchr                                 ,0xff0040fc) //  1
207NSTUB(strtol                                  ,0xff03199c) //101
208NSTUB(strtolx                                 ,0xff0317a0) //109
209  DEF(task_CaptSeq                            ,0xff07c46c) //110
210  DEF(task_ExpDrv                             ,0xff0cc430) //110
211  DEF(task_InitFileModules                    ,0xff09bbb0) //110
212  DEF(task_MovieRecord                        ,0xff07854c) //110
213  DEF(task_PhySw                              ,0xff024964) //110
214  DEF(task_RotaryEncoder                      ,0xff057f64) //110
215NSTUB(time                                    ,0xff08afa4) //  6
216NSTUB(vsprintf                                ,0xff0109ac) //  6
217NSTUB(write                                   ,0xff027638) //101
Note: See TracBrowser for help on using the repository browser.