source: rtems/c/src/lib/libcpu/powerpc/mpc5xx/include/console.h @ d3d9ef37

4.104.114.84.95
Last change on this file since d3d9ef37 was a859df85, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/13/05 at 05:00:15

New header guards.

  • Property mode set to 100644
File size: 1.0 KB
Line 
1/*
2 *  Console declarations
3 *
4 *
5 *  MPC5xx port sponsored by Defence Research and Development Canada - Suffield
6 *  Copyright (C) 2004, Real-Time Systems Inc. (querbach@realtime.bc.ca)
7 *
8 *  The license and distribution terms for this file may be
9 *  found in found in the file LICENSE in this distribution or at
10 *  http://www.rtems.com/license/LICENSE.
11 * 
12 *  $Id$
13 */
14
15#ifndef _MPC5XX_CONSOLE_H
16#define _MPC5XX_CONSOLE_H
17
18#include <rtems/libio.h>
19#include <rtems/termiostypes.h>
20
21void m5xx_uart_reserve_resources(rtems_configuration_table *configuration);
22void m5xx_uart_initialize(int minor);
23
24/* Termios callbacks */
25int m5xx_uart_firstOpen(int maj, int min, void *arg);
26int m5xx_uart_lastClose(int maj, int min, void *arg);
27int m5xx_uart_pollRead(int minor);
28int m5xx_uart_pollWrite(int minor, const char* buf, int len);
29int m5xx_uart_write(int minor, const char *buf, int len);
30int m5xx_uart_setAttributes(int, const struct termios* t);
31
32#define NUM_PORTS       2       /* number of serial ports */
33
34#define SCI1_MINOR      0
35#define SCI2_MINOR      1
36
37#endif /* _MPC5XX_CONSOLE_H */
Note: See TracBrowser for help on using the repository browser.