blob: 7f6b4f11672830fa925e76fd1e18f228c34171f7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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.com/license/LICENSE.
*/
#ifndef __M8xx_CPM_h
#define __M8xx_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 */
|