source: trunk/platform/sx30/sub/100e/stubs_entry.S @ 1292

Revision 1292, 13.2 KB checked in by philmoz, 22 months ago (diff)

Update for G12 & SX30:

  • Added key definitions for the G12 front dial (keyboard.h)
  • Enabled the front dial to adjust values in menus (gui_menu.c)
  • Fixed rear dial on SX30 working backwards in CHDK menus
  • Cleanup stubs_entry_2.S files (for new signature finding system)
  • Cleanup in camera kbd.c files
  • 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.00E
7// Canon PowerShot SX30 IS
8
9// Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S'
10//    Name                                     Address      Rule  %  Comp to stubs_entry_2.S
11//NSTUB(kbd_pwr_off                           ,0xff865b9c) //  2 60%    *** != 0xff810b1c
12// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0xff810b1c
13
14// Check of modemap from 'platform/CAMERA/shooting.c':
15// Firmware modemap table found @ff8a3cc0 -> ff8a068c -> ff9c1084 -> ffb00c50 -> ffc67898
16// No problems found with modemap table.
17
18// Values below go in 'stubs_min.S':
19//DEF(physw_status                            ,0x00034594) // Found @0xff8349f0,          stubs_min = 0x00034594 (0x34594)
20//DEF(physw_run                               ,0x00001c3c) // Found @0xff8345ec,          stubs_min = 0x00001c3c (0x1C30+0xC)
21//DEF(levent_table                            ,0xffc0e7d0) // Found @0xffc0e7d0,          stubs_min = 0xffc0e7d0 (0xFFC0E7D0)
22//DEF(FlashParamsTable                        ,0xffc67a9c) // Found @0xffc67a9c,          stubs_min = 0xffc67a9c (0xFFC67A9C)
23//DEF(movie_status                            ,0x00003524) // Found @0xff882fc8,          stubs_min = 0x00003524 (0x34E0+0x44)
24//DEF(full_screen_refresh                     ,0x0000b198) // Found @0xffa4689c,          stubs_min = 0x0000b198 (0xB198)
25//DEF(canon_menu_active                       ,0x00003a2c) // Found @0xff89a56c,          stubs_min = 0x00003a2c (0x3A28+4)
26//DEF(canon_shoot_menu_active                 ,0x00009901) // Found @0xff9de8f0,          stubs_min = 0x00009901 (0x9900+1)
27//DEF(playrec_mode                            ,0x00003758) // Found @0xff88c70c,          stubs_min = 0x00003758 (0x3754+0x4)
28//DEF(zoom_status                             ,0x0000e7c4) // Found @0xffb046d4,          stubs_min = 0x0000e7c4 (0xE7C4)
29//DEF(some_flag_for_af_scan                   ,0x000085cc) // Found @0xff990fec
30
31// Values below go in 'lib.c':
32//void *vid_get_bitmap_fb()        { return (void*)0x40471000; } // Found @0xff85ed30
33//void *vid_get_viewport_fb()      { return (void*)0x40587700; } // Found @0xffb56a24
34//char *camera_jpeg_count_str()    { return (char*)0x000cf2fc; } // Found @0xffa3ba80
35//long hook_raw_size()             { return 0x014eb7e0; }        // Found @0xffb59ee4
36//int get_flash_params_count(void) { return 0x9a; }              // Found @0xff9c261c
37
38// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
39//#define SD_READONLY_FLAG    0x00020000 // Found @0xffb97960, levent 0x90a
40//#define SD_READONLY_IDX     2
41//#define USB_FLAG            0x04000000 // Found @0xffb97990, levent 0x902
42//#define USB_IDX             2
43
44// Keymap values for kbd.c. Additional keys may be present, only common values included here.
45//static KeyMap keymap[] = {
46//    { 0, KEY_UP          ,0x00000400 }, // Found @0xffb97898, levent 0x04
47//    { 0, KEY_DOWN        ,0x00000800 }, // Found @0xffb978a0, levent 0x05
48//    { 0, KEY_LEFT        ,0x00001000 }, // Found @0xffb978a8, levent 0x06
49//    { 0, KEY_RIGHT       ,0x00002000 }, // Found @0xffb978b0, levent 0x07
50//    { 0, KEY_SET         ,0x00004000 }, // Found @0xffb978b8, levent 0x08
51//    { 0, KEY_DISPLAY     ,0x00020000 }, // Found @0xffb978d0, levent 0x0a
52//    { 0, KEY_MENU        ,0x00040000 }, // Found @0xffb978d8, levent 0x09
53//    { 2, KEY_SHOOT_HALF  ,0x00000100 }, // Found @0xffb97930, levent 0x00
54//    { 2, KEY_SHOOT_FULL  ,0x00000300 }, // Found @0xffb97938, levent 0x01
55//    { 0, 0, 0 }
56//};
57
58// Values below go in 'platform_camera.h':
59//#define CAM_DRYOS         1
60//#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
61//#define CAM_RAW_ROWPIX    4464 // Found @0xff957834
62//#define CAM_RAW_ROWS      3276 // Found @0xff957840
63//#undef  CAM_UNCACHED_BIT
64//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff83afdc
65
66// Stubs below matched 100%.
67//    Name                                     Address                Comp to stubs_entry_2.S
68NSTUB(AllocateMemory                          ,0xffaedf4c) //101
69NSTUB(AllocateUncacheableMemory               ,0xff83af98) //112
70NSTUB(Close                                   ,0xff8370dc) //101
71NSTUB(CreateTask                              ,0xff81e8a0) //101
72NSTUB(DebugAssert                             ,0xff81eb78) //111
73NSTUB(DeleteFile_Fut                          ,0xff836a54) //112
74NSTUB(DoAFLock                                ,0xff838ab8) //102
75NSTUB(EnterToCompensationEVF                  ,0xff838d44) //104
76NSTUB(ExecuteEventProcedure                   ,0xff895cc0) //  1
77NSTUB(ExitFromCompensationEVF                 ,0xff838d88) //104
78NSTUB(ExitTask                                ,0xff81eb30) //101
79NSTUB(ExpCtrlTool_StartContiAE                ,0xff8474fc) //104
80NSTUB(ExpCtrlTool_StopContiAE                 ,0xff847688) //104
81NSTUB(Fclose_Fut                              ,0xff836bd0) //101
82NSTUB(Feof_Fut                                ,0xff836dbc) //  1
83NSTUB(Fflush_Fut                              ,0xff836df8) //  1
84NSTUB(Fgets_Fut                               ,0xff836d24) //  1
85NSTUB(Fopen_Fut                               ,0xff836b90) //101
86NSTUB(Fread_Fut                               ,0xff836c7c) //101
87NSTUB(FreeMemory                              ,0xffaedf44) //101
88NSTUB(FreeUncacheableMemory                   ,0xff83afd8) //112
89NSTUB(Fseek_Fut                               ,0xff836d70) //101
90NSTUB(Fwrite_Fut                              ,0xff836cd0) //101
91NSTUB(GetBatteryTemperature                   ,0xff8697ac) //102
92NSTUB(GetCCDTemperature                       ,0xff869738) //102
93NSTUB(GetCurrentAvValue                       ,0xff980648) //102
94NSTUB(GetDrive_ClusterSize                    ,0xff87724c) //  4
95NSTUB(GetDrive_FreeClusters                   ,0xff8772ac) //  4
96NSTUB(GetDrive_TotalClusters                  ,0xff877280) //  3
97NSTUB(GetFocusLensSubjectDistance             ,0xff97ea48) //102
98NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff97eec0) //  3
99NSTUB(GetImageFolder                          ,0xff95f0b8) //106
100NSTUB(GetKbdState                             ,0xff865a28) //109
101NSTUB(GetMemInfo                              ,0xff81a264) //  3
102NSTUB(GetOpticalTemperature                   ,0xff869820) //102
103NSTUB(GetParameterData                        ,0xff9c25e0) //101
104NSTUB(GetPropertyCase                         ,0xff8999c8) //102
105NSTUB(GetSystemTime                           ,0xffaedfa4) //101
106NSTUB(GetZoomLensCurrentPoint                 ,0xff87e9c4) //102
107NSTUB(GetZoomLensCurrentPosition              ,0xff986474) //102
108NSTUB(GiveSemaphore                           ,0xff83a9b4) //112
109NSTUB(IsStrobeChargeCompleted                 ,0xff8ec168) //102
110NSTUB(LEDDrive                                ,0xff864bd4) //103
111NSTUB(LocalTime                               ,0xff8935a8) //  1
112NSTUB(LockMainPower                           ,0xff8a0290) //103
113NSTUB(Lseek                                   ,0xff8371f8) //101
114NSTUB(MakeDirectory_Fut                       ,0xff836ac8) //  1
115NSTUB(MoveFocusLensToDistance                 ,0xffb52d54) //102
116NSTUB(MoveIrisWithAv                          ,0xffae8d58) //102
117NSTUB(MoveZoomLensWithPoint                   ,0xffae9450) //102
118NSTUB(NewTaskShell                            ,0xff8993e4) //103
119NSTUB(Open                                    ,0xff837070) //101
120NSTUB(PB2Rec                                  ,0xff8a30f8) //104
121NSTUB(PT_MoveDigitalZoomToWide                ,0xff883c2c) //102
122NSTUB(PT_MoveOpticalZoomAt                    ,0xff883c04) //102
123NSTUB(PT_PlaySound                            ,0xff88e65c) //  4
124NSTUB(PostLogicalEventForNotPowerType         ,0xff89e028) //103
125NSTUB(PostLogicalEventToUI                    ,0xff89e074) //103
126NSTUB(PutInNdFilter                           ,0xffb509c8) //102
127NSTUB(PutOutNdFilter                          ,0xffb50a00) //102
128NSTUB(Read                                    ,0xff81ad74) //101
129NSTUB(ReadFastDir                             ,0xffacddc8) //  4
130NSTUB(Rec2PB                                  ,0xff8a1b3c) //104
131NSTUB(RefreshPhysicalScreen                   ,0xff8b8110) //104
132NSTUB(Remove                                  ,0xff837110) //  4
133NSTUB(RenameFile_Fut                          ,0xff8369c0) //  4
134NSTUB(Restart                                 ,0xff83c788) //106
135NSTUB(ScreenLock                              ,0xff8b9340) //  4
136NSTUB(ScreenUnlock                            ,0xff8b93a4) //  3
137NSTUB(SetAE_ShutterSpeed                      ,0xffb55b9c) //102
138NSTUB(SetAutoShutdownTime                     ,0xff8a0304) //103
139NSTUB(SetCurrentCaptureModeType               ,0xff8a9228) //101
140NSTUB(SetFileTimeStamp                        ,0xff837378) //  4
141NSTUB(SetLogicalEventActive                   ,0xff89ffcc) //101
142NSTUB(SetParameterData                        ,0xff9c24b8) //101
143NSTUB(SetPropertyCase                         ,0xff8998a0) //102
144NSTUB(SetScriptMode                           ,0xff8a001c) //101
145NSTUB(SleepTask                               ,0xff83ac1c) //101
146NSTUB(TakeSemaphore                           ,0xff83a8e4) //101
147NSTUB(TurnOffBackLight                        ,0xff8b0598) //104
148NSTUB(TurnOnBackLight                         ,0xff8b0580) //104
149NSTUB(UIFS_WriteFirmInfoToFile                ,0xff9aec84) //101
150NSTUB(UnlockAF                                ,0xff838af0) //102
151NSTUB(UnlockMainPower                         ,0xff8a01e4) //103
152NSTUB(UpdateMBROnFlash                        ,0xff8770cc) //  3
153NSTUB(VbattGet                                ,0xff833178) //103
154NSTUB(Write                                   ,0xff83716c) //101
155NSTUB(WriteSDCard                             ,0xff96da7c) //108
156NSTUB(_log                                    ,0xffb93a4c) //111
157NSTUB(_log10                                  ,0xffb92990) //112
158NSTUB(_pow                                    ,0xffb92b00) //114
159NSTUB(_sqrt                                   ,0xffb94e18) //  1
160NSTUB(add_ptp_handler                         ,0xffa8e97c) //  3
161NSTUB(apex2us                                 ,0xffa4e78c) //  4
162NSTUB(close                                   ,0xff81ab8c) //  1
163NSTUB(closedir                                ,0xffacdc24) //  4
164NSTUB(err_init_task                           ,0xff815fd4) //  4
165NSTUB(exmem_alloc                             ,0xff8944f4) //103
166NSTUB(free                                    ,0xff814244) //112
167NSTUB(kbd_p1_f                                ,0xff834a68) //109
168NSTUB(kbd_p1_f_cont                           ,0xff834a74) //109
169NSTUB(kbd_p2_f                                ,0xff8342b8) //109
170NSTUB(kbd_read_keys                           ,0xff8349f0) //109
171NSTUB(kbd_read_keys_r2                        ,0xff8651a4) //109
172NSTUB(lseek                                   ,0xff8371f8) //101
173NSTUB(malloc                                  ,0xff8141e8) //112
174NSTUB(memcmp                                  ,0xff8206d0) //101
175NSTUB(memcpy                                  ,0xff840750) //101
176NSTUB(memset                                  ,0xffa4d788) //101
177NSTUB(mkdir                                   ,0xff837578) //  4
178NSTUB(mktime_ext                              ,0xff8ba260) //  1
179NSTUB(open                                    ,0xff81aadc) //  1
180NSTUB(opendir                                 ,0xffacdc74) //  4
181NSTUB(openfastdir                             ,0xffacdc74) //  4
182NSTUB(qsort                                   ,0xffb405a0) //  4
183NSTUB(rand                                    ,0xffa4d8c8) //  4
184NSTUB(read                                    ,0xff81ad74) //101
185NSTUB(readfastdir                             ,0xffacddc8) //  4
186NSTUB(reboot_fw_update                        ,0xffad31e8) //  4
187NSTUB(rename                                  ,0xff8369c0) //  4
188NSTUB(set_control_event                       ,0xff89fbbc) //111
189NSTUB(srand                                   ,0xffa4d8bc) //  4
190NSTUB(stat                                    ,0xff837240) //  3
191NSTUB(strcat                                  ,0xff8b9a1c) //  1
192NSTUB(strchr                                  ,0xff8140b4) //  1
193NSTUB(strcmp                                  ,0xff82068c) //101
194NSTUB(strcpy                                  ,0xff820674) //101
195NSTUB(strftime                                ,0xff8b9c68) //113
196NSTUB(strlen                                  ,0xff814100) //101
197NSTUB(strncmp                                 ,0xff814068) //  1
198NSTUB(strncpy                                 ,0xff81402c) //  1
199NSTUB(strrchr                                 ,0xff8140d8) //  1
200NSTUB(strtol                                  ,0xff840a30) //101
201NSTUB(strtolx                                 ,0xff840834) //109
202  DEF(task_CaptSeq                            ,0xff8868c0) //107
203  DEF(task_ExpDrv                             ,0xff8d0818) //110
204  DEF(task_InitFileModules                    ,0xff8a3b4c) //107
205  DEF(task_MovieRecord                        ,0xff883348) //107
206  DEF(task_PhySw                              ,0xff8345e8) //107
207  DEF(task_RotaryEncoder                      ,0xff865d08) //107
208NSTUB(time                                    ,0xff893b88) //  2
209NSTUB(vsprintf                                ,0xff820638) //  4
210NSTUB(write                                   ,0xff83716c) //101
Note: See TracBrowser for help on using the repository browser.