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

4.104.114.84.95
Last change on this file since 8ef3818 was 8ef3818, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 12, 2000 at 7:57:02 PM

Patch from John Cotton <john.cotton@…>, Charles-Antoine Gauthier
<charles.gauthier@…>, and Darlene A. Stewart
<Darlene.Stewart@…> to add support for a number of very
significant things:

+ BSPs for many variations on the Motorola MBX8xx board series
+ Cache Manager including initial support for m68040

and PowerPC

+ Rework of mpc8xx libcpu code so all mpc8xx CPUs now use

same code base.

+ Rework of eth_comm BSP to utiltize above.

John reports this works on the 821 and 860

  • Property mode set to 100644
File size: 905 bytes
Line 
1/*
2 *  $Id$
3 */
4
5#ifndef _M8xx_CONSOLE_H_
6#define _M8xx_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.