ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-um / io.h
1 #ifndef __UM_IO_H
2 #define __UM_IO_H
3
4 #include "asm/page.h"
5
6 #define IO_SPACE_LIMIT 0xdeadbeef /* Sure hope nothing uses this */
7
8 static inline int inb(unsigned long i) { return(0); }
9 static inline void outb(char c, unsigned long i) { }
10
11 /*
12  * Change virtual addresses to physical addresses and vv.
13  * These are pretty trivial
14  */
15 static inline unsigned long virt_to_phys(volatile void * address)
16 {
17         return __pa((void *) address);
18 }
19
20 static inline void * phys_to_virt(unsigned long address)
21 {
22         return __va(address);
23 }
24
25 #endif