source: rtems/c/src/lib/libbsp/arm/gumstix/console/uarts.c @ cfaa366

4.115
Last change on this file since cfaa366 was cfaa366, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 17:55:58

General - Remove extraneous blank line in license message

Many files had an extra blank line in the license text
found in the file header. This patch removes that line.

The script that did this also turned off execute permission
when it was turned on incorrectly.

  • Property mode set to 100644
File size: 2.1 KB
Line 
1/*
2 *  Console driver for GUMSTIX by Yang Xi <hiyangxi@gmail.com>
3 *
4 *  This driver uses the shared console driver in
5 *  ...../libbsp/shared/console.c
6 *
7 *  Copyright (c) 2003 by Cogent Computer Systems
8 *  Written by Jay Monkman <jtm@lopingdog.com>
9 *
10 *  The license and distribution terms for this file may be
11 *  found in the file LICENSE in this distribution or at
12 *  http://www.rtems.com/license/LICENSE.
13 *
14 *  $Id$
15 */
16
17#include <bsp.h>
18#include <rtems/libio.h>
19#include <termios.h>
20#include <rtems/bspIo.h>
21
22#include <pxa255.h>
23#include <libchip/serial.h>
24#include <libchip/sersupp.h>
25
26/* How many serial ports? */
27#define NUM_DEVS       1
28
29/* These are used by code in console.c */
30unsigned long Console_Configuration_Count = NUM_DEVS;
31
32extern console_fns ffuart_fns;
33
34/*
35 * There's one item in array for each UART.
36 *
37 * Some of these fields are marked "NOT USED". They are not used
38 * by console.c, but may be used by drivers in libchip
39 *
40 * when we add other types of UARTS we will need to move this
41 * structure to a generic uart.c file with only this in it
42 */
43console_tbl Console_Configuration_Ports[] = {
44    {
45        "/dev/com0",       /* sDeviceName */
46        SERIAL_CUSTOM,     /* deviceType */
47        &ffuart_fns,       /* pDeviceFns */
48        NULL,              /* deviceProbe */
49        NULL,              /* pDeviceFlow */
50        0,                 /* ulMargin - NOT USED */
51        0,                 /* ulHysteresis - NOT USED */
52        NULL,              /* pDeviceParams */
53        FFUART_BASE,       /* ulCtrlPort1  - Pointer to DBGU regs */
54        0,                 /* ulCtrlPort2  - NOT USED */
55        0,                 /* ulDataPort  - NOT USED */
56        NULL,              /* getRegister - NOT USED */
57        NULL,              /* setRegister - NOT USED */
58        NULL,              /* getData - NOT USED */
59        NULL,              /* setData - NOT USED */
60        0,                 /* ulClock - NOT USED */
61        0                  /* ulIntVector - NOT USED */
62    }};
63
64
65console_tbl *BSP_get_uart_from_minor(int minor)
66{
67    return Console_Port_Tbl[minor];
68}
Note: See TracBrowser for help on using the repository browser.