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