Changeset 402
- Timestamp:
- 05/20/08 22:06:33 (2 years ago)
- Files:
-
- branches/dataghost/platform/tx1/sub/100g/boot.c (modified) (1 diff)
- branches/dataghost/platform/tx1/sub/100g/stubs_auto.S (modified) (1 diff)
- branches/dataghost/platform/tx1/sub/100g/stubs_entry_2.S (modified) (1 diff)
- branches/dataghost/platform/tx1/sub/100g/stubs_min.S (modified) (1 diff)
- branches/dataghost/platform/tx1/sub/101b/boot.c (modified) (1 diff)
- branches/dataghost/platform/tx1/sub/101b/stubs_auto.S (modified) (1 diff)
- branches/dataghost/platform/tx1/sub/101b/stubs_entry_2.S (modified) (1 diff)
- branches/dataghost/platform/tx1/sub/101b/stubs_min.S (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/dataghost/platform/tx1/sub/100g/boot.c
r388 r402 162 162 } 163 163 164 void __attribute__((naked,noinline)) dg_tx1_EViA() { 165 asm volatile( 166 "STR LR, [SP,#-4]!\n" 167 "BL dg_tx1_EViA_cont\n" 168 "MOV R0, R0,LSL#16\n" 169 "MOV R0, R0,LSR#16\n" 170 "LDR PC, [SP],#4\n" 171 ); 172 } 173 174 void __attribute__((naked,noinline)) dg_tx1_EViA_cont() { 175 asm volatile ( 176 "MOV R0, #0x6C\n" 177 "STR LR, [SP,#4]!\n" 178 "BL sub_FFB08E20\n" 179 "MOV R0, R0,LSL#16\n" 180 "MOV R0, R0,LSR#16\n" 181 "LDR PC, [SP],#4\n" 182 ); 183 } 184 185 void __attribute__((naked,noinline)) dg_tx1_EViB() { 186 asm volatile( 187 "STR LR, [SP,#-4]!\n" 188 "BL dg_tx1_EViB_cont\n" 189 "MOV R0, R0,LSL#16\n" 190 "MOV R0, R0,LSR#16\n" 191 "LDR PC, [SP],#4\n" 192 ); 193 } 194 195 void __attribute__((naked,noinline)) dg_tx1_EViB_cont() { 196 asm volatile ( 197 "MOV R0, #0x6D\n" 198 "STR LR, [SP,#4]!\n" 199 "BL sub_FFB08E20\n" 200 "MOV R0, R0,LSL#16\n" 201 "MOV R0, R0,LSR#16\n" 202 "LDR PC, [SP],#4\n" 203 ); 204 } 205 206 branches/dataghost/platform/tx1/sub/100g/stubs_auto.S
r388 r402 31 31 STUB(FFA4D7B0) 32 32 STUB(FFB057F8) 33 STUB(FFB08E20) 33 34 STUB(FFB1CF10) 34 35 STUB(FFB2535C) branches/dataghost/platform/tx1/sub/100g/stubs_entry_2.S
r388 r402 29 29 NHSTUB(PutInNdFilter, 0xffa63994) 30 30 NHSTUB(PutOutNdFilter, 0xffa639DC) 31 32 33 /////////// 34 // Following functions are for dgmod 35 // nullsub_1 is at 0xFF8117E8 36 NHSTUB(GetISPitchPWM, 0xFFA6D39C) 37 NHSTUB(GetISYawPWM, 0xFFA6D3B0) 38 NHSTUB(GetISShiftLensPitchPosition, 0xFFA6D3C4) 39 NHSTUB(GetISShiftLensYawPosition, 0xFFA6D3D8) 40 NHSTUB(SetISPitchPWM, 0xFFA6D138) 41 NHSTUB(SetISYawPWM, 0xFFA6D148) 42 NHSTUB(MoveISLensToTopLimitPosition, 0xFFA6D02C) 43 NHSTUB(MoveISLensToBottomLimitPosition, 0xFFA6D01C) 44 NHSTUB(MoveISLensToLeftLimitPosition, 0xFFA6D00C) 45 NHSTUB(MoveISLensToRightLimitPosition, 0xFFA6CFFC) 46 NHSTUB(MoveISLensToCentralPosition, 0xFFA6D270) 47 48 NHSTUB(GetISHallDevicePitchOffset, 0xFFA6D33C) 49 NHSTUB(GetISHallDeviceYawOffset, 0xFFA6D34C) 50 NHSTUB(GetISHallDevicePitchGain, 0xFFA6D35C) 51 NHSTUB(GetISHallDeviceYawGain, 0xFFA6D36C) 52 NHSTUB(GetISGyroPitchOffset, 0xFFA6CFB4) 53 NHSTUB(GetISGyroYawOffset, 0xFFA6CFAC) 54 NHSTUB(GetISGyroPitchGain, 0xFFA6D37C) 55 NHSTUB(GetISGyroYawGain, 0xFFA6D38C) 56 NHSTUB(GetISLensCenterShiftAaxis, 0xFFA6CF80) 57 NHSTUB(GetISLensCenterShiftBaxis, 0xFFA6CF88) 58 NHSTUB(GetISLensEViAaxis, dg_tx1_EViA) // Hack something 59 NHSTUB(GetISLensEViBaxis, dg_tx1_EViB) // Hack something 60 NHSTUB(GetISLensDampAaxis, 0xFF8117E8) // nullsub 61 NHSTUB(GetISLensDampBaxis, 0xFF8117E8) // nullsub 62 63 // Second set of IS lens controls 64 NHSTUB(GetISDriveAaxis, 0xFFB06AB8) 65 NHSTUB(GetISDriveBaxis, 0xFFB06AEC) 66 NHSTUB(GetISPositionAaxis, 0xFFB06B24) 67 NHSTUB(GetISPositionBaxis, 0xFFB06B5C) 68 NHSTUB(GetISHallOffsetAaxis, 0xFFB06B98) 69 NHSTUB(GetISHallOffsetBaxis, 0xFFB06BD4) 70 NHSTUB(GetISHallGainAaxis, 0xFFB06C0C) 71 NHSTUB(GetISHallGainBaxis, 0xFFB06C44) 72 NHSTUB(GetISGyroGainAaxis, 0xFFB06C7C) 73 NHSTUB(GetISGyroGainBaxis, 0xFFB06CB4) 74 NHSTUB(GetISCoefficientP_A, 0xFFB07140) 75 NHSTUB(GetISCoefficientP_B, 0xFFB07180) 76 NHSTUB(GetISCoefficientI_A, 0xFFB071C0) 77 NHSTUB(GetISCoefficientI_B, 0xFFB07200) 78 NHSTUB(GetISCoefficientD_A, 0xFFB07240) 79 NHSTUB(GetISCoefficientD_B, 0xFFB07280) 80 NHSTUB(GetISPLFAaxis, 0xFFB06FBC) 81 NHSTUB(GetISPLFBaxis, 0xFFB06FEC) 82 NHSTUB(GetISLPFAaxis, 0xFFB0703C) 83 NHSTUB(GetISLPFBaxis, 0xFFB0706C) 84 NHSTUB(GetISDbgData, 0xFFB06D78) 85 NHSTUB(GetISADData, 0xFFB06DBC) 86 NHSTUB(GetISDampAaxis, 0xFFB06F0C) 87 NHSTUB(GetISDampBaxis, 0xFFB06F44) 88 NHSTUB(GetISEViAaxis, dg_tx1_EViA) // Hack something 89 NHSTUB(GetISEViBaxis, dg_tx1_EViB) // Hack something 90 NHSTUB(GetISHallOut1Amp, 0xFFB06EAC) 91 NHSTUB(ISActive, 0xFFB072A4) 92 93 NHSTUB(GetWBStruct, 0xFF8117E8) // nullsub, not useful 94 95 NHSTUB(MuteOffPhysicalScreen, 0xFF848AD4) 96 97 98 //NHSTUB(PostLEDMessage, 0xFFA4290C) // Already in TX1 99 100 NHSTUB(TurnOnDisplay, 0xFF8489E4) 101 NHSTUB(TurnOffDisplay, 0xFF848A10) 102 NHSTUB(TurnOnBackLight, 0xFF848A3C) 103 NHSTUB(TurnOffBackLight, 0xFF848A6C) 104 NHSTUB(SwitchOnDisplay, 0xFFA6A444) 105 NHSTUB(SwitchOffDisplay, 0xFFA6A410) 106 107 NHSTUB(StopContinuousVRAMData, 0xFF8117E8) // nullsub, not useful 108 109 NHSTUB(GetShutterReadyStateVar, 0xFF8117E8) // nullsub, not useful 110 branches/dataghost/platform/tx1/sub/100g/stubs_min.S
r388 r402 10 10 DEF(focus_busy, 0x8F1A0) 11 11 DEF(led_table, 0x64DC0) 12 13 // Found in PutsCameraLogEvent, right before calling the actual 'puts' function 14 // ROM:FF815A44 LDR R3, =0xE8EC 15 // ROM:FF815A48 LDR R0, [R3] 16 // ROM:FF815A4C BL LogPutsToBuffer 17 DEF(dg_cameralog_base, 0xE8EC) 18 branches/dataghost/platform/tx1/sub/101b/boot.c
r388 r402 162 162 } 163 163 164 void __attribute__((naked,noinline)) dg_tx1_EViA() { 165 asm volatile( 166 "STR LR, [SP,#-4]!\n" 167 "BL dg_tx1_EViA_cont\n" 168 "MOV R0, R0,LSL#16\n" 169 "MOV R0, R0,LSR#16\n" 170 "LDR PC, [SP],#4\n" 171 ); 172 } 173 174 void __attribute__((naked,noinline)) dg_tx1_EViA_cont() { 175 asm volatile ( 176 "MOV R0, #0x6C\n" 177 "STR LR, [SP,#4]!\n" 178 "BL sub_FFB08EA0\n" 179 "MOV R0, R0,LSL#16\n" 180 "MOV R0, R0,LSR#16\n" 181 "LDR PC, [SP],#4\n" 182 ); 183 } 184 185 void __attribute__((naked,noinline)) dg_tx1_EViB() { 186 asm volatile( 187 "STR LR, [SP,#-4]!\n" 188 "BL dg_tx1_EViB_cont\n" 189 "MOV R0, R0,LSL#16\n" 190 "MOV R0, R0,LSR#16\n" 191 "LDR PC, [SP],#4\n" 192 ); 193 } 194 195 void __attribute__((naked,noinline)) dg_tx1_EViB_cont() { 196 asm volatile ( 197 "MOV R0, #0x6D\n" 198 "STR LR, [SP,#4]!\n" 199 "BL sub_FFB08EA0\n" 200 "MOV R0, R0,LSL#16\n" 201 "MOV R0, R0,LSR#16\n" 202 "LDR PC, [SP],#4\n" 203 ); 204 } 205 206 branches/dataghost/platform/tx1/sub/101b/stubs_auto.S
r388 r402 31 31 STUB(FFA4D830) 32 32 STUB(FFB05878) 33 STUB(FFB08EA0) 33 34 STUB(FFB1CF90) 34 35 STUB(FFB253DC) branches/dataghost/platform/tx1/sub/101b/stubs_entry_2.S
r388 r402 25 25 NHSTUB(SetPropertyCase, 0xFF81BC20) 26 26 NHSTUB(PostLEDMessage, 0xFFA4290C) 27 28 29 /////////// 30 // Following functions are for dgmod 31 // nullsub_1 is at 0xFF8117E8 32 NHSTUB(GetISPitchPWM, 0xFFA6D41C) 33 NHSTUB(GetISYawPWM, 0xFFA6D430) 34 NHSTUB(GetISShiftLensPitchPosition, 0xFFA6D444) 35 NHSTUB(GetISShiftLensYawPosition, 0xFFA6D458) 36 NHSTUB(SetISPitchPWM, 0xFFA6D1B8) 37 NHSTUB(SetISYawPWM, 0xFFA6D1C8) 38 NHSTUB(MoveISLensToTopLimitPosition, 0xFFA6D0AC) 39 NHSTUB(MoveISLensToBottomLimitPosition, 0xFFA6D09C) 40 NHSTUB(MoveISLensToLeftLimitPosition, 0xFFA6D08C) 41 NHSTUB(MoveISLensToRightLimitPosition, 0xFFA6D07C) 42 NHSTUB(MoveISLensToCentralPosition, 0xFFA6D2F0) 43 44 NHSTUB(GetISHallDevicePitchOffset, 0xFFA6D3BC) 45 NHSTUB(GetISHallDeviceYawOffset, 0xFFA6D3CC) 46 NHSTUB(GetISHallDevicePitchGain, 0xFFA6D3DC) 47 NHSTUB(GetISHallDeviceYawGain, 0xFFA6D3EC) 48 NHSTUB(GetISGyroPitchOffset, 0xFFA6D034) 49 NHSTUB(GetISGyroYawOffset, 0xFFA6D02C) 50 NHSTUB(GetISGyroPitchGain, 0xFFA6D3FC) 51 NHSTUB(GetISGyroYawGain, 0xFFA6D40C) 52 NHSTUB(GetISLensCenterShiftAaxis, 0xFFA6D000) 53 NHSTUB(GetISLensCenterShiftBaxis, 0xFFA6D008) 54 NHSTUB(GetISLensEViAaxis, dg_tx1_EViA) // Hack something 55 NHSTUB(GetISLensEViBaxis, dg_tx1_EViB) // Hack something 56 NHSTUB(GetISLensDampAaxis, 0xFF8117E8) // nullsub 57 NHSTUB(GetISLensDampBaxis, 0xFF8117E8) // nullsub 58 59 // Second set of IS lens controls 60 NHSTUB(GetISDriveAaxis, 0xFFB06B38) 61 NHSTUB(GetISDriveBaxis, 0xFFB06B6C) 62 NHSTUB(GetISPositionAaxis, 0xFFB06BA4) 63 NHSTUB(GetISPositionBaxis, 0xFFB06BDC) 64 NHSTUB(GetISHallOffsetAaxis, 0xFFB06C18) 65 NHSTUB(GetISHallOffsetBaxis, 0xFFB06C54) 66 NHSTUB(GetISHallGainAaxis, 0xFFB06C8C) 67 NHSTUB(GetISHallGainBaxis, 0xFFB06CC4) 68 NHSTUB(GetISGyroGainAaxis, 0xFFB06CFC) 69 NHSTUB(GetISGyroGainBaxis, 0xFFB06D34) 70 NHSTUB(GetISCoefficientP_A, 0xFFB071C0) 71 NHSTUB(GetISCoefficientP_B, 0xFFB07200) 72 NHSTUB(GetISCoefficientI_A, 0xFFB07240) 73 NHSTUB(GetISCoefficientI_B, 0xFFB07280) 74 NHSTUB(GetISCoefficientD_A, 0xFFB072C0) 75 NHSTUB(GetISCoefficientD_B, 0xFFB07300) 76 NHSTUB(GetISPLFAaxis, 0xFFB0703C) 77 NHSTUB(GetISPLFBaxis, 0xFFB0706C) 78 NHSTUB(GetISLPFAaxis, 0xFFB070BC) 79 NHSTUB(GetISLPFBaxis, 0xFFB070EC) 80 NHSTUB(GetISDbgData, 0xFFB06DF8) 81 NHSTUB(GetISADData, 0xFFB06E3C) 82 NHSTUB(GetISDampAaxis, 0xFFB06F8C) 83 NHSTUB(GetISDampBaxis, 0xFFB06FC4) 84 NHSTUB(GetISEViAaxis, dg_tx1_EViA) // Hack something 85 NHSTUB(GetISEViBaxis, dg_tx1_EViB) // Hack something 86 NHSTUB(GetISHallOut1Amp, 0xFFB06F2C) 87 NHSTUB(ISActive, 0xFFB07324) 88 89 NHSTUB(GetWBStruct, 0xFF8117E8) // nullsub, not useful 90 91 NHSTUB(MuteOffPhysicalScreen, 0xFF8883D0) 92 93 94 //NHSTUB(PostLEDMessage, 0xFFA4290C) // Already in TX1 95 96 NHSTUB(TurnOnDisplay, 0xFF8489E4) 97 NHSTUB(TurnOffDisplay, 0xFF848A10) 98 NHSTUB(TurnOnBackLight, 0xFF848A3C) 99 NHSTUB(TurnOffBackLight, 0xFF848A6C) 100 NHSTUB(SwitchOnDisplay, 0xFFA6A4C4) 101 NHSTUB(SwitchOffDisplay, 0xFFA6A490) 102 103 NHSTUB(StopContinuousVRAMData, 0xFF8117E8) // nullsub, not useful 104 105 NHSTUB(GetShutterReadyStateVar, 0xFF8117E8) // nullsub, not useful 106 branches/dataghost/platform/tx1/sub/101b/stubs_min.S
r388 r402 10 10 DEF(focus_busy, 0x8F1A0) 11 11 DEF(led_table, 0x64DC0) 12 13 // Found in PutsCameraLogEvent, right before calling the actual 'puts' function 14 // ROM:FF815A44 LDR R3, =0xE8EC 15 // ROM:FF815A48 LDR R0, [R3] 16 // ROM:FF815A4C BL LogPutsToBuffer 17 DEF(dg_cameralog_base, 0xE8EC) 18