2 * File: include/asm-blackfin/cplbinit.h
10 * Copyright 2004-2006 Analog Devices Inc.
12 * Bugs: Enter bugs at http://blackfin.uclinux.org/
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, see the file COPYING, or write
26 * to the Free Software Foundation, Inc.,
27 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30 #ifndef __ASM_CPLBINIT_H__
31 #define __ASM_CPLBINIT_H__
33 #include <asm/blackfin.h>
44 {ZERO_P, L1I_MEM, L1D_MEM, SDRAM_KERN , SDRAM_RAM_MTD, SDRAM_DMAZ, RES_MEM, ASYNC_MEM, L2_MEM};
47 u32 start; /* start address */
48 u32 end; /* end address */
49 u32 psize; /* prefered size if any otherwise 1MB or 4MB*/
50 u16 attr;/* attributes */
51 u16 i_conf;/* I-CPLB DATA */
52 u16 d_conf;/* D-CPLB DATA */
54 const s8 name[30];/* name */
63 extern u_long icplb_table[];
64 extern u_long dcplb_table[];
66 /* Till here we are discussing about the static memory management model.
67 * However, the operating envoronments commonly define more CPLB
68 * descriptors to cover the entire addressable memory than will fit into
69 * the available on-chip 16 CPLB MMRs. When this happens, the below table
70 * will be used which will hold all the potentially required CPLB descriptors
72 * This is how Page descriptor Table is implemented in uClinux/Blackfin.
75 extern u_long ipdt_table[];
76 extern u_long dpdt_table[];
77 #ifdef CONFIG_CPLB_INFO
78 extern u_long ipdt_swapcount_table[];
79 extern u_long dpdt_swapcount_table[];
82 extern unsigned long reserved_mem_dcache_on;
83 extern unsigned long reserved_mem_icache_on;
85 extern void generate_cpl_tables(void);