source: rtems/c/src/lib/libbsp/arm/realview-pbx-a9/console/console-config.c @ c499856

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*
2 * Copyright (c) 2013 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Dornierstr. 4
6 *  82178 Puchheim
7 *  Germany
8 *  <info@embedded-brains.de>
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.org/license/LICENSE.
13 */
14
15#include <rtems/serial_mouse.h>
16
17#include <libchip/serial.h>
18
19#include <bsp.h>
20#include <bsp/irq.h>
21#include <bsp/arm-pl011.h>
22#include <bsp/arm-pl050.h>
23
24console_tbl Console_Configuration_Ports[] = {
25  {
26    .sDeviceName = "/dev/ttyS0",
27    .deviceType = SERIAL_CUSTOM,
28    .pDeviceFns = &arm_pl011_fns,
29    .deviceProbe = NULL,
30    .pDeviceFlow = NULL,
31    .ulMargin = 10,
32    .ulHysteresis = 0,
33    .pDeviceParams = (void *) 115200,
34    .ulCtrlPort1 = 0x10009000,
35    .ulCtrlPort2 = 0,
36    .ulDataPort = 0,
37    .getRegister = NULL,
38    .setRegister = NULL,
39    .getData = NULL,
40    .setData = NULL,
41    .ulClock = 0,
42    .ulIntVector = RVPBXA9_IRQ_UART_0
43  }, {
44    .sDeviceName = SERIAL_MOUSE_DEVICE_PS2,
45    .deviceType = SERIAL_CUSTOM,
46    .pDeviceFns = &arm_pl050_fns,
47    .deviceProbe = NULL,
48    .pDeviceFlow = NULL,
49    .ulMargin = 10,
50    .ulHysteresis = 0,
51    .pDeviceParams = (void *) 115200,
52    .ulCtrlPort1 = 0x10007000,
53    .ulCtrlPort2 = 0,
54    .ulDataPort = 0,
55    .getRegister = NULL,
56    .setRegister = NULL,
57    .getData = NULL,
58    .setData = NULL,
59    .ulClock = 0,
60    .ulIntVector = RVPBXA9_IRQ_KMI1
61  }
62};
63
64unsigned long Console_Configuration_Count =
65  RTEMS_ARRAY_SIZE(Console_Configuration_Ports);
Note: See TracBrowser for help on using the repository browser.