Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vapier/blackfin

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vapier/blackfin:
  Blackfin: convert to GENERIC_HARDIRQS_NO__DO_IRQ
  Blackfin: drop all simple-gpio board resources
  Blackfin: fix framebuffer mmap bug for nommu
  Blackfin: includecheck fix: mach-bf548, ezkit.c
  Blackfin: drop cs_change_per_word setting
  Blackfin: bf533-ezkit: convert to physmap/jedec_probe
  Blackfin: convert adv7393 resources to new i2c framework
  Blackfin: fix missed cache config renames
  Blackfin: cplbinfo: drop d_path() hacks
  Blackfin: asm/irq.h: pull in mach/anomaly.h for anomaly defines
  Blackfin: BF51x: add PTP MMR defines
  Blackfin: mass clean up of copyright/licensing info
  Blackfin: convert to use arch_gettimeoffset()
This commit is contained in:
Linus Torvalds 2009-10-09 13:31:47 -07:00
commit 79a6f56440
250 changed files with 1078 additions and 4717 deletions

41
arch/blackfin/ADI_BSD.txt Normal file
View File

@ -0,0 +1,41 @@
This BSD-Style License applies to a few files in ./arch/blackfin directory,
and is included here, so people understand which code they can use outside
the Linux kernel, in non-GPL based projects.
Using the files released under the "ADI BSD" license, must comply with
these license terms.
--------------------------------------------------------------------------
Copyright Analog Devices, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
- Neither the name of Analog Devices, Inc. nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
- The use of this software may or may not infringe the patent rights
of one or more patent holders. This license does not release you
from the requirement that you obtain separate licenses from these
patent holders to use this software.
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE

View File

@ -47,6 +47,9 @@ config GENERIC_HARDIRQS
config GENERIC_IRQ_PROBE config GENERIC_IRQ_PROBE
def_bool y def_bool y
config GENERIC_HARDIRQS_NO__DO_IRQ
def_bool y
config GENERIC_GPIO config GENERIC_GPIO
def_bool y def_bool y
@ -229,7 +232,7 @@ endchoice
config SMP config SMP
depends on BF561 depends on BF561
select GENERIC_TIME select GENERIC_CLOCKEVENTS
bool "Symmetric multi-processing support" bool "Symmetric multi-processing support"
---help--- ---help---
This enables support for systems with more than one CPU, This enables support for systems with more than one CPU,
@ -613,12 +616,10 @@ comment "Kernel Timer/Scheduler"
source kernel/Kconfig.hz source kernel/Kconfig.hz
config GENERIC_TIME config GENERIC_TIME
bool "Generic time" def_bool y
default y
config GENERIC_CLOCKEVENTS config GENERIC_CLOCKEVENTS
bool "Generic clock events" bool "Generic clock events"
depends on GENERIC_TIME
default y default y
choice choice
@ -653,6 +654,10 @@ config GPTMR0_CLOCKSOURCE
depends on GENERIC_CLOCKEVENTS depends on GENERIC_CLOCKEVENTS
depends on !TICKSOURCE_GPTMR0 depends on !TICKSOURCE_GPTMR0
config ARCH_USES_GETTIMEOFFSET
depends on !GENERIC_CLOCKEVENTS
def_bool y
source kernel/time/Kconfig source kernel/time/Kconfig
comment "Misc" comment "Misc"

View File

@ -1,3 +1,9 @@
/*
 * Copyright 2004-2009 Analog Devices Inc.
 *
 * Licensed under the GPL-2 or later.
 */
#ifndef __ARCH_BLACKFIN_ATOMIC__ #ifndef __ARCH_BLACKFIN_ATOMIC__
#define __ARCH_BLACKFIN_ATOMIC__ #define __ARCH_BLACKFIN_ATOMIC__

View File

@ -1,29 +1,9 @@
/* /*
* File: include/asm-blackfin/bfin-global.h * Global extern defines for blackfin
* Based on:
* Author: *
* Created:
* Description: Global extern defines for blackfin
* *
* Modified: * Copyright 2006-2009 Analog Devices Inc.
* Copyright 2004-2006 Analog Devices Inc.
* *
* Bugs: Enter bugs at http://blackfin.uclinux.org/ * Licensed under the GPL-2 or later.
*
* 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_ #ifndef _BFIN_GLOBAL_H_

View File

@ -3,8 +3,6 @@
* *
* Copyright 2004-2008 Analog Devices Inc. * Copyright 2004-2008 Analog Devices Inc.
* *
* Enter bugs at http://blackfin.uclinux.org/
*
* Licensed under the GPL-2 or later. * Licensed under the GPL-2 or later.
*/ */

View File

@ -1,6 +1,10 @@
/* /*
* board initialization should put one of these structures into platform_data * board initialization should put one of these structures into platform_data
* and place the bfin-rotary onto platform_bus named "bfin-rotary". * and place the bfin-rotary onto platform_bus named "bfin-rotary".
*
* Copyright 2008 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/ */
#ifndef _BFIN_ROTARY_H #ifndef _BFIN_ROTARY_H

View File

@ -1,3 +1,9 @@
/*
* Copyright 2006-2008 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef _bfin_simple_timer_h_ #ifndef _bfin_simple_timer_h_
#define _bfin_simple_timer_h_ #define _bfin_simple_timer_h_

View File

@ -1,3 +1,9 @@
/*
* Copyright 2004-2009 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef _BLACKFIN_BITOPS_H #ifndef _BLACKFIN_BITOPS_H
#define _BLACKFIN_BITOPS_H #define _BLACKFIN_BITOPS_H

View File

@ -1,6 +1,9 @@
/* /*
* Common header file for blackfin family of processors. * Common header file for Blackfin family of processors.
* *
 * Copyright 2004-2009 Analog Devices Inc.
 *
 * Licensed under the GPL-2 or later.
*/ */
#ifndef _BLACKFIN_H_ #ifndef _BLACKFIN_H_

View File

@ -1,3 +1,9 @@
/*
* Copyright 2004-2009 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef _BLACKFIN_BUG_H #ifndef _BLACKFIN_BUG_H
#define _BLACKFIN_BUG_H #define _BLACKFIN_BUG_H

View File

@ -1,6 +1 @@
#ifndef _BLACKFIN_BYTEORDER_H
#define _BLACKFIN_BYTEORDER_H
#include <linux/byteorder/little_endian.h> #include <linux/byteorder/little_endian.h>
#endif /* _BLACKFIN_BYTEORDER_H */

View File

