|
78 | 78 | #define mk_cr_cmd(PG, SBC, MCN, OP) \
|
79 | 79 | ((PG << 26) | (SBC << 21) | (MCN << 6) | OP)
|
80 | 80 |
|
81 |
| -#ifndef CONFIG_PPC_CPM_NEW_BINDING |
82 |
| -/* Dual Port RAM addresses. The first 16K is available for almost |
83 |
| - * any CPM use, so we put the BDs there. The first 128 bytes are |
84 |
| - * used for SMC1 and SMC2 parameter RAM, so we start allocating |
85 |
| - * BDs above that. All of this must change when we start |
86 |
| - * downloading RAM microcode. |
87 |
| - */ |
88 |
| -#define CPM_DATAONLY_BASE ((uint)128) |
89 |
| -#define CPM_DP_NOSPACE ((uint)0x7fffffff) |
90 |
| -#if defined(CONFIG_8272) || defined(CONFIG_MPC8555) |
91 |
| -#define CPM_DATAONLY_SIZE ((uint)(8 * 1024) - CPM_DATAONLY_BASE) |
92 |
| -#define CPM_FCC_SPECIAL_BASE ((uint)0x00009000) |
93 |
| -#else |
94 |
| -#define CPM_DATAONLY_SIZE ((uint)(16 * 1024) - CPM_DATAONLY_BASE) |
95 |
| -#define CPM_FCC_SPECIAL_BASE ((uint)0x0000b000) |
96 |
| -#endif |
97 |
| -#endif |
98 |
| - |
99 | 81 | /* The number of pages of host memory we allocate for CPM. This is
|
100 | 82 | * done early in kernel initialization to get physically contiguous
|
101 | 83 | * pages.
|
|
107 | 89 | */
|
108 | 90 | extern cpm_cpm2_t __iomem *cpmp; /* Pointer to comm processor */
|
109 | 91 |
|
110 |
| -#ifdef CONFIG_PPC_CPM_NEW_BINDING |
111 | 92 | #define cpm_dpalloc cpm_muram_alloc
|
112 | 93 | #define cpm_dpfree cpm_muram_free
|
113 | 94 | #define cpm_dpram_addr cpm_muram_addr
|
114 |
| -#else |
115 |
| -extern unsigned long cpm_dpalloc(uint size, uint align); |
116 |
| -extern int cpm_dpfree(unsigned long offset); |
117 |
| -extern unsigned long cpm_dpalloc_fixed(unsigned long offset, uint size, uint align); |
118 |
| -extern void cpm_dpdump(void); |
119 |
| -extern void *cpm_dpram_addr(unsigned long offset); |
120 |
| -#endif |
121 | 95 |
|
122 | 96 | extern void cpm_setbrg(uint brg, uint rate);
|
123 | 97 | extern void cpm2_fastbrg(uint brg, uint rate, int div16);
|
|
0 commit comments