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

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [include/] [l4/] [drivers/] [uart/] [pl011/] [uart.h] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
/*
2
 * PL011 UART Generic driver implementation.
3
 * Copyright Bahadir Balban (C) 2009
4
 */
5
#ifndef __PL011_H__
6
#define __PL011_H__
7
 
8
#include INC_ARCH(io.h)
9
#include INC_PLAT(offsets.h)
10
 
11
/* Register offsets */
12
#define PL011_UARTDR            0x00
13
#define PL011_UARTRSR           0x04
14
#define PL011_UARTECR           0x04
15
#define PL011_UARTFR            0x18
16
#define PL011_UARTILPR          0x20
17
#define PL011_UARTIBRD          0x24
18
#define PL011_UARTFBRD          0x28
19
#define PL011_UARTLCR_H         0x2C
20
#define PL011_UARTCR            0x30
21
#define PL011_UARTIFLS          0x34
22
#define PL011_UARTIMSC          0x38
23
#define PL011_UARTRIS           0x3C
24
#define PL011_UARTMIS           0x40
25
#define PL011_UARTICR           0x44
26
#define PL011_UARTDMACR         0x48
27
 
28
 
29
void uart_tx_char(unsigned long uart_base, char c);
30
char uart_rx_char(unsigned long uart_base);
31
void uart_init(unsigned long base);
32
 
33
 
34
#endif /* __PL011__UART__ */
35
 

powered by: WebSVN 2.1.0

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