@ -1,6 +1,9 @@
/* /*
* include/asm-blackfin/cache.h * Copyright 2004-2009 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/ */
#ifndef __ARCH_BLACKFIN_CACHE_H #ifndef __ARCH_BLACKFIN_CACHE_H
#define __ARCH_BLACKFIN_CACHE_H #define __ARCH_BLACKFIN_CACHE_H
@ -35,10 +38,10 @@
#if defined(CONFIG_SMP) && \ #if defined(CONFIG_SMP) && \
!defined(CONFIG_BFIN_CACHE_COHERENT) !defined(CONFIG_BFIN_CACHE_COHERENT)
# if defined(CONFIG_BFIN_ICACHEABLE) || defined(CONFIG_BFIN_L2_ICACHEABLE) # if defined(CONFIG_BFIN_EXTMEM_ICACHEABLE) || defined(CONFIG_BFIN_L2_ICACHEABLE)
# define __ARCH_SYNC_CORE_ICACHE # define __ARCH_SYNC_CORE_ICACHE
# endif # endif
# if defined(CONFIG_BFIN_DCACHEABLE) || defined(CONFIG_BFIN_L2_DCACHEABLE) # if defined(CONFIG_BFIN_EXTMEM_DCACHEABLE) || defined(CONFIG_BFIN_L2_DCACHEABLE)
# define __ARCH_SYNC_CORE_DCACHE # define __ARCH_SYNC_CORE_DCACHE
# endif # endif
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__

View File

@ -1,30 +1,9 @@
/* /*
* File: include/asm-blackfin/cacheflush.h * Blackfin low-level cache routines
* Based on: include/asm-m68knommu/cacheflush.h
* Author: LG Soft India
* Copyright (C) 2004 Analog Devices Inc.
* Created: Tue Sep 21 2004
* Description: Blackfin low-level cache routines adapted from the i386
* and PPC versions by Greg Ungerer (gerg@snapgear.com)
* *
* Modified: * Copyright 2004-2009 Analog Devices Inc.
* *
* Bugs: Enter bugs at http://blackfin.uclinux.org/ * Licensed under the GPL-2 or later.
*
* 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, 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; see the file COPYING.
* If not, write to the Free Software Foundation,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef _BLACKFIN_CACHEFLUSH_H #ifndef _BLACKFIN_CACHEFLUSH_H

View File

@ -1,30 +1,8 @@
/* /*
* File: include/asm-blackfin/mach-common/cdef_LPBlackfin.h * Copyright 2005-2008 Analog Devices Inc.
* Based on: *
* Author: unknown * Licensed under the GPL-2 or later.
* COPYRIGHT 2005 Analog Devices */
* Created: ?
* Description:
*
* Modified:
*
* 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, 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; see the file COPYING.
* If not, write to the Free Software Foundation,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef _CDEF_LPBLACKFIN_H #ifndef _CDEF_LPBLACKFIN_H
#define _CDEF_LPBLACKFIN_H #define _CDEF_LPBLACKFIN_H

View File

@ -1,9 +1,14 @@
/*
* Copyright 2004-2009 Analog Devices Inc.
* akbar.hussain@lineo.com
*
* Licensed under the GPL-2 or later.
*/
#ifndef _BFIN_CHECKSUM_H #ifndef _BFIN_CHECKSUM_H
#define _BFIN_CHECKSUM_H #define _BFIN_CHECKSUM_H
/* /*
* MODIFIED FOR BFIN April 30, 2001 akbar.hussain@lineo.com
*
* computes the checksum of a memory block at buff, length len, * computes the checksum of a memory block at buff, length len,
* and adds in "sum" (32-bit) * and adds in "sum" (32-bit)
* *

View File

@ -1,30 +1,9 @@
/* /*
* File: include/asm-blackfin/mach-common/clocks.h * Common Clock definitions for various kernel files
* Based on: include/asm-blackfin/mach-bf537/bf537.h
* Author: Robin Getz <rgetz@blackfin.uclinux.org>
* *
* Created: 25Jul07 * Copyright 2007-2008 Analog Devices Inc.
* Description: Common Clock definitions for various kernel files
* *
* Modified: * Licensed under the GPL-2 or later.
* Copyright 2004-2007 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_CLOCKS_H #ifndef _BFIN_CLOCKS_H

View File

@ -1,30 +1,7 @@
/* /*
* File: arch/blackfin/kernel/context.S * Copyright 2007-2009 Analog Devices Inc.
* Based on:
* Author:
* *
* Created: * Licensed under the GPL-2 or later.
* Description:
*
* Modified:
* Copyright 2004-2007 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
*/ */
/* /*

View File

@ -1,30 +1,7 @@
/* /*
* File: include/asm-blackfin/cplb.h * Copyright 2004-2009 Analog Devices Inc.
* Based on: include/asm-blackfin/mach-bf537/bf537.h
* Author: Robin Getz <rgetz@blackfin.uclinux.org>
* *
* Created: 2000 * Licensed under the GPL-2 or later.
* Description: Common CPLB definitions for CPLB init
*
* Modified:
* Copyright 2004-2007 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 _CPLB_H #ifndef _CPLB_H

View File

@ -1,30 +1,9 @@
/* /*
* File: include/asm-blackfin/cplbinit.h * Common CPLB definitions for CPLB init
* Based on:
* Author:
* *
* Created: * Copyright 2006-2008 Analog Devices Inc.
* Description:
* *
* Modified: * Licensed under the GPL-2 or later.
* 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 __ASM_CPLBINIT_H__ #ifndef __ASM_CPLBINIT_H__

View File

@ -1,23 +1,8 @@
/* /*
* File: arch/blackfin/include/asm/cpu.h. * Copyright 2007-2009 Analog Devices Inc.
* Author: Philippe Gerum <rpm@xenomai.org> * Philippe Gerum <rpm@xenomai.org>
* *
* Copyright 2007 Analog Devices Inc. * Licensed under the GPL-2 or later.
*
* 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 __ASM_BLACKFIN_CPU_H #ifndef __ASM_BLACKFIN_CPU_H

View File

@ -1,32 +1,10 @@
/* /*
* File: include/asm-blackfin/mach-common/def_LPBlackfin.h * Blackfin core register bit & address definitions
* Based on: *
* Author: unknown * Copyright 2005-2008 Analog Devices Inc.
* COPYRIGHT 2005 Analog Devices *
* Created: ? * Licensed under the ADI BSD license or GPL-2 (or later).
* Description: */
*
* Modified:
*
* 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, 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; see the file COPYING.
* If not, write to the Free Software Foundation,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* LP Blackfin CORE REGISTER BIT & ADDRESS DEFINITIONS FOR ADSP-BF532/33 */
#ifndef _DEF_LPBLACKFIN_H #ifndef _DEF_LPBLACKFIN_H
#define _DEF_LPBLACKFIN_H #define _DEF_LPBLACKFIN_H

View File

