aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/xgifb/vb_init.c
Commit message (Collapse)AuthorAgeFilesLines
* Staging: xgifb: Fixed lots of coding style issues.Kenji Toyama2011-04-251-161/+366
| | | | | | | | | There were hundreds of warnings, but now there's only four. These are related to the 'volatile' keyword and printk(), which I think should be left to the maintainers to modify if deemed necessary. Signed-off-by: Daniel Kenji Toyama <kenji.toyama@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: rename XGINew_SetRegAND() to xgifb_reg_and()Aaro Koskinen2011-03-141-2/+2
| | | | | | | Rename XGINew_SetRegAND() to xgifb_reg_and(). Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: rename XGINew_SetRegANDOR() to xgifb_reg_and_or()Aaro Koskinen2011-03-141-17/+17
| | | | | | | Rename XGINew_SetRegANDOR() to xgifb_reg_and_or(). Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: rename XGINew_SetRegOR() to xgifb_reg_or()Aaro Koskinen2011-03-141-6/+6
| | | | | | | Rename XGINew_SetRegOR() to xgifb_reg_or(). Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: rename XGINew_GetReg1() to xgifb_reg_get()Aaro Koskinen2011-03-141-49/+49
| | | | | | | Rename XGINew_GetReg1() to xgifb_reg_get(). Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: rename XGINew_SetReg1() to xgifb_reg_set()Aaro Koskinen2011-03-141-292/+292
| | | | | | | Rename XGINew_SetReg1() to xgifb_reg_set(). Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: replace XGINew_SetReg4() with outl()Aaro Koskinen2011-03-141-4/+4
| | | | | | | Replace XGINew_SetReg4() with outl(). Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: replace XGINew_SetReg3() with outb()Aaro Koskinen2011-03-141-1/+1
| | | | | | | Replace XGINew_SetReg3() with outb(). Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: replace XGINew_GetReg3() with inl()Aaro Koskinen2011-03-141-4/+4
| | | | | | | Replace XGINew_GetReg3() with inl(). Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: replace DelayUS() with udelay()Aaro Koskinen2011-03-141-44/+39
| | | | | | | Replace DelayUS() with udelay(). Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: use mdelay() for millisecond delaysAaro Koskinen2011-03-141-3/+3
| | | | | | | Use mdelay() instead of udelay() for millisecond delays. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: eliminate redudant chip type >= XG40 checksAaro Koskinen2011-03-141-41/+29
| | | | | | | | Since all chips supported by the driver are >= XG40, these checks are redundant and the code can be modified accordingly. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: delete dead code for chip types < XG40Aaro Koskinen2011-03-141-8/+1
| | | | | | | | XG40 is the first supported chip, so the code for earlier chips can be dropped. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: vb_init: move functions to avoid forward declarationsAaro Koskinen2011-03-141-447/+428
| | | | | | | Move functions to avoid forward declarations. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: vb_init: make internal functions staticAaro Koskinen2011-03-091-25/+26
| | | | | | | Make some internal functions static. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: vb_init: delete unused functionsAaro Koskinen2011-03-091-1014/+0
| | | | | | | Delete unused functions. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: vb_init: delete redundant declarationsAaro Koskinen2011-03-091-21/+0
| | | | | | | Delete redundant declarations. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: delete bIntegratedMMEnabledAaro Koskinen2011-03-091-3/+0
| | | | | | | | bIntegratedMMEnabled is always true, so the field and checks can be eliminated. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: delete bSkipSenseAaro Koskinen2011-03-091-23/+21
| | | | | | | bSkipSense is always false, thus redundant. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: delete dead code for skipping the video memory sizingAaro Koskinen2011-02-231-20/+3
| | | | | | | Delete dead code for skipping the video memory sizing. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: xgifb: fixed many style issues in vb_init.cPrashant P. Shah2010-09-041-2746/+2220
| | | | | | | | | | | | This is a patch to the vb_init.c file that fixes many style issues found by the checkpatch.pl tool. - extra spaces - invalid code indent - extra braces - invalid comment style Signed-off-by: Prashant P. Shah <pshah.mumbai@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: xgifb: fix lots of sparse warningsRandy Dunlap2010-08-311-45/+63
| | | | | | | | | | | | | | Fix many sparse warnings about data or functions being static. Fix many sparse warnings about data or functions not being used (put them inside #if 0/#endif blocks). Fix sparse warnings about 0 being used for NULL. Fixed a small bit of source formatting when those lines were being modified anyway, but there is still lots of this yet to be done. Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Cc: devel@driverdev.osuosl.org Cc: Arnaud Patard <apatard@mandriva.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: xgifb: Remove typedefs in vb_struct.hBill Pemberton2010-06-221-81/+82
| | | | | | | | This removes all the remaining typedefs in vb_struct.h Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Arnaud Patard <apatard@mandriva.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: xgifb: Remove XGI_HW_DEVICE_INFO and PXGI_HW_DEVICE_INFO typedefsBill Pemberton2010-06-221-44/+44
| | | | | | Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Arnaud Patard <apatard@mandriva.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: xgifb: Remove XGI_DSReg and PXGI_DSReg typedefsBill Pemberton2010-06-221-1/+1
| | | | | | Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Arnaud Patard <apatard@mandriva.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: xgifb: Remove SHORT, UCHAR, and LONG typedefBill Pemberton2010-06-221-48/+50
| | | | | | Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Arnaud Patard <apatard@mandriva.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: xgifb: Remove USHORT, ULONG, BOOLEAN, and VOID typedefsBill Pemberton2010-06-221-141/+175
| | | | | | Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Arnaud Patard <apatard@mandriva.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: xgifb: Remove unused codeBill Pemberton2010-06-221-198/+0
| | | | | | | | Remove code that was removed using #if 0 Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Arnaud Patard <apatard@mandriva.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: xgifb: Remove PUSHORT, PLONGU, and PVOID typedefsBill Pemberton2010-06-221-36/+36
| | | | | | Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Arnaud Patard <apatard@mandriva.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: xgifb: Remove PUCHAR typedefBill Pemberton2010-06-221-6/+6
| | | | | | | | PUCHAR was unsigned char *, use that instead Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Arnaud Patard <apatard@mandriva.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: xgifb: Remove defines for TRUE, FALSE, and NULLBill Pemberton2010-06-221-24/+19
| | | | | | Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Arnaud Patard <apatard@mandriva.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: xgifb: Remove port macros in osdef.hBill Pemberton2010-06-221-1/+0
| | | | | | | | | | The port related macros in osdef.h are replaced with calls to out?() and in?(). This removes the last macros defined in osdef.h, so this file is no longer needed. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Arnaud Patard <apatard@mandriva.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: xgifb: Remove XGI_SetMemory and XGI_MemoryCopyBill Pemberton2010-06-221-2/+0
| | | | | | | | These were just macros for memset and memcpy, so use those instead. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Arnaud Patard <apatard@mandriva.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: xgifb: Remove use of LINUX_KERNEL defineBill Pemberton2010-06-221-17/+1
| | | | | | Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Arnaud Patard <apatard@mandriva.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: xgifb: Remove use of LINUX_XF86 defineBill Pemberton2010-06-221-9/+2
| | | | | | Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Arnaud Patard <apatard@mandriva.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: xgifb: Remove code for WIN2000Bill Pemberton2010-06-221-28/+0
| | | | | | Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Arnaud Patard <apatard@mandriva.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: XGI: remove duplicated #includeHuang Weiyi2010-06-181-1/+0
| | | | | | | | | Remove duplicated #include('s) in drivers/staging/xgifb/XGI_main_26.c drivers/staging/xgifb/vb_init.c Signed-off-by: Huang Weiyi <weiyi.huang@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: Add framebuffer driver for XGI chipsetsapatard@mandriva.com2010-06-041-0/+3444
This driver handles XG20, XG21, XG40, XG42 chipsets from XGI. They're also known as Z7,Z9,Z11 chipsets. It's based on the SiS fb driver but has been heavily modified by XGI to support their newer chipsets. Signed-off-by: Arnaud Patard <apatard@mandriva.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>