aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/sis/sis.h
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2007-05-08 03:39:50 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 14:15:33 -0400
commit0959f0ca29244ae983b406fba313816a29244be7 (patch)
tree1dd6c165a9298418eab3965eaec4d5c6727e6b50 /drivers/video/sis/sis.h
parentc831c338f0ad299fcd1592c6e4f30657480f39af (diff)
drivers/video/sis/: remove more kernel 2.4 code
Signed-off-by: Adrian Bunk <bunk@stusta.de> Cc: Thomas Winischhofer <thomas@winischhofer.net> Cc: "Antonino A. Daplas" <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/sis/sis.h')
-rw-r--r--drivers/video/sis/sis.h50
1 files changed, 2 insertions, 48 deletions
diff --git a/drivers/video/sis/sis.h b/drivers/video/sis/sis.h
index b1826d3c5222..d5e2d9c27847 100644
--- a/drivers/video/sis/sis.h
+++ b/drivers/video/sis/sis.h
@@ -27,11 +27,7 @@
27#include <linux/version.h> 27#include <linux/version.h>
28 28
29#include "osdef.h" 29#include "osdef.h"
30#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
31#include <video/sisfb.h> 30#include <video/sisfb.h>
32#else
33#include <linux/sisfb.h>
34#endif
35 31
36#include "vgatypes.h" 32#include "vgatypes.h"
37#include "vstruct.h" 33#include "vstruct.h"
@@ -40,12 +36,8 @@
40#define VER_MINOR 8 36#define VER_MINOR 8
41#define VER_LEVEL 9 37#define VER_LEVEL 9
42 38
43#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
44#include <linux/spinlock.h> 39#include <linux/spinlock.h>
45#define SIS_PCI_GET_CLASS(a, b) pci_get_class(a, b) 40
46#define SIS_PCI_GET_DEVICE(a,b,c) pci_get_device(a,b,c)
47#define SIS_PCI_GET_SLOT(a,b) pci_get_slot(a,b)
48#define SIS_PCI_PUT_DEVICE(a) pci_dev_put(a)
49#ifdef CONFIG_COMPAT 41#ifdef CONFIG_COMPAT
50#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,10) 42#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,10)
51#include <linux/ioctl32.h> 43#include <linux/ioctl32.h>
@@ -54,18 +46,7 @@
54#define SIS_NEW_CONFIG_COMPAT 46#define SIS_NEW_CONFIG_COMPAT
55#endif 47#endif
56#endif /* CONFIG_COMPAT */ 48#endif /* CONFIG_COMPAT */
57#else /* 2.4 */ 49
58#define SIS_PCI_GET_CLASS(a, b) pci_find_class(a, b)
59#define SIS_PCI_GET_DEVICE(a,b,c) pci_find_device(a,b,c)
60#define SIS_PCI_GET_SLOT(a,b) pci_find_slot(a,b)
61#define SIS_PCI_PUT_DEVICE(a)
62#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,19)
63#ifdef __x86_64__ /* Shouldn't we check for CONFIG_IA32_EMULATION here? */
64#include <asm/ioctl32.h>
65#define SIS_OLD_CONFIG_COMPAT
66#endif
67#endif
68#endif /* 2.4 */
69#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,8) 50#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,8)
70#define SIS_IOTYPE1 void __iomem 51#define SIS_IOTYPE1 void __iomem
71#define SIS_IOTYPE2 __iomem 52#define SIS_IOTYPE2 __iomem
@@ -497,26 +478,8 @@ struct sis_video_info {
497 478
498 struct fb_var_screeninfo default_var; 479 struct fb_var_screeninfo default_var;
499 480
500#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
501 struct fb_fix_screeninfo sisfb_fix; 481 struct fb_fix_screeninfo sisfb_fix;
502 u32 pseudo_palette[17]; 482 u32 pseudo_palette[17];
503#endif
504
505#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
506 struct display sis_disp;
507 struct display_switch sisfb_sw;
508 struct {
509 u16 red, green, blue, pad;
510 } sis_palette[256];
511 union {
512#ifdef FBCON_HAS_CFB16
513 u16 cfb16[16];
514#endif
515#ifdef FBCON_HAS_CFB32
516 u32 cfb32[16];
517#endif
518 } sis_fbcon_cmap;
519#endif
520 483
521 struct sisfb_monitor { 484 struct sisfb_monitor {
522 u16 hmin; 485 u16 hmin;
@@ -537,10 +500,6 @@ struct sis_video_info {
537 500
538 int mni; /* Mode number index */ 501 int mni; /* Mode number index */
539 502
540#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
541 int currcon;
542#endif
543
544 unsigned long video_size; 503 unsigned long video_size;
545 unsigned long video_base; 504 unsigned long video_base;
546 unsigned long mmio_size; 505 unsigned long mmio_size;
@@ -577,9 +536,6 @@ struct sis_video_info {
577 int sisfb_tvplug; 536 int sisfb_tvplug;
578 int sisfb_tvstd; 537 int sisfb_tvstd;
579 int sisfb_nocrt2rate; 538 int sisfb_nocrt2rate;
580#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
581 int sisfb_inverse;
582#endif
583 539
584 u32 heapstart; /* offset */ 540 u32 heapstart; /* offset */
585 SIS_IOTYPE1 *sisfb_heap_start; /* address */ 541 SIS_IOTYPE1 *sisfb_heap_start; /* address */
@@ -645,9 +601,7 @@ struct sis_video_info {
645 int modechanged; 601 int modechanged;
646 unsigned char modeprechange; 602 unsigned char modeprechange;
647 603
648#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
649 u8 sisfb_lastrates[128]; 604 u8 sisfb_lastrates[128];
650#endif
651 605
652 int newrom; 606 int newrom;
653 int haveXGIROM; 607 int haveXGIROM;