@ -1,3 +1,9 @@
/*
* Copyright 2004-2009 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef _BLACKFIN_DMA_MAPPING_H #ifndef _BLACKFIN_DMA_MAPPING_H
#define _BLACKFIN_DMA_MAPPING_H #define _BLACKFIN_DMA_MAPPING_H

View File

@ -1,9 +1,11 @@
/* /*
* include/asm-blackfin/dpmc.h - Miscellaneous IOCTL commands for Dynamic Power * Miscellaneous IOCTL commands for Dynamic Power Management Controller Driver
* Management Controller Driver. *
* Copyright (C) 2004-2008 Analog Device Inc. * Copyright (C) 2004-2008 Analog Device Inc.
* *
* Licensed under the GPL-2
*/ */
#ifndef _BLACKFIN_DPMC_H_ #ifndef _BLACKFIN_DPMC_H_
#define _BLACKFIN_DPMC_H_ #define _BLACKFIN_DPMC_H_

View File

@ -1,27 +1,11 @@
/* /*
* File: include/asm-blackfin/early_printk.h * function prototpyes for early printk
* Author: Robin Getz <rgetz@blackfin.uclinux.org
* *
* Created: 14Aug2007 * Copyright 2007-2009 Analog Devices Inc.
* Description: function prototpyes for early printk
* *
* Modified: * Licensed under the GPL-2 or later.
* Copyright 2004-2007 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.
*/ */
#ifndef __ASM_EARLY_PRINTK_H__ #ifndef __ASM_EARLY_PRINTK_H__
#define __ASM_EARLY_PRINTK_H__ #define __ASM_EARLY_PRINTK_H__

View File

@ -1,4 +1,8 @@
/* Changes made by LG Soft Oct 2004*/ /*
* Copyright 2004-2009 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef __ASMBFIN_ELF_H #ifndef __ASMBFIN_ELF_H
#define __ASMBFIN_ELF_H #define __ASMBFIN_ELF_H

View File

@ -1,3 +1,9 @@
/*
* Copyright 2004-2009 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef __BFIN_ENTRY_H #ifndef __BFIN_ENTRY_H
#define __BFIN_ENTRY_H #define __BFIN_ENTRY_H

View File

@ -1,3 +1,9 @@
/*
* Copyright 2004-2008 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef _BFIN_FCNTL_H #ifndef _BFIN_FCNTL_H
#define _BFIN_FCNTL_H #define _BFIN_FCNTL_H

View File

@ -1,5 +1,11 @@
/* This file defines the fixed addresses where userspace programs can find /*
atomic code sequences. */ * This file defines the fixed addresses where userspace programs
* can find atomic code sequences.
*
* Copyright 2007-2008 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef __BFIN_ASM_FIXED_CODE_H__ #ifndef __BFIN_ASM_FIXED_CODE_H__
#define __BFIN_ASM_FIXED_CODE_H__ #define __BFIN_ASM_FIXED_CODE_H__

View File

@ -1,8 +1,9 @@
/* /*
* include/asm-blackfin/flat.h -- uClinux flat-format executables * uClinux flat-format executables
* *
* Copyright (C) 2003, * Copyright 2003-2009 Analog Devices Inc.
* *
* Licensed under the GPL-2
*/ */
#ifndef __BLACKFIN_FLAT_H__ #ifndef __BLACKFIN_FLAT_H__

View File

@ -1,30 +1,7 @@
/* /*
* File: arch/blackfin/kernel/bfin_gpio.h * Copyright 2006-2009 Analog Devices Inc.
* Based on:
* Author: Michael Hennerich (hennerich@blackfin.uclinux.org)
* *
* Created: * Licensed under the GPL-2 or later.
* Description:
*
* Modified:
* Copyright 2004-2008 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 __ARCH_BLACKFIN_GPIO_H__ #ifndef __ARCH_BLACKFIN_GPIO_H__

View File

@ -1,3 +1,9 @@
/*
* Copyright 2004-2009 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef __BFIN_HARDIRQ_H #ifndef __BFIN_HARDIRQ_H
#define __BFIN_HARDIRQ_H #define __BFIN_HARDIRQ_H

View File

@ -1,3 +1,9 @@
/*
* Copyright 2004-2009 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef _BFIN_IO_H #ifndef _BFIN_IO_H
#define _BFIN_IO_H #define _BFIN_IO_H

View File

@ -1,17 +1,10 @@
/* /*
* This file is subject to the terms and conditions of the GNU General Public * Copyright 2004-2009 Analog Devices Inc.
* License. See the file COPYING in the main directory of this archive * 2003 HuTao
* for more details. * 2002 Arcturus Networks Inc. (www.arcturusnetworks.com
* Ted Ma <mated@sympatico.ca>
* *
* Changed by HuTao Apr18, 2003 * Licensed under the GPL-2
*
* Copyright was missing when I got the code so took from MIPS arch ...MaTed---
* Copyright (C) 1994 by Waldorf GMBH, written by Ralf Baechle
* Copyright (C) 1995, 96, 97, 98, 99, 2000, 2001 by Ralf Baechle
*
* Adapted for BlackFin (ADI) by Ted Ma <mated@sympatico.ca>
* Copyright (c) 2002 Arcturus Networks Inc. (www.arcturusnetworks.com)
* Copyright (c) 2002 Lineo, Inc. <mattw@lineo.com>
*/ */
#ifndef _BFIN_IRQ_H_ #ifndef _BFIN_IRQ_H_
@ -19,6 +12,8 @@
#include <linux/irqflags.h> #include <linux/irqflags.h>
#include <mach/anomaly.h>
/* SYS_IRQS and NR_IRQS are defined in <mach-bf5xx/irq.h> */ /* SYS_IRQS and NR_IRQS are defined in <mach-bf5xx/irq.h> */
#include <mach/irq.h> #include <mach/irq.h>

View File

@ -1,3 +1,9 @@
/*
* Copyright 2007-2009 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef _IRQ_HANDLER_H #ifndef _IRQ_HANDLER_H
#define _IRQ_HANDLER_H #define _IRQ_HANDLER_H

View File

@ -1,6 +1,9 @@
/* /*
* l1layout.h
* Defines a layout of L1 scratchpad memory that userspace can rely on. * Defines a layout of L1 scratchpad memory that userspace can rely on.
*
* Copyright 2006-2008 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/ */
#ifndef _L1LAYOUT_H_ #ifndef _L1LAYOUT_H_

View File

