source: rtems/c/src/lib/libcpu/bfin/serial/uart.h @ c193baad

4.104.115
Last change on this file since c193baad was 359e537, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/30/09 at 05:09:41

Whitespace removal.

  • Property mode set to 100644
File size: 1.2 KB
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
19extern "C" {
20#endif
21
22
23typedef 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
33typedef struct {
34  uint32_t freq;
35  int num_channels;
36  bfin_uart_channel_t *channels;
37} bfin_uart_config_t;
38
39
40char bfin_uart_poll_read(int minor);
41
42void bfin_uart_poll_write(int minor, char c);
43
44rtems_status_code bfin_uart_initialize(rtems_device_major_number major,
45                                       bfin_uart_config_t *config);
46
47rtems_device_driver bfin_uart_open(rtems_device_major_number major,
48                                   rtems_device_minor_number minor,
49                                   void *arg);
50
51void 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.