Aaro Koskinen
1cccd9e41d
staging: xgifb: constify Tap4 data
...
Make Tap4 data const and adjust functions accordingly.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:30 -08:00
Aaro Koskinen
ea12b4e077
staging: xgifb: eliminate pVBInfo->AGPReg
...
Access XGI340_AGPReg directly and make it const.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:30 -08:00
Aaro Koskinen
0904f7f315
staging: xgifb: eliminate pVBInfo->SR16
...
Inline constant values that are used only once.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:30 -08:00
Aaro Koskinen
5ce24760f6
staging: xgifb: eliminate pVBInfo->CR6B
...
Access XGI340_CR6B directly and make it const.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:30 -08:00
Aaro Koskinen
38c09652a0
staging: xgifb: eliminate pVBInfo->SR21/22/25
...
In-line constants that are used only once.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:29 -08:00
Aaro Koskinen
c705ea8165
staging: xgifb: eliminate pVBInfo->StResInfo
...
Delete unused data.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:29 -08:00
Aaro Koskinen
e8e6c754e5
staging: xgifb: eliminate pVBInfo->ModeResInfo
...
Access XGI330_ModeResInfo directly and make it const.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:24 -08:00
Aaro Koskinen
224114c788
staging: xgifb: eliminate pVBInfo->ScreenOffset
...
Access XGI330_ScreenOffset directly and make it const.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:21 -08:00
Aaro Koskinen
acfe093e82
staging: xgifb: eliminate pVBInfo->VCLKData/VBVCLKData
...
Access XGI_VCLKData and XGI_VBVCLKData directly and make them const.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:20 -08:00
Aaro Koskinen
9b04745816
staging: xgifb: eliminate pVBInfo->ECLKData
...
Access XGI340_ECLKData directly and make it const.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:20 -08:00
Aaro Koskinen
7e29d632f3
staging: xgifb: eliminate pVBInfo->CR6E/6F/89
...
Eliminate dummy zero read-only global data.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:20 -08:00
Aaro Koskinen
7c5c07a611
staging: xgifb: eliminate pVBInfo->UpdateCRT1
...
Access XGI_UpdateCRT1Table directly and make it const.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:20 -08:00
Aaro Koskinen
7853bced96
staging: xgifb: eliminate pVBInfo->XGINEWUB_CRT1Table
...
Access XGI_CRT1Table directly and make it const.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:20 -08:00
Aaro Koskinen
a39325d24f
staging: xgifb: eliminate pVBInfo->RefIndex
...
Access XGI330_RefIndex directly and make it const.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:20 -08:00
Aaro Koskinen
b397992e88
staging: xgifb: eliminate pVBInfo->EModeIDTable
...
Access XGI330_EModeIDTable directly and make it const.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:19 -08:00
Aaro Koskinen
3625c9a782
staging: xgifb: eliminate pVBInfo->StandTable
...
Access XGI330_StandTable directly and make it const.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:19 -08:00
Aaro Koskinen
6154e7f48a
staging: xgifb: eliminate global TimingV/TimingH data
...
Use private data instead of global variables for timing data. Also,
get rid of the single element arrays.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:19 -08:00
Aaro Koskinen
6008f87765
staging: xgifb: refactor XGI_GetLVDSData()
...
Refactor XGI_GetLVDSData() to avoid nesting and redundant ifs.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:19 -08:00
Aaro Koskinen
bdb381ec74
staging: xgifb: vb_init.h: delete redundant declaration
...
XGI21_LCDCapList does not exist.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:19 -08:00
Aaro Koskinen
bdc9eb142c
staging: xgifb: constify LCD data
...
Make read-only LCD data tables const.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:19 -08:00
Aaro Koskinen
9d1c629925
staging: xgifb: XGI_GetLcdPtr: pass the table pointer directly
...
Let the caller pass the table pointer directly instead of using a magic
number to indicate which table to use.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:18 -08:00
Aaro Koskinen
6c27b37091
staging: xgifb: XGI_GetLcdPtr: delete redundant code
...
tempal is a write-only stack variable, and code touching it can be
deleted.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:18 -08:00
Aaro Koskinen
4736783cca
staging: xgifb: XGI_GetLcdPtr: use real pointers for data tables
...
Use real pointers for LCD data tables to simplify the code.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:18 -08:00
Aaro Koskinen
515e9a603f
staging: xgifb: XGI_GetLcdPtr: replace xgifb_epllcd_crt1
...
Replace xgifb_epllcd_crt1 with two different tables to make further
cleanups easier.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:18 -08:00
Aaro Koskinen
3e779fc949
staging: xgifb: XGI_GetLcdPtr: add separate table for VB_SIS301LV/VB_SIS302LV
...
Add a separate data table for VB_SIS301LV/VB_SIS302LV to avoid branching
and to make further cleanups easier.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:54:18 -08:00
Malcolm Priestley
f1426fd7cc
staging: vt6656: Remove WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT macro
...
Already removed in parts of driver.
Removed in remainder.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:52:58 -08:00
Malcolm Priestley
70e227790d
staging: vt6656: 64bit fixes: vCommandTimerWait change calculation of timer.
...
The timer appears to run too fast/race on 64 bit systems.
Using msecs_to_jiffies seems to cause a deadlock on 64 bit.
A calculation of (MSecond * HZ) / 1000 appears to run satisfactory.
Change BSSIDInfoCount to u32.
After this patch the driver can be successfully connect on little endian 64/32 bit systems.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:32 -08:00
Malcolm Priestley
1d651be13f
staging: vt6656: 64 bit fixes correct sizes of NDIS_802_11_ASSOCIATION_INFORMATION
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:32 -08:00
Malcolm Priestley
2f88964281
staging: vt6656: 64 bit fixes TKIPvMixKey remove unsigned long
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:31 -08:00
Malcolm Priestley
d5bbef7c94
staging: vt6656: 64 bit fixes pdwIV is now u32
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:31 -08:00
Malcolm Priestley
c0d05b305b
staging: vt6656: 64bit fixes: key.c/h change unsigned long to u32
...
Fixes long issues.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:31 -08:00
Malcolm Priestley
b4dc03af55
staging: vt6656: 64 bit fixes: fix long warning messages.
...
Fixes long warning messages from patch
[PATCH 08/14] staging: vt6656: 64 bit fixes : correct all type sizes
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:31 -08:00
Malcolm Priestley
7730492855
staging: vt6656: 64 bit fixes : correct all type sizes
...
After this patch all BYTE/WORD/DWORD types can be replaced with the appropriate u sizes.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:31 -08:00
Malcolm Priestley
21814d6c45
staging: vt6656: 64 bit fixes: int.h replaced DWORD with u32
...
Fixes size of long issues.
Signed-off-by: Malcolm Priestley<tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:31 -08:00
Malcolm Priestley
ed74395ca4
staging: vt6656: 64 bit fixes: rxtx.h Replace DWORD with u32.
...
Size of long issues.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:30 -08:00
Malcolm Priestley
a552397d5e
staging: vt6656: 64 bit fixes: use u32 for QWORD definition.
...
Size of long issues replace with u32.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:30 -08:00
Malcolm Priestley
cf5d170e02
staging: vt6656: 64 bit fixes: RXbBulkInProcessData Framesize
...
Size of long issues.
Framesize correction replace DWORD with u32.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:30 -08:00
Malcolm Priestley
d3b6f870ee
staging: vt6656: 64bit fixes: desh.h fix size. replace DWORD with u32.
...
Fixes size of long issues replace DWORD with u32.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:30 -08:00
Malcolm Priestley
eb304bddc4
staging: vt6656: 64bit fixes: dpc.c incorrect addressing of void structure.
...
Fixes the deadlock on 64 bit.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:30 -08:00
Malcolm Priestley
e2efba763b
staging: vt6656: 64 bit- Correctly address void structure.
...
Fixes 64 bit deadlock on successful association.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:51:30 -08:00
Malcolm Priestley
0421226828
staging: vt6656: fix viawget_wpa_param size
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:45:44 -08:00
Malcolm Priestley
d77fb7f756
staging: vt6656: nsDMA_tx_packet: free tx context bBoolInUse
...
This reduces the number of free TX urbs when key is not found.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:45:44 -08:00
Malcolm Priestley
bebbb29c96
staging: vt6656: dead code byCntMeasure/TKIPCounterMeasuresInvoked
...
remove TKIPCounterMeasuresInvoked and byCntMeasure
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:45:43 -08:00
Malcolm Priestley
95e40c7a16
staging: vt6656: dead code remove upc.h
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:45:43 -08:00
Malcolm Priestley
28044e0193
staging: vt6656: free skbuff and relocate on bReAllocSkb == FALSE.
...
bReAllocSkb == FALSE is when data is not fed to user land.
Free and relocate skbuff.
Where data is not sent return = FALSE from RXbBulkInProcessData.
This appears to reduce false errors when a reused skbuff has old data.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:45:43 -08:00
Malcolm Priestley
87c629853e
staging: vt6656: no need to bIndicateReceive when no bytes to read.
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:45:43 -08:00
Maxim Mikityanskiy
fbce428a07
staging: rtl8187se: Fixed size of BEACON_INTERVAL register
...
BEACON_INTERVAL register is 16-bit, not 32-bit
Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:41:59 -08:00
Maxim Mikityanskiy
53094af120
staging: rtl8187se: Removed empty stub read_acadapter_file()
...
Removed empty read_acadapter_file() and priv->PowerProfile that never
changes its value
Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:41:59 -08:00
Maxim Mikityanskiy
861437d2be
staging: rtl8187se: Removed unused fields in r8180_priv
...
Removed unused fields in r8180_priv and dead code that appeared after
field removal
Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:41:59 -08:00
Maxim Mikityanskiy
3044e45762
staging: rtl8187se: Removed unneeded reads from EEPROM
...
Removed unneeded reads from EEPROM and some unnecessary conditions
Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-13 12:41:58 -08:00