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

4.104.115
Last change on this file since 39a9f8e was 39a9f8e, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on 12/17/09 at 08:42:17

adapted to new prototype for *_write function

  • Property mode set to 100644
File size: 845 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_initialize(void);
11void m8xx_uart_interrupts_initialize(void);
12void m8xx_uart_scc_initialize (int minor);
13void m8xx_uart_smc_initialize (int minor);
14
15/* Termios callbacks */
16int m8xx_uart_pollRead(int minor);
17ssize_t m8xx_uart_pollWrite(int minor, const char* buf, size_t len);
18ssize_t m8xx_uart_write(int minor, const char *buf, size_t len);
19int m8xx_uart_setAttributes(int, const struct termios* t);
20
21
22#ifdef mpc860
23#define NUM_PORTS 6                /* number of serial ports for mpc860 */
24#else
25#define NUM_PORTS 4                /* number of serial ports for mpc821 */
26#endif
27
28#define SMC1_MINOR    0
29#define SMC2_MINOR    1
30#define SCC1_MINOR    2
31#define SCC2_MINOR    3
32#define SCC3_MINOR    4
33#define SCC4_MINOR    5
34
35
36#endif
Note: See TracBrowser for help on using the repository browser.