OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-ia64/] [vga.h] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
#ifndef _ASM_IA64_VGA_H
2
#define _ASM_IA64_VGA_H
3
 
4
/*
5
 *      Access to VGA videoram
6
 *
7
 *      (c) 1998 Martin Mares <mj@ucw.cz>
8
 *      (c) 1999 Asit Mallick <asit.k.mallick@intel.com>
9
 *      (c) 1999 Don Dugger <don.dugger@intel.com>
10
 *      Copyright (C) 2002 Hewlett-Packard Co
11
 */
12
/*
13
 * 2002/07/19   davidm@hpl.hp.com       Access frame-buffer memory via readX/writeX.
14
 */
15
 
16
#include <asm/io.h>
17
 
18
#define VT_BUF_HAVE_RW
19
 
20
#define VGA_MAP_MEM(x)  ((unsigned long) ioremap((x), 0))
21
 
22
#define vga_readb       __raw_readb
23
#define vga_writeb      __raw_writeb
24
 
25
extern inline void
26
scr_writew (u16 val, volatile u16 *addr)
27
{
28
        /* Note: ADDR may point to normal memory.  That's OK on ia64.  */
29
        __raw_writew(val, (unsigned long) addr);
30
}
31
 
32
extern inline u16
33
scr_readw (volatile const u16 *addr)
34
{
35
        /* Note: ADDR may point to normal memory.  That's OK on ia64.  */
36
        return __raw_readw((unsigned long) addr);
37
}
38
 
39
#endif /* _ASM_IA64_VGA_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.