source: trunk/platform/a3000/sub/100b/stubs_entry.S @ 1372

Revision 1372, 14.3 KB checked in by philmoz, 19 months ago (diff)

A3000 port from ERR99 - http://chdk.setepontos.com/index.php?topic=650.msg74533#msg74533
Firmware versions 1.00b, 1.00c and 1.00d.

  • 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 R43 (DRYOS version 2.3, release #0043)
6// Firmware Ver GM1.00B
7// Canon PowerShot A3000 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(DoAFLock                              ,0xffc27744) //102        *** != 0xffc59f28
12//NSTUB(GetDrive_FreeClusters                 ,0xffc239b8) //  3        *** != 0xffc524a0
13// ALT: NSTUB(GetDrive_FreeClusters, 0xffc524a0) // 4 9/0
14//NSTUB(LEDDrive                              ,0xffc43a04) //103        *** != 0xffc43acc
15//NSTUB(ScreenLock                            ,0xffd86cec) //  3        *** != 0xffd86ef4
16//NSTUB(ScreenUnlock                          ,0xffd86d30) //  7        *** != 0xffd85ba4
17//NSTUB(SetScriptMode                         ,0xffc6fce8) //101        *** != 0xffc00f70
18//NSTUB(UnlockAF                              ,0xffc2777c) //102        *** != 0xffc59f38
19//NSTUB(kbd_pwr_off                           ,0xffc445a0) //  2 64%    *** != 0xffc43e0c
20NSTUB(kbd_pwr_on                              ,0xffc44560) //  2 82%
21//NSTUB(rename                                ,0xffc25b9c) //  4        *** != 0xffc26394
22
23// Check of modemap from 'platform/CAMERA/shooting.c':
24// Firmware modemap table found @ffc737e8 -> ffc70318 -> ffd35be4 -> ffe16178 -> ffeddac4
25// Mode  2609 in firmware but not in current modemap
26
27// Values below go in 'stubs_min.S':
28//DEF(physw_status                            ,0x0002eed4) // Found @0xffc23cd4,          stubs_min = 0x0002eed4 (0x2EED4)
29//DEF(physw_run                               ,0x00001bf0) // Found @0xffc23938,          stubs_min = 0x00001bf0 (0x1BE4+0x0C)
30//DEF(levent_table                            ,0xffeafd60) // Found @0xffeafd60,          stubs_min = 0xffeafd60 (0xFFEAFD60)
31//DEF(FlashParamsTable                        ,0xffeddcbc) // Found @0xffeddcbc,          stubs_min = 0xffeddcbc (0xFFEDDCBC)
32//DEF(movie_status                            ,0x000056f8) // Found @0xffd135c8,          stubs_min = 0x000056f8 (0x56C0+0x38)
33//DEF(full_screen_refresh                     ,0x000076cc) // Found @0xffd8515c,          stubs_min = 0x000076cc (0x76CC)
34//DEF(canon_menu_active                       ,0x00002b7c) // Found @0xffc6d1bc,          stubs_min = 0x00002b7c (0x2B78+4)
35//DEF(canon_shoot_menu_active                 ,0x000068b1) // Found @0xffd481ac,          stubs_min = 0x000068b1 (0x68B0+1)
36//DEF(playrec_mode                            ,0x000028d8) // Found @0xffc608e8,          stubs_min = 0x000028d8 (0x28D4+0x4)
37//DEF(zoom_status                             ,0x00009cd8) // Found @0xffe184b8,          stubs_min = 0x00009cd8 (0x9CD8)
38//DEF(some_flag_for_af_scan                   ,0x00005aa0) // Found @0xffd15f54,          stubs_min = 0x00005aa0 (0x5AA0)
39
40// Values below go in 'lib.c':
41//void *vid_get_bitmap_fb()        { return (void*)0x10361000; } // Found @0xffc3fc80
42//void *vid_get_viewport_fb()      { return (void*)0x10650100; } // Found @0xffe626a8
43//char *camera_jpeg_count_str()    { return (char*)0x00075120; } // Found @0xffd7bce0
44//long hook_raw_size()             { return 0x00ec04f0; }        // Found @0xffe65a38
45//int get_flash_params_count(void) { return 0x94; }              // Found @0xffd36ca0
46
47// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
48//#define SD_READONLY_FLAG    0x00020000 // Found @0xffe916bc, levent 0x90a
49//#define SD_READONLY_IDX     2
50//#define USB_FLAG            0x00040000 // Found @0xffe916c8, levent 0x902
51//#define USB_IDX             2
52
53// Keymap values for kbd.c. Additional keys may be present, only common values included here.
54//static KeyMap keymap[] = {
55//    { 2, KEY_SHOOT_HALF  ,0x00000001 }, // Found @0xffe915f0, levent 0x00
56//    { 2, KEY_SHOOT_FULL  ,0x00000003 }, // Found @0xffe915fc, levent 0x01
57//    { 2, KEY_ZOOM_IN     ,0x00000004 }, // Found @0xffe91608, levent 0x02
58//    { 2, KEY_ZOOM_OUT    ,0x00000008 }, // Found @0xffe91614, levent 0x03
59//    { 2, KEY_UP          ,0x00000010 }, // Found @0xffe91620, levent 0x04
60//    { 2, KEY_DOWN        ,0x00000020 }, // Found @0xffe9162c, levent 0x05
61//    { 2, KEY_RIGHT       ,0x00000040 }, // Found @0xffe91638, levent 0x07
62//    { 2, KEY_LEFT        ,0x00000080 }, // Found @0xffe91644, levent 0x06
63//    { 2, KEY_SET         ,0x00000100 }, // Found @0xffe91650, levent 0x08
64//    { 2, KEY_MENU        ,0x00000200 }, // Found @0xffe9165c, levent 0x09
65//    { 2, KEY_DISPLAY     ,0x00000400 }, // Found @0xffe91668, levent 0x0a
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_RAW_ROWPIX    3720 // Found @0xffcee5ec
73//#undef  CAM_UNCACHED_BIT
74//#define CAM_UNCACHED_BIT  0x10000000 // Found @0xffc296f0
75
76// Stubs below matched 100%.
77//    Name                                     Address                Comp to stubs_entry_2.S
78NSTUB(AllocateMemory                          ,0xffe081b0) //101
79NSTUB(AllocateUncacheableMemory               ,0xffc296ac) //112
80NSTUB(Close                                   ,0xffc262b8) //101
81NSTUB(CreateTask                              ,0xffc0f110) //101
82NSTUB(DebugAssert                             ,0xffc0f5e8) //111
83NSTUB(DeleteFile_Fut                          ,0xffc25c30) //112
84//NSTUB(EnterToCompensationEVF                ,0xffc277f4) //104            == 0xffc277f4
85NSTUB(ExecuteEventProcedure                   ,0xffc68908) //  1
86//NSTUB(ExitFromCompensationEVF               ,0xffc27838) //104            == 0xffc27838
87NSTUB(ExitTask                                ,0xffc0f3a0) //101
88//NSTUB(ExpCtrlTool_StartContiAE              ,0xffc35110) //104            == 0xffc35110
89//NSTUB(ExpCtrlTool_StopContiAE               ,0xffc351e8) //104            == 0xffc351e8
90NSTUB(Fclose_Fut                              ,0xffc25dac) //101
91NSTUB(Feof_Fut                                ,0xffc25f98) //  1
92NSTUB(Fflush_Fut                              ,0xffc25fd4) //  1
93NSTUB(Fgets_Fut                               ,0xffc25f00) //  1
94NSTUB(Fopen_Fut                               ,0xffc25d6c) //101
95NSTUB(Fread_Fut                               ,0xffc25e58) //101
96NSTUB(FreeMemory                              ,0xffe081a8) //101
97NSTUB(FreeUncacheableMemory                   ,0xffc296ec) //112
98NSTUB(Fseek_Fut                               ,0xffc25f4c) //101
99NSTUB(Fwrite_Fut                              ,0xffc25eac) //101
100NSTUB(GetBatteryTemperature                   ,0xffc46680) //102
101NSTUB(GetCCDTemperature                       ,0xffc4660c) //102
102NSTUB(GetCurrentAvValue                       ,0xffd0c980) //102
103NSTUB(GetDrive_ClusterSize                    ,0xffc52440) //  4
104NSTUB(GetDrive_TotalClusters                  ,0xffc52474) //  3
105NSTUB(GetFocusLensSubjectDistance             ,0xffd0bc78) //102
106NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xffd0c0d0) //  3
107NSTUB(GetImageFolder                          ,0xffcf55a8) //106
108NSTUB(GetKbdState                             ,0xffc4452c) //109
109NSTUB(GetMemInfo                              ,0xffc0a760) //  3
110NSTUB(GetOpticalTemperature                   ,0xffc466f4) //102
111NSTUB(GetParameterData                        ,0xffd36c60) //101
112NSTUB(GetPropertyCase                         ,0xffc6c614) //102
113NSTUB(GetSystemTime                           ,0xffe08208) //101
114NSTUB(GetZoomLensCurrentPoint                 ,0xffd0fa4c) //102
115NSTUB(GetZoomLensCurrentPosition              ,0xffdff83c) //102
116NSTUB(GiveSemaphore                           ,0xffc0f06c) //112
117NSTUB(IsStrobeChargeCompleted                 ,0xffcaac20) //102
118NSTUB(LocalTime                               ,0xffc66618) //  1
119NSTUB(LockMainPower                           ,0xffc6ff20) //103
120//NSTUB(Lseek                                 ,0xffc263d4) //101            == 0xffc263d4
121NSTUB(MakeDirectory_Fut                       ,0xffc25ca4) //  1
122NSTUB(MoveFocusLensToDistance                 ,0xffe5f128) //102
123NSTUB(MoveIrisWithAv                          ,0xffe04ffc) //102
124NSTUB(MoveZoomLensWithPoint                   ,0xffe0558c) //102
125NSTUB(NewTaskShell                            ,0xffc6c020) //103
126NSTUB(Open                                    ,0xffc2624c) //101
127//NSTUB(PB2Rec                                ,0xffc72ce8) //104            == 0xffc72ce8
128NSTUB(PT_MoveDigitalZoomToWide                ,0xffc59ed8) //102
129NSTUB(PT_MoveOpticalZoomAt                    ,0xffc59eb0) //102
130//NSTUB(PT_PlaySound                          ,0xffc62498) //  7            == 0xffc62498
131NSTUB(PostLogicalEventForNotPowerType         ,0xffc6f750) //103
132NSTUB(PostLogicalEventToUI                    ,0xffc6f79c) //103
133//NSTUB(PutInNdFilter                         ,0xffe053f0) //102            == 0xffe053f0
134//NSTUB(PutOutNdFilter                        ,0xffe05414) //102            == 0xffe05414
135NSTUB(Read                                    ,0xffc0b270) //101
136//NSTUB(ReadFastDir                           ,0xffdf6364) //  4            == 0xffdf6364
137//NSTUB(Rec2PB                                ,0xffc72d28) //104            == 0xffc72d28
138//NSTUB(RefreshPhysicalScreen                 ,0xffd85b40) //104            == 0xffd85b40
139//NSTUB(Remove                                ,0xffc262ec) //  4            == 0xffc262ec
140//NSTUB(RenameFile_Fut                        ,0xffc25b9c) //  4            == 0xffc25b9c
141NSTUB(Restart                                 ,0xffc2ae90) //106
142NSTUB(SetAE_ShutterSpeed                      ,0xffe618b8) //102
143NSTUB(SetAutoShutdownTime                     ,0xffc6ff94) //103
144NSTUB(SetCurrentCaptureModeType               ,0xffc76624) //101
145//NSTUB(SetFileTimeStamp                      ,0xffc26554) //  4            == 0xffc26554
146NSTUB(SetLogicalEventActive                   ,0xffc6fc98) //101
147NSTUB(SetParameterData                        ,0xffd36bd0) //101
148NSTUB(SetPropertyCase                         ,0xffc6c4e4) //102
149NSTUB(SleepTask                               ,0xffc29530) //101
150NSTUB(TakeSemaphore                           ,0xffc0ef9c) //101
151//NSTUB(TurnOffBackLight                      ,0xffc7b3f0) //104            == 0xffc7b3f0
152//NSTUB(TurnOnBackLight                       ,0xffc7b3d8) //104            == 0xffc7b3d8
153//NSTUB(UIFS_WriteFirmInfoToFile              ,0xffd272e8) //103            == 0xffd272e8
154NSTUB(UnlockMainPower                         ,0xffc6fe74) //103
155//NSTUB(UnsetZoomForMovie                     ,0xffd3cba4) //104            == 0xffd3cba4
156NSTUB(UpdateMBROnFlash                        ,0xffc522c0) //  3
157NSTUB(VbattGet                                ,0xffc22cf0) //103
158NSTUB(Write                                   ,0xffc26348) //101
159NSTUB(WriteSDCard                             ,0xffd00c9c) //108
160NSTUB(_log                                    ,0xffe8ea34) //111
161NSTUB(_log10                                  ,0xffe8d978) //112
162NSTUB(_pow                                    ,0xffe8dae8) //114
163NSTUB(_sqrt                                   ,0xffe8fd9c) //  1
164//NSTUB(add_ptp_handler                       ,0xffdc8de4) //  3            == 0xffdc8de4
165//NSTUB(apex2us                               ,0xffd8803c) //  4            == 0xffd8803c
166NSTUB(close                                   ,0xffc0b088) //  1
167//NSTUB(closedir                              ,0xffdf61c0) //  4            == 0xffdf61c0
168NSTUB(err_init_task                           ,0xffc05f50) //  4
169NSTUB(exmem_alloc                             ,0xffc672b8) //103
170NSTUB(free                                    ,0xffc04160) //112
171NSTUB(kbd_p1_f                                ,0xffc23d54) //109
172NSTUB(kbd_p1_f_cont                           ,0xffc23d60) //109
173NSTUB(kbd_p2_f                                ,0xffc23604) //109
174NSTUB(kbd_read_keys                           ,0xffc23cd4) //109
175//NSTUB(kbd_read_keys_r2                      ,0xffc43eac) //109            == 0xffc43eac
176//NSTUB(lseek                                 ,0xffc263d4) //101            == 0xffc263d4
177NSTUB(malloc                                  ,0xffc04104) //112
178NSTUB(memcmp                                  ,0xffc11280) //101
179NSTUB(memcpy                                  ,0xffc2ec8c) //101
180NSTUB(memset                                  ,0xffd87074) //101
181NSTUB(mkdir                                   ,0xffc26754) //  4
182NSTUB(mktime_ext                              ,0xffc806ac) //  1
183NSTUB(open                                    ,0xffc0afd8) //  1
184NSTUB(opendir                                 ,0xffdf6210) //  4
185//NSTUB(openfastdir                           ,0xffdf6210) //  4            == 0xffdf6210
186//NSTUB(qsort                                 ,0xffe4719c) //  4            == 0xffe4719c
187NSTUB(rand                                    ,0xffc11388) //  1
188NSTUB(read                                    ,0xffc0b270) //101
189//NSTUB(readfastdir                           ,0xffdf6364) //  4            == 0xffdf6364
190//NSTUB(reboot_fw_update                      ,0xffdf7bd8) //  1            == 0xffdf7bd8
191//NSTUB(set_control_event                     ,0xffc6f9b8) //111            == 0xffc6f9b8
192NSTUB(srand                                   ,0xffc1137c) //  1
193NSTUB(stat                                    ,0xffc2641c) //  3
194//NSTUB(strcat                                ,0xffc7fe68) //  1            == 0xffc7fe68
195NSTUB(strchr                                  ,0xffc03fe8) //  1
196NSTUB(strcmp                                  ,0xffc1123c) //101
197NSTUB(strcpy                                  ,0xffc11224) //101
198NSTUB(strftime                                ,0xffc800b4) //113
199NSTUB(strlen                                  ,0xffc04034) //101
200NSTUB(strncmp                                 ,0xffc03f9c) //  1
201NSTUB(strncpy                                 ,0xffc03f60) //  1
202//NSTUB(strrchr                               ,0xffc0400c) //  1            == 0xffc0400c
203NSTUB(strtol                                  ,0xffc2ef6c) //101
204NSTUB(strtolx                                 ,0xffc2ed70) //109
205  DEF(task_CaptSeq                            ,0xffc5c198) //107
206  DEF(task_ExpDrv                             ,0xffc94ff8) //110
207  DEF(task_InitFileModules                    ,0xffc73674) //107
208  DEF(task_MovieRecord                        ,0xffd1381c) //107
209  DEF(task_PhySw                              ,0xffc23934) //107
210NSTUB(time                                    ,0xffc664cc) //  1
211NSTUB(vsprintf                                ,0xffc111e8) //  4
212NSTUB(write                                   ,0xffc26348) //101
Note: See TracBrowser for help on using the repository browser.