diff options
author | Tobias Klauser <klto@zhaw.ch> | 2010-11-16 14:51:59 +0100 |
---|---|---|
committer | Tobias Klauser <klto@zhaw.ch> | 2010-11-16 14:52:20 +0100 |
commit | fc6515ef027d94412228875095708b949b801496 (patch) | |
tree | 2640edc09346a4d97cf09bb39d2ea8b21feceb86 /uart.h | |
parent | 6f8db3bda1c2644adfc25b83b73285df9a80585d (diff) |
Add basic device handling infrastructure
Diffstat (limited to 'uart.h')
-rw-r--r-- | uart.h | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -0,0 +1,24 @@ +/* + * Copyright (C) 2010 Tobias Klauser <tklauser@distanz.ch> + * + * This file is part of nios2sim-ng. + * + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive + * for more details. + */ + +#ifndef _UART_H_ +#define _UART_H_ + +#define UART_BASE 0x80681000 +#define UART_SIZE 32 + +#define UART_RXDATA_REG 0 +#define UART_TXDATA_REG 1 +#define UART_STATUS_REG 2 +#define UART_CONTROL_REG 3 + +extern struct device uart_core; + +#endif /* _UART_H_ */ |