source: rtems/c/src/lib/libbsp/m68k/sim68000/console/conscfg.c @ cba119c9

4.104.114.84.95
Last change on this file since cba119c9 was f05b2ac, checked in by Ralf Corsepius <ralf.corsepius@…>, on Apr 21, 2004 at 4:01:48 PM

Remove duplicate white lines.

  • Property mode set to 100644
File size: 1.9 KB
Line 
1/*
2 *  This file contains the TTY driver table.
3 *
4 *  COPYRIGHT (c) 1989-2000.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *  $Id$
12 */
13
14#include <bsp.h>
15
16#include <libchip/serial.h>
17#include <libchip/mc68681.h>
18
19/*
20 *  Fix these for the simulator
21 */
22
23#define MC68681_PORT_CONFIG  MC68681_XBRG_IGNORED
24#define MC68681_PROBE        libchip_serial_default_probe
25#define MC68681_VECTOR       0
26#define MC68681_BASE_ADDRESS 0x71001
27#define MC68681_DATA_ADDRESS 0x71007
28
29/*
30 *  Based on BSP configuration information decide whether to do polling IO
31 *  or interrupt driven IO.
32 */
33
34#if (CONSOLE_USE_INTERRUPTS)
35#define MC68681_FUNCTIONS &mc68681_fns
36#else
37#define MC68681_FUNCTIONS &mc68681_fns_polled
38#endif
39
40console_tbl     Console_Port_Tbl[] = {
41        {
42                "/dev/com0",                    /* sDeviceName */
43                SERIAL_MC68681,                 /* deviceType */
44                MC68681_FUNCTIONS,              /* pDeviceFns */
45                NULL,                           /* deviceProbe */
46                NULL,                           /* pDeviceFlow */
47                16,                             /* ulMargin */
48                8,                              /* ulHysteresis */
49                (void *)9600,   /* baud rate */ /* pDeviceParams */
50                MC68681_BASE_ADDRESS,           /* ulCtrlPort1 */
51                MC68681_BASE_ADDRESS,           /* ulCtrlPort2 */
52                MC68681_DATA_ADDRESS,           /* ulDataPort */
53                mc68681_get_register_2,         /* getRegister */
54                mc68681_set_register_2,         /* setRegister */
55                NULL, /* unused */              /* getData */
56                NULL, /* unused */              /* setData */
57                (uint32_t)mc68681_baud_rate_table,      /* ulClock */
58                MC68681_VECTOR                  /* ulIntVector */
59        }
60};
61
62/*
63 *  Declare some information used by the console driver
64 */
65
66#define NUM_CONSOLE_PORTS (sizeof(Console_Port_Tbl)/sizeof(console_tbl))
67
68unsigned long  Console_Port_Count = NUM_CONSOLE_PORTS;
69
70console_data  Console_Port_Data[NUM_CONSOLE_PORTS];
71
72rtems_device_minor_number  Console_Port_Minor;
Note: See TracBrowser for help on using the repository browser.