source: trunk/platform/a480/sub/100b/stubs_entry.S @ 1291

Revision 1291, 13.6 KB checked in by philmoz, 22 months ago (diff)

Replacement for gensig/finsig for DryOS based cameras - see http://chdk.setepontos.com/index.php?topic=6560.0

  • 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 R31 (DRYOS version 2.3, release #0031)
6// Firmware Ver GM1.00B
7// Canon PowerShot A480
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(GetBatteryTemperature                 ,0xffc2e964) //102        *** != 0xffc2eb38
12//NSTUB(GetCCDTemperature                     ,0xffc2e8f0) //102        *** != 0xffc2eb38
13//NSTUB(PutInNdFilter                         ,0xffdc22b8) //102        *** != 0xffe01e0c
14//NSTUB(PutOutNdFilter                        ,0xffdc22dc) //102        *** != 0xffe01e44
15NSTUB(kbd_pwr_off                             ,0xffc2c8c4) //  2 64%
16// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0xffc00954
17//NSTUB(kbd_read_keys_r2                      ,0xffc2c384) //109        *** != 0xffc1138c
18//NSTUB(rename                                ,0xffc12a84) //  1        *** != 0xffc13300
19//NSTUB(write                                 ,0xffc132d8) //101        *** != 0xffc0a27c
20
21// Check of modemap from 'platform/CAMERA/shooting.c':
22// Firmware modemap table found @ffc58b40 -> ffc555f8 -> ffd07cb4 -> ffdcd6ec -> ffe71f6c
23// No problems found with modemap table.
24
25// Values below go in 'stubs_min.S':
26//DEF(physw_status                            ,0x0000cef8) // Found @0xffc11360,          stubs_min = 0x0000cef8 (0xCEF8)
27//DEF(physw_run                               ,0x00001bec) // Found @0xffc10fd4,          stubs_min = 0x00001bec (0x1BE0+0x0C)
28//DEF(levent_table                            ,0xffe57a18) // Found @0xffe57a18,          stubs_min = 0xffe57a18 (0xFFE57A18)
29//DEF(FlashParamsTable                        ,0xffe72138) // Found @0xffe72138,          stubs_min = 0xffe72138 (0xFFE72138)
30//DEF(movie_status                            ,0x00005700) // Found @0xffce5478,          stubs_min = 0x00005700 (0x56C8+0x38)
31//DEF(canon_menu_active                       ,0x00002a00) // Found @0xffc52450,          stubs_min = 0x00002a00 (0x29FC+4)
32//DEF(canon_shoot_menu_active                 ,0x00006861) // Found @0xffd16804, ** != ** stubs_min = 0xffc00414 (0xFFC00414)
33//DEF(playrec_mode                            ,0x00002798) // Found @0xffc46ef8,          stubs_min = 0x00002798 (0x2794+0x4)
34//DEF(zoom_status                             ,0x0000a2d4) // Found @0xffdcf93c,          stubs_min = 0x0000a2d4 (0xA2D4)
35//DEF(some_flag_for_af_scan                   ,0x00005bbc) // Found @0xffce7b58,          stubs_min = 0x00005bbc (0x5BBC)
36
37// Values below go in 'lib.c':
38//void *vid_get_bitmap_fb()        { return (void*)0x10361000; } // Found @0xffc2845c
39//void *vid_get_viewport_fb()      { return (void*)0x10659ec0; } // Found @0xffe07650
40//char *camera_jpeg_count_str()    { return (char*)0x0002cff8; } // Found @0xffd41b24
41//long hook_raw_size()             { return 0x00ec04f0; }        // Found @0xffe09bc4
42//int get_flash_params_count(void) { return 0x7a; }              // Found @0xffd08d70
43
44// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
45//#define SD_READONLY_FLAG    0x00040000 // Found @0xffe34fec, levent 0x90a
46//#define SD_READONLY_IDX     2
47//#define USB_FLAG            0x00080000 // Found @0xffe34ff8, levent 0x902
48//#define USB_IDX             2
49
50// Keymap values for kbd.c. Additional keys may be present, only common values included here.
51//static KeyMap keymap[] = {
52//    { 2, KEY_UP          ,0x00000001 }, // Found @0xffe34f50, levent 0x04
53//    { 2, KEY_DOWN        ,0x00000002 }, // Found @0xffe34f5c, levent 0x05
54//    { 2, KEY_RIGHT       ,0x00000004 }, // Found @0xffe34f68, levent 0x07
55//    { 2, KEY_LEFT        ,0x00000008 }, // Found @0xffe34f74, levent 0x06
56//    { 2, KEY_SHOOT_HALF  ,0x00000010 }, // Found @0xffe34f80, levent 0x00
57//    { 2, KEY_SHOOT_FULL  ,0x00000030 }, // Found @0xffe34f8c, levent 0x01
58//    { 2, KEY_ZOOM_OUT    ,0x00000040 }, // Found @0xffe34f98, levent 0x03
59//    { 2, KEY_ZOOM_IN     ,0x00000080 }, // Found @0xffe34fa4, levent 0x02
60//    { 2, KEY_SET         ,0x00000100 }, // Found @0xffe34fb0, levent 0x08
61//    { 2, KEY_MENU        ,0x00000400 }, // Found @0xffe34fbc, levent 0x09
62//    { 0, 0, 0 }
63//};
64
65// Values below go in 'platform_camera.h':
66//#define CAM_DRYOS         1
67//#define CAM_RAW_ROWPIX    3720 // Found @0xffcb8f20
68//#define CAM_RAW_ROWS      2772 // Found @0xffcb8f28
69//#undef  CAM_UNCACHED_BIT
70//#define CAM_UNCACHED_BIT  0x10000000 // Found @0xffc16738
71
72// Stubs below matched 100%.
73//    Name                                     Address                Comp to stubs_entry_2.S
74NSTUB(AllocateMemory                          ,0xffdc45b0) //101
75NSTUB(AllocateUncacheableMemory               ,0xffc166f4) //112
76NSTUB(Close                                   ,0xffc1322c) //101
77NSTUB(CreateTask                              ,0xffc0b9c4) //101
78NSTUB(DebugAssert                             ,0xffc0be9c) //111
79NSTUB(DeleteFile_Fut                          ,0xffc12ad8) //112
80//NSTUB(DoAFLock                              ,0xffc14830) //102            == 0xffc14830
81//NSTUB(EnterToCompensationEVF                ,0xffc148e0) //104            == 0xffc148e0
82NSTUB(ExecuteEventProcedure                   ,0xffc4dbd8) //  1
83//NSTUB(ExitFromCompensationEVF               ,0xffc14924) //104            == 0xffc14924
84NSTUB(ExitTask                                ,0xffc0bc54) //101
85//NSTUB(ExpCtrlTool_StartContiAE              ,0xffc1eee4) //104            == 0xffc1eee4
86//NSTUB(ExpCtrlTool_StopContiAE               ,0xffc1f028) //104            == 0xffc1f028
87NSTUB(Fclose_Fut                              ,0xffc12c54) //101
88NSTUB(Feof_Fut                                ,0xffc12e40) //  1
89NSTUB(Fflush_Fut                              ,0xffc12e7c) //  1
90NSTUB(Fgets_Fut                               ,0xffc12da8) //  1
91NSTUB(Fopen_Fut                               ,0xffc12c14) //101
92NSTUB(Fread_Fut                               ,0xffc12d00) //101
93NSTUB(FreeMemory                              ,0xffdc45a8) //101
94NSTUB(FreeUncacheableMemory                   ,0xffc16734) //112
95NSTUB(Fseek_Fut                               ,0xffc12df4) //101
96NSTUB(Fwrite_Fut                              ,0xffc12d54) //101
97NSTUB(GetCurrentAvValue                       ,0xffce0fe8) //102
98//NSTUB(GetDrive_ClusterSize                  ,0xffc3a924) //  5            == 0xffc3a924
99//NSTUB(GetDrive_FreeClusters                 ,0xffc3a97c) //  5            == 0xffc3a97c
100//NSTUB(GetDrive_TotalClusters                ,0xffc3a950) //  5            == 0xffc3a950
101NSTUB(GetFocusLensSubjectDistance             ,0xffce00c8) //102
102NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xffce03d4) //  3
103NSTUB(GetKbdState                             ,0xffc2c8ac) //109
104NSTUB(GetMemInfo                              ,0xffc03be8) //  1
105NSTUB(GetOpticalTemperature                   ,0xffc2e9dc) //102
106NSTUB(GetParameterData                        ,0xffd08d30) //101
107NSTUB(GetPropertyCase                         ,0xffc51944) //102
108NSTUB(GetSystemTime                           ,0xffdc4608) //101
109NSTUB(GetZoomLensCurrentPoint                 ,0xffce3dac) //102
110NSTUB(GetZoomLensCurrentPosition              ,0xffdbcdf4) //102
111NSTUB(GiveSemaphore                           ,0xffc0b920) //112
112NSTUB(IsStrobeChargeCompleted                 ,0xffc7ccc4) //102
113//NSTUB(LEDDrive                              ,0xffc2c020) //103            == 0xffc2c020
114NSTUB(LocalTime                               ,0xffc4b954) //  1
115NSTUB(LockMainPower                           ,0xffc55210) //103
116NSTUB(Lseek                                   ,0xffc1336c) //101
117NSTUB(MakeDirectory_Fut                       ,0xffc12b4c) //  1
118NSTUB(MoveFocusLensToDistance                 ,0xffe04080) //102
119NSTUB(MoveIrisWithAv                          ,0xffdc1ec8) //102
120NSTUB(MoveZoomLensWithPoint                   ,0xffdc2454) //102
121NSTUB(NewTaskShell                            ,0xffc513e8) //103
122NSTUB(Open                                    ,0xffc13204) //101
123NSTUB(PB2Rec                                  ,0xffc57ebc) //104
124NSTUB(PT_MoveDigitalZoomToWide                ,0xffc40e3c) //102
125NSTUB(PT_MoveOpticalZoomAt                    ,0xffc40e14) //102
126NSTUB(PT_PlaySound                            ,0xffc40a50) //102
127NSTUB(PostLogicalEventForNotPowerType         ,0xffc54838) //103
128NSTUB(PostLogicalEventToUI                    ,0xffc54884) //103
129NSTUB(Read                                    ,0xffc0a21c) //101
130NSTUB(ReadFastDir                             ,0xffdb0044) //  1
131NSTUB(Rec2PB                                  ,0xffc57efc) //104
132//NSTUB(RefreshPhysicalScreen                 ,0xffd4be50) //104            == 0xffd4be50
133NSTUB(Remove                                  ,0xffc13274) //  1
134NSTUB(RenameFile_Fut                          ,0xffc12a84) //  1
135NSTUB(Restart                                 ,0xffc17e44) //106
136//NSTUB(SetAE_ShutterSpeed                    ,0xffe06860) //102            == 0xffe06860
137NSTUB(SetAutoShutdownTime                     ,0xffc55284) //103
138NSTUB(SetCurrentCaptureModeType               ,0xffc5b514) //101
139NSTUB(SetFileTimeStamp                        ,0xffc13508) //  1
140NSTUB(SetLogicalEventActive                   ,0xffc54f8c) //101
141NSTUB(SetParameterData                        ,0xffd08ca0) //101
142NSTUB(SetPropertyCase                         ,0xffc5183c) //102
143//NSTUB(SetScriptMode                         ,0xffc54fdc) //101            == 0xffc54fdc
144NSTUB(SleepTask                               ,0xffc16578) //101
145NSTUB(TakeSemaphore                           ,0xffc0b850) //101
146//NSTUB(TurnOffBackLight                      ,0xffc5fcec) //104            == 0xffc5fcec
147NSTUB(TurnOnBackLight                         ,0xffc5fcd4) //104
148NSTUB(UIFS_WriteFirmInfoToFile                ,0xffcfa8ec) //101
149//NSTUB(UnlockAF                              ,0xffc14868) //102            == 0xffc14868
150NSTUB(UnlockMainPower                         ,0xffc55164) //103
151//NSTUB(UnsetZoomForMovie                     ,0xffd0e960) //104            == 0xffd0e960
152//NSTUB(UpdateMBROnFlash                      ,0xffc3a77c) //  3            == 0xffc3a77c
153NSTUB(VbattGet                                ,0xffc10294) //103
154NSTUB(Write                                   ,0xffc132d8) //101
155//NSTUB(WriteSDCard                           ,0xffcd598c) //108            == 0xffcd598c
156NSTUB(_log                                    ,0xffe328a4) //111
157NSTUB(_log10                                  ,0xffe317e8) //112
158NSTUB(_pow                                    ,0xffe31958) //114
159NSTUB(_sqrt                                   ,0xffe33c0c) //  1
160NSTUB(add_ptp_handler                         ,0xffd8a108) //  3
161//NSTUB(apex2us                               ,0xffd4cf08) //  4            == 0xffd4cf08
162NSTUB(close                                   ,0xffc0a034) //  1
163NSTUB(closedir                                ,0xffdb0114) //  1
164NSTUB(err_init_task                           ,0xffc04e30) //  4
165NSTUB(exmem_alloc                             ,0xffc4c588) //103
166NSTUB(free                                    ,0xffc03a40) //112
167NSTUB(kbd_p1_f                                ,0xffc113dc) //109
168NSTUB(kbd_p1_f_cont                           ,0xffc113e8) //109
169NSTUB(kbd_p2_f                                ,0xffc10ca0) //109
170NSTUB(kbd_read_keys                           ,0xffc11360) //109
171NSTUB(lseek                                   ,0xffc1336c) //101
172NSTUB(malloc                                  ,0xffc0396c) //112
173NSTUB(memcmp                                  ,0xffc0d9b4) //101
174NSTUB(memcpy                                  ,0xffc63638) //101
175NSTUB(memset                                  ,0xffd4c1f0) //101
176NSTUB(mkdir                                   ,0xffc135d0) //  1
177// ALT: NSTUB(mkdir, 0xffc13670) // 1 32/0
178NSTUB(mktime_ext                              ,0xffc63ea4) //  1
179NSTUB(open                                    ,0xffc09f84) //  1
180NSTUB(opendir                                 ,0xffdaffb0) //  1
181NSTUB(openfastdir                             ,0xffdaffb0) //  1
182//NSTUB(qsort                                 ,0xffdf2a18) //  1            == 0xffdf2a18
183NSTUB(rand                                    ,0xffc0dabc) //  1
184NSTUB(read                                    ,0xffc0a21c) //101
185NSTUB(readfastdir                             ,0xffdb0044) //  1
186NSTUB(reboot_fw_update                        ,0xffdb3b28) //  5
187NSTUB(set_control_event                       ,0xffc54cc0) //111
188NSTUB(srand                                   ,0xffc0dab0) //  1
189NSTUB(stat                                    ,0xffc13438) //  1
190NSTUB(strcat                                  ,0xffc6344c) //  1
191//NSTUB(strchr                                ,0xffc634d4) //  1            == 0xffc634d4
192NSTUB(strcmp                                  ,0xffc0d94c) //101
193NSTUB(strcpy                                  ,0xffc0d934) //101
194NSTUB(strftime                                ,0xffc638ac) //  1
195NSTUB(strlen                                  ,0xffc0d990) //101
196NSTUB(strncmp                                 ,0xffc63488) //  1
197NSTUB(strncpy                                 ,0xffc1bf08) //  1
198//NSTUB(strrchr                               ,0xffd4c1c8) //  1            == 0xffd4c1c8
199NSTUB(strtol                                  ,0xffc1c140) //101
200NSTUB(strtolx                                 ,0xffc1bf44) //109
201  DEF(task_CaptSeq                            ,0xffc42f34) //107
202  DEF(task_ExpDrv                             ,0xffc74cb0) //110
203  DEF(task_InitFileModules                    ,0xffc589cc) //107
204  DEF(task_MovieRecord                        ,0xffce56dc) //107
205  DEF(task_PhySw                              ,0xffc10fd0) //107
206NSTUB(time                                    ,0xffc4b808) //  1
207NSTUB(vsprintf                                ,0xffc0d8f8) //  1
Note: See TracBrowser for help on using the repository browser.