~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to arch/tile/include/asm/vga.h

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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