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

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [include/] [l4/] [arch/] [arm/] [io.h] - Rev 2

Compare with Previous | Blame | View Log

#ifndef __ARM_IO_H__
#define __ARM_IO_H__
/*
 * Arch-specific io functions/macros.
 *
 * Copyright (C) 2007 Bahadir Balban
 */
 
#if defined (__KERNEL__)
 
#include INC_GLUE(memlayout.h)
 
#define read(address)		*((volatile unsigned int *) (address))
#define write(val, address)	*((volatile unsigned int *) (address)) = val
 
#endif /* ends __KERNEL__ */
 
/*
 * Generic uart virtual address until a file-based console access
 * is available for userspace
 */
#define	USERSPACE_CONSOLE_VBASE		0xF9800000
 
 
#endif /* __ARM_IO_H__ */
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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