@ -1,3 +1,9 @@
/*
* Copyright 2004-2009 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef __ASM_LINKAGE_H #ifndef __ASM_LINKAGE_H
#define __ASM_LINKAGE_H #define __ASM_LINKAGE_H

View File

@ -1,8 +1,13 @@
/*
* Copyright 2004-2009 Analog Devices Inc.
* 2002 David McCullough <davidm@snapgear.com>
*
* Licensed under the GPL-2.
*/
#ifndef __MMU_H #ifndef __MMU_H
#define __MMU_H #define __MMU_H
/* Copyright (C) 2002, David McCullough <davidm@snapgear.com> */
struct sram_list_struct { struct sram_list_struct {
struct sram_list_struct *next; struct sram_list_struct *next;
void *addr; void *addr;

View File

@ -1,30 +1,7 @@
/* /*
* File: include/asm-blackfin/mmu_context.h * Copyright 2004-2009 Analog Devices Inc.
* Based on:
* Author:
* *
* Created: * Licensed under the GPL-2 or later.
* Description:
*
* 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 __BLACKFIN_MMU_CONTEXT_H__ #ifndef __BLACKFIN_MMU_CONTEXT_H__

View File

@ -1,3 +1,9 @@
/*
 * Copyright 2004-2008 Analog Devices Inc.
 *
 * Licensed under the GPL-2 or later.
 */
#ifndef _ASM_BFIN_MODULE_H #ifndef _ASM_BFIN_MODULE_H
#define _ASM_BFIN_MODULE_H #define _ASM_BFIN_MODULE_H

View File

@ -4,6 +4,10 @@
* TODO: implement optimized primitives instead, or leave the generic * TODO: implement optimized primitives instead, or leave the generic
* implementation in place, or pick the atomic_xchg() based generic * implementation in place, or pick the atomic_xchg() based generic
* implementation. (see asm-generic/mutex-xchg.h for details) * implementation. (see asm-generic/mutex-xchg.h for details)
*
* Copyright 2006-2009 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/ */
#ifndef _ASM_MUTEX_H #ifndef _ASM_MUTEX_H

View File

@ -1,13 +1,9 @@
/* linux/include/asm-blackfin/nand.h /*
*
* Copyright (c) 2007 Analog Devices, Inc.
* Bryan Wu <bryan.wu@analog.com>
*
* BF5XX - NAND flash controller platfrom_device info * BF5XX - NAND flash controller platfrom_device info
* *
* This program is free software; you can redistribute it and/or modify * Copyright 2007-2008 Analog Devices, Inc.
* it under the terms of the GNU General Public License version 2 as *
* published by the Free Software Foundation. * Licensed under the GPL-2
*/ */
/* struct bf5xx_nand_platform /* struct bf5xx_nand_platform

View File

@ -1,3 +1,9 @@
/*
 * Copyright 2004-2009 Analog Devices Inc.
 *
 * Licensed under the GPL-2 or later.
 */
#ifndef _BLACKFIN_PAGE_H #ifndef _BLACKFIN_PAGE_H
#define _BLACKFIN_PAGE_H #define _BLACKFIN_PAGE_H

View File

@ -1,5 +1,10 @@
/*
/* This handles the memory map.. */ * This handles the memory map
*
* Copyright 2004-2008 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifdef CONFIG_BLACKFIN #ifdef CONFIG_BLACKFIN
#define PAGE_OFFSET_RAW 0x00000000 #define PAGE_OFFSET_RAW 0x00000000

View File

@ -1,23 +1,8 @@
/* /*
* File: arch/blackfin/include/asm/pda.h * Copyright 2007-2009 Analog Devices Inc.
* Author: Philippe Gerum <rpm@xenomai.org> * Philippe Gerum <rpm@xenomai.org>
* *
* Copyright 2007 Analog Devices Inc. * Licensed under the GPL-2 or later.
*
* 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 _ASM_BLACKFIN_PDA_H #ifndef _ASM_BLACKFIN_PDA_H

View File

@ -1,3 +1,9 @@
/*
* Copyright 2004-2009 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef _BLACKFIN_PGTABLE_H #ifndef _BLACKFIN_PGTABLE_H
#define _BLACKFIN_PGTABLE_H #define _BLACKFIN_PGTABLE_H
@ -92,6 +98,12 @@ extern unsigned int kobjsize(const void *objp);
#define VMALLOC_START 0 #define VMALLOC_START 0
#define VMALLOC_END 0xffffffff #define VMALLOC_END 0xffffffff
/* provide a special get_unmapped_area for framebuffer mmaps of nommu */
extern unsigned long get_fb_unmapped_area(struct file *filp, unsigned long,
unsigned long, unsigned long,
unsigned long);
#define HAVE_ARCH_FB_UNMAPPED_AREA
#include <asm-generic/pgtable.h> #include <asm-generic/pgtable.h>
#endif /* _BLACKFIN_PGTABLE_H */ #endif /* _BLACKFIN_PGTABLE_H */

View File

@ -1,3 +1,10 @@
/*
* Copyright 2004-2009 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*
*/
#ifndef __BFIN_POLL_H #ifndef __BFIN_POLL_H
#define __BFIN_POLL_H #define __BFIN_POLL_H

View File

@ -1,6 +1,9 @@
/* /*
* Common header file for blackfin family of processors. * Common header file for Blackfin family of processors
* *
 * Copyright 2007-2008 Analog Devices Inc.
 *
 * Licensed under the GPL-2 or later.
*/ */
#ifndef _PORTMUX_H_ #ifndef _PORTMUX_H_

View File

@ -1,3 +1,9 @@
/*
* Copyright 2004-2009 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef __ARCH_BFIN_POSIX_TYPES_H #ifndef __ARCH_BFIN_POSIX_TYPES_H
#define __ARCH_BFIN_POSIX_TYPES_H #define __ARCH_BFIN_POSIX_TYPES_H

View File

@ -1,3 +1,9 @@
/*
* Copyright 2004-2009 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef __ASM_BFIN_PROCESSOR_H #ifndef __ASM_BFIN_PROCESSOR_H
#define __ASM_BFIN_PROCESSOR_H #define __ASM_BFIN_PROCESSOR_H

View File

@ -1,3 +1,9 @@
/*
* Copyright 2004-2008 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef _BFIN_PTRACE_H #ifndef _BFIN_PTRACE_H
#define _BFIN_PTRACE_H #define _BFIN_PTRACE_H

View File

@ -1,3 +1,9 @@
/*
 * Copyright 2004-2009 Analog Devices Inc.
 *
 * Licensed under the GPL-2 or later.
 */
#ifndef _BLACKFIN_SECTIONS_H #ifndef _BLACKFIN_SECTIONS_H
#define _BLACKFIN_SECTIONS_H #define _BLACKFIN_SECTIONS_H

View File

@ -1,3 +1,9 @@
/*
* Copyright 2004-2008 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef _BFIN_SEGMENT_H #ifndef _BFIN_SEGMENT_H
#define _BFIN_SEGMENT_H #define _BFIN_SEGMENT_H

View File

@ -1,3 +1,9 @@
/*
 * Copyright 2004-2008 Analog Devices Inc.
 *
 * Licensed under the GPL-2 or later.
 */
#ifndef _ASM_BLACKFIN_SIGCONTEXT_H #ifndef _ASM_BLACKFIN_SIGCONTEXT_H
#define _ASM_BLACKFIN_SIGCONTEXT_H #define _ASM_BLACKFIN_SIGCONTEXT_H

View File

@ -1,3 +1,9 @@
/*
* Copyright 2004-2008 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef _BFIN_SIGINFO_H #ifndef _BFIN_SIGINFO_H
#define _BFIN_SIGINFO_H #define _BFIN_SIGINFO_H

View File

@ -1,23 +1,8 @@
/* /*
* File: arch/blackfin/include/asm/smp.h * Copyright 2007-2009 Analog Devices Inc.
* Author: Philippe Gerum <rpm@xenomai.org> * Philippe Gerum <rpm@xenomai.org>
* *
* Copyright 2007 Analog Devices Inc. * Licensed under the GPL-2 or later.
*
* 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 __ASM_BLACKFIN_SMP_H #ifndef __ASM_BLACKFIN_SMP_H

View File

@ -1,3 +1,9 @@
/*
 * Copyright 2004-2009 Analog Devices Inc.
 *
 * Licensed under the GPL-2 or later.
 */
#ifndef __BFIN_SPINLOCK_H #ifndef __BFIN_SPINLOCK_H
#define __BFIN_SPINLOCK_H #define __BFIN_SPINLOCK_H

View File

@ -1,3 +1,9 @@
/*
* Copyright 2008 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef __ASM_SPINLOCK_TYPES_H #ifndef __ASM_SPINLOCK_TYPES_H
#define __ASM_SPINLOCK_TYPES_H #define __ASM_SPINLOCK_TYPES_H

View File

@ -1,3 +1,9 @@
/*
* Copyright 2004-2006 Analog Devices Inc.
*
* Licensed under the GPL-2.
*/
#ifndef _BFIN_STAT_H #ifndef _BFIN_STAT_H
#define _BFIN_STAT_H #define _BFIN_STAT_H

View File

@ -1,3 +1,9 @@
/*
* Copyright 2004-2008 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef _BLACKFIN_STRING_H_ #ifndef _BLACKFIN_STRING_H_
#define _BLACKFIN_STRING_H_ #define _BLACKFIN_STRING_H_

View File

@ -1,3 +1,9 @@
/*
* Copyright 2009 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef _BLACKFIN_SWAB_H #ifndef _BLACKFIN_SWAB_H
#define _BLACKFIN_SWAB_H #define _BLACKFIN_SWAB_H

View File

@ -1,34 +1,8 @@
/* /*
* File: include/asm/system.h * Copyright 2004-2009 Analog Devices Inc.
* Based on: * Tony Kou (tonyko@lineo.ca)
* Author: Tony Kou (tonyko@lineo.ca)
* Copyright (c) 2002 Arcturus Networks Inc.
* (www.arcturusnetworks.com)
* Copyright (c) 2003 Metrowerks (www.metrowerks.com)
* Copyright (c) 2004 Analog Device Inc.
* Created: 25Jan2001 - Tony Kou
* Description: system.h include file
* *
* Modified: 22Sep2006 - Robin Getz * Licensed under the GPL-2 or later
* - move include blackfin.h down, so I can get access to
* irq functions in other include files.
*
* 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, 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; see the file COPYING.
* If not, write to the Free Software Foundation,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef _BLACKFIN_SYSTEM_H #ifndef _BLACKFIN_SYSTEM_H

View File

@ -1,27 +1,7 @@
/* /*
* File: include/asm-blackfin/thread_info.h * Copyright 2004-2009 Analog Devices Inc.
* Based on: include/asm-m68knommu/thread_info.h
* Author: LG Soft India
* Copyright (C) 2004-2005 Analog Devices Inc.
* Created: Tue Sep 21 2004
* Description: Blackfin low-level thread information
* Modified:
* Bugs: Enter bugs at http://blackfin.uclinux.org/
* *
* This program is free software; you can redistribute it and/or modify * Licensed under the GPL-2 or later.
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, 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; see the file COPYING.
* If not, write to the Free Software Foundation,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef _ASM_THREAD_INFO_H #ifndef _ASM_THREAD_INFO_H

View File

@ -1,3 +1,9 @@
/*
* Copyright 2004-2008 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef _BLACKFIN_TLB_H #ifndef _BLACKFIN_TLB_H
#define _BLACKFIN_TLB_H #define _BLACKFIN_TLB_H

View File

@ -1,6 +1,9 @@
/* /*
* Common header file for blackfin family of processors. * header file for hardware trace functions
* *
* Copyright 2007-2008 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/ */
#ifndef _BLACKFIN_TRACE_ #ifndef _BLACKFIN_TRACE_

View File

@ -1,13 +1,10 @@
/* /*
* linux/include/asm/traps.h * Copyright 2004-2009 Analog Devices Inc.
* 2001 Lineo, Inc
* Tony Kou
* 1993 Hamish Macdonald
* *
* Copyright (C) 1993 Hamish Macdonald * Licensed under the GPL-2
*
* Lineo, Inc Jul 2001 Tony Kou
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file COPYING in the main directory of this archive
* for more details.
*/ */
#ifndef _BFIN_TRAPS_H #ifndef _BFIN_TRAPS_H

View File

@ -1,4 +1,7 @@
/* Changes made by Lineo Inc. May 2001 /*
* Copyright 2004-2009 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
* *
* Based on: include/asm-m68knommu/uaccess.h * Based on: include/asm-m68knommu/uaccess.h
*/ */

View File

@ -1,3 +1,9 @@
/*
* Copyright 2004-2009 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef __ASM_BFIN_UNISTD_H #ifndef __ASM_BFIN_UNISTD_H
#define __ASM_BFIN_UNISTD_H #define __ASM_BFIN_UNISTD_H
/* /*

View File

@ -1,30 +1,9 @@
/* /*
* File: arch/blackfin/kernel/asm-offsets.c * generate definitions needed by assembly language modules
* Based on:
* Author:
* *
* Created: * Copyright 2004-2009 Analog Devices Inc.
* Description: generate definitions needed by assembly language modules.
* *
* Modified: * Licensed under the GPL-2 or later
* 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
*/ */
#include <linux/stddef.h> #include <linux/stddef.h>

View File

@ -2,6 +2,7 @@
* bfin_dma_5xx.c - Blackfin DMA implementation * bfin_dma_5xx.c - Blackfin DMA implementation
* *
* Copyright 2004-2008 Analog Devices Inc. * Copyright 2004-2008 Analog Devices Inc.
*
* Licensed under the GPL-2 or later. * Licensed under the GPL-2 or later.
*/ */

View File

@ -1,30 +1,9 @@
/* /*
* File: arch/blackfin/kernel/bfin_gpio.c * GPIO Abstraction Layer
* Based on:
* Author: Michael Hennerich (hennerich@blackfin.uclinux.org)
* *
* Created: * Copyright 2006-2009 Analog Devices Inc.
* Description: GPIO Abstraction Layer
* *
* Modified: * Licensed under the GPL-2 or later
* Copyright 2008 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
*/ */
#include <linux/delay.h> #include <linux/delay.h>

View File

@ -1,25 +1,11 @@
/* /*
* Blackfin CPLB initialization * Blackfin CPLB initialization
* *
* Copyright 2004-2007 Analog Devices Inc. * Copyright 2008-2009 Analog Devices Inc.
* *
* Bugs: Enter bugs at http://blackfin.uclinux.org/ * Licensed under the GPL-2 or later.
*
* 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
*/ */
#include <linux/module.h> #include <linux/module.h>
#include <asm/blackfin.h> #include <asm/blackfin.h>

View File

@ -1,22 +1,11 @@
/* /*
* Blackfin CPLB exception handling. * Blackfin CPLB exception handling for when MPU in on
* Copyright 2004-2007 Analog Devices Inc.
* *
* This program is free software; you can redistribute it and/or modify * Copyright 2008-2009 Analog Devices Inc.
* 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, * Licensed under the GPL-2 or later.
* 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
*/ */
#include <linux/module.h> #include <linux/module.h>
#include <linux/mm.h> #include <linux/mm.h>

View File

@ -1,24 +1,9 @@
/* /*
* Blackfin CPLB initialization * Blackfin CPLB initialization
* *
* Copyright 2004-2007 Analog Devices Inc. * Copyright 2007-2009 Analog Devices Inc.
* *
* Bugs: Enter bugs at http://blackfin.uclinux.org/ * Licensed under the GPL-2 or later.
*
* 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
*/ */
#include <linux/module.h> #include <linux/module.h>

View File

@ -1,26 +1,14 @@
/* /*
* File: arch/blackfin/kernel/cplb-nompu-c/cplbmgr.c
* Based on: arch/blackfin/kernel/cplb-mpu/cplbmgr.c * Based on: arch/blackfin/kernel/cplb-mpu/cplbmgr.c
* Author: Michael McTernan <mmcternan@airvana.com> * Author: Michael McTernan <mmcternan@airvana.com>
* *
* Created: 01Nov2008
* Description: CPLB miss handler. * Description: CPLB miss handler.
* *
* Modified: * Modified:
* Copyright 2008 Airvana Inc. * Copyright 2008 Airvana Inc.
* Copyright 2004-2007 Analog Devices Inc. * Copyright 2008-2009 Analog Devices Inc.
* *
* Bugs: Enter bugs at http://blackfin.uclinux.org/ * Licensed under the GPL-2 or later
*
* 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.
*/ */
#include <linux/kernel.h> #include <linux/kernel.h>

View File

@ -2,6 +2,7 @@
* arch/blackfin/kernel/cplbinfo.c - display CPLB status * arch/blackfin/kernel/cplbinfo.c - display CPLB status
* *
* Copyright 2004-2008 Analog Devices Inc. * Copyright 2004-2008 Analog Devices Inc.
*
* Licensed under the GPL-2 or later. * Licensed under the GPL-2 or later.
*/ */
@ -111,24 +112,21 @@ static const struct seq_operations cplbinfo_sops = {
.show = cplbinfo_show, .show = cplbinfo_show,
}; };
#define CPLBINFO_DCPLB_FLAG 0x80000000
static int cplbinfo_open(struct inode *inode, struct file *file) static int cplbinfo_open(struct inode *inode, struct file *file)
{ {
char buf[256], *path, *p; struct proc_dir_entry *pde = PDE(file->f_path.dentry->d_inode);
char cplb_type;
unsigned int cpu; unsigned int cpu;
char *s_cpu, *s_cplb;
int ret; int ret;
struct seq_file *m; struct seq_file *m;
struct cplbinfo_data *cdata; struct cplbinfo_data *cdata;
path = d_path(&file->f_path, buf, sizeof(buf)); cpu = (unsigned int)pde->data;
if (IS_ERR(path)) cplb_type = cpu & CPLBINFO_DCPLB_FLAG ? 'D' : 'I';
return PTR_ERR(path); cpu &= ~CPLBINFO_DCPLB_FLAG;
s_cpu = strstr(path, "/cpu");
s_cplb = strrchr(path, '/');
if (!s_cpu || !s_cplb)
return -EINVAL;
cpu = simple_strtoul(s_cpu + 4, &p, 10);
if (!cpu_online(cpu)) if (!cpu_online(cpu))
return -ENODEV; return -ENODEV;
@ -139,7 +137,7 @@ static int cplbinfo_open(struct inode *inode, struct file *file)
cdata = m->private; cdata = m->private;
cdata->pos = 0; cdata->pos = 0;
cdata->cplb_type = toupper(s_cplb[1]); cdata->cplb_type = cplb_type;
cplbinfo_seq_init(cdata, cpu); cplbinfo_seq_init(cdata, cpu);
return 0; return 0;
@ -168,8 +166,10 @@ static int __init cplbinfo_init(void)
if (!cpu_dir) if (!cpu_dir)
return -ENOMEM; return -ENOMEM;
proc_create("icplb", S_IRUGO, cpu_dir, &cplbinfo_fops); proc_create_data("icplb", S_IRUGO, cpu_dir, &cplbinfo_fops,
proc_create("dcplb", S_IRUGO, cpu_dir, &cplbinfo_fops); (void *)cpu);
proc_create_data("dcplb", S_IRUGO, cpu_dir, &cplbinfo_fops,
(void *)(cpu | CPLBINFO_DCPLB_FLAG));
} }
return 0; return 0;

View File

@ -1,30 +1,9 @@
/* /*
* File: arch/blackfin/kernel/dma-mapping.c * Dynamic DMA mapping support
* Based on:
* Author:
* *
* Created: * Copyright 2005-2009 Analog Devices Inc.
* Description: Dynamic DMA mapping support.
* *
* Modified: * Licensed under the GPL-2 or later
* 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
*/ */
#include <linux/types.h> #include <linux/types.h>

View File

@ -1,25 +1,10 @@
/* /*
* File: arch/blackfin/kernel/early_printk.c * allow a console to be used for early printk
* Based on: arch/x86_64/kernel/early_printk.c * derived from arch/x86/kernel/early_printk.c
* Author: Robin Getz <rgetz@blackfin.uclinux.org
* *
* Created: 14Aug2007 * Copyright 2007-2009 Analog Devices Inc.
* Description: allow a console to be used for early printk
* *
* Modified: * Licensed under the GPL-2
* Copyright 2004-2007 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.
*/ */
#include <linux/kernel.h> #include <linux/kernel.h>

View File

@ -1,30 +1,7 @@
/* /*
* File: arch/blackfin/kernel/entry.S * Copyright 2004-2009 Analog Devices Inc.
* Based on:
* Author:
* *
* Created: * Licensed under the GPL-2 or later
* Description:
*
* 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
*/ */
#include <linux/linkage.h> #include <linux/linkage.h>

View File

@ -6,7 +6,12 @@
* These are aligned to 16 bytes, so that we have some space to replace * These are aligned to 16 bytes, so that we have some space to replace
* these sequences with something else (e.g. kernel traps if we ever do * these sequences with something else (e.g. kernel traps if we ever do
* BF561 SMP). * BF561 SMP).
*
* Copyright 2007-2008 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/ */
#include <linux/linkage.h> #include <linux/linkage.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/unistd.h> #include <linux/unistd.h>

View File

@ -1,21 +1,7 @@
/* /*
* arch/blackfin/kernel/flat.c * Copyright 2007 Analog Devices Inc.
* *
* Copyright (C) 2007 Analog Devices, Inc. * Licensed under the GPL-2.
*
* 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, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#include <linux/module.h> #include <linux/module.h>

View File

@ -1,30 +1,7 @@
/* /*
* File: arch/blackfin/kernel/init_task.c * Copyright 2004-2009 Analog Devices Inc.
* Based on:
* Author:
* *
* Created: * Licensed under the GPL-2 or later
* Description: This file contains the simple DMA Implementation 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
*/ */
#include <linux/mm.h> #include <linux/mm.h>

View File

@ -1,30 +1,7 @@
/* /*
* File: arch/blackfin/kernel/irqchip.c * Copyright 2005-2009 Analog Devices Inc.
* Based on:
* Author:
* *
* Created: * Licensed under the GPL-2 or later
* Description: This file contains the simple DMA Implementation 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
*/ */
#include <linux/kernel_stat.h> #include <linux/kernel_stat.h>

View File

@ -1,30 +1,7 @@
/* /*
* File: arch/blackfin/kernel/module.c * Copyright 2004-2009 Analog Devices Inc.
* Based on:
* Author:
* *
* Created: * Licensed under the GPL-2 or later
* Description:
*
* 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
*/ */
#define pr_fmt(fmt) "module %s: " fmt #define pr_fmt(fmt) "module %s: " fmt

View File

@ -1,30 +1,9 @@
/* /*
* File: arch/blackfin/kernel/process.c * Blackfin architecture-dependent process handling
* Based on:
* Author:
* *
* Created: * Copyright 2004-2009 Analog Devices Inc.
* Description: Blackfin architecture-dependent process handling.
* *
* Modified: * Licensed under the GPL-2 or later
* 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
*/ */
#include <linux/module.h> #include <linux/module.h>

View File

@ -1,30 +1,8 @@
/* /*
* File: arch/blackfin/kernel/ptrace.c * linux/kernel/ptrace.c is by Ross Biro 1/23/92, edited by Linus Torvalds
* Based on: Taken from linux/kernel/ptrace.c * these modifications are Copyright 2004-2009 Analog Devices Inc.
* Author: linux/kernel/ptrace.c is by Ross Biro 1/23/92, edited by Linus Torvalds
* *
* Created: 1/23/92 * Licensed under the GPL-2
* Description:
*
* 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
*/ */
#include <linux/kernel.h> #include <linux/kernel.h>

View File

@ -1,9 +1,5 @@
/* /*
* arch/blackfin/kernel/setup.c * Copyright 2004-2009 Analog Devices Inc.
*
* Copyright 2004-2006 Analog Devices Inc.
*
* Enter bugs at http://blackfin.uclinux.org/
* *
* Licensed under the GPL-2 or later. * Licensed under the GPL-2 or later.
*/ */

View File

@ -4,8 +4,6 @@
* *
* Copyright 2009 Analog Devices Inc. * Copyright 2009 Analog Devices Inc.
* *
* Enter bugs at http://blackfin.uclinux.org/
*
* Licensed under the GPL-2 or later. * Licensed under the GPL-2 or later.
*/ */

View File

@ -1,30 +1,7 @@
/* /*
* File: arch/blackfin/kernel/signal.c * Copyright 2004-2009 Analog Devices Inc.
* Based on:
* Author:
* *
* Created: * Licensed under the GPL-2 or later
* Description:
*
* 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
*/ */
#include <linux/signal.h> #include <linux/signal.h>

View File

@ -1,32 +1,10 @@
/* /*
* File: arch/blackfin/kernel/sys_bfin.c * contains various random system calls that have a non-standard
* Based on: * calling sequence on the Linux/Blackfin platform.
* Author:
* *
* Created: * Copyright 2004-2009 Analog Devices Inc.
* Description: This file contains various random system calls that
* have a non-standard calling sequence on the Linux/bfin
* platform.
* *
* Modified: * Licensed under the GPL-2 or later
* 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
*/ */
#include <linux/spinlock.h> #include <linux/spinlock.h>
@ -91,3 +69,14 @@ asmlinkage void *sys_dma_memcpy(void *dest, const void *src, size_t len)
{ {
return safe_dma_memcpy(dest, src, len); return safe_dma_memcpy(dest, src, len);
} }
#if defined(CONFIG_FB) || defined(CONFIG_FB_MODULE)
#include <linux/fb.h>
unsigned long get_fb_unmapped_area(struct file *filp, unsigned long orig_addr,
unsigned long len, unsigned long pgoff, unsigned long flags)
{
struct fb_info *info = filp->private_data;
return (unsigned long)info->screen_base;
}
EXPORT_SYMBOL(get_fb_unmapped_area);
#endif

View File

@ -1,13 +1,13 @@
/* /*
* linux/arch/kernel/time-ts.c
*
* Based on arm clockevents implementation and old bfin time tick. * Based on arm clockevents implementation and old bfin time tick.
* *
* Copyright(C) 2008, GeoTechnologies, Vitja Makarov * Copyright 2008-2009 Analog Devics Inc.
* 2008 GeoTechnologies
* Vitja Makarov
* *
* This code is licenced under the GPL version 2. For details see * Licensed under the GPL-2
* kernel-base/COPYING.
*/ */
#include <linux/module.h> #include <linux/module.h>
#include <linux/profile.h> #include <linux/profile.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>

View File

@ -81,11 +81,11 @@ time_sched_init(irqreturn_t(*timer_routine) (int, void *))
#endif #endif
} }
#ifdef CONFIG_ARCH_USES_GETTIMEOFFSET
/* /*
* Should return useconds since last timer tick * Should return useconds since last timer tick
*/ */
#ifndef CONFIG_GENERIC_TIME u32 arch_gettimeoffset(void)
static unsigned long gettimeoffset(void)
{ {
unsigned long offset; unsigned long offset;
unsigned long clocks_per_jiffy; unsigned long clocks_per_jiffy;
@ -184,65 +184,6 @@ void __init time_init(void)
time_sched_init(timer_interrupt); time_sched_init(timer_interrupt);
} }
#ifndef CONFIG_GENERIC_TIME
void do_gettimeofday(struct timeval *tv)
{
unsigned long flags;
unsigned long seq;
unsigned long usec, sec;
do {
seq = read_seqbegin_irqsave(&xtime_lock, flags);
usec = gettimeoffset();
sec = xtime.tv_sec;
usec += (xtime.tv_nsec / NSEC_PER_USEC);
}
while (read_seqretry_irqrestore(&xtime_lock, seq, flags));
while (usec >= USEC_PER_SEC) {
usec -= USEC_PER_SEC;
sec++;
}
tv->tv_sec = sec;
tv->tv_usec = usec;
}
EXPORT_SYMBOL(do_gettimeofday);
int do_settimeofday(struct timespec *tv)
{
time_t wtm_sec, sec = tv->tv_sec;
long wtm_nsec, nsec = tv->tv_nsec;
if ((unsigned long)tv->tv_nsec >= NSEC_PER_SEC)
return -EINVAL;
write_seqlock_irq(&xtime_lock);
/*
* This is revolting. We need to set the xtime.tv_usec
* correctly. However, the value in this location is
* is value at the last tick.
* Discover what correction gettimeofday
* would have done, and then undo it!
*/
nsec -= (gettimeoffset() * NSEC_PER_USEC);
wtm_sec = wall_to_monotonic.tv_sec + (xtime.tv_sec - sec);
wtm_nsec = wall_to_monotonic.tv_nsec + (xtime.tv_nsec - nsec);
set_normalized_timespec(&xtime, sec, nsec);
set_normalized_timespec(&wall_to_monotonic, wtm_sec, wtm_nsec);
ntp_clear();
write_sequnlock_irq(&xtime_lock);
clock_was_set();
return 0;
}
EXPORT_SYMBOL(do_settimeofday);
#endif /* !CONFIG_GENERIC_TIME */
/* /*
* Scheduler clock - returns current time in nanosec units. * Scheduler clock - returns current time in nanosec units.
*/ */

