Commit 582d6c22 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6655: baseband replace PSDevice

Coverting all functions to struct vnt_private.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3f8597f4
...@@ -1711,18 +1711,18 @@ static const unsigned short awcFrameTime[MAX_RATE] = ...@@ -1711,18 +1711,18 @@ static const unsigned short awcFrameTime[MAX_RATE] =
static static
unsigned long unsigned long
s_ulGetRatio(PSDevice pDevice); s_ulGetRatio(struct vnt_private *pDevice);
static static
void void
s_vChangeAntenna( s_vChangeAntenna(
PSDevice pDevice struct vnt_private *pDevice
); );
static static
void void
s_vChangeAntenna( s_vChangeAntenna(
PSDevice pDevice struct vnt_private *pDevice
) )
{ {
if (pDevice->dwRxAntennaSel == 0) { if (pDevice->dwRxAntennaSel == 0) {
...@@ -1827,7 +1827,7 @@ BBuGetFrameTime( ...@@ -1827,7 +1827,7 @@ BBuGetFrameTime(
*/ */
void void
BBvCalculateParameter( BBvCalculateParameter(
PSDevice pDevice, struct vnt_private *pDevice,
unsigned int cbFrameLength, unsigned int cbFrameLength,
unsigned short wRate, unsigned short wRate,
unsigned char byPacketType, unsigned char byPacketType,
...@@ -2115,7 +2115,7 @@ bool BBbIsRegBitsOff(void __iomem *dwIoBase, unsigned char byBBAddr, unsigned ch ...@@ -2115,7 +2115,7 @@ bool BBbIsRegBitsOff(void __iomem *dwIoBase, unsigned char byBBAddr, unsigned ch
* *
*/ */
bool BBbVT3253Init(PSDevice pDevice) bool BBbVT3253Init(struct vnt_private *pDevice)
{ {
bool bResult = true; bool bResult = true;
int ii; int ii;
...@@ -2310,7 +2310,7 @@ void BBvReadAllRegs(void __iomem *dwIoBase, unsigned char *pbyBBRegs) ...@@ -2310,7 +2310,7 @@ void BBvReadAllRegs(void __iomem *dwIoBase, unsigned char *pbyBBRegs)
* *
*/ */
void BBvLoopbackOn(PSDevice pDevice) void BBvLoopbackOn(struct vnt_private *pDevice)
{ {
unsigned char byData; unsigned char byData;
void __iomem *dwIoBase = pDevice->PortOffset; void __iomem *dwIoBase = pDevice->PortOffset;
...@@ -2363,7 +2363,7 @@ void BBvLoopbackOn(PSDevice pDevice) ...@@ -2363,7 +2363,7 @@ void BBvLoopbackOn(PSDevice pDevice)
* Return Value: none * Return Value: none
* *
*/ */
void BBvLoopbackOff(PSDevice pDevice) void BBvLoopbackOff(struct vnt_private *pDevice)
{ {
unsigned char byData; unsigned char byData;
void __iomem *dwIoBase = pDevice->PortOffset; void __iomem *dwIoBase = pDevice->PortOffset;
...@@ -2398,7 +2398,7 @@ void BBvLoopbackOff(PSDevice pDevice) ...@@ -2398,7 +2398,7 @@ void BBvLoopbackOff(PSDevice pDevice)
* *
*/ */
void void
BBvSetShortSlotTime(PSDevice pDevice) BBvSetShortSlotTime(struct vnt_private *pDevice)
{ {
unsigned char byBBRxConf = 0; unsigned char byBBRxConf = 0;
unsigned char byBBVGA = 0; unsigned char byBBVGA = 0;
...@@ -2418,7 +2418,7 @@ BBvSetShortSlotTime(PSDevice pDevice) ...@@ -2418,7 +2418,7 @@ BBvSetShortSlotTime(PSDevice pDevice)
BBbWriteEmbedded(pDevice->PortOffset, 0x0A, byBBRxConf); /* CR10 */ BBbWriteEmbedded(pDevice->PortOffset, 0x0A, byBBRxConf); /* CR10 */
} }
void BBvSetVGAGainOffset(PSDevice pDevice, unsigned char byData) void BBvSetVGAGainOffset(struct vnt_private *pDevice, unsigned char byData)
{ {
unsigned char byBBRxConf = 0; unsigned char byBBRxConf = 0;
...@@ -2594,7 +2594,7 @@ BBvExitDeepSleep(void __iomem *dwIoBase, unsigned char byLocalID) ...@@ -2594,7 +2594,7 @@ BBvExitDeepSleep(void __iomem *dwIoBase, unsigned char byLocalID)
static static
unsigned long unsigned long
s_ulGetRatio(PSDevice pDevice) s_ulGetRatio(struct vnt_private *pDevice)
{ {
unsigned long ulRatio = 0; unsigned long ulRatio = 0;
unsigned long ulMaxPacket; unsigned long ulMaxPacket;
...@@ -2689,7 +2689,7 @@ s_ulGetRatio(PSDevice pDevice) ...@@ -2689,7 +2689,7 @@ s_ulGetRatio(PSDevice pDevice)
} }
void void
BBvClearAntDivSQ3Value(PSDevice pDevice) BBvClearAntDivSQ3Value(struct vnt_private *pDevice)
{ {
unsigned int ii; unsigned int ii;
...@@ -2713,8 +2713,8 @@ BBvClearAntDivSQ3Value(PSDevice pDevice) ...@@ -2713,8 +2713,8 @@ BBvClearAntDivSQ3Value(PSDevice pDevice)
* *
*/ */
void void BBvAntennaDiversity(struct vnt_private *pDevice,
BBvAntennaDiversity(PSDevice pDevice, unsigned char byRxRate, unsigned char bySQ3) unsigned char byRxRate, unsigned char bySQ3)
{ {
if ((byRxRate >= MAX_RATE) || (pDevice->wAntDiversityMaxRate >= MAX_RATE)) if ((byRxRate >= MAX_RATE) || (pDevice->wAntDiversityMaxRate >= MAX_RATE))
return; return;
...@@ -2798,7 +2798,7 @@ TimerSQ3CallBack( ...@@ -2798,7 +2798,7 @@ TimerSQ3CallBack(
void *hDeviceContext void *hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; struct vnt_private *pDevice = hDeviceContext;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "TimerSQ3CallBack..."); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "TimerSQ3CallBack...");
spin_lock_irq(&pDevice->lock); spin_lock_irq(&pDevice->lock);
...@@ -2840,7 +2840,7 @@ TimerState1CallBack( ...@@ -2840,7 +2840,7 @@ TimerState1CallBack(
void *hDeviceContext void *hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; struct vnt_private *pDevice = hDeviceContext;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "TimerState1CallBack..."); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "TimerState1CallBack...");
......
...@@ -78,7 +78,7 @@ BBuGetFrameTime( ...@@ -78,7 +78,7 @@ BBuGetFrameTime(
void void
BBvCalculateParameter( BBvCalculateParameter(
PSDevice pDevice, struct vnt_private *pDevice,
unsigned int cbFrameLength, unsigned int cbFrameLength,
unsigned short wRate, unsigned short wRate,
unsigned char byPacketType, unsigned char byPacketType,
...@@ -91,15 +91,15 @@ bool BBbReadEmbedded(void __iomem *dwIoBase, unsigned char byBBAddr, unsigned ch ...@@ -91,15 +91,15 @@ bool BBbReadEmbedded(void __iomem *dwIoBase, unsigned char byBBAddr, unsigned ch
bool BBbWriteEmbedded(void __iomem *dwIoBase, unsigned char byBBAddr, unsigned char byData); bool BBbWriteEmbedded(void __iomem *dwIoBase, unsigned char byBBAddr, unsigned char byData);
void BBvReadAllRegs(void __iomem *dwIoBase, unsigned char *pbyBBRegs); void BBvReadAllRegs(void __iomem *dwIoBase, unsigned char *pbyBBRegs);
void BBvLoopbackOn(PSDevice pDevice); void BBvLoopbackOn(struct vnt_private *pDevice);
void BBvLoopbackOff(PSDevice pDevice); void BBvLoopbackOff(struct vnt_private *pDevice);
void BBvSetShortSlotTime(PSDevice pDevice); void BBvSetShortSlotTime(struct vnt_private *pDevice);
bool BBbIsRegBitsOn(void __iomem *dwIoBase, unsigned char byBBAddr, unsigned char byTestBits); bool BBbIsRegBitsOn(void __iomem *dwIoBase, unsigned char byBBAddr, unsigned char byTestBits);
bool BBbIsRegBitsOff(void __iomem *dwIoBase, unsigned char byBBAddr, unsigned char byTestBits); bool BBbIsRegBitsOff(void __iomem *dwIoBase, unsigned char byBBAddr, unsigned char byTestBits);
void BBvSetVGAGainOffset(PSDevice pDevice, unsigned char byData); void BBvSetVGAGainOffset(struct vnt_private *pDevice, unsigned char byData);
// VT3253 Baseband // VT3253 Baseband
bool BBbVT3253Init(PSDevice pDevice); bool BBbVT3253Init(struct vnt_private *pDevice);
void BBvSoftwareReset(void __iomem *dwIoBase); void BBvSoftwareReset(void __iomem *dwIoBase);
void BBvPowerSaveModeON(void __iomem *dwIoBase); void BBvPowerSaveModeON(void __iomem *dwIoBase);
void BBvPowerSaveModeOFF(void __iomem *dwIoBase); void BBvPowerSaveModeOFF(void __iomem *dwIoBase);
...@@ -120,8 +120,9 @@ TimerState1CallBack( ...@@ -120,8 +120,9 @@ TimerState1CallBack(
void *hDeviceContext void *hDeviceContext
); );
void BBvAntennaDiversity(PSDevice pDevice, unsigned char byRxRate, unsigned char bySQ3); void BBvAntennaDiversity(struct vnt_private *pDevice,
unsigned char byRxRate, unsigned char bySQ3);
void void
BBvClearAntDivSQ3Value(PSDevice pDevice); BBvClearAntDivSQ3Value(struct vnt_private *pDevice);
#endif // __BASEBAND_H__ #endif // __BASEBAND_H__
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment