blob: 91f40217bfa53e6077d358259f0e81384738e899 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef ASMARM_VGA_H
2#define ASMARM_VGA_H
3
Russell Kingfced80c2008-09-06 12:10:45 +01004#include <linux/io.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
Rob Herringcc22b4c2011-06-28 21:22:40 -05006extern unsigned long vga_base;
7
8#define VGA_MAP_MEM(x,s) (vga_base + (x))
Linus Torvalds1da177e2005-04-16 15:20:36 -07009
10#define vga_readb(x) (*((volatile unsigned char *)x))
11#define vga_writeb(x,y) (*((volatile unsigned char *)y) = (x))
12
13#endif