seqlock: Get rid of SEQLOCK_UNLOCKED
[pandora-kernel.git] / arch / tile / include / asm / vga.h
1 /*
2  * Copyright 2010 Tilera Corporation. All Rights Reserved.
3  *
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.
7  *
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.
13  *
14  * Access to VGA videoram.
15  */
16
17 #ifndef _ASM_TILE_VGA_H
18 #define _ASM_TILE_VGA_H
19
20 #include <asm/io.h>
21
22 #define VT_BUF_HAVE_RW
23
24 static inline void scr_writew(u16 val, volatile u16 *addr)
25 {
26         __raw_writew(val, (volatile u16 __iomem *) addr);
27 }
28
29 static inline u16 scr_readw(volatile const u16 *addr)
30 {
31         return __raw_readw((volatile const u16 __iomem *) addr);
32 }
33
34 #define vga_readb(a)    readb((u8 __iomem *)(a))
35 #define vga_writeb(v,a) writeb(v, (u8 __iomem *)(a))
36
37 #define VGA_MAP_MEM(x,s)        ((unsigned long) ioremap(x, s))
38
39 #endif