~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-tz023xykf0i6eosh
Tags: upstream-3.2.0
ImportĀ upstreamĀ versionĀ 3.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *      Access to VGA videoram
 
3
 *
 
4
 *      (c) 1998 Martin Mares <mj@ucw.cz>
 
5
 */
 
6
 
 
7
#ifndef _LINUX_ASM_VGA_H_
 
8
#define _LINUX_ASM_VGA_H_
 
9
 
 
10
#include <asm/types.h>
 
11
 
 
12
#define VT_BUF_HAVE_RW
 
13
 
 
14
#undef scr_writew
 
15
#undef scr_readw
 
16
 
 
17
static inline void scr_writew(u16 val, u16 *addr)
 
18
{
 
19
        BUG_ON((long) addr >= 0);
 
20
 
 
21
        *addr = val;
 
22
}
 
23
 
 
24
static inline u16 scr_readw(const u16 *addr)
 
25
{
 
26
        BUG_ON((long) addr >= 0);
 
27
 
 
28
        return *addr;
 
29
}
 
30
 
 
31
#define VGA_MAP_MEM(x,s) (x)
 
32
 
 
33
#endif