Commit 661f659e authored by Kenji Toyama's avatar Kenji Toyama Committed by Greg Kroah-Hartman

Staging: xgifb: Fixed coding style issues in vb_def.h

I've removed all the warnings given by checkpatch.pl in vb_def.h and
also changed the indentation of pretty much the entire file so that it
is more consistent.
Signed-off-by: default avatarDaniel Kenji Toyama <kenji.toyama@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 8a94d1aa
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/xgi/initdef.h,v 1.4 2000/12/02 01:16:17 dawes Exp $ */
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/xgi/initdef.h
* ,v 1.4 2000/12/02 01:16:17 dawes Exp $*/
#ifndef _INITDEF_
#define _INITDEF_
......@@ -133,7 +134,7 @@
#define CheckWinDos 0x40
#define SetJDOSMode 0x80
#define Panel320x480 0x07/*fstn*/
#define Panel320x480 0x07 /*fstn*/
/* [ycchen] 02/12/03 Modify for Multi-Sync. LCD Support */
#define PanelResInfo 0x1F /* CR36 Panel Type/LCDResInfo */
#define PanelRefInfo 0x60
......@@ -228,11 +229,11 @@
#define StStructSize 0x06
#define XGI_CRT2_PORT_00 0x00 - 0x030
#define XGI_CRT2_PORT_04 0x04 - 0x030
#define XGI_CRT2_PORT_10 0x10 - 0x30
#define XGI_CRT2_PORT_12 0x12 - 0x30
#define XGI_CRT2_PORT_14 0x14 - 0x30
#define XGI_CRT2_PORT_00 (0x00 - 0x030)
#define XGI_CRT2_PORT_04 (0x04 - 0x030)
#define XGI_CRT2_PORT_10 (0x10 - 0x30)
#define XGI_CRT2_PORT_12 (0x12 - 0x30)
#define XGI_CRT2_PORT_14 (0x14 - 0x30)
#define LCDNonExpanding 0x10
......@@ -274,8 +275,8 @@
#define _PanelType0E 0x70
#define _PanelType0F 0x78
#define PRIMARY_VGA 0 /* 1: XGI is primary vga 0:XGI is secondary vga */
/* 1: XGI is primary vga 0:XGI is secondary vga */
#define PRIMARY_VGA 0
#define BIOSIDCodeAddr 0x235
#define OEMUtilIDCodeAddr 0x237
#define VBModeIDTableAddr 0x239
......@@ -364,25 +365,27 @@
#define ECLK_MCLK_DISTANCE 0x14
#define VBIOSTablePointerStart 0x200
#define StandTablePtrOffset VBIOSTablePointerStart+0x02
#define EModeIDTablePtrOffset VBIOSTablePointerStart+0x04
#define CRT1TablePtrOffset VBIOSTablePointerStart+0x06
#define ScreenOffsetPtrOffset VBIOSTablePointerStart+0x08
#define VCLKDataPtrOffset VBIOSTablePointerStart+0x0A
#define MCLKDataPtrOffset VBIOSTablePointerStart+0x0E
#define CRT2PtrDataPtrOffset VBIOSTablePointerStart+0x10
#define TVAntiFlickPtrOffset VBIOSTablePointerStart+0x12
#define TVDelayPtr1Offset VBIOSTablePointerStart+0x14
#define TVPhaseIncrPtr1Offset VBIOSTablePointerStart+0x16
#define TVYFilterPtr1Offset VBIOSTablePointerStart+0x18
#define LCDDelayPtr1Offset VBIOSTablePointerStart+0x20
#define TVEdgePtr1Offset VBIOSTablePointerStart+0x24
#define CRT2Delay1Offset VBIOSTablePointerStart+0x28
#define LCDDataDesOffset VBIOSTablePointerStart-0x02
#define LCDDataPtrOffset VBIOSTablePointerStart+0x2A
#define LCDDesDataPtrOffset VBIOSTablePointerStart+0x2C
#define LCDDataList VBIOSTablePointerStart+0x22 /* add for GetLCDPtr */
#define TVDataList VBIOSTablePointerStart+0x36 /* add for GetTVPtr */
#define StandTablePtrOffset (VBIOSTablePointerStart+0x02)
#define EModeIDTablePtrOffset (VBIOSTablePointerStart+0x04)
#define CRT1TablePtrOffset (VBIOSTablePointerStart+0x06)
#define ScreenOffsetPtrOffset (VBIOSTablePointerStart+0x08)
#define VCLKDataPtrOffset (VBIOSTablePointerStart+0x0A)
#define MCLKDataPtrOffset (VBIOSTablePointerStart+0x0E)
#define CRT2PtrDataPtrOffset (VBIOSTablePointerStart+0x10)
#define TVAntiFlickPtrOffset (VBIOSTablePointerStart+0x12)
#define TVDelayPtr1Offset (VBIOSTablePointerStart+0x14)
#define TVPhaseIncrPtr1Offset (VBIOSTablePointerStart+0x16)
#define TVYFilterPtr1Offset (VBIOSTablePointerStart+0x18)
#define LCDDelayPtr1Offset (VBIOSTablePointerStart+0x20)
#define TVEdgePtr1Offset (VBIOSTablePointerStart+0x24)
#define CRT2Delay1Offset (VBIOSTablePointerStart+0x28)
#define LCDDataDesOffset (VBIOSTablePointerStart-0x02)
#define LCDDataPtrOffset (VBIOSTablePointerStart+0x2A)
#define LCDDesDataPtrOffset (VBIOSTablePointerStart+0x2C)
/* add LCDDataList for GetLCDPtr */
#define LCDDataList (VBIOSTablePointerStart+0x22)
/* add TVDataList for GetTVPtr */
#define TVDataList (VBIOSTablePointerStart+0x36)
/* */
/* Modify from 310.inc */
/* */
......@@ -402,7 +405,8 @@
#define BoardTVType 0x02
#define SetSCARTOutput 0x01
#define ModeSettingYPbPr 0x02 /* TVModeSetting, Others as same as CR30 */
/* TVModeSetting, Others as same as CR30 */
#define ModeSettingYPbPr 0x02
/* TVModeSetting same as CR35 */
......@@ -425,7 +429,7 @@
#define CRT1Len 15
#define VCLKLen 4
#define DefThreshold 0x0100
#define ExtRegsSize (57+8+37+70+63+28+768+1)/64+1
#define ExtRegsSize ((57+8+37+70+63+28+768+1)/64+1)
#define VGA_XGI315 0x0001 /* VGA Type Info */
#define VGA_SNewis315e 0x0002 /* 315 series */
......@@ -572,7 +576,8 @@
#define SetLCDLowResolution 0x0200
#define SetLCDStdMode 0x0400
#define DefaultLCDCap 0x80ea /* LCD Capability shampoo */
/* LCD Capability shampoo */
#define DefaultLCDCap 0x80ea
#define RLVDSDHL00 0x0000
#define RLVDSDHL01 0x0001
#define RLVDSDHL10 0x0002 /* default */
......
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