source: branches/release-1_0/platform/a800/sub/100c/stubs_entry.S @ 1747

Revision 1747, 14.3 KB checked in by philmoz, 14 months ago (diff)

Merge recent platform changes from CHDK-DE to CHDK.

  • 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 R47 (DRYOS version 2.3, release #0047)
6//   Firmware Ver GM1.00C
7//   Canon PowerShot A800
8
9// Values for makefile.inc
10//   PLATFORMID = 12838 (0x3226) // Found @ 0xfffe0040
11//   MAXRAMADDR = 0x01ffffff
12//   KEYSYS = d4c                // Found @ 0xffff1a20
13//   NEED_ENCODED_DISKBOOT = 6   // Found @ 0xffff1a30
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(GetBatteryTemperature                 ,0xffc45dec) //102        *** != 0x00000000
18NSTUB(kbd_pwr_off                             ,0xffc43e84) //  2 60%
19// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0x00000000
20//NSTUB(mkdir                                 ,0xffc267f8) //  6 53%    *** != 0xffc267fc
21// ERROR: rand is not found.                               //--- ---    *** != 0x00000000
22// ERROR: srand is not found.                              //--- ---    *** != 0x00000000
23
24// Check of modemap from 'platform/CAMERA/shooting.c':
25// Firmware modemap table found @ffc739fc -> ffc7069c -> ffd39ee8 -> ffe267b8 -> ffee9f18
26// No problems found with modemap table.
27
28// Values below can be overridden in 'stubs_min.S':
29DEF(physw_status                            ,0x0002f048) // Found @0xffc23c3c
30DEF(physw_run                               ,0x00001bf8) // Found @0xffc237fc
31DEF(levent_table                            ,0xffeba314) // Found @0xffeba314
32DEF(FlashParamsTable                        ,0xffeea13c) // Found @0xffeea13c
33DEF(movie_status                            ,0x000056b8) // Found @0xffd18138
34DEF(full_screen_refresh                     ,0x00007810) // Found @0xffd88cc8
35DEF(canon_menu_active                       ,0x00002a98) // Found @0xffc6c4e8
36DEF(canon_shoot_menu_active                 ,0x000068a9) // Found @0xffd4c494
37DEF(playrec_mode                            ,0x000027e4) // Found @0xffc5f96c
38DEF(zoom_status                             ,0x0000a050) // Found @0xffe2a418
39DEF(some_flag_for_af_scan                   ,0x00005a70) // Found @0xffd1b170
40// focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
41// each entry contains 3 int value(s), the first is the zoom focus length.
42// there are 7 entries in the table - set NUM_FL to 7
43DEF(focus_len_table                         ,0xfffe2ee8) // Found @0xfffe2ee8
44DEF(zoom_busy                               ,0x0000560c) // Found @0xffd14e64
45DEF(focus_busy                              ,0x0000551c) // Found @0xffd125c4
46DEF(recreview_hold                          ,0x000030d4) // Found @0xffc78de0
47
48// Values below go in 'lib.c':
49//void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xffc3fafc
50//void *vid_get_viewport_fb()      { return (void*)0x1068c2e0; }             // Found @0xffe6fb60
51//void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2588+0x54)); } // Found @0xffc543b8 & 0xffc543f0
52//char *camera_jpeg_count_str()    { return (char*)0x00088994; }             // Found @0xffd810bc
53//long hook_raw_size()             { return 0x00ec04f0; }                    // Found @0xffe73000
54//int get_flash_params_count(void) { return 0xa0; }                          // Found @0xffd3af20
55
56// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
57//#define SD_READONLY_FLAG    0x00020000 // Found @0xffe9db68, levent 0x90a
58//#define SD_READONLY_IDX     2
59//#define USB_MASK            0x01000000 // Found @0xffe9db88, levent 0x902
60//#define USB_IDX             2
61
62// Keymap values for kbd.c. Additional keys may be present, only common values included here.
63//static KeyMap keymap[] = {
64//    { 2, KEY_ZOOM_OUT        ,0x00000040 }, // Found @0xffe9db40, levent 0x03
65//    { 2, KEY_ZOOM_IN         ,0x00000080 }, // Found @0xffe9db48, levent 0x02
66//    { 2, KEY_SET             ,0x00000100 }, // Found @0xffe9db50, levent 0x08
67//    { 2, KEY_RIGHT           ,0x00000200 }, // Found @0xffe9db58, levent 0x07
68//    { 2, KEY_UP              ,0x02000000 }, // Found @0xffe9db90, levent 0x04
69//    { 2, KEY_DOWN            ,0x04000000 }, // Found @0xffe9db98, levent 0x05
70//    { 2, KEY_LEFT            ,0x08000000 }, // Found @0xffe9dba0, levent 0x06
71//    { 2, KEY_MENU            ,0x20000000 }, // Found @0xffe9dbb0, levent 0x09
72//    { 2, KEY_SHOOT_FULL      ,0x00000030 }, // Found @0xffe9db38, levent 0x01
73//    { 2, KEY_SHOOT_FULL_ONLY ,0x00000020 }, // Found @0xffe9db38, levent 0x01
74//    { 2, KEY_SHOOT_HALF      ,0x00000010 }, // Found @0xffe9db30, levent 0x00
75//    { 0, 0, 0 }
76//};
77
78// Values below go in 'platform_camera.h':
79//#define CAM_DRYOS         1
80//#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
81//#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher
82//#define CAM_RAW_ROWPIX    3720 // Found @0xffcf3210
83//#define CAM_RAW_ROWS      2772 // Found @0xffcf321c
84//#undef  CAM_UNCACHED_BIT
85//#define CAM_UNCACHED_BIT  0x10000000 // Found @0xffc29904
86
87// Misc stuff
88DEF(ctypes, 0xffe9d276)
89
90// For capt_seq.c
91//static long *nrflag = (long*)(0x5a8c+0x08);  // Found @ ffd1d88c & ffd1d8d0
92//#define NR_AUTO (0)                          // have to explictly reset value back to 0 to enable auto
93
94// Stubs below matched 100%.
95//    Name                                     Address                Comp to stubs_entry_2.S
96NSTUB(AllocateMemory                          ,0xffe193b0) //101
97NSTUB(AllocateUncacheableMemory               ,0xffc298bc) //112
98NSTUB(Close                                   ,0xffc26360) //101
99NSTUB(CreateTask                              ,0xffc0f290) //101
100NSTUB(DebugAssert                             ,0xffc0f768) //111
101NSTUB(DeleteDirectory_Fut                     ,0xffc25d5c) //  1
102NSTUB(DeleteFile_Fut                          ,0xffc25c78) //112
103NSTUB(DoAFLock                                ,0xffc27a24) //102
104NSTUB(EnterToCompensationEVF                  ,0xffc27ad4) //104
105NSTUB(ExecuteEventProcedure                   ,0xffc67d18) //  1
106NSTUB(ExitFromCompensationEVF                 ,0xffc27b18) //104
107NSTUB(ExitTask                                ,0xffc0f520) //101
108NSTUB(ExpCtrlTool_StartContiAE                ,0xffc358f8) //104
109NSTUB(ExpCtrlTool_StopContiAE                 ,0xffc35a78) //104
110NSTUB(Fclose_Fut                              ,0xffc25df4) //101
111NSTUB(Feof_Fut                                ,0xffc25fe0) //  1
112NSTUB(Fflush_Fut                              ,0xffc2601c) //  1
113NSTUB(Fgets_Fut                               ,0xffc25f48) //  6
114NSTUB(Fopen_Fut                               ,0xffc25db4) //101
115NSTUB(Fread_Fut                               ,0xffc25ea0) //101
116NSTUB(FreeMemory                              ,0xffe193a8) //101
117NSTUB(FreeUncacheableMemory                   ,0xffc298fc) //112
118NSTUB(Fseek_Fut                               ,0xffc25f94) //101
119NSTUB(Fwrite_Fut                              ,0xffc25ef4) //101
120NSTUB(GetCCDTemperature                       ,0xffc45d78) //102
121NSTUB(GetCurrentAvValue                       ,0xffd13ed4) //102
122NSTUB(GetDrive_ClusterSize                    ,0xffc52da4) //  6
123NSTUB(GetDrive_FreeClusters                   ,0xffc52dfc) //  6
124NSTUB(GetDrive_TotalClusters                  ,0xffc52dd4) //  6
125NSTUB(GetFocusLensSubjectDistance             ,0xffd1313c) //102
126NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xffd13598) //  3
127NSTUB(GetImageFolder                          ,0xffcfa088) //  6
128NSTUB(GetKbdState                             ,0xffc43e6c) //109
129NSTUB(GetMemInfo                              ,0xffc0a8a0) //  3
130NSTUB(GetOpticalTemperature                   ,0xffc45e64) //102
131NSTUB(GetParameterData                        ,0xffd3aee0) //101
132NSTUB(GetPropertyCase                         ,0xffc6ba84) //102
133NSTUB(GetSystemTime                           ,0xffe19408) //101
134NSTUB(GetZoomLensCurrentPoint                 ,0xffd151e8) //102
135NSTUB(GetZoomLensCurrentPosition              ,0xffe09db4) //102
136NSTUB(GiveSemaphore                           ,0xffc0f1f0) //112
137NSTUB(IsStrobeChargeCompleted                 ,0xffcaf2c8) //102
138NSTUB(LEDDrive                                ,0xffc43538) //101
139NSTUB(LocalTime                               ,0xffc65708) //  6
140NSTUB(LockMainPower                           ,0xffc70290) //103
141NSTUB(Lseek                                   ,0xffc2657c) //101
142NSTUB(MakeDirectory_Fut                       ,0xffc25cec) //  6
143NSTUB(MakeSDCardBootable                      ,0xffc53034) //105
144NSTUB(MoveFocusLensToDistance                 ,0xffe6befc) //102
145NSTUB(MoveIrisWithAv                          ,0xffe15be0) //102
146NSTUB(MoveZoomLensWithPoint                   ,0xffe16284) //102
147NSTUB(NewTaskShell                            ,0xffc6b4c8) //101
148NSTUB(Open                                    ,0xffc26298) //101
149NSTUB(PB2Rec                                  ,0xffc72f50) //104
150NSTUB(PT_MoveDigitalZoomToWide                ,0xffc58dec) //102
151NSTUB(PT_MoveOpticalZoomAt                    ,0xffc58dc4) //102
152NSTUB(PT_PlaySound                            ,0xffc61544) //  6
153NSTUB(PostLogicalEventForNotPowerType         ,0xffc6fabc) //103
154NSTUB(PostLogicalEventToUI                    ,0xffc6fb08) //103
155NSTUB(PutInNdFilter                           ,0xffe160cc) //102
156NSTUB(PutOutNdFilter                          ,0xffe160f0) //102
157NSTUB(Read                                    ,0xffc0b35c) //101
158NSTUB(ReadFastDir                             ,0xffdff8d0) //  6
159NSTUB(Rec2PB                                  ,0xffc72f90) //104
160NSTUB(RefreshPhysicalScreen                   ,0xffc80098) //104
161NSTUB(Remove                                  ,0xffc264d4) //  6
162NSTUB(RenameFile_Fut                          ,0xffc25be4) //  6
163NSTUB(Restart                                 ,0xffc2b0d8) //106
164NSTUB(ScreenLock                              ,0xffc81278) //  4
165NSTUB(ScreenUnlock                            ,0xffc812dc) //  3
166NSTUB(SetAE_ShutterSpeed                      ,0xffe6ed78) //102
167NSTUB(SetAutoShutdownTime                     ,0xffc70304) //103
168NSTUB(SetCurrentCaptureModeType               ,0xffc76628) //101
169NSTUB(SetFileAttributes                       ,0xffc26764) //  6
170NSTUB(SetFileTimeStamp                        ,0xffc266ec) //  6
171NSTUB(SetLogicalEventActive                   ,0xffc70008) //101
172NSTUB(SetParameterData                        ,0xffd3ae50) //101
173NSTUB(SetPropertyCase                         ,0xffc6b968) //102
174NSTUB(SetScriptMode                           ,0xffc70058) //101
175NSTUB(SleepTask                               ,0xffc29760) //101
176NSTUB(TakeSemaphore                           ,0xffc0f120) //101
177NSTUB(TurnOffBackLight                        ,0xffc7b568) //104
178NSTUB(TurnOnBackLight                         ,0xffc7b550) //104
179NSTUB(UIFS_WriteFirmInfoToFile                ,0xffd2db9c) //101
180NSTUB(UnlockAF                                ,0xffc27a5c) //102
181NSTUB(UnlockMainPower                         ,0xffc701e4) //103
182NSTUB(UnsetZoomForMovie                       ,0xffd41454) //104
183NSTUB(VbattGet                                ,0xffc22b4c) //101
184NSTUB(Write                                   ,0xffc263b4) //101
185NSTUB(WriteSDCard                             ,0xffd07b28) //108
186NSTUB(_log                                    ,0xffe99ea0) //111
187NSTUB(_log10                                  ,0xffe9a3e0) //112
188NSTUB(_pow                                    ,0xffe9a558) //114
189NSTUB(_sqrt                                   ,0xffe9c17c) //  6
190NSTUB(add_ptp_handler                         ,0xffdd53ac) //  6
191NSTUB(apex2us                                 ,0xffd8dfd0) //  4
192NSTUB(close                                   ,0xffc0b1b8) //  6
193NSTUB(closedir                                ,0xffdff72c) //  4
194NSTUB(err_init_task                           ,0xffc05fd8) //  4
195NSTUB(exmem_alloc                             ,0xffc666d0) //101
196NSTUB(free                                    ,0xffc04248) //112
197NSTUB(kbd_p1_f                                ,0xffc23cb8) //109
198NSTUB(kbd_p1_f_cont                           ,0xffc23cc4) //109
199NSTUB(kbd_p2_f                                ,0xffc234cc) //109
200NSTUB(kbd_read_keys                           ,0xffc23c3c) //109
201NSTUB(kbd_read_keys_r2                        ,0xffc43878) //109
202NSTUB(lseek                                   ,0xffc2657c) //101
203NSTUB(malloc                                  ,0xffc041f0) //112
204NSTUB(memcmp                                  ,0xffc114d8) //101
205NSTUB(memcpy                                  ,0xffc2ee6c) //101
206NSTUB(memset                                  ,0xffd8d00c) //101
207NSTUB(mktime_ext                              ,0xffc82008) //  1
208NSTUB(open                                    ,0xffc0b108) //  6
209NSTUB(opendir                                 ,0xffdff77c) //  6
210NSTUB(openfastdir                             ,0xffdff77c) //  6
211NSTUB(qsort                                   ,0xffe527f0) //  6
212NSTUB(read                                    ,0xffc0b35c) //101
213NSTUB(reboot_fw_update                        ,0xffe01178) //  6
214NSTUB(rename                                  ,0xffc25be4) //  6
215NSTUB(set_control_event                       ,0xffc6fd2c) //111
216NSTUB(stat                                    ,0xffc265c4) //  3
217NSTUB(strcat                                  ,0xffc817c0) //  1
218NSTUB(strchr                                  ,0xffc040bc) //  1
219NSTUB(strcmp                                  ,0xffc11494) //101
220NSTUB(strcpy                                  ,0xffc1147c) //101
221NSTUB(strftime                                ,0xffc81a08) //113
222NSTUB(strlen                                  ,0xffc04108) //101
223NSTUB(strncmp                                 ,0xffc04070) //  1
224NSTUB(strncpy                                 ,0xffc04034) //  1
225NSTUB(strrchr                                 ,0xffc040e0) //  1
226NSTUB(strtol                                  ,0xffc2f16c) //101
227NSTUB(strtolx                                 ,0xffc2ef70) //109
228  DEF(task_CaptSeq                            ,0xffc5b06c) //110
229  DEF(task_ExpDrv                             ,0xffc98190) //110
230  DEF(task_InitFileModules                    ,0xffc7387c) //110
231  DEF(task_MovieRecord                        ,0xffd18384) //110
232  DEF(task_PhySw                              ,0xffc237f8) //110
233NSTUB(time                                    ,0xffc65ce4) //  6
234NSTUB(vsprintf                                ,0xffc1143c) //  6
235NSTUB(write                                   ,0xffc263b4) //101
Note: See TracBrowser for help on using the repository browser.