From 8ef38186faea3d9b5e6f0f1242f668cb7e7a3d52 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 12 Jun 2000 19:57:02 +0000 Subject: Patch from John Cotton , Charles-Antoine Gauthier , and Darlene A. Stewart to add support for a number of very significant things: + BSPs for many variations on the Motorola MBX8xx board series + Cache Manager including initial support for m68040 and PowerPC + Rework of mpc8xx libcpu code so all mpc8xx CPUs now use same code base. + Rework of eth_comm BSP to utiltize above. John reports this works on the 821 and 860 --- c/src/lib/libcpu/powerpc/mpc8xx/include/cpm.h | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 c/src/lib/libcpu/powerpc/mpc8xx/include/cpm.h (limited to 'c/src/lib/libcpu/powerpc/mpc8xx/include/cpm.h') diff --git a/c/src/lib/libcpu/powerpc/mpc8xx/include/cpm.h b/c/src/lib/libcpu/powerpc/mpc8xx/include/cpm.h new file mode 100644 index 0000000000..d39ddf2e23 --- /dev/null +++ b/c/src/lib/libcpu/powerpc/mpc8xx/include/cpm.h @@ -0,0 +1,38 @@ +/* + * 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.OARcorp.com/rtems/license.html. + */ + +#ifndef __M8xx_CPM_h +#define __M8xx_CPM_h + +#ifdef __cplusplus +extern "C" { +#endif + +#include + +/* Functions */ + +void m8xx_cp_execute_cmd( unsigned16 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 */ -- cgit v1.2.3