]> err.no Git - linux-2.6/commit
fbdev: detect primary display device
authorAntonino A. Daplas <adaplas@gmail.com>
Tue, 17 Jul 2007 11:05:28 +0000 (04:05 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 17 Jul 2007 17:23:11 +0000 (10:23 -0700)
commit317b3c2167f5326a7de30a1abe50c9897da7a0e3
treee0a8481121bb54bc2e714ea3b6c89b67a881a278
parent10eb2659cc6059d0c4de2e2c66d1534091519f56
fbdev: detect primary display device

Add function helper, fb_is_primary_device().  Given struct fb_info, it will
return a nonzero value if the device is the primary display.

Currently, only the i386 is supported where the function checks for the
IORESOURCE_ROM_SHADOW flag.

Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
27 files changed:
arch/i386/Makefile
arch/i386/video/Makefile [new file with mode: 0644]
arch/i386/video/fbdev.c [new file with mode: 0644]
include/asm-alpha/fb.h
include/asm-arm/fb.h
include/asm-arm26/fb.h
include/asm-avr32/fb.h
include/asm-blackfin/fb.h
include/asm-cris/fb.h
include/asm-frv/fb.h
include/asm-h8300/fb.h
include/asm-i386/fb.h
include/asm-ia64/fb.h
include/asm-m32r/fb.h
include/asm-m68k/fb.h
include/asm-m68knommu/fb.h
include/asm-mips/fb.h
include/asm-parisc/fb.h
include/asm-powerpc/fb.h
include/asm-s390/fb.h
include/asm-sh/fb.h
include/asm-sh64/fb.h
include/asm-sparc/fb.h
include/asm-sparc64/fb.h
include/asm-v850/fb.h
include/asm-x86_64/fb.h
include/asm-xtensa/fb.h