1 | /* |
---|
2 | * Copyright (c) 2011-2012 embedded brains GmbH. All rights reserved. |
---|
3 | * |
---|
4 | * embedded brains GmbH |
---|
5 | * Obere Lagerstr. 30 |
---|
6 | * 82178 Puchheim |
---|
7 | * Germany |
---|
8 | * <rtems@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 <bsp.h> |
---|
16 | #include <bsp/console-generic.h> |
---|
17 | #include <bsp/console-esci.h> |
---|
18 | #include <bsp/console-linflex.h> |
---|
19 | |
---|
20 | CONSOLE_GENERIC_INFO_TABLE = { |
---|
21 | #ifdef MPC55XX_HAS_ESCI |
---|
22 | CONSOLE_GENERIC_INFO(mpc55xx_esci_devices + 0, &mpc55xx_esci_callbacks, "/dev/ttyS0") |
---|
23 | #ifdef ESCI_B |
---|
24 | , CONSOLE_GENERIC_INFO(mpc55xx_esci_devices + 1, &mpc55xx_esci_callbacks, "/dev/ttyS1") |
---|
25 | #endif |
---|
26 | #ifdef ESCI_C |
---|
27 | , CONSOLE_GENERIC_INFO(mpc55xx_esci_devices + 2, &mpc55xx_esci_callbacks, "/dev/ttyS2") |
---|
28 | #endif |
---|
29 | #ifdef ESCI_D |
---|
30 | , CONSOLE_GENERIC_INFO(mpc55xx_esci_devices + 3, &mpc55xx_esci_callbacks, "/dev/ttyS3") |
---|
31 | #endif |
---|
32 | #endif |
---|
33 | #ifdef MPC55XX_HAS_LINFLEX |
---|
34 | CONSOLE_GENERIC_INFO(mpc55xx_linflex_devices + 0, &mpc55xx_linflex_callbacks, "/dev/ttyS0"), |
---|
35 | CONSOLE_GENERIC_INFO(mpc55xx_linflex_devices + 1, &mpc55xx_linflex_callbacks, "/dev/ttyS1") |
---|
36 | #endif |
---|
37 | }; |
---|
38 | |
---|
39 | CONSOLE_GENERIC_INFO_COUNT; |
---|
40 | |
---|
41 | CONSOLE_GENERIC_MINOR(MPC55XX_CONSOLE_MINOR); |
---|