source: trunk/platform/a470/sub/102c/stubs_entry.S @ 1397

Revision 1397, 13.5 KB checked in by philmoz, 19 months ago (diff)

Update for finsig_dryos.c:

  • Rename USB_FLAG to USB_MASK to match usage in code
  • Added KEY_SHOOT_FULL_ONLY
  • 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 R23 (DRYOS version 2.3, release #0023)
6//   Firmware Ver GM1.02C
7//   Canon PowerShot A470
8
9// Values for makefile.inc
10//   PLATFORMID = 12666 (0x317a) // Found @ 0xfffe0130
11//   MAXRAMADDR = 0x01ffffff
12//   KEYSYS = d3enc              // Found @ 0xffff1a98
13//   NEED_ENCODED_DISKBOOT = 1   // Found @ 0xffff1a78
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(PutInNdFilter                         ,0xffdd7a00) //102        *** != 0xffe271f0
18//NSTUB(PutOutNdFilter                        ,0xffdd7a24) //102        *** != 0xffe27228
19//NSTUB(kbd_pwr_off                           ,0xffc30ff4) //  2 67%    *** != 0xffc00948
20// ERROR: kbd_pwr_on is not found.                         //--- ---    *** != 0xffc00948
21//NSTUB(rename                                ,0xffc133b4) //  1        *** != 0xffc13c30
22//NSTUB(write                                 ,0xffc13c08) //101        *** != 0xffc0a1bc
23
24// Check of modemap from 'platform/CAMERA/shooting.c':
25// Firmware modemap table found @ffc5f288 -> ffc5be6c -> ffd29660 -> ffde7b84 -> ffe90570
26// No problems found with modemap table.
27
28// Values below go in 'stubs_min.S':
29//DEF(physw_status                            ,0x000100bc) // Found @0xffc11c0c,          stubs_min = 0x000100bc (0x100BC)
30//DEF(physw_run                               ,0x00001bf0) // Found @0xffc118a8,          stubs_min = 0x00001bf0 (0x1BF0)
31//DEF(levent_table                            ,0xffe73984) // Found @0xffe73984,          stubs_min = 0xffe73984 (0xFFE73984)
32//DEF(FlashParamsTable                        ,0xffe90724) // Found @0xffe90724, ** != ** stubs_min = 0xffe96c8c (0xFFE96C8C)
33//DEF(movie_status                            ,0x00005200) // Found @0xffc45690,          stubs_min = 0x00005200 (0x5200)
34//DEF(canon_menu_active                       ,0x00009064) // Found @0xffd1f904,          stubs_min = 0x00009064 (0x9064)
35//DEF(canon_shoot_menu_active                 ,0x00009831) // Found @0xffd380c4, ** != ** stubs_min = 0x00009768 (0x9768)
36//DEF(playrec_mode                            ,0x00005370) // Found @0xffc4bc7c,          stubs_min = 0x00005370 (0x536C+4)
37//DEF(zoom_status                             ,0x0000d070) // Found @0xffde9384, ** != ** stubs_min = 0x0000d7c4 (0xD7C4)
38//DEF(some_flag_for_af_scan                   ,0x0000cdec) // Found @0xffdd7de4,          stubs_min = 0x0000cdec (0xCDEC)
39
40// Values below go in 'lib.c':
41//void *vid_get_bitmap_fb()        { return (void*)0x10361000; } // Found @0xffc2cc88
42//void *vid_get_viewport_fb()      { return (void*)0x10659d50; } // Found @0xffe2c344
43//char *camera_jpeg_count_str()    { return (char*)0x00049a80; } // Found @0xffd5e8c0
44//long hook_raw_size()             { return 0x008d0a68; }        // Found @0xffe2e5c0
45//int get_flash_params_count(void) { return 0x73; }              // Found @0xffd2a71c
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 @0xffe52658, levent 0x90a
49//#define SD_READONLY_IDX     2
50//#define USB_MASK            0x00040000 // Found @0xffe52660, 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_UP              ,0x00000001 }, // Found @0xffe525d8, levent 0x04
56//    { 2, KEY_MENU            ,0x00000400 }, // Found @0xffe52620, levent 0x09
57//    { 2, KEY_SHOOT_FULL      ,0x00000030 }, // Found @0xffe52600, levent 0x01
58//    { 2, KEY_SHOOT_FULL_ONLY ,0x00000020 }, // Found @0xffe52600, levent 0x01
59//    { 2, KEY_DOWN            ,0x00000002 }, // Found @0xffe525e0, levent 0x05
60//    { 2, KEY_RIGHT           ,0x00000004 }, // Found @0xffe525e8, levent 0x07
61//    { 2, KEY_LEFT            ,0x00000008 }, // Found @0xffe525f0, levent 0x06
62//    { 2, KEY_SET             ,0x00000100 }, // Found @0xffe52618, levent 0x08
63//    { 2, KEY_SHOOT_HALF      ,0x00000010 }, // Found @0xffe525f8, levent 0x00
64//    { 0, 0, 0 }
65//};
66
67// Values below go in 'platform_camera.h':
68//#define CAM_DRYOS         1
69//#define CAM_RAW_ROWPIX    3152 // Found @0xffe25d64
70//#define CAM_RAW_ROWS      2346 // Found @0xffe25d68
71//#undef  CAM_UNCACHED_BIT
72//#define CAM_UNCACHED_BIT  0x10000000 // Found @0xffc17e54
73
74// Stubs below matched 100%.
75//    Name                                     Address                Comp to stubs_entry_2.S
76NSTUB(AllocateMemory                          ,0xffddb2a4) //101
77NSTUB(AllocateUncacheableMemory               ,0xffc17e18) //112
78NSTUB(Close                                   ,0xffc13b5c) //101
79NSTUB(CreateTask                              ,0xffc0b8e0) //101
80NSTUB(DebugAssert                             ,0xffc0bdb8) //111
81NSTUB(DeleteFile_Fut                          ,0xffc13408) //112
82//NSTUB(DoAFLock                              ,0xffc157a0) //102            == 0xffc157a0
83//NSTUB(EnterToCompensationEVF                ,0xffc15a90) //104            == 0xffc15a90
84NSTUB(ExecuteEventProcedure                   ,0xffc53824) //  1
85NSTUB(ExitFromCompensationEVF                 ,0xffc15bdc) //104
86NSTUB(ExitTask                                ,0xffc0bb70) //101
87//NSTUB(ExpCtrlTool_StartContiAE              ,0xffc218c8) //104            == 0xffc218c8
88//NSTUB(ExpCtrlTool_StopContiAE               ,0xffc21a0c) //104            == 0xffc21a0c
89NSTUB(Fclose_Fut                              ,0xffc13584) //101
90NSTUB(Feof_Fut                                ,0xffc13770) //  1
91NSTUB(Fflush_Fut                              ,0xffc137ac) //  1
92NSTUB(Fgets_Fut                               ,0xffc136d8) //  1
93NSTUB(Fopen_Fut                               ,0xffc13544) //101
94NSTUB(Fread_Fut                               ,0xffc13630) //101
95NSTUB(FreeMemory                              ,0xffddb29c) //101
96NSTUB(FreeUncacheableMemory                   ,0xffc17e4c) //112
97NSTUB(Fseek_Fut                               ,0xffc13724) //101
98NSTUB(Fwrite_Fut                              ,0xffc13684) //101
99//NSTUB(GetBatteryTemperature                 ,0xffc3309c) //102            == 0xffc3309c
100NSTUB(GetCCDTemperature                       ,0xffc3302c) //102
101NSTUB(GetCurrentAvValue                       ,0xffd03d24) //102
102NSTUB(GetDrive_ClusterSize                    ,0xffc3cdec) //  1
103NSTUB(GetDrive_FreeClusters                   ,0xffc3ce54) //  1
104NSTUB(GetDrive_TotalClusters                  ,0xffc3ce20) //  1
105NSTUB(GetFocusLensSubjectDistance             ,0xffd02e1c) //102
106NSTUB(GetFocusLensSubjectDistanceFromLens     ,0xffd03128) //  1
107NSTUB(GetKbdState                             ,0xffc30fdc) //109
108NSTUB(GetMemInfo                              ,0xffc03c40) //  1
109//NSTUB(GetOpticalTemperature                 ,0xffc3310c) //102            == 0xffc3310c
110NSTUB(GetParameterData                        ,0xffd2a6dc) //101
111NSTUB(GetPropertyCase                         ,0xffc57424) //102
112NSTUB(GetSystemTime                           ,0xffddb2fc) //101
113NSTUB(GetZoomLensCurrentPoint                 ,0xffd06ae0) //102
114NSTUB(GetZoomLensCurrentPosition              ,0xffdd26d0) //102
115NSTUB(GiveSemaphore                           ,0xffc0b844) //112
116NSTUB(IsStrobeChargeCompleted                 ,0xffc97624) //102
117NSTUB(LEDDrive                                ,0xffc30884) //103
118NSTUB(LocalTime                               ,0xffc51544) //  1
119NSTUB(LockMainPower                           ,0xffc5ba84) //103
120NSTUB(Lseek                                   ,0xffc13c9c) //101
121NSTUB(MakeDirectory_Fut                       ,0xffc1347c) //  1
122NSTUB(MoveFocusLensToDistance                 ,0xffe28e90) //102
123NSTUB(MoveIrisWithAv                          ,0xffdd7618) //102
124NSTUB(MoveZoomLensWithPoint                   ,0xffdd7b9c) //102
125NSTUB(NewTaskShell                            ,0xffc56ee8) //103
126NSTUB(Open                                    ,0xffc13b34) //101
127NSTUB(PB2Rec                                  ,0xffc5e6a4) //104
128NSTUB(PT_MoveDigitalZoomToWide                ,0xffc46d04) //102
129NSTUB(PT_MoveOpticalZoomAt                    ,0xffc46cdc) //102
130NSTUB(PT_PlaySound                            ,0xffc465f0) //102
131//NSTUB(PostLogicalEventForNotPowerType       ,0xffc5b0f4) //103            == 0xffc5b0f4
132NSTUB(PostLogicalEventToUI                    ,0xffc5b140) //103
133NSTUB(Read                                    ,0xffc0a15c) //101
134NSTUB(ReadFastDir                             ,0xffdc4b9c) //  1
135NSTUB(Rec2PB                                  ,0xffc5e6d4) //104
136NSTUB(RefreshPhysicalScreen                   ,0xffd6789c) //104
137NSTUB(Remove                                  ,0xffc13ba4) //  1
138NSTUB(RenameFile_Fut                          ,0xffc133b4) //  1
139NSTUB(Restart                                 ,0xffc19690) //106
140//NSTUB(SetAE_ShutterSpeed                    ,0xffe2b554) //102            == 0xffe2b554
141NSTUB(SetAutoShutdownTime                     ,0xffc5baf8) //103
142NSTUB(SetCurrentCaptureModeType               ,0xffc61d9c) //101
143NSTUB(SetFileTimeStamp                        ,0xffc13e38) //  1
144NSTUB(SetLogicalEventActive                   ,0xffc5b820) //  1
145NSTUB(SetParameterData                        ,0xffd2a64c) //101
146NSTUB(SetPropertyCase                         ,0xffc57324) //102
147//NSTUB(SetScriptMode                         ,0xffc5b870) //101            == 0xffc5b870
148NSTUB(SleepTask                               ,0xffc17c9c) //101
149NSTUB(TakeSemaphore                           ,0xffc0b774) //101
150NSTUB(TurnOffBackLight                        ,0xffc662cc) //104
151NSTUB(TurnOnBackLight                         ,0xffc662b4) //104
152NSTUB(UIFS_WriteFirmInfoToFile                ,0xffd201e4) //103
153//NSTUB(UnlockAF                              ,0xffc158b8) //102            == 0xffc158b8
154NSTUB(UnlockMainPower                         ,0xffc5b9d8) //103
155//NSTUB(UnsetZoomForMovie                     ,0xffd2f750) //104            == 0xffd2f750
156NSTUB(UpdateMBROnFlash                        ,0xffc3cc2c) //  1
157NSTUB(VbattGet                                ,0xffc105d0) //103
158NSTUB(Write                                   ,0xffc13c08) //101
159//NSTUB(WriteSDCard                           ,0xffcf9440) //108            == 0xffcf9440
160NSTUB(_log                                    ,0xffe4ff5c) //111
161NSTUB(_log10                                  ,0xffe4eea0) //112
162NSTUB(_pow                                    ,0xffe4f010) //114
163NSTUB(_sqrt                                   ,0xffe512c4) //  1
164NSTUB(add_ptp_handler                         ,0xffd96b20) //  1
165NSTUB(apex2us                                 ,0xffd68dd8) //  4
166NSTUB(close                                   ,0xffc09f74) //  1
167NSTUB(closedir                                ,0xffdc4c6c) //  1
168NSTUB(err_init_task                           ,0xffc04e98) //  4
169NSTUB(exmem_alloc                             ,0xffc5200c) //103
170NSTUB(free                                    ,0xffc03a98) //112
171NSTUB(kbd_p1_f                                ,0xffc11d08) //109
172NSTUB(kbd_p1_f_cont                           ,0xffc11d14) //109
173NSTUB(kbd_p2_f                                ,0xffc11548) //109
174NSTUB(kbd_read_keys                           ,0xffc11c0c) //109
175NSTUB(kbd_read_keys_r2                        ,0xffc30bec) //109
176NSTUB(lseek                                   ,0xffc13c9c) //101
177NSTUB(malloc                                  ,0xffc039c4) //112
178NSTUB(memcmp                                  ,0xffc0d90c) //101
179NSTUB(memcpy                                  ,0xffc6ebb4) //101
180NSTUB(memset                                  ,0xffd67c50) //101
181NSTUB(mkdir                                   ,0xffc13f00) //  1
182// ALT: NSTUB(mkdir, 0xffc13fa0) // 1 32/0
183NSTUB(mktime_ext                              ,0xffc6f420) //  1
184NSTUB(open                                    ,0xffc09ec4) //  1
185NSTUB(opendir                                 ,0xffdc4b08) //  1
186NSTUB(openfastdir                             ,0xffdc4b08) //  1
187NSTUB(qsort                                   ,0xffd68158) //  1
188NSTUB(rand                                    ,0xffc0da14) //  1
189NSTUB(read                                    ,0xffc0a15c) //101
190NSTUB(readfastdir                             ,0xffdc4b9c) //  1
191NSTUB(reboot_fw_update                        ,0xffdc9470) //  5
192NSTUB(set_control_event                       ,0xffc5b574) //  1
193NSTUB(srand                                   ,0xffc0da08) //  1
194NSTUB(stat                                    ,0xffc13d68) //  1
195NSTUB(strcat                                  ,0xffc6e9a0) //  1
196NSTUB(strchr                                  ,0xffc6ea28) //  1
197NSTUB(strcmp                                  ,0xffc0d8a4) //101
198NSTUB(strcpy                                  ,0xffc0d88c) //101
199NSTUB(strftime                                ,0xffc6ee28) //  1
200NSTUB(strlen                                  ,0xffc0d8e8) //101
201NSTUB(strncmp                                 ,0xffc6e9dc) //  1
202NSTUB(strncpy                                 ,0xffc1d81c) //  1
203NSTUB(strrchr                                 ,0xffc6ea4c) //  1
204NSTUB(strtol                                  ,0xffc1da54) //101
205NSTUB(strtolx                                 ,0xffc1d858) //109
206  DEF(task_CaptSeq                            ,0xffc48dc0) //107
207  DEF(task_ExpDrv                             ,0xffc905d4) //110
208  DEF(task_InitFileModules                    ,0xffc5f114) //107
209  DEF(task_MovieRecord                        ,0xffc458f4) //107
210  DEF(task_PhySw                              ,0xffc118a4) //107
211NSTUB(time                                    ,0xffc513f8) //  1
212NSTUB(vsprintf                                ,0xffc0d80c) //  1
Note: See TracBrowser for help on using the repository browser.