summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/mpc55xx/include/esci.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libcpu/powerpc/mpc55xx/include/esci.h')
-rw-r--r--c/src/lib/libcpu/powerpc/mpc55xx/include/esci.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/c/src/lib/libcpu/powerpc/mpc55xx/include/esci.h b/c/src/lib/libcpu/powerpc/mpc55xx/include/esci.h
new file mode 100644
index 0000000000..b6df13d332
--- /dev/null
+++ b/c/src/lib/libcpu/powerpc/mpc55xx/include/esci.h
@@ -0,0 +1,48 @@
+/**
+ * @file
+ *
+ * @ingroup mpc55xx_esci
+ *
+ * @brief Header file for the Enhanced Serial Communication Interface (eSCI).
+ */
+
+/*
+ * Copyright (c) 2008
+ * Embedded Brains GmbH
+ * Obere Lagerstr. 30
+ * D-82178 Puchheim
+ * Germany
+ * rtems@embedded-brains.de
+ *
+ * The license and distribution terms for this file may be found in the file
+ * LICENSE in this distribution or at http://www.rtems.com/license/LICENSE.
+ */
+
+/**
+ * @defgroup mpc55xx_esci Enhanced Serial Communication Interface (eSCI).
+ *
+ * @ingroup mpc55xx
+ */
+
+#ifndef LIBCPU_POWERPC_MPC55XX_ESCI_H
+#define LIBCPU_POWERPC_MPC55XX_ESCI_H
+
+#include <rtems/termiostypes.h>
+
+#define MPC55XX_ESCI_NUMBER 2
+
+struct ESCI_tag;
+
+typedef struct {
+ volatile struct ESCI_tag *regs;
+ const char *device_name;
+ int use_termios;
+ int use_interrupts;
+ int console;
+ struct rtems_termios_tty *tty;
+ unsigned irq_number;
+} mpc55xx_esci_driver_entry;
+
+extern mpc55xx_esci_driver_entry mpc55xx_esci_driver_table [ /* MPC55XX_ESCI_NUMBER */ ];
+
+#endif /* LIBCPU_POWERPC_MPC55XX_ESCI_H */