source: branches/release-1_0/platform/a3300/sub/100d/stubs_entry.S @ 1637

Revision 1637, 14.8 KB checked in by philmoz, 17 months ago (diff)

Re-align CHDK and CHDK-DE code base (part 1) - http://chdk.setepontos.com/index.php?topic=7601.0

  • add a1000, include a3300, ixus1000 and ixus230 in auto build
  • align signature finder code and stubs files
  • align files with just white space differences
  • Property svn:eol-style set to native
RevLine 
[1617]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.00D
7//   Canon PowerShot A3300 IS
8
9// Values for makefile.inc
10//   PLATFORMID = 12835 (0x3223) // Found @ 0xfffe0040
11//   MAXRAMADDR = 0x03ffffff
12//   KEYSYS = d4c                // Found @ 0xffff3504
13//   NEED_ENCODED_DISKBOOT = 6   // Found @ 0xffff3514
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
[1637]17// ERROR: SetFileAttributes is not found.                  //--- ---    *** != 0x00000000
[1617]18//NSTUB(kbd_pwr_off                           ,0xff86031c) //  2 60%    *** != 0x00000000
19// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0x00000000
20
21// Check of modemap from 'platform/CAMERA/shooting.c':
22// Firmware modemap table found @ff8959c4 -> ff892270 -> ff9937f8 -> ffac8368 -> ffbeea50
23// Current modemap entry not found in firmware - MODE_SCN_POSTER_EFFECT    8743
24// Current modemap entry not found in firmware - MODE_SCN_SUPER_VIVID      8742
25// Current modemap entry not found in firmware - MODE_SCN_MONOCHROME       8754
26// Current modemap entry not found in firmware - MODE_SCN_TOY_CAMERA       8751
27// Current modemap entry not found in firmware - MODE_SCN_MINIATURE        8748
28// Current modemap entry not found in firmware - MODE_SCN_FISHEYE          8747
29
30// Values below can be overridden in 'stubs_min.S':
31DEF(physw_status                            ,0x00032d34) // Found @0xff8345a0
32DEF(physw_run                               ,0x00001c30) // Found @0xff834160
33DEF(levent_table                            ,0xffba1198) // Found @0xffba1198
34DEF(FlashParamsTable                        ,0xffbeec88) // Found @0xffbeec88
35DEF(movie_status                            ,0x00006734) // Found @0xff96962c
36DEF(full_screen_refresh                     ,0x0000916c) // Found @0xffa06cf4
37DEF(canon_menu_active                       ,0x00002f60) // Found @0xff88da44
38DEF(canon_shoot_menu_active                 ,0x00007bf5) // Found @0xff9ada14
39DEF(playrec_mode                            ,0x00002c88) // Found @0xff87fd40
40DEF(zoom_status                             ,0x0000cf5c) // Found @0xffacba3c
41DEF(some_flag_for_af_scan                   ,0x00006b0c) // Found @0xff96d344
42// focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
43// each entry contains 3 int value(s), the first is the zoom focus length.
44// there are 12 entries in the table - set NUM_FL to 12
45DEF(focus_len_table                         ,0xfffe2f88) // Found @0xfffe2f88
46DEF(zoom_busy                               ,0x0000665c) // Found @0xff964eb8
47DEF(focus_busy                              ,0x000064d8) // Found @0xff960130
48DEF(recreview_hold                          ,0x00003534) // Found @0xff89af5c
49
50// Values below go in 'lib.c':
[1637]51//void *vid_get_bitmap_fb()        { return (void*)0x403f1000; }             // Found @0xff85b880
52//void *vid_get_viewport_fb()      { return (void*)0x40546b80; }             // Found @0xffb1e2b8
53//void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x29a0+0x58)); } // Found @0xff8713ec & 0xff871424
54//char *camera_jpeg_count_str()    { return (char*)0x000b40d4; }             // Found @0xff9fd850
55//long hook_raw_size()             { return 0x01794300; }                    // Found @0xffb21774
56//int get_flash_params_count(void) { return 0xa0; }                          // Found @0xff994830
[1617]57
58// Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
59//#define SD_READONLY_FLAG    0x00020000 // Found @0xffb5dccc, levent 0x90a
60//#define SD_READONLY_IDX     2
61//#define USB_MASK            0x04000000 // Found @0xffb5dcec, levent 0x902
62//#define USB_IDX             2
63
64// Keymap values for kbd.c. Additional keys may be present, only common values included here.
65//static KeyMap keymap[] = {
66//    { 2, KEY_SHOOT_FULL      ,0x00003000 }, // Found @0xffb5dcac, levent 0x01
67//    { 2, KEY_SHOOT_FULL_ONLY ,0x00002000 }, // Found @0xffb5dcac, levent 0x01
68//    { 2, KEY_UP              ,0x00000001 }, // Found @0xffb5dc4c, levent 0x04
69//    { 2, KEY_DOWN            ,0x00000002 }, // Found @0xffb5dc54, levent 0x05
70//    { 2, KEY_SHOOT_HALF      ,0x00001000 }, // Found @0xffb5dca4, levent 0x00
71//    { 2, KEY_LEFT            ,0x00000004 }, // Found @0xffb5dc5c, levent 0x06
72//    { 2, KEY_RIGHT           ,0x00000008 }, // Found @0xffb5dc64, levent 0x07
73//    { 2, KEY_SET             ,0x00000010 }, // Found @0xffb5dc6c, levent 0x08
74//    { 2, KEY_DISPLAY         ,0x00000020 }, // Found @0xffb5dc74, levent 0x0a
75//    { 2, KEY_MENU            ,0x00000080 }, // Found @0xffb5dc84, levent 0x09
76//    { 2, KEY_ZOOM_OUT        ,0x00004000 }, // Found @0xffb5dcb4, levent 0x03
77//    { 2, KEY_ZOOM_IN         ,0x00008000 }, // Found @0xffb5dcbc, levent 0x02
78//    { 0, 0, 0 }
79//};
80
81// Values below go in 'platform_camera.h':
82//#define CAM_DRYOS         1
83//#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
84//#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher
85//#define CAM_RAW_ROWPIX    4704 // Found @0xff93a6e0
86//#define CAM_RAW_ROWS      3504 // Found @0xff93a6ec
87//#undef  CAM_UNCACHED_BIT
88//#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff83a714
89
90// Misc stuff
91DEF(ctypes, 0xffb5c5aa)
92
[1637]93// For capt_seq.c
94//static long *nrflag = (long*)(0x6b40+0x08);  // Found @ ff971604 & ff971648
95//#define NR_AUTO (0)                          // have to explictly reset value back to 0 to enable auto
96
[1617]97// Stubs below matched 100%.
98//    Name                                     Address                Comp to stubs_entry_2.S
99NSTUB(AllocateMemory                          ,0xffab6d38) //101
100NSTUB(AllocateUncacheableMemory               ,0xff83a6cc) //112
101NSTUB(Close                                   ,0xff836cc4) //101
102NSTUB(CreateTask                              ,0xff81e9b0) //101
103NSTUB(DebugAssert                             ,0xff81ec88) //111
104NSTUB(DeleteDirectory_Fut                     ,0xff8366c0) //  1
105NSTUB(DeleteFile_Fut                          ,0xff8365dc) //112
106NSTUB(DoAFLock                                ,0xff838480) //102
107NSTUB(EnterToCompensationEVF                  ,0xff8386dc) //104
108NSTUB(ExecuteEventProcedure                   ,0xff889244) //  1
109NSTUB(ExitFromCompensationEVF                 ,0xff838720) //104
110NSTUB(ExitTask                                ,0xff81ec40) //101
111NSTUB(ExpCtrlTool_StartContiAE                ,0xff846ce0) //104
112NSTUB(ExpCtrlTool_StopContiAE                 ,0xff846db8) //104
113NSTUB(Fclose_Fut                              ,0xff836758) //101
114NSTUB(Feof_Fut                                ,0xff836944) //  1
115NSTUB(Fflush_Fut                              ,0xff836980) //  1
116NSTUB(Fgets_Fut                               ,0xff8368ac) //  6
117NSTUB(Fopen_Fut                               ,0xff836718) //101
118NSTUB(Fread_Fut                               ,0xff836804) //101
119NSTUB(FreeMemory                              ,0xffab6d30) //101
120NSTUB(FreeUncacheableMemory                   ,0xff83a70c) //112
121NSTUB(Fseek_Fut                               ,0xff8368f8) //101
122NSTUB(Fwrite_Fut                              ,0xff836858) //101
123NSTUB(GetBatteryTemperature                   ,0xff86227c) //102
124NSTUB(GetCCDTemperature                       ,0xff862208) //102
125NSTUB(GetCurrentAvValue                       ,0xff961d00) //102
126NSTUB(GetDrive_ClusterSize                    ,0xff86fd50) //  6
127NSTUB(GetDrive_FreeClusters                   ,0xff86fda8) //  6
128NSTUB(GetDrive_TotalClusters                  ,0xff86fd80) //  6
129NSTUB(GetFocusLensSubjectDistance             ,0xff960db4) //102
130NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xff961214) //  3
131NSTUB(GetImageFolder                          ,0xff941570) //  6
132NSTUB(GetKbdState                             ,0xff860304) //109
133NSTUB(GetMemInfo                              ,0xff81a29c) //  3
134NSTUB(GetOpticalTemperature                   ,0xff8622f0) //102
135NSTUB(GetParameterData                        ,0xff9947f0) //101
136NSTUB(GetPropertyCase                         ,0xff88cfac) //102
137NSTUB(GetSystemTime                           ,0xffab6d90) //101
138NSTUB(GetZoomLensCurrentPoint                 ,0xff96523c) //102
139NSTUB(GetZoomLensCurrentPosition              ,0xffaa3b04) //102
140NSTUB(GiveSemaphore                           ,0xff83a0c4) //112
141NSTUB(IsStrobeChargeCompleted                 ,0xff8d8c68) //102
142NSTUB(LEDDrive                                ,0xff85f918) //101
143NSTUB(LocalTime                               ,0xff886b34) //  6
144NSTUB(LockMainPower                           ,0xff891e64) //103
145NSTUB(Lseek                                   ,0xff836ee0) //101
146NSTUB(MakeDirectory_Fut                       ,0xff836650) //  6
147NSTUB(MakeSDCardBootable                      ,0xff86ffe0) //105
148NSTUB(MoveFocusLensToDistance                 ,0xffb1a614) //102
149NSTUB(MoveIrisWithAv                          ,0xffab39f8) //102
150NSTUB(MoveZoomLensWithPoint                   ,0xffab40b0) //102
151NSTUB(NewTaskShell                            ,0xff88c9f4) //101
152NSTUB(Open                                    ,0xff836bfc) //101
153NSTUB(PB2Rec                                  ,0xff89502c) //104
154NSTUB(PT_MoveDigitalZoomToWide                ,0xff878398) //102
155NSTUB(PT_MoveOpticalZoomAt                    ,0xff878370) //102
156NSTUB(PT_PlaySound                            ,0xff881b78) //  6
157NSTUB(PostLogicalEventForNotPowerType         ,0xff891630) //103
158NSTUB(PostLogicalEventToUI                    ,0xff89167c) //103
159NSTUB(PutInNdFilter                           ,0xffab3ef8) //102
160NSTUB(PutOutNdFilter                          ,0xffab3f1c) //102
161NSTUB(Read                                    ,0xff81ad58) //101
162NSTUB(ReadFastDir                             ,0xffa91334) //  6
163NSTUB(Rec2PB                                  ,0xff89506c) //104
164NSTUB(RefreshPhysicalScreen                   ,0xff8a59f0) //104
165NSTUB(Remove                                  ,0xff836e38) //  6
166NSTUB(RenameFile_Fut                          ,0xff836548) //  6
167NSTUB(Restart                                 ,0xff83bedc) //106
168NSTUB(ScreenLock                              ,0xff8a6c28) //  4
169NSTUB(ScreenUnlock                            ,0xff8a6c8c) //  3
170NSTUB(SetAE_ShutterSpeed                      ,0xffb1d490) //102
171NSTUB(SetAutoShutdownTime                     ,0xff891ed8) //103
172NSTUB(SetCurrentCaptureModeType               ,0xff898be4) //101
173NSTUB(SetFileTimeStamp                        ,0xff837050) //  6
174NSTUB(SetLogicalEventActive                   ,0xff891bdc) //101
175NSTUB(SetParameterData                        ,0xff994760) //101
176NSTUB(SetPropertyCase                         ,0xff88ce90) //102
177NSTUB(SetScriptMode                           ,0xff891c2c) //101
178NSTUB(SleepTask                               ,0xff83a370) //101
179NSTUB(TakeSemaphore                           ,0xff839ff4) //101
180NSTUB(TurnOffBackLight                        ,0xff89e35c) //104
181NSTUB(TurnOnBackLight                         ,0xff89e344) //104
182NSTUB(UIFS_WriteFirmInfoToFile                ,0xff985c74) //101
183NSTUB(UnlockAF                                ,0xff8384b8) //102
184NSTUB(UnlockMainPower                         ,0xff891db8) //103
185NSTUB(UnsetZoomForMovie                       ,0xff99dd04) //104
186NSTUB(VbattGet                                ,0xff832e20) //101
187NSTUB(Write                                   ,0xff836d18) //101
188NSTUB(WriteSDCard                             ,0xff95145c) //108
189NSTUB(_log                                    ,0xffb590d0) //111
190NSTUB(_log10                                  ,0xffb59610) //112
191NSTUB(_pow                                    ,0xffb59788) //114
192NSTUB(_sqrt                                   ,0xffb5b3ac) //  6
193NSTUB(add_ptp_handler                         ,0xffa4733c) //  6
194NSTUB(apex2us                                 ,0xffa0c05c) //  4
195NSTUB(close                                   ,0xff81abb4) //  6
196NSTUB(closedir                                ,0xffa91190) //  4
197NSTUB(err_init_task                           ,0xff815fd4) //  4
198NSTUB(exmem_alloc                             ,0xff887afc) //101
199NSTUB(free                                    ,0xff814244) //112
200NSTUB(kbd_p1_f                                ,0xff83461c) //109
201NSTUB(kbd_p1_f_cont                           ,0xff834628) //109
202NSTUB(kbd_p2_f                                ,0xff833e30) //109
203NSTUB(kbd_read_keys                           ,0xff8345a0) //109
204NSTUB(kbd_read_keys_r2                        ,0xff85fd5c) //109
205NSTUB(lseek                                   ,0xff836ee0) //101
206NSTUB(malloc                                  ,0xff8141ec) //112
207NSTUB(memcmp                                  ,0xff8208bc) //101
208NSTUB(memcpy                                  ,0xff83fd4c) //101
209NSTUB(memset                                  ,0xffa0b05c) //101
210NSTUB(mkdir                                   ,0xff837160) //  6
211NSTUB(mktime_ext                              ,0xff8a7a6c) //  1
212NSTUB(open                                    ,0xff81ab04) //  6
213NSTUB(opendir                                 ,0xffa911e0) //  6
214NSTUB(openfastdir                             ,0xffa911e0) //  6
215NSTUB(qsort                                   ,0xffafd518) //  6
216NSTUB(rand                                    ,0xffa0b19c) //  6
217NSTUB(read                                    ,0xff81ad58) //101
218NSTUB(reboot_fw_update                        ,0xffa967d0) //  6
219NSTUB(rename                                  ,0xff836548) //  6
220NSTUB(set_control_event                       ,0xff8918a0) //111
221NSTUB(srand                                   ,0xffa0b190) //  6
222NSTUB(stat                                    ,0xff836f28) //  3
223NSTUB(strcat                                  ,0xff8a7224) //  1
224NSTUB(strchr                                  ,0xff8140b8) //  1
225NSTUB(strcmp                                  ,0xff820878) //101
226NSTUB(strcpy                                  ,0xff820860) //101
227NSTUB(strftime                                ,0xff8a746c) //113
228NSTUB(strlen                                  ,0xff814104) //101
229NSTUB(strncmp                                 ,0xff81406c) //  1
230NSTUB(strncpy                                 ,0xff814030) //  1
231NSTUB(strrchr                                 ,0xff8140dc) //  1
232NSTUB(strtol                                  ,0xff84004c) //101
233NSTUB(strtolx                                 ,0xff83fe50) //109
234  DEF(task_CaptSeq                            ,0xff87ab40) //110
235  DEF(task_ExpDrv                             ,0xff8be3ec) //110
236  DEF(task_InitFileModules                    ,0xff895844) //110
237  DEF(task_MovieRecord                        ,0xff96a0f8) //110
238  DEF(task_PhySw                              ,0xff83415c) //110
239NSTUB(time                                    ,0xff887110) //  6
240NSTUB(vsprintf                                ,0xff820820) //  6
241NSTUB(write                                   ,0xff836d18) //101
Note: See TracBrowser for help on using the repository browser.