rt2x00: correct "skb_buff" typo
[linux-2.6/openmoko-kernel/knife-kernel.git] / include / asm-blackfin / bfin-global.h
blob6ae0619d76963bd190d51390d4924c1a6bc8e0a3
1 /*
2 * File: include/asm-blackfin/bfin-global.h
3 * Based on:
4 * Author: *
5 * Created:
6 * Description: Global extern defines for blackfin
8 * Modified:
9 * Copyright 2004-2006 Analog Devices Inc.
11 * Bugs: Enter bugs at http://blackfin.uclinux.org/
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.
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.
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
29 #ifndef _BFIN_GLOBAL_H_
30 #define _BFIN_GLOBAL_H_
32 #ifndef __ASSEMBLY__
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>
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
48 extern unsigned long get_cclk(void);
49 extern unsigned long get_sclk(void);
50 extern unsigned long sclk_to_usecs(unsigned long sclk);
51 extern unsigned long usecs_to_sclk(unsigned long usecs);
53 extern void dump_bfin_process(struct pt_regs *regs);
54 extern void dump_bfin_mem(struct pt_regs *regs);
55 extern void dump_bfin_trace_buffer(void);
57 extern int init_arch_irq(void);
58 extern void bfin_reset(void);
59 extern void _cplb_hdr(void);
60 /* Blackfin cache functions */
61 extern void bfin_icache_init(void);
62 extern void bfin_dcache_init(void);
63 extern int read_iloc(void);
64 extern int bfin_console_init(void);
65 extern asmlinkage void lower_to_irq14(void);
66 extern asmlinkage void bfin_return_from_exception(void);
67 extern void init_exception_vectors(void);
68 extern void init_dma(void);
69 extern void program_IAR(void);
70 extern void evt14_softirq(void);
71 extern asmlinkage void asm_do_IRQ(unsigned int irq, struct pt_regs *regs);
72 extern void bfin_gpio_interrupt_setup(int irq, int irq_pfx, int type);
74 extern asmlinkage void finish_atomic_sections (struct pt_regs *regs);
75 extern char fixed_code_start;
76 extern char fixed_code_end;
77 extern int atomic_xchg32(void);
78 extern int atomic_cas32(void);
79 extern int atomic_add32(void);
80 extern int atomic_sub32(void);
81 extern int atomic_ior32(void);
82 extern int atomic_and32(void);
83 extern int atomic_xor32(void);
84 extern void safe_user_instruction(void);
85 extern void sigreturn_stub(void);
87 extern void *l1_data_A_sram_alloc(size_t);
88 extern void *l1_data_B_sram_alloc(size_t);
89 extern void *l1_inst_sram_alloc(size_t);
90 extern void *l1_data_sram_alloc(size_t);
91 extern void *l1_data_sram_zalloc(size_t);
92 extern int l1_data_A_sram_free(const void*);
93 extern int l1_data_B_sram_free(const void*);
94 extern int l1_inst_sram_free(const void*);
95 extern int l1_data_sram_free(const void*);
96 extern int sram_free(const void*);
98 #define L1_INST_SRAM 0x00000001
99 #define L1_DATA_A_SRAM 0x00000002
100 #define L1_DATA_B_SRAM 0x00000004
101 #define L1_DATA_SRAM 0x00000006
102 extern void *sram_alloc_with_lsl(size_t, unsigned long);
103 extern int sram_free_with_lsl(const void*);
105 extern void led_on(int);
106 extern void led_off(int);
107 extern void led_toggle(int);
108 extern void led_disp_num(int);
109 extern void led_toggle_num(int);
110 extern void init_leds(void);
112 extern const char bfin_board_name[];
113 extern unsigned long wall_jiffies;
114 extern unsigned long ipdt_table[];
115 extern unsigned long dpdt_table[];
116 extern unsigned long icplb_table[];
117 extern unsigned long dcplb_table[];
119 extern unsigned long ipdt_swapcount_table[];
120 extern unsigned long dpdt_swapcount_table[];
122 extern unsigned long table_start, table_end;
124 extern u16 _bfin_swrst; /* shadow for Software Reset Register (SWRST) */
125 extern struct file_operations dpmc_fops;
126 extern char _start;
127 extern unsigned long _ramstart, _ramend, _rambase;
128 extern unsigned long memory_start, memory_end, physical_mem_end;
129 extern char _stext_l1[], _etext_l1[], _sdata_l1[], _edata_l1[], _sbss_l1[],
130 _ebss_l1[], _l1_lma_start[], _sdata_b_l1[], _ebss_b_l1[];
132 #ifdef CONFIG_MTD_UCLINUX
133 extern unsigned long memory_mtd_start, memory_mtd_end, mtd_size;
134 #endif
136 #endif
138 #endif /* _BLACKFIN_H_ */