RTEMS CPU Kit with SuperCore
4.11.3
Main Page
Related Pages
Modules
+
Data Structures
Data Structures
+
Data Fields
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
i
j
l
m
n
o
p
q
r
s
t
u
v
w
+
Variables
_
b
c
d
i
r
+
Typedefs
a
b
c
d
f
h
i
m
o
p
q
r
s
t
u
w
x
+
Enumerations
b
c
d
e
h
i
m
o
p
r
s
t
w
+
Enumerator
c
i
m
p
r
s
t
w
+
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
w
mnt
data0
chrisj
rtems
releases
rtems-release.git
4.11.3
ws-rtems
rtems-4.11.3
cpukit
score
cpu
sh
rtems
score
sh_io.h
Go to the documentation of this file.
1
10
/*
11
* Inspired from the linux kernel's include/asm/io.h
12
*
13
* Authors: Ralf Corsepius (corsepiu@faw.uni-ulm.de) and
14
* Bernd Becker (becker@faw.uni-ulm.de)
15
*
16
* COPYRIGHT (c) 1996-1998, FAW Ulm, Germany
17
*
18
* This program is distributed in the hope that it will be useful,
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21
*
22
*
23
* COPYRIGHT (c) 1998-2001.
24
* On-Line Applications Research Corporation (OAR).
25
*
26
* The license and distribution terms for this file may be
27
* found in the file LICENSE in this distribution or at
28
* http://www.rtems.org/license/LICENSE.
29
*/
30
31
#ifndef _RTEMS_SCORE_SH_IO_H
32
#define _RTEMS_SCORE_SH_IO_H
33
34
#define readb(addr) (*(volatile unsigned char *) (addr))
35
#define readw(addr) (*(volatile unsigned short *) (addr))
36
#define readl(addr) (*(volatile unsigned int *) (addr))
37
#define read8(addr) (*(volatile uint8_t *) (addr))
38
#define read16(addr) (*(volatile uint16_t *) (addr))
39
#define read32(addr) (*(volatile uint32_t *) (addr))
40
41
#define writeb(b,addr) ((*(volatile unsigned char *) (addr)) = (b))
42
#define writew(b,addr) ((*(volatile unsigned short *) (addr)) = (b))
43
#define writel(b,addr) ((*(volatile unsigned int *) (addr)) = (b))
44
#define write8(b,addr) ((*(volatile uint8_t *) (addr)) = (b))
45
#define write16(b,addr) ((*(volatile uint16_t *) (addr)) = (b))
46
#define write32(b,addr) ((*(volatile uint32_t *) (addr)) = (b))
47
48
#define inb(addr) readb(addr)
49
#define outb(b,addr) writeb(b,addr)
50
51
#endif
Generated by
1.8.13