diff options
Diffstat (limited to 'include/asm-blackfin/bfin-global.h')
-rw-r--r-- | include/asm-blackfin/bfin-global.h | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/include/asm-blackfin/bfin-global.h b/include/asm-blackfin/bfin-global.h new file mode 100644 index 000000000000..e37f81609fc3 --- /dev/null +++ b/include/asm-blackfin/bfin-global.h | |||
@@ -0,0 +1,120 @@ | |||
1 | /* | ||
2 | * File: include/asm-blackfin/bfin-global.h | ||
3 | * Based on: | ||
4 | * Author: * | ||
5 | * Created: | ||
6 | * Description: Global extern defines for blackfin | ||
7 | * | ||
8 | * Modified: | ||
9 | * Copyright 2004-2006 Analog Devices Inc. | ||
10 | * | ||
11 | * Bugs: Enter bugs at http://blackfin.uclinux.org/ | ||
12 | * | ||
13 | * This program is free software; you can redistribute it and/or modify | ||
14 | * it under the terms of the GNU General Public License as published by | ||
15 | * the Free Software Foundation; either version 2 of the License, or | ||
16 | * (at your option) any later version. | ||
17 | * | ||
18 | * This program is distributed in the hope that it will be useful, | ||
19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
21 | * GNU General Public License for more details. | ||
22 | * | ||
23 | * You should have received a copy of the GNU General Public License | ||
24 | * along with this program; if not, see the file COPYING, or write | ||
25 | * to the Free Software Foundation, Inc., | ||
26 | * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
27 | */ | ||
28 | |||
29 | #ifndef _BFIN_GLOBAL_H_ | ||
30 | #define _BFIN_GLOBAL_H_ | ||
31 | |||
32 | #ifndef __ASSEMBLY__ | ||
33 | |||
34 | #include <asm-generic/sections.h> | ||
35 | #include <asm/ptrace.h> | ||
36 | #include <asm/user.h> | ||
37 | #include <linux/linkage.h> | ||
38 | #include <linux/types.h> | ||
39 | |||
40 | #if defined(CONFIG_DMA_UNCACHED_2M) | ||
41 | # define DMA_UNCACHED_REGION (2 * 1024 * 1024) | ||
42 | #elif defined(CONFIG_DMA_UNCACHED_1M) | ||
43 | # define DMA_UNCACHED_REGION (1024 * 1024) | ||
44 | #else | ||
45 | # define DMA_UNCACHED_REGION (0) | ||
46 | #endif | ||
47 | |||
48 | extern unsigned long get_cclk(void); | ||
49 | extern unsigned long get_sclk(void); | ||
50 | |||
51 | extern void dump_thread(struct pt_regs *regs, struct user *dump); | ||
52 | extern void dump_bfin_regs(struct pt_regs *fp, void *retaddr); | ||
53 | extern void dump_bfin_trace_buffer(void); | ||
54 | |||
55 | extern int init_arch_irq(void); | ||
56 | extern void bfin_reset(void); | ||
57 | extern void _cplb_hdr(void); | ||
58 | /* Blackfin cache functions */ | ||
59 | extern void bfin_icache_init(void); | ||
60 | extern void bfin_dcache_init(void); | ||
61 | extern int read_iloc(void); | ||
62 | extern int bfin_console_init(void); | ||
63 | extern asmlinkage void lower_to_irq14(void); | ||
64 | extern void init_dma(void); | ||
65 | extern void program_IAR(void); | ||
66 | extern void evt14_softirq(void); | ||
67 | extern asmlinkage void asm_do_IRQ(unsigned int irq, struct pt_regs *regs); | ||
68 | extern void bfin_gpio_interrupt_setup(int irq, int irq_pfx, int type); | ||
69 | |||
70 | extern void *l1_data_A_sram_alloc(size_t); | ||
71 | extern void *l1_data_B_sram_alloc(size_t); | ||
72 | extern void *l1_inst_sram_alloc(size_t); | ||
73 | extern void *l1_data_sram_alloc(size_t); | ||
74 | extern void *l1_data_sram_zalloc(size_t); | ||
75 | extern int l1_data_A_sram_free(const void*); | ||
76 | extern int l1_data_B_sram_free(const void*); | ||
77 | extern int l1_inst_sram_free(const void*); | ||
78 | extern int l1_data_sram_free(const void*); | ||
79 | extern int sram_free(const void*); | ||
80 | |||
81 | #define L1_INST_SRAM 0x00000001 | ||
82 | #define L1_DATA_A_SRAM 0x00000002 | ||
83 | #define L1_DATA_B_SRAM 0x00000004 | ||
84 | #define L1_DATA_SRAM 0x00000006 | ||
85 | extern void *sram_alloc_with_lsl(size_t, unsigned long); | ||
86 | extern int sram_free_with_lsl(const void*); | ||
87 | |||
88 | extern void led_on(int); | ||
89 | extern void led_off(int); | ||
90 | extern void led_toggle(int); | ||
91 | extern void led_disp_num(int); | ||
92 | extern void led_toggle_num(int); | ||
93 | extern void init_leds(void); | ||
94 | |||
95 | extern char *bfin_board_name __attribute__ ((weak)); | ||
96 | extern unsigned long wall_jiffies; | ||
97 | extern unsigned long ipdt_table[]; | ||
98 | extern unsigned long dpdt_table[]; | ||
99 | extern unsigned long icplb_table[]; | ||
100 | extern unsigned long dcplb_table[]; | ||
101 | |||
102 | extern unsigned long ipdt_swapcount_table[]; | ||
103 | extern unsigned long dpdt_swapcount_table[]; | ||
104 | |||
105 | extern unsigned long table_start, table_end; | ||
106 | |||
107 | extern struct file_operations dpmc_fops; | ||
108 | extern char _start; | ||
109 | extern unsigned long _ramstart, _ramend, _rambase; | ||
110 | extern unsigned long memory_start, memory_end, physical_mem_end; | ||
111 | extern char _stext_l1[], _etext_l1[], _sdata_l1[], _edata_l1[], _sbss_l1[], | ||
112 | _ebss_l1[], _l1_lma_start[], _sdata_b_l1[], _ebss_b_l1[]; | ||
113 | |||
114 | #ifdef CONFIG_MTD_UCLINUX | ||
115 | extern unsigned long memory_mtd_start, memory_mtd_end, mtd_size; | ||
116 | #endif | ||
117 | |||
118 | #endif | ||
119 | |||
120 | #endif /* _BLACKFIN_H_ */ | ||