View File

@ -1,30 +1,7 @@
/* /*
* File: arch/blackfin/kernel/traps.c * Copyright 2004-2009 Analog Devices Inc.
* Based on:
* Author: Hamish Macdonald
* *
* Created: * Licensed under the GPL-2 or later
* Description: uses S/W interrupt 15 for the system calls
*
* 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
*/ */
#include <linux/bug.h> #include <linux/bug.h>

View File

@ -1,30 +1,7 @@
/* /*
* File: arch/blackfin/kernel/vmlinux.lds.S * Copyright 2004-2009 Analog Devices Inc.
* Based on: none - original work
* Author:
* *
* Created: Tue Sep 21 2004 * Licensed under the GPL-2 or later
* Description: Master linker script for blackfin architecture
*
* Modified:
* Copyright 2004-2007 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
*/ */
#define VMLINUX_SYMBOL(_sym_) _##_sym_ #define VMLINUX_SYMBOL(_sym_) _##_sym_

View File

@ -1,30 +1,7 @@
/* /*
* File: arch/blackfin/lib/ashldi3.c * Copyright 2004-2009 Analog Devices Inc.
* Based on:
* Author:
* *
* Created: * Licensed under the GPL-2 or later.
* Description:
*
* 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
*/ */
#include "gcclib.h" #include "gcclib.h"

