root/trunk/platform/s95/sub/100e/stubs_entry_2.S @ 1244

Revision 1244, 3.9 KB (checked in by reyalp, 22 months ago)

s95 corrections from philmoz in  http://chdk.setepontos.com/index.php?topic=650.msg70627#msg70627
- updated stub addresses and added stubs entries or strrchr, rand and srand. removed custom S95 versions from code
- fixed get_flash_params_count
- changed display aspect ratio setting from 9/4 to x2 ( http://chdk.setepontos.com/index.php?topic=6395.0)
- removed redundant values from platform_camera.h
- updated DNG active area values
- updated modemap
- fixed option to save RAW/DNG in same folder as JPEG

  • Property svn:eol-style set to native
Line 
1#include "stubs_asm.h"
2#define NULL_STUB 0xFF8391E0
3
4// all addresses were found by similarity to s90 port unless otherwise stated
5
6// "not found" in stubs_entry.s
7NHSTUB(EnterToCompensationEVF, 0xFF838B40)
8NHSTUB(ExitFromCompensationEVF, 0xFF838BE4)
9NHSTUB(GetDrive_FreeClusters, 0xFF876A28)
10NHSTUB(GetParameterData, 0xFF9BBE98)
11NHSTUB(Lseek, 0xff83714c)
12NHSTUB(PT_PlaySound, 0xFF88B0A8)
13NHSTUB(ReadFastDir, 0xFFAD4130)
14NHSTUB(RefreshPhysicalScreen, 0xff8b6c8c)
15NHSTUB(Remove, 0xFF837064)
16NHSTUB(SetParameterData, 0xFF9BBD70)
17NHSTUB(TurnOffBackLight, 0xFF8AF278)
18NHSTUB(TurnOnBackLight,  0xFF8AF260)
19NHSTUB(UIFS_WriteFirmInfoToFile, 0xFF9A7D60)
20NHSTUB(free, 0xFF814244)
21NHSTUB(kbd_read_keys, 0xFF83498C)
22NHSTUB(openfastdir, 0xFFAD3FDC)
23NHSTUB(qsort, 0xFFB4BE88)                                                               // different from s90
24NHSTUB(readfastdir, 0xFFAD4130)                                                 // different from s90
25NHSTUB(rename, 0xff836914)
26NHSTUB(strtol, 0xFF840868)
27NHSTUB(Restart, 0xFF83C5B8)
28
29// less than 100% in stubs_entry.s
30// some of these may be the same as stubs_entry.s, but that is OK
31NHSTUB(Close, 0xff837030)
32NHSTUB(ExitTask, 0xff81eb30)
33NHSTUB(FreeUncacheableMemory, 0xFF83AE08)
34NHSTUB(GetBatteryTemperature, 0xFF869038)
35NHSTUB(GetCCDTemperature, 0xFF868FC4)
36NHSTUB(GetCurrentAvValue, 0xFF97E4B4)
37NHSTUB(GetDrive_ClusterSize, 0xFF8769C8)
38NHSTUB(GetDrive_TotalClusters, 0xFF8769FC)
39NHSTUB(GetFocusLensSubjectDistance, 0xFF97CB44)
40NHSTUB(GetFocusLensSubjectDistanceFromLens, 0xFF97CF90)
41NHSTUB(GetOpticalTemperature, 0xFF8690AC)//ok
42NHSTUB(GetPropertyCase, 0xFF896414)
43NHSTUB(GetSystemTime, 0xFFAFAD34)
44NHSTUB(GetZoomLensCurrentPoint, 0xFF980D38)
45NHSTUB(GetZoomLensCurrentPosition, 0xFFAE90E8)
46NHSTUB(IsStrobeChargeCompleted, 0xFF8EAE58)
47NHSTUB(LockMainPower, 0xff89d078)
48NHSTUB(MakeDirectory_Fut, 0xFF836A1C)
49NHSTUB(MoveFocusLensToDistance, 0xFFB5E3EC)
50NHSTUB(MoveZoomLensWithPoint, 0xFFAF7954)
51NHSTUB(NewTaskShell, 0xff895e30)                                                // ida scan says:0xff837598
52NHSTUB(Open, 0xFF836FC4)
53NHSTUB(PostLogicalEventForNotPowerType, 0xff89aa88)
54NHSTUB(PostLogicalEventToUI, 0xff89aad4)
55NHSTUB(RenameFile_Fut, 0xFF836914)
56NHSTUB(SetAutoShutdownTime, 0xff89d0ec)
57NHSTUB(SetCurrentCaptureModeType, 0xff8a5444)
58NHSTUB(SetFileTimeStamp, 0xFF8372CC)
59NHSTUB(SetLogicalEventActive, 0xff89cdb4)
60NHSTUB(SetPropertyCase, 0xFF8962EC)
61NHSTUB(SleepTask, 0xff83aa4c)
62NHSTUB(TakeSemaphore, 0xff83a714)
63NHSTUB(UnlockMainPower, 0xff89cfcc)
64NHSTUB(VbattGet, 0xff833188)
65NHSTUB(closedir, 0xFFAD3F8C)
66NHSTUB(closefastdir, 0xFFAD3F8C)
67NHSTUB(kbd_p1_f, 0xFF834A04)
68NHSTUB(kbd_p1_f_cont, 0xFF834A10)
69NHSTUB(kbd_p2_f, 0xFF83424C)
70NHSTUB(kbd_read_keys_r2, 0xFF864EE8)
71NHSTUB(lseek, 0xFF83714C)
72NHSTUB(mkdir, 0xFF8374CC)
73NHSTUB(opendir, 0xFFAD3FDC)
74NHSTUB(strcat, 0xFF8B8414)
75NHSTUB(strchr, 0xFF8140B4)
76NHSTUB(strncpy, 0xFF81402C)
77NHSTUB(strlen, 0xff814100)
78NHSTUB(time, 0xFF8905D4)
79
80// missing from stubs_entry.s
81NHSTUB(LEDDrive, 0xff86491c)                                            // different from s90
82NHSTUB(SetScriptMode, 0xff89ce04)                                       // different from s90
83NHSTUB(ScreenLock, 0xFF8B7E50)
84NHSTUB(ScreenUnlock, 0xFF8B7EB4)
85NHSTUB(apex2us, 0xFFA50D88)
86NHSTUB(MakeAFScan, 0xFF9896B4)
87NHSTUB(WriteSDCard, 0xFF96DD64)
88NHSTUB(UnlockAF, 0xFF8388D8)
89NHSTUB(DoAFLock, 0xFF8388A0)
90NHSTUB(UnsetZoomForMovie, 0xFF8AB114)
91NHSTUB(GetKbdState, 0xFF8655F0)
92NHSTUB(ExpCtrlTool_StartContiAE, 0xFF84734C)
93
94NHSTUB(srand, 0xffa4fea4)
95NHSTUB(rand, 0xffa4feb0)
96NHSTUB(strrchr, 0xff8140d8)
97NHSTUB(write, 0xff8370c0)
98NHSTUB(GetImageFolder, 0xff95e84c)
99NHSTUB(GetMemInfo, 0xff81a264)
100
101// could not find on s90 or s95 - ignore
102NHSTUB(kbd_pwr_on, NULL_STUB)
103NHSTUB(kbd_pwr_off, NULL_STUB)
104NHSTUB(rewinddir, NULL_STUB)
105NHSTUB(SetZoomActuatorSpeedPercent, NULL_STUB)
106NHSTUB(Unmount_FileSystem, NULL_STUB)
107NHSTUB(Mount_FileSystem, NULL_STUB)
108
109// added for PTP support
110// addresses found by comparing to ixus870 patches
111NHSTUB(add_ptp_handler, 0xFFA8E7F4)
112NHSTUB(set_control_event, 0xFF89C9A4)
113NHSTUB(PB2Rec, 0xFF8A0008)
114NHSTUB(Rec2PB, 0xFF8A0048)
115NHSTUB(reboot_fw_update, 0xFFAD9550)
Note: See TracBrowser for help on using the browser.