OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [include/] [l4/] [arch/] [or1k/] [io.h] - Blame information for rev 7

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
#ifndef __ARM_IO_H__
2
#define __ARM_IO_H__
3
/*
4
 * Arch-specific io functions/macros.
5
 *
6
 * Copyright (C) 2007 Bahadir Balban
7
 */
8
 
9
#if defined (__KERNEL__)
10
 
11
#include INC_GLUE(memlayout.h)
12
 
13
#define read(address)           *((volatile unsigned int *) (address))
14
#define write(val, address)     *((volatile unsigned int *) (address)) = val
15
 
16
#endif /* ends __KERNEL__ */
17
 
18
/*
19
 * Generic uart virtual address until a file-based console access
20
 * is available for userspace
21
 */
22
#define USERSPACE_CONSOLE_VBASE         0xF9800000
23
 
24
 
25
#endif /* __ARM_IO_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.