diff options
author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2010-11-19 16:58:46 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-11-24 02:02:51 -0500 |
commit | b6c30ca6136c6c6900a086b6b843f738a588a2f3 (patch) | |
tree | f8f405758c94f330393cff45d679d48f1132c229 /drivers/video/sis/init.h | |
parent | e7d828ab91c95e9fdc85f5167f236a8c85fb2445 (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.h | 14 |
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 */ |
73 | static const unsigned short ModeIndex_320x200[] = {0x59, 0x41, 0x00, 0x4f}; | 71 | static const unsigned short ModeIndex_320x200[] = {0x59, 0x41, 0x00, 0x4f}; |
@@ -1535,17 +1533,11 @@ void SiS_SetRegOR(SISIOADDRESS Port,unsigned short Index, unsigned short DataOR | |||
1535 | void SiS_DisplayOn(struct SiS_Private *SiS_Pr); | 1533 | void SiS_DisplayOn(struct SiS_Private *SiS_Pr); |
1536 | void SiS_DisplayOff(struct SiS_Private *SiS_Pr); | 1534 | void SiS_DisplayOff(struct SiS_Private *SiS_Pr); |
1537 | void SiSRegInit(struct SiS_Private *SiS_Pr, SISIOADDRESS BaseAddr); | 1535 | void SiSRegInit(struct SiS_Private *SiS_Pr, SISIOADDRESS BaseAddr); |
1538 | #ifndef SIS_LINUX_KERNEL | ||
1539 | void SiSSetLVDSetc(struct SiS_Private *SiS_Pr); | ||
1540 | #endif | ||
1541 | void SiS_SetEnableDstn(struct SiS_Private *SiS_Pr, int enable); | 1536 | void SiS_SetEnableDstn(struct SiS_Private *SiS_Pr, int enable); |
1542 | void SiS_SetEnableFstn(struct SiS_Private *SiS_Pr, int enable); | 1537 | void SiS_SetEnableFstn(struct SiS_Private *SiS_Pr, int enable); |
1543 | unsigned short SiS_GetModeFlag(struct SiS_Private *SiS_Pr, unsigned short ModeNo, | 1538 | unsigned short SiS_GetModeFlag(struct SiS_Private *SiS_Pr, unsigned short ModeNo, |
1544 | unsigned short ModeIdIndex); | 1539 | unsigned short ModeIdIndex); |
1545 | bool SiSDetermineROMLayout661(struct SiS_Private *SiS_Pr); | 1540 | bool SiSDetermineROMLayout661(struct SiS_Private *SiS_Pr); |
1546 | #ifndef SIS_LINUX_KERNEL | ||
1547 | void SiS_GetVBType(struct SiS_Private *SiS_Pr); | ||
1548 | #endif | ||
1549 | 1541 | ||
1550 | bool SiS_SearchModeID(struct SiS_Private *SiS_Pr, unsigned short *ModeNo, | 1542 | bool 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 | |||
1564 | unsigned short SiS_GetLatencyFactor630(struct SiS_Private *SiS_Pr, unsigned short index); | 1556 | unsigned short SiS_GetLatencyFactor630(struct SiS_Private *SiS_Pr, unsigned short index); |
1565 | #endif | 1557 | #endif |
1566 | void SiS_LoadDAC(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex); | 1558 | void SiS_LoadDAC(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex); |
1567 | #ifdef SIS_LINUX_KERNEL | ||
1568 | bool SiSSetMode(struct SiS_Private *SiS_Pr, unsigned short ModeNo); | 1559 | bool SiSSetMode(struct SiS_Private *SiS_Pr, unsigned short ModeNo); |
1569 | #endif | ||
1570 | void SiS_CalcCRRegisters(struct SiS_Private *SiS_Pr, int depth); | 1560 | void SiS_CalcCRRegisters(struct SiS_Private *SiS_Pr, int depth); |
1571 | void SiS_CalcLCDACRT1Timing(struct SiS_Private *SiS_Pr, unsigned short ModeNo, | 1561 | void SiS_CalcLCDACRT1Timing(struct SiS_Private *SiS_Pr, unsigned short ModeNo, |
1572 | unsigned short ModeIdIndex); | 1562 | unsigned short ModeIdIndex); |
1573 | #ifdef SIS_LINUX_KERNEL | ||
1574 | void SiS_Generic_ConvertCRData(struct SiS_Private *SiS_Pr, unsigned char *crdata, int xres, | 1563 | void 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: */ |
1579 | extern void SiS_GetVBInfo(struct SiS_Private *SiS_Pr, unsigned short ModeNo, | 1567 | extern 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 | |||
1597 | extern bool SiS_IsVAMode(struct SiS_Private *); | 1585 | extern bool SiS_IsVAMode(struct SiS_Private *); |
1598 | extern bool SiS_IsDualEdge(struct SiS_Private *); | 1586 | extern bool SiS_IsDualEdge(struct SiS_Private *); |
1599 | 1587 | ||
1600 | #ifdef SIS_LINUX_KERNEL | ||
1601 | #ifdef SIS300 | 1588 | #ifdef SIS300 |
1602 | extern unsigned int sisfb_read_nbridge_pci_dword(struct SiS_Private *SiS_Pr, int reg); | 1589 | extern unsigned int sisfb_read_nbridge_pci_dword(struct SiS_Private *SiS_Pr, int reg); |
1603 | extern void sisfb_write_nbridge_pci_dword(struct SiS_Private *SiS_Pr, int reg, | 1590 | extern 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); |
1609 | extern unsigned int sisfb_read_mio_pci_word(struct SiS_Private *SiS_Pr, int reg); | 1596 | extern 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 | ||