x86/mm/pat: Don't report PAT on CPUs that don't support it
[linux/fpc-iii.git] / arch / tile / include / asm / vga.h
blob7b46e754d611c8852b03a920ad7531f65bab6a58
1 /*
2 * Copyright 2010 Tilera Corporation. All Rights Reserved.
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation, version 2.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
11 * NON INFRINGEMENT. See the GNU General Public License for
12 * more details.
14 * Access to VGA videoram.
17 #ifndef _ASM_TILE_VGA_H
18 #define _ASM_TILE_VGA_H
20 #include <asm/io.h>
22 #define VT_BUF_HAVE_RW
24 static inline void scr_writew(u16 val, volatile u16 *addr)
26 __raw_writew(val, (volatile u16 __iomem *) addr);
29 static inline u16 scr_readw(volatile const u16 *addr)
31 return __raw_readw((volatile const u16 __iomem *) addr);
34 #define vga_readb(a) readb((u8 __iomem *)(a))
35 #define vga_writeb(v,a) writeb(v, (u8 __iomem *)(a))
37 #define VGA_MAP_MEM(x,s) ((unsigned long) ioremap(x, s))
39 #endif