source: rtems/c/src/lib/libcpu/powerpc/mpc8xx/include/console.h @ b83a2b6

4.104.114.84.95
Last change on this file since b83a2b6 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: 907 bytes
Line 
1/*
2 *  $Id$
3 */
4
5#ifndef _MPC8XX_CONSOLE_H
6#define _MPC8XX_CONSOLE_H
7
8#include <rtems/libio.h>
9
10void m8xx_uart_reserve_resources(rtems_configuration_table *configuration);
11void m8xx_uart_initialize(void);
12void m8xx_uart_interrupts_initialize(void);
13void m8xx_uart_scc_initialize (int minor);
14void m8xx_uart_smc_initialize (int minor);
15
16/* Termios callbacks */
17int m8xx_uart_pollRead(int minor);
18int m8xx_uart_pollWrite(int minor, const char* buf, int len);
19int m8xx_uart_write(int minor, const char *buf, int len);
20int m8xx_uart_setAttributes(int, const struct termios* t);
21
22
23#ifdef mpc860
24#define NUM_PORTS 6                /* number of serial ports for mpc860 */
25#else
26#define NUM_PORTS 4                /* number of serial ports for mpc821 */
27#endif
28
29#define SMC1_MINOR    0
30#define SMC2_MINOR    1
31#define SCC1_MINOR    2
32#define SCC2_MINOR    3
33#define SCC3_MINOR    4
34#define SCC4_MINOR    5
35
36
37#endif
Note: See TracBrowser for help on using the repository browser.