4.104.115
Line | |
---|
1 | /* |
---|
2 | * RTEMS driver for Blackfin UARTs |
---|
3 | * |
---|
4 | * COPYRIGHT (c) 2008 Kallisti Labs, Los Gatos, CA, USA |
---|
5 | * written by Allan Hessenflow <allanh@kallisti.com> |
---|
6 | * |
---|
7 | * The license and distribution terms for this file may be |
---|
8 | * found in the file LICENSE in this distribution or at |
---|
9 | * http://www.rtems.com/license/LICENSE. |
---|
10 | * |
---|
11 | * $Id$ |
---|
12 | */ |
---|
13 | |
---|
14 | #ifndef _uart_h_ |
---|
15 | #define _uart_h_ |
---|
16 | |
---|
17 | |
---|
18 | #ifdef __cplusplus |
---|
19 | extern "C" { |
---|
20 | #endif |
---|
21 | |
---|
22 | |
---|
23 | typedef struct { |
---|
24 | const char *name; |
---|
25 | void *base_address; |
---|
26 | bool use_interrupts; |
---|
27 | int force_baud; |
---|
28 | /* the following are for internal use */ |
---|
29 | void *termios; |
---|
30 | uint8_t volatile flags; |
---|
31 | } bfin_uart_channel_t; |
---|
32 | |
---|
33 | typedef struct { |
---|
34 | uint32_t freq; |
---|
35 | int num_channels; |
---|
36 | bfin_uart_channel_t *channels; |
---|
37 | } bfin_uart_config_t; |
---|
38 | |
---|
39 | |
---|
40 | char bfin_uart_poll_read(int minor); |
---|
41 | |
---|
42 | void bfin_uart_poll_write(int minor, char c); |
---|
43 | |
---|
44 | rtems_status_code bfin_uart_initialize(rtems_device_major_number major, |
---|
45 | bfin_uart_config_t *config); |
---|
46 | |
---|
47 | rtems_device_driver bfin_uart_open(rtems_device_major_number major, |
---|
48 | rtems_device_minor_number minor, |
---|
49 | void *arg); |
---|
50 | |
---|
51 | void bfin_uart_isr(int source); |
---|
52 | |
---|
53 | |
---|
54 | #ifdef __cplusplus |
---|
55 | } |
---|
56 | #endif |
---|
57 | |
---|
58 | #endif /* _uart_h_ */ |
---|
59 | |
---|
Note: See
TracBrowser
for help on using the repository browser.