source: trunk/platform/g12/sub/100g/stubs_entry.S @ 1332

Revision 1332, 13.4 KB checked in by philmoz, 21 months ago (diff)

Add G12 firmware version 1.00g.
Fixes SVN props on other G12 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.00G
7// Canon PowerShot G12
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                           ,0xff865690) //  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 @ff89fdf0 -> ff89c600 -> ff9bd794 -> ffb1ee44 -> ffc896dc
16// No problems found with modemap table.
17
18// Values below go in 'stubs_min.S':
19//DEF(physw_status                            ,0x00034474) // Found @0xff8349f4,          stubs_min = 0x00034474 (0x34474)
20//DEF(physw_run                               ,0x00001c3c) // Found @0xff8345f0,          stubs_min = 0x00001c3c (0x1C30+0xC)
21//DEF(levent_table                            ,0xffc0c01c) // Found @0xffc0c01c,          stubs_min = 0xffc0c01c (0xffc0c01c)
22//DEF(FlashParamsTable                        ,0xffc898ec) // Found @0xffc898ec,          stubs_min = 0xffc898ec (0xffc898ec)
23//DEF(movie_status                            ,0x000072d4) // Found @0xff986d88,          stubs_min = 0x000072d4 (0x7290+0x44)
24//DEF(full_screen_refresh                     ,0x0000a5dc) // Found @0xffa53cb4,          stubs_min = 0x0000a5dc (0xA5DC)
25//DEF(canon_menu_active                       ,0x00003214) // Found @0xff896098,          stubs_min = 0x00003214 (0x3210+4)
26//DEF(canon_shoot_menu_active                 ,0x00008afd) // Found @0xff9dc738,          stubs_min = 0x00008afd (0x8AFC+1)
27//DEF(playrec_mode                            ,0x00002f38) // Found @0xff8880f0,          stubs_min = 0x00002f38 (0x2F34+0x4)
28//DEF(zoom_status                             ,0x0000e590) // Found @0xffb2290c,          stubs_min = 0x0000e590 (0xE590)
29//DEF(some_flag_for_af_scan                   ,0x000076b4) // Found @0xff98a814,          stubs_min = 0x000076b4 (0x76B4)
30
31// Values below go in 'lib.c':
32//void *vid_get_bitmap_fb()        { return (void*)0x40471000; } // Found @0xff85ea60
33//void *vid_get_viewport_fb()      { return (void*)0x40587700; } // Found @0xffb75704
34//char *camera_jpeg_count_str()    { return (char*)0x000bb618; } // Found @0xffa43614
35//long hook_raw_size()             { return 0x00ee9200; }        // Found @0xffb78bc4
36//int get_flash_params_count(void) { return 0x9a; }              // Found @0xff9bed2c
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 @0xffbb95d4, levent 0x90a
40//#define SD_READONLY_IDX     2
41//#define USB_FLAG            0x04000000 // Found @0xffbb9604, 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_ZOOM_IN     ,0x00000020 }, // Found @0xffbb94dc, levent 0x02
47//    { 0, KEY_ZOOM_OUT    ,0x00000800 }, // Found @0xffbb950c, levent 0x03
48//    { 0, KEY_LEFT        ,0x00001000 }, // Found @0xffbb9514, levent 0x06
49//    { 0, KEY_SET         ,0x00002000 }, // Found @0xffbb951c, levent 0x08
50//    { 0, KEY_RIGHT       ,0x00004000 }, // Found @0xffbb9524, levent 0x07
51//    { 0, KEY_DOWN        ,0x00008000 }, // Found @0xffbb952c, levent 0x05
52//    { 0, KEY_UP          ,0x00010000 }, // Found @0xffbb9534, levent 0x04
53//    { 0, KEY_DISPLAY     ,0x00100000 }, // Found @0xffbb954c, levent 0x0a
54//    { 0, KEY_MENU        ,0x00200000 }, // Found @0xffbb9554, levent 0x09
55//    { 2, KEY_SHOOT_HALF  ,0x00000001 }, // Found @0xffbb95a4, levent 0x00
56//    { 2, KEY_SHOOT_FULL  ,0x00000003 }, // Found @0xffbb95ac, levent 0x01
57//    { 0, 0, 0 }
58//};
59
60// Values below go in 'platform_camera.h':
61//#define CAM_DRYOS         1
62//#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
63//#define CAM_RAW_ROWPIX    3744 // Found @0xff9579d0
64//#define CAM_RAW_ROWS      2784 // Found @0xff9579d8
65//#undef  CAM_UNCACHED_BIT
66//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff83af74
67
68// Stubs below matched 100%.
69//    Name                                     Address                Comp to stubs_entry_2.S
70NSTUB(AllocateMemory                          ,0xffb08e9c) //101
71NSTUB(AllocateUncacheableMemory               ,0xff83af30) //112
72NSTUB(Close                                   ,0xff8370e0) //101
73NSTUB(CreateTask                              ,0xff81e8a0) //101
74NSTUB(DebugAssert                             ,0xff81eb78) //111
75NSTUB(DeleteFile_Fut                          ,0xff836a58) //112
76NSTUB(DoAFLock                                ,0xff838940) //102
77NSTUB(EnterToCompensationEVF                  ,0xff838d24) //104
78NSTUB(ExecuteEventProcedure                   ,0xff8917a4) //  1
79NSTUB(ExitFromCompensationEVF                 ,0xff838d68) //104
80NSTUB(ExitTask                                ,0xff81eb30) //101
81NSTUB(ExpCtrlTool_StartContiAE                ,0xff847454) //104
82NSTUB(ExpCtrlTool_StopContiAE                 ,0xff8475ec) //104
83NSTUB(Fclose_Fut                              ,0xff836bd4) //101
84NSTUB(Feof_Fut                                ,0xff836dc0) //  1
85NSTUB(Fflush_Fut                              ,0xff836dfc) //  1
86NSTUB(Fgets_Fut                               ,0xff836d28) //  1
87NSTUB(Fopen_Fut                               ,0xff836b94) //101
88NSTUB(Fread_Fut                               ,0xff836c80) //101
89NSTUB(FreeMemory                              ,0xffb08e94) //101
90NSTUB(FreeUncacheableMemory                   ,0xff83af70) //112
91NSTUB(Fseek_Fut                               ,0xff836d74) //101
92NSTUB(Fwrite_Fut                              ,0xff836cd4) //101
93NSTUB(GetBatteryTemperature                   ,0xff868f80) //102
94NSTUB(GetCCDTemperature                       ,0xff868f0c) //102
95NSTUB(GetCurrentAvValue                       ,0xff97fcb8) //102
96NSTUB(GetDrive_ClusterSize                    ,0xff876948) //  4
97NSTUB(GetDrive_FreeClusters                   ,0xff8769a8) //  4
98NSTUB(GetDrive_TotalClusters                  ,0xff87697c) //  3
99NSTUB(GetFocusLensSubjectDistance             ,0xff97e348) //102
100NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff97e794) //  3
101NSTUB(GetImageFolder                          ,0xff95f2fc) //106
102NSTUB(GetKbdState                             ,0xff865678) //109
103NSTUB(GetMemInfo                              ,0xff81a264) //  3
104NSTUB(GetOpticalTemperature                   ,0xff868ff4) //102
105NSTUB(GetParameterData                        ,0xff9becf0) //101
106NSTUB(GetPropertyCase                         ,0xff8954f0) //102
107NSTUB(GetSystemTime                           ,0xffb08ef4) //101
108NSTUB(GetZoomLensCurrentPoint                 ,0xff9819e0) //102
109NSTUB(GetZoomLensCurrentPosition              ,0xffaf6880) //102
110NSTUB(GiveSemaphore                           ,0xff83a94c) //112
111NSTUB(IsStrobeChargeCompleted                 ,0xff8ea5f0) //102
112NSTUB(LEDDrive                                ,0xff8647ec) //103
113NSTUB(LocalTime                               ,0xff88f08c) //  1
114NSTUB(LockMainPower                           ,0xff89c204) //103
115NSTUB(Lseek                                   ,0xff8371fc) //101
116NSTUB(MakeDirectory_Fut                       ,0xff836acc) //  1
117NSTUB(MoveFocusLensToDistance                 ,0xffb72134) //102
118NSTUB(MoveIrisWithAv                          ,0xffb04a34) //102
119NSTUB(MoveZoomLensWithPoint                   ,0xffb051c4) //102
120NSTUB(NewTaskShell                            ,0xff894f0c) //103
121NSTUB(Open                                    ,0xff837074) //101
122NSTUB(PB2Rec                                  ,0xff89f18c) //104
123NSTUB(PT_MoveDigitalZoomToWide                ,0xff87f5c0) //102
124NSTUB(PT_MoveOpticalZoomAt                    ,0xff87f598) //102
125NSTUB(PT_PlaySound                            ,0xff88a140) //  4
126NSTUB(PostLogicalEventForNotPowerType         ,0xff899b70) //103
127NSTUB(PostLogicalEventToUI                    ,0xff899bbc) //103
128NSTUB(PutInNdFilter                           ,0xffb05028) //102
129NSTUB(PutOutNdFilter                          ,0xffb0504c) //102
130NSTUB(Read                                    ,0xff81ad74) //101
131NSTUB(ReadFastDir                             ,0xffae2c20) //  4
132NSTUB(Rec2PB                                  ,0xff89f1cc) //104
133NSTUB(RefreshPhysicalScreen                   ,0xff8b3a68) //104
134NSTUB(Remove                                  ,0xff837114) //  4
135NSTUB(RenameFile_Fut                          ,0xff8369c4) //  4
136NSTUB(Restart                                 ,0xff83c71c) //106
137NSTUB(ScreenLock                              ,0xff8b4c98) //  4
138NSTUB(ScreenUnlock                            ,0xff8b4cfc) //  3
139NSTUB(SetAE_ShutterSpeed                      ,0xffb7487c) //102
140NSTUB(SetAutoShutdownTime                     ,0xff89c278) //103
141NSTUB(SetCurrentCaptureModeType               ,0xff8a4d44) //101
142NSTUB(SetFileTimeStamp                        ,0xff83737c) //  4
143NSTUB(SetLogicalEventActive                   ,0xff89bf40) //101
144NSTUB(SetParameterData                        ,0xff9bebc8) //101
145NSTUB(SetPropertyCase                         ,0xff8953c8) //102
146NSTUB(SetScriptMode                           ,0xff89bf90) //101
147NSTUB(SleepTask                               ,0xff83abb4) //101
148NSTUB(TakeSemaphore                           ,0xff83a87c) //101
149NSTUB(TurnOffBackLight                        ,0xff8abd94) //104
150NSTUB(TurnOnBackLight                         ,0xff8abd7c) //104
151NSTUB(UIFS_WriteFirmInfoToFile                ,0xff9a9e9c) //101
152NSTUB(UnlockAF                                ,0xff838978) //102
153NSTUB(UnlockMainPower                         ,0xff89c158) //103
154NSTUB(UnsetZoomForMovie                       ,0xff9c57dc) //104
155NSTUB(UpdateMBROnFlash                        ,0xff8767c8) //  3
156NSTUB(VbattGet                                ,0xff833180) //103
157NSTUB(Write                                   ,0xff837170) //101
158NSTUB(WriteSDCard                             ,0xff96e820) //108
159NSTUB(_log                                    ,0xffbb4ddc) //111
160NSTUB(_log10                                  ,0xffbb3a68) //112
161NSTUB(_pow                                    ,0xffbb3bd8) //114
162NSTUB(_sqrt                                   ,0xffbb69e4) //  1
163NSTUB(add_ptp_handler                         ,0xffa9d218) //  3
164NSTUB(apex2us                                 ,0xffa5c248) //  4
165NSTUB(close                                   ,0xff81ab8c) //  1
166NSTUB(closedir                                ,0xffae2a7c) //  4
167NSTUB(err_init_task                           ,0xff815fd4) //  4
168NSTUB(exmem_alloc                             ,0xff88ffd8) //103
169NSTUB(free                                    ,0xff814244) //112
170NSTUB(kbd_p1_f                                ,0xff834a6c) //109
171NSTUB(kbd_p1_f_cont                           ,0xff834a78) //109
172NSTUB(kbd_p2_f                                ,0xff8342bc) //109
173NSTUB(kbd_read_keys                           ,0xff8349f4) //109
174NSTUB(kbd_read_keys_r2                        ,0xff864d8c) //109
175NSTUB(lseek                                   ,0xff8371fc) //101
176NSTUB(malloc                                  ,0xff8141e8) //112
177NSTUB(memcmp                                  ,0xff8206d8) //101
178NSTUB(memcpy                                  ,0xff840674) //101
179NSTUB(memset                                  ,0xffa5b230) //101
180NSTUB(mkdir                                   ,0xff83757c) //  4
181NSTUB(mktime_ext                              ,0xff8b5b6c) //  1
182NSTUB(open                                    ,0xff81aadc) //  1
183NSTUB(opendir                                 ,0xffae2acc) //  4
184NSTUB(openfastdir                             ,0xffae2acc) //  4
185NSTUB(qsort                                   ,0xffb5fbc8) //  4
186NSTUB(rand                                    ,0xffa5b370) //  4
187NSTUB(read                                    ,0xff81ad74) //101
188NSTUB(readfastdir                             ,0xffae2c20) //  4
189NSTUB(reboot_fw_update                        ,0xffae8040) //  4
190NSTUB(rename                                  ,0xff8369c4) //  4
191NSTUB(set_control_event                       ,0xff89bb30) //111
192NSTUB(srand                                   ,0xffa5b364) //  4
193NSTUB(stat                                    ,0xff837244) //  3
194NSTUB(strcat                                  ,0xff8b5328) //  1
195NSTUB(strchr                                  ,0xff8140b4) //  1
196NSTUB(strcmp                                  ,0xff820694) //101
197NSTUB(strcpy                                  ,0xff82067c) //101
198NSTUB(strftime                                ,0xff8b5574) //113
199NSTUB(strlen                                  ,0xff814100) //101
200NSTUB(strncmp                                 ,0xff814068) //  1
201NSTUB(strncpy                                 ,0xff81402c) //  1
202NSTUB(strrchr                                 ,0xff8140d8) //  1
203NSTUB(strtol                                  ,0xff840954) //101
204NSTUB(strtolx                                 ,0xff840758) //109
205  DEF(task_CaptSeq                            ,0xff88261c) //107
206  DEF(task_ExpDrv                             ,0xff8cc0d0) //110
207  DEF(task_InitFileModules                    ,0xff89fc7c) //107
208  DEF(task_MovieRecord                        ,0xff987094) //107
209  DEF(task_PhySw                              ,0xff8345ec) //107
210  DEF(task_RotaryEncoder                      ,0xff8657ec) //107
211NSTUB(time                                    ,0xff88f66c) //  2
212NSTUB(vsprintf                                ,0xff820640) //  4
213NSTUB(write                                   ,0xff837170) //101
Note: See TracBrowser for help on using the repository browser.