]> git.karo-electronics.de Git - karo-tx-linux.git/commit
m68k/video: Create <asm/vga.h>
authorGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 18 Apr 2012 09:45:17 +0000 (11:45 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 22 Apr 2012 18:16:50 +0000 (20:16 +0200)
commit5c3f968712cec168fa9775e8af0c0d6650e4bd47
treeeeda9280328af4dbe23d81ec77ee51c58ebe3519
parentf5db9c6a3dd94033a113a6bd9ccce9f8c28c70b1
m68k/video: Create <asm/vga.h>

For now, it just contains the hack for cirrusfb on Amiga, which is moved
out of <video/vga.h> with some slight modifications (use raw_*() instead of
z_*(), which are defined on all m68k platforms).

This makes it safe to include <video/vga.h> in all contexts. Before it
could fail to compile with

include/video/vga.h: In function ‘vga_mm_r’:
include/video/vga.h:242: error: implicit declaration of function ‘z_readb’
include/video/vga.h: In function ‘vga_mm_w’:
include/video/vga.h:247: error: implicit declaration of function ‘z_writeb’
include/video/vga.h: In function ‘vga_mm_w_fast’:
include/video/vga.h:253: error: implicit declaration of function ‘z_writew’

or

include/video/vga.h:23:21: error: asm/vga.h: No such file or directory

depending on the value of CONFIG_AMIGA.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: linux-fbdev@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
arch/m68k/include/asm/vga.h [new file with mode: 0644]
include/video/vga.h