]> rtime.felk.cvut.cz Git - l4.git/blob - kernel/fiasco/src/drivers/arm/io-arm.cpp
Some minor fixes.
[l4.git] / kernel / fiasco / src / drivers / arm / io-arm.cpp
1 IMPLEMENTATION [arm]:
2
3 IMPLEMENT inline
4 void Io::iodelay()
5 {}
6
7 IMPLEMENT inline
8 Unsigned8  Io::in8(unsigned long port)
9 {
10   return *(volatile Unsigned8 *)port;
11 }
12
13 IMPLEMENT inline
14 Unsigned16 Io::in16( unsigned long port )
15 {
16   return *(volatile Unsigned16 *)port;
17 }
18
19 IMPLEMENT inline
20 Unsigned32 Io::in32(unsigned long port)
21 {
22   return *(volatile Unsigned32 *)port;
23 }
24
25 IMPLEMENT inline
26 void Io::out8 (Unsigned8  val, unsigned long port)
27 {
28   *(volatile Unsigned8 *)port = val;
29 }
30
31 IMPLEMENT inline
32 void Io::out16( Unsigned16 val, unsigned long port)
33 {
34   *(volatile Unsigned16 *)port = val;
35 }
36
37 IMPLEMENT inline
38 void Io::out32(Unsigned32 val, unsigned long port)
39 {
40   *(volatile Unsigned32 *)port = val;
41 }
42
43