source: rtems/c/src/exec/score/cpu/sh/rtems/score/sh_io.h @ df49c60

4.104.114.84.95
Last change on this file since df49c60 was 7908ba5b, checked in by Joel Sherrill <joel.sherrill@…>, on 02/18/99 at 18:28:24

Part of the automake VI patch from Ralf Corsepius <corsepiu@…>:

4) rtems-rc-19990202-0.diff /reorg-score-cpu.sh

reorg-score-cpu.sh reorganizes the cpu/<cpu>/* subdirectories in a
similar manner than previous reorg scripts did. rtems-rc-19990202-0.diff
contains the diffs after reorg-score-cpu.sh has been run on a
rtems-19981215 snapshot + my patches up to rtems-rc-19990131-2.diff.

This patch is rather nasty and may break something. However, I've tested
it for about 10 different target/bsp pairs and believe to have shaken
out most bugs.

I wonder about the following .h files that were not moved:

a29k/asm.h
a29k/cpu_asm.h
i386/asm.h
i960/asm.h
m68k/asm.h
m68k/m68302.h
m68k/m68360.h
m68k/qsm.h
m68k/sim.h
mips64orion/asm.h
mips64orion/cpu_asm.h
mips64orion/mips64orion.h
no_cpu/asm.h
no_cpu/cpu_asm.h
powerpc/asm.h
powerpc/mpc860.h
sh/asm.h
sparc/asm.h
sparc/erc32.h

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/*
2 * These are some macros to access memory mapped devices
3 * on the SH7000-architecture.
4 *
5 * Inspired from the linux kernel's include/asm/io.h
6 *
7 *  Authors: Ralf Corsepius (corsepiu@faw.uni-ulm.de) and
8 *           Bernd Becker (becker@faw.uni-ulm.de)
9 *
10 *  COPYRIGHT (c) 1996-1998, FAW Ulm, Germany
11 *
12 *  This program is distributed in the hope that it will be useful,
13 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 *
16 *
17 *  COPYRIGHT (c) 1998.
18 *  On-Line Applications Research Corporation (OAR).
19 *  Copyright assigned to U.S. Government, 1994.
20 *
21 *  The license and distribution terms for this file may be
22 *  found in the file LICENSE in this distribution or at
23 *  http://www.OARcorp.com/rtems/license.html.
24 *
25 *  $Id$
26 */
27
28#ifndef _asm_io_h
29#define _asm_io_h
30 
31#define readb(addr)     (*(volatile unsigned char *) (addr))
32#define readw(addr)     (*(volatile unsigned short *) (addr))
33#define readl(addr)     (*(volatile unsigned int *) (addr))
34#define read8(addr)     (*(volatile unsigned8 *) (addr))
35#define read16(addr)    (*(volatile unsigned16 *) (addr))
36#define read32(addr)    (*(volatile unsigned32 *) (addr))
37
38#define writeb(b,addr)  ((*(volatile unsigned char *) (addr)) = (b))
39#define writew(b,addr)  ((*(volatile unsigned short *) (addr)) = (b))
40#define writel(b,addr)  ((*(volatile unsigned int *) (addr)) = (b))
41#define write8(b,addr)  ((*(volatile unsigned8  *) (addr)) = (b))
42#define write16(b,addr) ((*(volatile unsigned16 *) (addr)) = (b))
43#define write32(b,addr) ((*(volatile unsigned32 *) (addr)) = (b))
44
45#define inb(addr)       readb(addr)
46#define outb(b,addr)    writeb(b,addr)
47
48#endif
Note: See TracBrowser for help on using the repository browser.