forked from Minki/linux
3aa670419a
No one uses these functions, and some are duplicate of existing C code. So just punt the whole thing. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
105 lines
3.3 KiB
C
105 lines
3.3 KiB
C
/*
|
|
* File: include/asm-blackfin/bfin-global.h
|
|
* Based on:
|
|
* Author: *
|
|
* Created:
|
|
* Description: Global extern defines for blackfin
|
|
*
|
|
* Modified:
|
|
* Copyright 2004-2006 Analog Devices Inc.
|
|
*
|
|
* Bugs: Enter bugs at http://blackfin.uclinux.org/
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, see the file COPYING, or write
|
|
* to the Free Software Foundation, Inc.,
|
|
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#ifndef _BFIN_GLOBAL_H_
|
|
#define _BFIN_GLOBAL_H_
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
#include <asm/sections.h>
|
|
#include <asm/ptrace.h>
|
|
#include <asm/user.h>
|
|
#include <linux/linkage.h>
|
|
#include <linux/types.h>
|
|
|
|
#if defined(CONFIG_DMA_UNCACHED_4M)
|
|
# define DMA_UNCACHED_REGION (4 * 1024 * 1024)
|
|
#elif defined(CONFIG_DMA_UNCACHED_2M)
|
|
# define DMA_UNCACHED_REGION (2 * 1024 * 1024)
|
|
#elif defined(CONFIG_DMA_UNCACHED_1M)
|
|
# define DMA_UNCACHED_REGION (1024 * 1024)
|
|
#else
|
|
# define DMA_UNCACHED_REGION (0)
|
|
#endif
|
|
|
|
extern void bfin_setup_caches(unsigned int cpu);
|
|
extern void bfin_setup_cpudata(unsigned int cpu);
|
|
|
|
extern unsigned long get_cclk(void);
|
|
extern unsigned long get_sclk(void);
|
|
extern unsigned long sclk_to_usecs(unsigned long sclk);
|
|
extern unsigned long usecs_to_sclk(unsigned long usecs);
|
|
|
|
extern void dump_bfin_process(struct pt_regs *regs);
|
|
extern void dump_bfin_mem(struct pt_regs *regs);
|
|
extern void dump_bfin_trace_buffer(void);
|
|
|
|
/* init functions only */
|
|
extern int init_arch_irq(void);
|
|
extern void init_exception_vectors(void);
|
|
extern void program_IAR(void);
|
|
|
|
extern asmlinkage void lower_to_irq14(void);
|
|
extern asmlinkage void bfin_return_from_exception(void);
|
|
extern asmlinkage void asm_do_IRQ(unsigned int irq, struct pt_regs *regs);
|
|
extern int bfin_internal_set_wake(unsigned int irq, unsigned int state);
|
|
|
|
extern void *l1_data_A_sram_alloc(size_t);
|
|
extern void *l1_data_B_sram_alloc(size_t);
|
|
extern void *l1_inst_sram_alloc(size_t);
|
|
extern void *l1_data_sram_alloc(size_t);
|
|
extern void *l1_data_sram_zalloc(size_t);
|
|
extern void *l2_sram_alloc(size_t);
|
|
extern void *l2_sram_zalloc(size_t);
|
|
extern int l1_data_A_sram_free(const void*);
|
|
extern int l1_data_B_sram_free(const void*);
|
|
extern int l1_inst_sram_free(const void*);
|
|
extern int l1_data_sram_free(const void*);
|
|
extern int l2_sram_free(const void *);
|
|
extern int sram_free(const void*);
|
|
|
|
#define L1_INST_SRAM 0x00000001
|
|
#define L1_DATA_A_SRAM 0x00000002
|
|
#define L1_DATA_B_SRAM 0x00000004
|
|
#define L1_DATA_SRAM 0x00000006
|
|
#define L2_SRAM 0x00000008
|
|
extern void *sram_alloc_with_lsl(size_t, unsigned long);
|
|
extern int sram_free_with_lsl(const void*);
|
|
|
|
extern void *isram_memcpy(void *dest, const void *src, size_t n);
|
|
|
|
extern const char bfin_board_name[];
|
|
|
|
extern unsigned long bfin_sic_iwr[];
|
|
extern unsigned vr_wakeup;
|
|
extern u16 _bfin_swrst; /* shadow for Software Reset Register (SWRST) */
|
|
|
|
#endif
|
|
|
|
#endif /* _BLACKFIN_H_ */
|