diff options
Diffstat (limited to 'drivers/video/sis/sis.h')
-rw-r--r-- | drivers/video/sis/sis.h | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/drivers/video/sis/sis.h b/drivers/video/sis/sis.h index a14e82211037..7c5710e3fb56 100644 --- a/drivers/video/sis/sis.h +++ b/drivers/video/sis/sis.h | |||
@@ -24,8 +24,6 @@ | |||
24 | #ifndef _SIS_H_ | 24 | #ifndef _SIS_H_ |
25 | #define _SIS_H_ | 25 | #define _SIS_H_ |
26 | 26 | ||
27 | #include <linux/version.h> | ||
28 | |||
29 | #include "osdef.h" | 27 | #include "osdef.h" |
30 | #include <video/sisfb.h> | 28 | #include <video/sisfb.h> |
31 | 29 | ||
@@ -42,16 +40,6 @@ | |||
42 | #define SIS_NEW_CONFIG_COMPAT | 40 | #define SIS_NEW_CONFIG_COMPAT |
43 | #endif /* CONFIG_COMPAT */ | 41 | #endif /* CONFIG_COMPAT */ |
44 | 42 | ||
45 | #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,8) | ||
46 | #define SIS_IOTYPE1 void __iomem | ||
47 | #define SIS_IOTYPE2 __iomem | ||
48 | #define SISINITSTATIC static | ||
49 | #else | ||
50 | #define SIS_IOTYPE1 unsigned char | ||
51 | #define SIS_IOTYPE2 | ||
52 | #define SISINITSTATIC | ||
53 | #endif | ||
54 | |||
55 | #undef SISFBDEBUG | 43 | #undef SISFBDEBUG |
56 | 44 | ||
57 | #ifdef SISFBDEBUG | 45 | #ifdef SISFBDEBUG |
@@ -505,8 +493,8 @@ struct sis_video_info { | |||
505 | 493 | ||
506 | unsigned long UMAsize, LFBsize; | 494 | unsigned long UMAsize, LFBsize; |
507 | 495 | ||
508 | SIS_IOTYPE1 *video_vbase; | 496 | void __iomem *video_vbase; |
509 | SIS_IOTYPE1 *mmio_vbase; | 497 | void __iomem *mmio_vbase; |
510 | 498 | ||
511 | unsigned char *bios_abase; | 499 | unsigned char *bios_abase; |
512 | 500 | ||
@@ -533,8 +521,8 @@ struct sis_video_info { | |||
533 | int sisfb_nocrt2rate; | 521 | int sisfb_nocrt2rate; |
534 | 522 | ||
535 | u32 heapstart; /* offset */ | 523 | u32 heapstart; /* offset */ |
536 | SIS_IOTYPE1 *sisfb_heap_start; /* address */ | 524 | void __iomem *sisfb_heap_start; /* address */ |
537 | SIS_IOTYPE1 *sisfb_heap_end; /* address */ | 525 | void __iomem *sisfb_heap_end; /* address */ |
538 | u32 sisfb_heap_size; | 526 | u32 sisfb_heap_size; |
539 | int havenoheap; | 527 | int havenoheap; |
540 | 528 | ||
@@ -612,7 +600,7 @@ struct sis_video_info { | |||
612 | u8 detectedpdca; | 600 | u8 detectedpdca; |
613 | u8 detectedlcda; | 601 | u8 detectedlcda; |
614 | 602 | ||
615 | SIS_IOTYPE1 *hwcursor_vbase; | 603 | void __iomem *hwcursor_vbase; |
616 | 604 | ||
617 | int chronteltype; | 605 | int chronteltype; |
618 | int tvxpos, tvypos; | 606 | int tvxpos, tvypos; |