summaryrefslogtreecommitdiff
path: root/include/mpc8xx/cpm.h
diff options
context:
space:
mode:
authorAmar Takhar <amar@rtems.org>2014-12-28 17:12:38 -0500
committerAmar Takhar <amar@rtems.org>2015-02-06 01:31:36 -0500
commit434f8b058dd4cb3c285b90189316c7396c61f842 (patch)
tree4f6d674b9d9c2b27c3a8d09bb94fedf6b4d85ac8 /include/mpc8xx/cpm.h
parent86364e8c6ae55f7f15f426aefe8c260d96a3efc0 (diff)
Stage 1: Move single headers.
Diffstat (limited to 'include/mpc8xx/cpm.h')
-rw-r--r--include/mpc8xx/cpm.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/include/mpc8xx/cpm.h b/include/mpc8xx/cpm.h
new file mode 100644
index 0000000000..49889bdc32
--- /dev/null
+++ b/include/mpc8xx/cpm.h
@@ -0,0 +1,36 @@
+/*
+ * cpm.h
+ *
+ * This include file contains definitions pertaining
+ * to the Communications Processor Module (CPM) on the MPC8xx.
+ *
+ * Copyright (c) 1999, National Research Council of Canada
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifndef _MPC8XX_CPM_H
+#define _MPC8XX_CPM_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Functions */
+
+void m8xx_cp_execute_cmd( uint16_t command );
+void *m8xx_dpram_allocate( unsigned int byte_count );
+
+#define m8xx_bd_allocate(count) \
+ m8xx_dpram_allocate( (count) * sizeof(m8xxBufferDescriptor_t) )
+#define m8xx_RISC_timer_table_allocate(count) \
+ m8xx_dpram_allocate( (count) * 4 )
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/* end of include file */