Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:53

0001 /*
0002  * cpm.h
0003  *
0004  * This include file contains definitions pertaining
0005  * to the Communications Processor Module (CPM) on the MPC8xx.
0006  *
0007  * Copyright (c) 1999, National Research Council of Canada
0008  *
0009  * The license and distribution terms for this file may be
0010  * found in the file LICENSE in this distribution or at
0011  * http://www.rtems.org/license/LICENSE.
0012  */
0013 
0014 #ifndef _MPC8XX_CPM_H
0015 #define _MPC8XX_CPM_H
0016 
0017 #ifdef __cplusplus
0018 extern "C" {
0019 #endif
0020 
0021 /* Functions */
0022 
0023 void m8xx_cp_execute_cmd( uint16_t   command );
0024 void *m8xx_dpram_allocate( unsigned int byte_count );
0025 
0026 #define m8xx_bd_allocate(count)     \
0027         m8xx_dpram_allocate( (count) * sizeof(m8xxBufferDescriptor_t) )
0028 #define m8xx_RISC_timer_table_allocate(count)   \
0029         m8xx_dpram_allocate( (count) * 4 )
0030 
0031 #ifdef __cplusplus
0032 }
0033 #endif
0034 
0035 #endif
0036 /* end of include file */