View File

@ -1,30 +1,7 @@
/* /*
* File: arch/blackfin/lib/ashrdi3.c * Copyright 2004-2009 Analog Devices Inc.
* Based on:
* Author:
* *
* Created: * Licensed under the GPL-2 or later.
* Description:
*
* 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
*/ */
#include "gcclib.h" #include "gcclib.h"

View File

@ -1,32 +1,12 @@
/* /*
* File: arch/blackfin/lib/checksum.c * Copyright 2004-2009 Analog Devices Inc.
* Based on: none - original work
* Author:
* *
* Created: * Licensed under the GPL-2 or later.
* Description: An implementation of the TCP/IP protocol suite for the LINUX
* operating system. INET is implemented using the BSD Socket
* interface as the means of communication with the user level.
* *
* Modified: * An implementation of the TCP/IP protocol suite for the LINUX operating
* Copyright 2004-2006 Analog Devices Inc. * system. INET is implemented using the BSD Socket interface as the
* means of communication with the user level.
* *
* 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
*/ */
#include <linux/module.h> #include <linux/module.h>

View File

@ -1,10 +1,9 @@
/* /*
* File: arch/blackfin/lib/divsi3.S * Copyright 2004-2009 Analog Devices Inc.
* Based on:
* Author:
* *
* Created: * Licensed under the ADI BSD license or the GPL-2 (or later)
* Description: 16 / 32 bit signed division. *
* 16 / 32 bit signed division.
* Special cases : * Special cases :
* 1) If(numerator == 0) * 1) If(numerator == 0)
* return 0 * return 0
@ -22,25 +21,6 @@
* R0 - Quotient (o) * R0 - Quotient (o)
* Registers Used : R2-R7,P0-P2 * Registers Used : R2-R7,P0-P2
* *
* 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
*/ */
.global ___divsi3; .global ___divsi3;

View File

@ -1,30 +1,7 @@
/* /*
* File: arch/blackfin/lib/gcclib.h * Copyright 2004-2009 Analog Devices Inc.
* Based on:
* Author:
* *
* Created: * Licensed under the GPL-2 or later.
* Description:
*
* 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
*/ */
#define BITS_PER_UNIT 8 #define BITS_PER_UNIT 8

View File

@ -1,30 +1,7 @@
/* /*
* File: arch/blackfin/lib/lshrdi3.c * Copyright 2004-2009 Analog Devices Inc.
* Based on:
* Author:
* *
* Created: * Licensed under the GPL-2 or later.
* Description:
*
* 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
*/ */
#include "gcclib.h" #include "gcclib.h"

View File

@ -1,30 +1,7 @@
/* /*
* File: arch/blackfin/lib/memchr.S * Copyright 2005-2009 Analog Devices Inc.
* Based on:
* Author:
* *
* Created: * Licensed under the ADI BSD license or the GPL-2 (or later)
* Description:
*
* 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
*/ */
#include <linux/linkage.h> #include <linux/linkage.h>

Some files were not shown because too many files have changed in this diff Show More