aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/sis/init.h
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@iki.fi>2010-11-19 16:58:46 -0500
committerPaul Mundt <lethal@linux-sh.org>2010-11-24 02:02:51 -0500
commitb6c30ca6136c6c6900a086b6b843f738a588a2f3 (patch)
treef8f405758c94f330393cff45d679d48f1132c229 /drivers/video/sis/init.h
parente7d828ab91c95e9fdc85f5167f236a8c85fb2445 (diff)
sisfb: delete redudant #define SIS_LINUX_KERNEL
It's not needed anymore with SIS_XORG_XF86 gone. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Cc: Thomas Winischhofer <thomas@winischhofer.net> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video/sis/init.h')
-rw-r--r--drivers/video/sis/init.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/video/sis/init.h b/drivers/video/sis/init.h
index 4a75c73e134a..1d54759a49d4 100644
--- a/drivers/video/sis/init.h
+++ b/drivers/video/sis/init.h
@@ -56,7 +56,6 @@
56#include "osdef.h" 56#include "osdef.h"
57#include "initdef.h" 57#include "initdef.h"
58 58
59#ifdef SIS_LINUX_KERNEL
60#include "vgatypes.h" 59#include "vgatypes.h"
61#include "vstruct.h" 60#include "vstruct.h"
62#ifdef SIS_CP 61#ifdef SIS_CP
@@ -67,7 +66,6 @@
67#include <linux/fb.h> 66#include <linux/fb.h>
68#include "sis.h" 67#include "sis.h"
69#include <video/sisfb.h> 68#include <video/sisfb.h>
70#endif
71 69
72/* Mode numbers */ 70/* Mode numbers */
73static const unsigned short ModeIndex_320x200[] = {0x59, 0x41, 0x00, 0x4f}; 71static const unsigned short ModeIndex_320x200[] = {0x59, 0x41, 0x00, 0x4f};
@@ -1535,17 +1533,11 @@ void SiS_SetRegOR(SISIOADDRESS Port,unsigned short Index, unsigned short DataOR
1535void SiS_DisplayOn(struct SiS_Private *SiS_Pr); 1533void SiS_DisplayOn(struct SiS_Private *SiS_Pr);
1536void SiS_DisplayOff(struct SiS_Private *SiS_Pr); 1534void SiS_DisplayOff(struct SiS_Private *SiS_Pr);
1537void SiSRegInit(struct SiS_Private *SiS_Pr, SISIOADDRESS BaseAddr); 1535void SiSRegInit(struct SiS_Private *SiS_Pr, SISIOADDRESS BaseAddr);
1538#ifndef SIS_LINUX_KERNEL
1539void SiSSetLVDSetc(struct SiS_Private *SiS_Pr);
1540#endif
1541void SiS_SetEnableDstn(struct SiS_Private *SiS_Pr, int enable); 1536void SiS_SetEnableDstn(struct SiS_Private *SiS_Pr, int enable);
1542void SiS_SetEnableFstn(struct SiS_Private *SiS_Pr, int enable); 1537void SiS_SetEnableFstn(struct SiS_Private *SiS_Pr, int enable);
1543unsigned short SiS_GetModeFlag(struct SiS_Private *SiS_Pr, unsigned short ModeNo, 1538unsigned short SiS_GetModeFlag(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
1544 unsigned short ModeIdIndex); 1539 unsigned short ModeIdIndex);
1545bool SiSDetermineROMLayout661(struct SiS_Private *SiS_Pr); 1540bool SiSDetermineROMLayout661(struct SiS_Private *SiS_Pr);
1546#ifndef SIS_LINUX_KERNEL
1547void SiS_GetVBType(struct SiS_Private *SiS_Pr);
1548#endif
1549 1541
1550bool SiS_SearchModeID(struct SiS_Private *SiS_Pr, unsigned short *ModeNo, 1542bool SiS_SearchModeID(struct SiS_Private *SiS_Pr, unsigned short *ModeNo,
1551 unsigned short *ModeIdIndex); 1543 unsigned short *ModeIdIndex);
@@ -1564,16 +1556,12 @@ unsigned short SiS_GetFIFOThresholdB300(unsigned short idx1, unsigned short idx2
1564unsigned short SiS_GetLatencyFactor630(struct SiS_Private *SiS_Pr, unsigned short index); 1556unsigned short SiS_GetLatencyFactor630(struct SiS_Private *SiS_Pr, unsigned short index);
1565#endif 1557#endif
1566void SiS_LoadDAC(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex); 1558void SiS_LoadDAC(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex);
1567#ifdef SIS_LINUX_KERNEL
1568bool SiSSetMode(struct SiS_Private *SiS_Pr, unsigned short ModeNo); 1559bool SiSSetMode(struct SiS_Private *SiS_Pr, unsigned short ModeNo);
1569#endif
1570void SiS_CalcCRRegisters(struct SiS_Private *SiS_Pr, int depth); 1560void SiS_CalcCRRegisters(struct SiS_Private *SiS_Pr, int depth);
1571void SiS_CalcLCDACRT1Timing(struct SiS_Private *SiS_Pr, unsigned short ModeNo, 1561void SiS_CalcLCDACRT1Timing(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
1572 unsigned short ModeIdIndex); 1562 unsigned short ModeIdIndex);
1573#ifdef SIS_LINUX_KERNEL
1574void SiS_Generic_ConvertCRData(struct SiS_Private *SiS_Pr, unsigned char *crdata, int xres, 1563void SiS_Generic_ConvertCRData(struct SiS_Private *SiS_Pr, unsigned char *crdata, int xres,
1575 int yres, struct fb_var_screeninfo *var, bool writeres); 1564 int yres, struct fb_var_screeninfo *var, bool writeres);
1576#endif
1577 1565
1578/* From init301.c: */ 1566/* From init301.c: */
1579extern void SiS_GetVBInfo(struct SiS_Private *SiS_Pr, unsigned short ModeNo, 1567extern void SiS_GetVBInfo(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
@@ -1597,7 +1585,6 @@ extern unsigned short SiS_GetVCLK2Ptr(struct SiS_Private *SiS_Pr, unsigned short
1597extern bool SiS_IsVAMode(struct SiS_Private *); 1585extern bool SiS_IsVAMode(struct SiS_Private *);
1598extern bool SiS_IsDualEdge(struct SiS_Private *); 1586extern bool SiS_IsDualEdge(struct SiS_Private *);
1599 1587
1600#ifdef SIS_LINUX_KERNEL
1601#ifdef SIS300 1588#ifdef SIS300
1602extern unsigned int sisfb_read_nbridge_pci_dword(struct SiS_Private *SiS_Pr, int reg); 1589extern unsigned int sisfb_read_nbridge_pci_dword(struct SiS_Private *SiS_Pr, int reg);
1603extern void sisfb_write_nbridge_pci_dword(struct SiS_Private *SiS_Pr, int reg, 1590extern void sisfb_write_nbridge_pci_dword(struct SiS_Private *SiS_Pr, int reg,
@@ -1608,7 +1595,6 @@ extern void sisfb_write_nbridge_pci_byte(struct SiS_Private *SiS_Pr, int reg,
1608 unsigned char val); 1595 unsigned char val);
1609extern unsigned int sisfb_read_mio_pci_word(struct SiS_Private *SiS_Pr, int reg); 1596extern unsigned int sisfb_read_mio_pci_word(struct SiS_Private *SiS_Pr, int reg);
1610#endif 1597#endif
1611#endif
1612 1598
1613#endif 1599#endif
1614 1600