source: rtems/c/src/lib/libbsp/powerpc/ppcn_60x/console/ns16550cfg.c @ 867ab080

4.104.114.84.95
Last change on this file since 867ab080 was d530943, checked in by Joel Sherrill <joel.sherrill@…>, on 10/12/01 at 21:06:23

2001-10-12 Joel Sherrill <joel@…>

  • clock/clock.c, console/console.c, console/debugio.c, console/ns16550cfg.c, console/ns16550cfg.h, console/z85c30cfg.c, console/z85c30cfg.h, include/bsp.h, startup/bspstart.c, startup/genpvec.c, startup/rtems-ctor.cc, startup/setvec.c, timer/timer.c: Fixed typo.
  • Property mode set to 100644
File size: 1.4 KB
Line 
1/*  nc16550cfg.c
2 *
3 *  This include file contains all console driver definations for the nc16550
4 *
5 *  COPYRIGHT (c) 1998 by Radstone Technology
6 *
7 *
8 * THIS FILE IS PROVIDED TO YOU, THE USER, "AS IS", WITHOUT WARRANTY OF ANY
9 * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
10 * IMPLIED WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK
11 * AS TO THE QUALITY AND PERFORMANCE OF ALL CODE IN THIS FILE IS WITH YOU.
12 *
13 * You are hereby granted permission to use, copy, modify, and distribute
14 * this file, provided that this notice, plus the above copyright notice
15 * and disclaimer, appears in all copies. Radstone Technology will provide
16 * no support for this code.
17 *
18 *  COPYRIGHT (c) 1989-1997.
19 *  On-Line Applications Research Corporation (OAR).
20 *
21 *  The license and distribution terms for this file may in
22 *  the file LICENSE in this distribution or at
23 *  http://www.OARcorp.com/rtems/license.html.
24 *
25 *  $Id$
26 */
27
28#include <rtems.h>
29#include <bsp.h>
30
31unsigned8 Read_ns16550_register(
32  unsigned32  ulCtrlPort,
33  unsigned8   ucRegNum
34)
35{
36  unsigned char *p = (unsigned char *)ulCtrlPort;
37  unsigned char ucData;
38
39  inport_byte( &p[ucRegNum], ucData );
40  return ucData;
41}
42
43void  Write_ns16550_register(
44  unsigned32  ulCtrlPort,
45  unsigned8   ucRegNum,
46  unsigned8   ucData
47)
48{
49  unsigned char *p = (unsigned char *)ulCtrlPort;
50
51  outport_byte( &p[ucRegNum], ucData );
52}
Note: See TracBrowser for help on using the repository browser.