diff options
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/Kconfig | 6 | ||||
-rw-r--r-- | drivers/video/console/Kconfig | 2 | ||||
-rw-r--r-- | drivers/video/console/vgacon.c | 2 | ||||
-rw-r--r-- | drivers/video/fbmem.c | 2 |
4 files changed, 7 insertions, 5 deletions
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 7e297947a2b2..7192b770bfb6 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig | |||
@@ -494,7 +494,7 @@ config FB_TGA | |||
494 | 494 | ||
495 | config FB_VESA | 495 | config FB_VESA |
496 | bool "VESA VGA graphics support" | 496 | bool "VESA VGA graphics support" |
497 | depends on (FB = y) && (X86 || X86_64) | 497 | depends on (FB = y) && X86 |
498 | select FB_CFB_FILLRECT | 498 | select FB_CFB_FILLRECT |
499 | select FB_CFB_COPYAREA | 499 | select FB_CFB_COPYAREA |
500 | select FB_CFB_IMAGEBLIT | 500 | select FB_CFB_IMAGEBLIT |
@@ -712,7 +712,7 @@ config FB_RIVA_DEBUG | |||
712 | 712 | ||
713 | config FB_I810 | 713 | config FB_I810 |
714 | tristate "Intel 810/815 support (EXPERIMENTAL)" | 714 | tristate "Intel 810/815 support (EXPERIMENTAL)" |
715 | depends on FB && EXPERIMENTAL && PCI && X86 && !X86_64 | 715 | depends on FB && EXPERIMENTAL && PCI && X86_32 |
716 | select AGP | 716 | select AGP |
717 | select AGP_INTEL | 717 | select AGP_INTEL |
718 | select FB_MODE_HELPERS | 718 | select FB_MODE_HELPERS |
@@ -761,7 +761,7 @@ config FB_I810_I2C | |||
761 | 761 | ||
762 | config FB_INTEL | 762 | config FB_INTEL |
763 | tristate "Intel 830M/845G/852GM/855GM/865G support (EXPERIMENTAL)" | 763 | tristate "Intel 830M/845G/852GM/855GM/865G support (EXPERIMENTAL)" |
764 | depends on FB && EXPERIMENTAL && PCI && X86 && !X86_64 | 764 | depends on FB && EXPERIMENTAL && PCI && X86_32 |
765 | select AGP | 765 | select AGP |
766 | select AGP_INTEL | 766 | select AGP_INTEL |
767 | select FB_MODE_HELPERS | 767 | select FB_MODE_HELPERS |
diff --git a/drivers/video/console/Kconfig b/drivers/video/console/Kconfig index 7e731691e2a9..6a9ae2b3d1ab 100644 --- a/drivers/video/console/Kconfig +++ b/drivers/video/console/Kconfig | |||
@@ -28,7 +28,7 @@ config VGA_CONSOLE | |||
28 | 28 | ||
29 | config VIDEO_SELECT | 29 | config VIDEO_SELECT |
30 | bool "Video mode selection support" | 30 | bool "Video mode selection support" |
31 | depends on (X86 || X86_64) && VGA_CONSOLE | 31 | depends on X86 && VGA_CONSOLE |
32 | ---help--- | 32 | ---help--- |
33 | This enables support for text mode selection on kernel startup. If | 33 | This enables support for text mode selection on kernel startup. If |
34 | you want to take advantage of some high-resolution text mode your | 34 | you want to take advantage of some high-resolution text mode your |
diff --git a/drivers/video/console/vgacon.c b/drivers/video/console/vgacon.c index 809fee2140ac..56cd199605f4 100644 --- a/drivers/video/console/vgacon.c +++ b/drivers/video/console/vgacon.c | |||
@@ -579,6 +579,7 @@ static void vga_set_palette(struct vc_data *vc, unsigned char *table) | |||
579 | { | 579 | { |
580 | int i, j; | 580 | int i, j; |
581 | 581 | ||
582 | vga_w(state.vgabase, VGA_PEL_MSK, 0xff); | ||
582 | for (i = j = 0; i < 16; i++) { | 583 | for (i = j = 0; i < 16; i++) { |
583 | vga_w(state.vgabase, VGA_PEL_IW, table[i]); | 584 | vga_w(state.vgabase, VGA_PEL_IW, table[i]); |
584 | vga_w(state.vgabase, VGA_PEL_D, vc->vc_palette[j++] >> 2); | 585 | vga_w(state.vgabase, VGA_PEL_D, vc->vc_palette[j++] >> 2); |
@@ -721,6 +722,7 @@ static void vga_pal_blank(struct vgastate *state) | |||
721 | { | 722 | { |
722 | int i; | 723 | int i; |
723 | 724 | ||
725 | vga_w(state->vgabase, VGA_PEL_MSK, 0xff); | ||
724 | for (i = 0; i < 16; i++) { | 726 | for (i = 0; i < 16; i++) { |
725 | vga_w(state->vgabase, VGA_PEL_IW, i); | 727 | vga_w(state->vgabase, VGA_PEL_IW, i); |
726 | vga_w(state->vgabase, VGA_PEL_D, 0); | 728 | vga_w(state->vgabase, VGA_PEL_D, 0); |
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c index 9073be4221a8..e2667ddab3f1 100644 --- a/drivers/video/fbmem.c +++ b/drivers/video/fbmem.c | |||
@@ -918,7 +918,7 @@ fb_mmap(struct file *file, struct vm_area_struct * vma) | |||
918 | } | 918 | } |
919 | #endif | 919 | #endif |
920 | #elif defined(__powerpc__) | 920 | #elif defined(__powerpc__) |
921 | vma->vm_page_prot = phys_mem_access_prot(file, off, | 921 | vma->vm_page_prot = phys_mem_access_prot(file, off >> PAGE_SHIFT, |
922 | vma->vm_end - vma->vm_start, | 922 | vma->vm_end - vma->vm_start, |
923 | vma->vm_page_prot); | 923 | vma->vm_page_prot); |
924 | #elif defined(__alpha__) | 924 | #elif defined(__alpha__) |