From f53397ebae55bbac4ab3d3784fb280aa80d005be Mon Sep 17 00:00:00 2001 From: Jagannadha Sutradharudu Teki Date: Fri, 14 Sep 2012 17:39:19 +0530 Subject: [PATCH] Xilinx: ARM: Use correct Xilinx license header Replaced Xilinx License header in some files to use common GPL header. Also added license notes on few more files. Signed-off-by: Jagannadha Sutradharudu Teki --- arch/arm/cpu/armv7/zynq/xscutimer_hw.h | 73 +++++--------------- board/xilinx/zynq_common/board.c | 14 +++- drivers/net/zynq_gem.c | 73 +++++--------------- drivers/net/zynq_gem.h | 95 ++++++++------------------ drivers/net/zynq_gem_bd.h | 79 ++++++--------------- drivers/net/zynq_gem_bdring.c | 72 ++++--------------- drivers/net/zynq_gem_bdring.h | 74 +++++--------------- drivers/net/zynq_gem_control.c | 62 +++-------------- drivers/net/zynq_gem_g.c | 80 +++++----------------- drivers/net/zynq_gem_hw.h | 77 +++++---------------- drivers/net/zynq_gem_sinit.c | 73 +++++--------------- drivers/net/zynq_gem_wrap.c | 13 ++++ drivers/serial/serial_xpsuart.c | 14 +++- drivers/serial/serial_xpsuart.h | 14 +++- drivers/spi/zynq_qspi.c | 5 +- drivers/spi/zynq_qspi.h | 15 ++++ drivers/spi/zynq_qspi_wrap.c | 14 +++- 17 files changed, 251 insertions(+), 596 deletions(-) diff --git a/arch/arm/cpu/armv7/zynq/xscutimer_hw.h b/arch/arm/cpu/armv7/zynq/xscutimer_hw.h index 13d61185b52..d42557706e7 100644 --- a/arch/arm/cpu/armv7/zynq/xscutimer_hw.h +++ b/arch/arm/cpu/armv7/zynq/xscutimer_hw.h @@ -1,60 +1,19 @@ -/* $Id: xscutimer_hw.h,v 1.1.2.1 2010/04/14 11:34:56 naveenm Exp $ */ -/****************************************************************************** -* -* (c) Copyright 2010 Xilinx, Inc. All rights reserved. -* -* This file contains confidential and proprietary information of Xilinx, Inc. -* and is protected under U.S. and international copyright and other -* intellectual property laws. -* -* DISCLAIMER -* This disclaimer is not a license and does not grant any rights to the -* materials distributed herewith. Except as otherwise provided in a valid -* license issued to you by Xilinx, and to the maximum extent permitted by -* applicable law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND WITH ALL -* FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS, -* IMPLIED, OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF -* MERCHANTABILITY, NON-INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; -* and (2) Xilinx shall not be liable (whether in contract or tort, including -* negligence, or under any other theory of liability) for any loss or damage -* of any kind or nature related to, arising under or in connection with these -* materials, including for any direct, or any indirect, special, incidental, -* or consequential loss or damage (including loss of data, profits, goodwill, -* or any type of loss or damage suffered as a result of any action brought by -* a third party) even if such damage or loss was reasonably foreseeable or -* Xilinx had been advised of the possibility of the same. -* -* CRITICAL APPLICATIONS -* Xilinx products are not designed or intended to be fail-safe, or for use in -* any application requiring fail-safe performance, such as life-support or -* safety devices or systems, Class III medical devices, nuclear facilities, -* applications related to the deployment of airbags, or any other applications -* that could lead to death, personal injury, or severe property or -* environmental damage (individually and collectively, "Critical -* Applications"). Customer assumes the sole risk and liability of any use of -* Xilinx products in Critical Applications, subject only to applicable laws -* and regulations governing limitations on product liability. -* -* THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS PART OF THIS FILE -* AT ALL TIMES. -* -******************************************************************************/ -/****************************************************************************/ -/** -* -* @file xscutimer_hw.h -* -* This file contains the hardware interface to the Timer. -* -*
-* MODIFICATION HISTORY:
-*
-* Ver   Who Date     Changes
-* ----- --- -------- ---------------------------------------------
-* 1.00a nm  03/10/10 First release
-* 
-* -******************************************************************************/ +/* + * (C) Copyright 2012 Xilinx + * + * Xilinx hardware interface to the Timer. + * + * 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. + * + * 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 + */ + #ifndef XSCUTIMER_HW_H /* prevent circular inclusions */ #define XSCUTIMER_HW_H /* by using protection macros */ diff --git a/board/xilinx/zynq_common/board.c b/board/xilinx/zynq_common/board.c index e5a17b4201e..7da38c8bf47 100644 --- a/board/xilinx/zynq_common/board.c +++ b/board/xilinx/zynq_common/board.c @@ -1,5 +1,17 @@ /* - * Just to satisfy init routines.. + * (C) Copyright 2012 Xilinx + * + * Xilinx Zynq common board interface + * + * 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. + * + * 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 diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 32c6548415b..50ceb91f17f 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -1,59 +1,20 @@ -/****************************************************************************** -* -* (c) Copyright 2009-2010 Xilinx, Inc. All rights reserved. -* -* This file contains confidential and proprietary information of Xilinx, Inc. -* and is protected under U.S. and international copyright and other -* intellectual property laws. -* -* DISCLAIMER -* This disclaimer is not a license and does not grant any rights to the -* materials distributed herewith. Except as otherwise provided in a valid -* license issued to you by Xilinx, and to the maximum extent permitted by -* applicable law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND WITH ALL -* FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS, -* IMPLIED, OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF -* MERCHANTABILITY, NON-INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; -* and (2) Xilinx shall not be liable (whether in contract or tort, including -* negligence, or under any other theory of liability) for any loss or damage -* of any kind or nature related to, arising under or in connection with these -* materials, including for any direct, or any indirect, special, incidental, -* or consequential loss or damage (including loss of data, profits, goodwill, -* or any type of loss or damage suffered as a result of any action brought by -* a third party) even if such damage or loss was reasonably foreseeable or -* Xilinx had been advised of the possibility of the same. -* -* CRITICAL APPLICATIONS -* Xilinx products are not designed or intended to be fail-safe, or for use in -* any application requiring fail-safe performance, such as life-support or -* safety devices or systems, Class III medical devices, nuclear facilities, -* applications related to the deployment of airbags, or any other applications -* that could lead to death, personal injury, or severe property or -* environmental damage (individually and collectively, "Critical -* Applications"). Customer assumes the sole risk and liability of any use of -* Xilinx products in Critical Applications, subject only to applicable laws -* and regulations governing limitations on product liability. -* -* THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS PART OF THIS FILE -* AT ALL TIMES. -* -******************************************************************************/ -/*****************************************************************************/ -/** -* -* @file zynq_gem.c -* -* The XEmacPss driver. Functions in this file are the minimum required functions -* for this driver. See zynq_gem.h for a detailed description of the driver. -* -*
-* MODIFICATION HISTORY:
-*
-* Ver   Who  Date     Changes
-* ----- ---- -------- -------------------------------------------------------
-* 1.00a wsy  06/01/09 First release
-* 
-******************************************************************************/ +/* + * (C) Copyright 2012 Xilinx + * + * The XEmacPss driver. Functions in this file are the minimum required + * functions for this driver. + * See zynq_gem.h for a detailed description of the driver. + * + * 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. + * + * 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 Files *********************************/ diff --git a/drivers/net/zynq_gem.h b/drivers/net/zynq_gem.h index da021083620..101db96dc84 100644 --- a/drivers/net/zynq_gem.h +++ b/drivers/net/zynq_gem.h @@ -1,50 +1,23 @@ -/***************************************************************************** -* -* (c) Copyright 2009-2010 Xilinx, Inc. All rights reserved. -* -* This file contains confidential and proprietary information of Xilinx, Inc. -* and is protected under U.S. and international copyright and other -* intellectual property laws. -* -* DISCLAIMER -* This disclaimer is not a license and does not grant any rights to the -* materials distributed herewith. Except as otherwise provided in a valid -* license issued to you by Xilinx, and to the maximum extent permitted by -* applicable law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND WITH ALL -* FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS, -* IMPLIED, OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF -* MERCHANTABILITY, NON-INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; -* and (2) Xilinx shall not be liable (whether in contract or tort, including -* negligence, or under any other theory of liability) for any loss or damage -* of any kind or nature related to, arising under or in connection with these -* materials, including for any direct, or any indirect, special, incidental, -* or consequential loss or damage (including loss of data, profits, goodwill, -* or any type of loss or damage suffered as a result of any action brought by -* a third party) even if such damage or loss was reasonably foreseeable or -* Xilinx had been advised of the possibility of the same. -* -* CRITICAL APPLICATIONS -* Xilinx products are not designed or intended to be fail-safe, or for use in -* any application requiring fail-safe performance, such as life-support or -* safety devices or systems, Class III medical devices, nuclear facilities, -* applications related to the deployment of airbags, or any other applications -* that could lead to death, personal injury, or severe property or -* environmental damage (individually and collectively, "Critical -* Applications"). Customer assumes the sole risk and liability of any use of -* Xilinx products in Critical Applications, subject only to applicable laws -* and regulations governing limitations on product liability. -* -* THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS PART OF THIS FILE -* AT ALL TIMES. -* -*****************************************************************************/ -/****************************************************************************/ -/** - * - * @file zynq_gem.h +/* + * (C) Copyright 2012 Xilinx * * The Xilinx Embedded Processor Block Ethernet driver. * + * 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. + * + * 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 + */ + +#ifndef XEMACPSS_H /* prevent circular inclusions */ +#define XEMACPSS_H /* by using protection macros */ + +/** * For a full description of XEMACPSS features, please see the hardware spec. * This driver supports the following features: * - Memory mapped access to host interface registers @@ -62,7 +35,7 @@ * - Large frame support up to 1536 bytes * - Checksum offload * - * Driver Description + * Driver Description: * * The device driver enables higher layer software (e.g., an application) to * communicate to the XEmacPss. The driver handles transmission and reception @@ -73,7 +46,7 @@ * A single device driver can support multiple devices even when those devices * have significantly different configurations. * - * Initialization & Configuration + * Initialization & Configuration: * * The XEmacPss_Config structure is used by the driver to configure itself. * This configuration structure is typically created by the tool-chain based @@ -90,7 +63,7 @@ * supported. The driver expects to start the DMA channels and expects that * the user has set up the buffer descriptor lists. * - * Interrupts and Asynchronous Callbacks + * Interrupts and Asynchronous Callbacks: * * The driver has no dependencies on the interrupt controller. When an * interrupt occurs, the handler will perform a small amount of @@ -98,7 +71,7 @@ * appropriate callback function. All callbacks are registered by the user * level application. * - * Virtual Memory + * Virtual Memory: * * All virtual to physical memory mappings must occur prior to accessing the * driver API. @@ -106,7 +79,7 @@ * For DMA transactions, user buffers supplied to the driver must be in terms * of their physical address. * - * DMA + * DMA: * * The DMA engine uses buffer descriptors (BDs) to describe Ethernet frames. * These BDs are typically chained together into a list the hardware follows @@ -171,7 +144,7 @@ * provided to hardware with BdRingToHw. Same goes with BdRingFromHw and * BdRIngFree. * - * Alignment & Data Cache Restrictions + * Alignment & Data Cache Restrictions: * * Due to the design of the hardware, all RX buffers, BDs need to be 4-byte * aligned. Please reference zynq_gem_bd.h for cache related macros. @@ -189,14 +162,14 @@ * * Both cache invalidate/flush are taken care of in driver code. * - * Buffer Copying + * Buffer Copying: * * The driver is designed for a zero-copy buffer scheme. That is, the driver * will not copy buffers. This avoids potential throughput bottlenecks within * the driver. If byte copying is required, then the transfer will take longer * to complete. * - * Checksum Offloading + * Checksum Offloading: * * The Embedded Processor Block Ethernet can be configured to perform IP, TCP * and UDP checksum offloading in both receive and transmit directions. @@ -244,11 +217,11 @@ * If any of the checksums are verified incorrect by the hardware, the packet * is discarded and the appropriate statistics counter incremented. * - * PHY Interfaces + * PHY Interfaces: * * RGMII 1.3 is the only interface supported. * - * Asserts + * Asserts: * * Asserts are used within all Xilinx drivers to enforce constraints on * parameters. Asserts can be turned off on a system-wide basis by defining, @@ -265,19 +238,7 @@ * This driver is intended to be RTOS and processor independent. Any needs for * dynamic memory management, threads or thread mutual exclusion, or cache * control must be satisfied bythe layer above this driver. - * - *
- * MODIFICATION HISTORY:
- *
- * Ver   Who  Date     Changes
- * ----- ---- -------- -------------------------------------------------------
- * 1.00a wsy  06/01/09 First release
- * 
- * - ****************************************************************************/ - -#ifndef XEMACPSS_H /* prevent circular inclusions */ -#define XEMACPSS_H /* by using protection macros */ + */ #ifdef __cplusplus extern "C" { diff --git a/drivers/net/zynq_gem_bd.h b/drivers/net/zynq_gem_bd.h index c2f0d2ad214..c6e791d6aab 100644 --- a/drivers/net/zynq_gem_bd.h +++ b/drivers/net/zynq_gem_bd.h @@ -1,55 +1,29 @@ -/****************************************************************************** -* -* (c) Copyright 2009-2010 Xilinx, Inc. All rights reserved. -* -* This file contains confidential and proprietary information of Xilinx, Inc. -* and is protected under U.S. and international copyright and other -* intellectual property laws. -* -* DISCLAIMER -* This disclaimer is not a license and does not grant any rights to the -* materials distributed herewith. Except as otherwise provided in a valid -* license issued to you by Xilinx, and to the maximum extent permitted by -* applicable law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND WITH ALL -* FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS, -* IMPLIED, OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF -* MERCHANTABILITY, NON-INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; -* and (2) Xilinx shall not be liable (whether in contract or tort, including -* negligence, or under any other theory of liability) for any loss or damage -* of any kind or nature related to, arising under or in connection with these -* materials, including for any direct, or any indirect, special, incidental, -* or consequential loss or damage (including loss of data, profits, goodwill, -* or any type of loss or damage suffered as a result of any action brought by -* a third party) even if such damage or loss was reasonably foreseeable or -* Xilinx had been advised of the possibility of the same. -* -* CRITICAL APPLICATIONS -* Xilinx products are not designed or intended to be fail-safe, or for use in -* any application requiring fail-safe performance, such as life-support or -* safety devices or systems, Class III medical devices, nuclear facilities, -* applications related to the deployment of airbags, or any other applications -* that could lead to death, personal injury, or severe property or -* environmental damage (individually and collectively, "Critical -* Applications"). Customer assumes the sole risk and liability of any use of -* Xilinx products in Critical Applications, subject only to applicable laws -* and regulations governing limitations on product liability. -* -* THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS PART OF THIS FILE -* AT ALL TIMES. -* -******************************************************************************/ -/*****************************************************************************/ -/** - * - * @file zynq_gem_bd.h +/* + * (C) Copyright 2012 Xilinx * * This header provides operations to manage buffer descriptors in support * of scatter-gather DMA. + * + * 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. + * + * 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 + */ + +#ifndef XEMACPSS_BD_H /* prevent circular inclusions */ +#define XEMACPSS_BD_H /* by using protection macros */ + +/* * * The API exported by this header defines abstracted macros that allow the * user to read/write specific BD fields. * - * Buffer Descriptors + * Buffer Descriptors: * * A buffer descriptor (BD) defines a DMA transaction. The macros defined by * this header file allow access to most fields within a BD to tailor a DMA @@ -59,24 +33,11 @@ * The XEmacPss_Bd structure defines a BD. The organization of this structure * is driven mainly by the hardware for use in scatter-gather DMA transfers. * - * Performance + * Performance: * * Limiting I/O to BDs can improve overall performance of the DMA channel. - * - *
- * MODIFICATION HISTORY:
- *
- * Ver   Who  Date     Changes
- * ----- ---- -------- -------------------------------------------------------
- * 1.00a wsy  06/01/09 First release
- * 
- * - * *************************************************************************** */ -#ifndef XEMACPSS_BD_H /* prevent circular inclusions */ -#define XEMACPSS_BD_H /* by using protection macros */ - #ifdef __cplusplus extern "C" { #endif diff --git a/drivers/net/zynq_gem_bdring.c b/drivers/net/zynq_gem_bdring.c index 58134b2d206..6e534fcabd2 100644 --- a/drivers/net/zynq_gem_bdring.c +++ b/drivers/net/zynq_gem_bdring.c @@ -1,60 +1,18 @@ -/****************************************************************************** -* -* (c) Copyright 2009-2010 Xilinx, Inc. All rights reserved. -* -* This file contains confidential and proprietary information of Xilinx, Inc. -* and is protected under U.S. and international copyright and other -* intellectual property laws. -* -* DISCLAIMER -* This disclaimer is not a license and does not grant any rights to the -* materials distributed herewith. Except as otherwise provided in a valid -* license issued to you by Xilinx, and to the maximum extent permitted by -* applicable law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND WITH ALL -* FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS, -* IMPLIED, OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF -* MERCHANTABILITY, NON-INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; -* and (2) Xilinx shall not be liable (whether in contract or tort, including -* negligence, or under any other theory of liability) for any loss or damage -* of any kind or nature related to, arising under or in connection with these -* materials, including for any direct, or any indirect, special, incidental, -* or consequential loss or damage (including loss of data, profits, goodwill, -* or any type of loss or damage suffered as a result of any action brought by -* a third party) even if such damage or loss was reasonably foreseeable or -* Xilinx had been advised of the possibility of the same. -* -* CRITICAL APPLICATIONS -* Xilinx products are not designed or intended to be fail-safe, or for use in -* any application requiring fail-safe performance, such as life-support or -* safety devices or systems, Class III medical devices, nuclear facilities, -* applications related to the deployment of airbags, or any other applications -* that could lead to death, personal injury, or severe property or -* environmental damage (individually and collectively, "Critical -* Applications"). Customer assumes the sole risk and liability of any use of -* Xilinx products in Critical Applications, subject only to applicable laws -* and regulations governing limitations on product liability. -* -* THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS PART OF THIS FILE -* AT ALL TIMES. -* -******************************************************************************/ -/*****************************************************************************/ -/** -* -* @file zynq_gem_bdring.c -* -* This file implements buffer descriptor ring related functions. -* -*
-* MODIFICATION HISTORY:
-*
-* Ver   Who  Date     Changes
-* ----- ---- -------- -------------------------------------------------------
-* 1.00a wsy  06/01/09 First release
-* 
-******************************************************************************/ - -/***************************** Include Files *********************************/ +/* + * (C) Copyright 2012 Xilinx + * + * This file implements buffer descriptor ring related functions. + * + * 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. + * + * 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 "xstatus.h" //#include "xcache.h" diff --git a/drivers/net/zynq_gem_bdring.h b/drivers/net/zynq_gem_bdring.h index e97284de44d..72d52002eef 100644 --- a/drivers/net/zynq_gem_bdring.h +++ b/drivers/net/zynq_gem_bdring.h @@ -1,65 +1,23 @@ -/****************************************************************************** -* -* (c) Copyright 2009-2010 Xilinx, Inc. All rights reserved. -* -* This file contains confidential and proprietary information of Xilinx, Inc. -* and is protected under U.S. and international copyright and other -* intellectual property laws. -* -* DISCLAIMER -* This disclaimer is not a license and does not grant any rights to the -* materials distributed herewith. Except as otherwise provided in a valid -* license issued to you by Xilinx, and to the maximum extent permitted by -* applicable law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND WITH ALL -* FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS, -* IMPLIED, OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF -* MERCHANTABILITY, NON-INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; -* and (2) Xilinx shall not be liable (whether in contract or tort, including -* negligence, or under any other theory of liability) for any loss or damage -* of any kind or nature related to, arising under or in connection with these -* materials, including for any direct, or any indirect, special, incidental, -* or consequential loss or damage (including loss of data, profits, goodwill, -* or any type of loss or damage suffered as a result of any action brought by -* a third party) even if such damage or loss was reasonably foreseeable or -* Xilinx had been advised of the possibility of the same. -* -* CRITICAL APPLICATIONS -* Xilinx products are not designed or intended to be fail-safe, or for use in -* any application requiring fail-safe performance, such as life-support or -* safety devices or systems, Class III medical devices, nuclear facilities, -* applications related to the deployment of airbags, or any other applications -* that could lead to death, personal injury, or severe property or -* environmental damage (individually and collectively, "Critical -* Applications"). Customer assumes the sole risk and liability of any use of -* Xilinx products in Critical Applications, subject only to applicable laws -* and regulations governing limitations on product liability. -* -* THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS PART OF THIS FILE -* AT ALL TIMES. -* -******************************************************************************/ -/*****************************************************************************/ -/** -* -* @file zynq_gem_bdring.h -* -* The Xiline EmacPss Buffer Descriptor ring driver. This is part of EmacPss -* DMA functionalities. -* -*
-* MODIFICATION HISTORY:
-*
-* Ver   Who  Date     Changes
-* ----- ---- -------- -------------------------------------------------------
-* 1.00a wsy  06/01/09 First release
-* 
-* -******************************************************************************/ +/* + * (C) Copyright 2012 Xilinx + * + * The Xiline EmacPss Buffer Descriptor ring driver. This is part of EmacPss + * DMA functionalities. + * + * 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. + * + * 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 + */ #ifndef XEMACPSS_BDRING_H /* prevent curcular inclusions */ #define XEMACPSS_BDRING_H /* by using protection macros */ - /**************************** Type Definitions *******************************/ /** This is an internal structure used to maintain the DMA list */ diff --git a/drivers/net/zynq_gem_control.c b/drivers/net/zynq_gem_control.c index 316139d0208..d7612ad7956 100644 --- a/drivers/net/zynq_gem_control.c +++ b/drivers/net/zynq_gem_control.c @@ -1,59 +1,19 @@ -/****************************************************************************** -* -* (c) Copyright 2009-2010 Xilinx, Inc. All rights reserved. -* -* This file contains confidential and proprietary information of Xilinx, Inc. -* and is protected under U.S. and international copyright and other -* intellectual property laws. -* -* DISCLAIMER -* This disclaimer is not a license and does not grant any rights to the -* materials distributed herewith. Except as otherwise provided in a valid -* license issued to you by Xilinx, and to the maximum extent permitted by -* applicable law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND WITH ALL -* FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS, -* IMPLIED, OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF -* MERCHANTABILITY, NON-INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; -* and (2) Xilinx shall not be liable (whether in contract or tort, including -* negligence, or under any other theory of liability) for any loss or damage -* of any kind or nature related to, arising under or in connection with these -* materials, including for any direct, or any indirect, special, incidental, -* or consequential loss or damage (including loss of data, profits, goodwill, -* or any type of loss or damage suffered as a result of any action brought by -* a third party) even if such damage or loss was reasonably foreseeable or -* Xilinx had been advised of the possibility of the same. -* -* CRITICAL APPLICATIONS -* Xilinx products are not designed or intended to be fail-safe, or for use in -* any application requiring fail-safe performance, such as life-support or -* safety devices or systems, Class III medical devices, nuclear facilities, -* applications related to the deployment of airbags, or any other applications -* that could lead to death, personal injury, or severe property or -* environmental damage (individually and collectively, "Critical -* Applications"). Customer assumes the sole risk and liability of any use of -* Xilinx products in Critical Applications, subject only to applicable laws -* and regulations governing limitations on product liability. -* -* THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS PART OF THIS FILE -* AT ALL TIMES. -* -******************************************************************************/ -/*****************************************************************************/ -/** - * - * @file zynq_gem_control.c +/* + * (C) Copyright 2012 Xilinx * * Functions in this file implement general purpose command and control related * functionality. See zynq_gem.h for a detailed description of the driver. * - *
- * MODIFICATION HISTORY:
+ * 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.
  *
- * Ver   Who  Date     Changes
- * ----- ---- -------- -------------------------------------------------------
- * 1.00a wsy  06/01/09 First release
- * 
- *****************************************************************************/ + * 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 Files *********************************/ diff --git a/drivers/net/zynq_gem_g.c b/drivers/net/zynq_gem_g.c index 149d317519d..04399169577 100644 --- a/drivers/net/zynq_gem_g.c +++ b/drivers/net/zynq_gem_g.c @@ -1,67 +1,19 @@ -/****************************************************************************** -* -* (c) Copyright 2009-2010 Xilinx, Inc. All rights reserved. -* -* This file contains confidential and proprietary information of Xilinx, Inc. -* and is protected under U.S. and international copyright and other -* intellectual property laws. -* -* DISCLAIMER -* This disclaimer is not a license and does not grant any rights to the -* materials distributed herewith. Except as otherwise provided in a valid -* license issued to you by Xilinx, and to the maximum extent permitted by -* applicable law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND WITH ALL -* FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS, -* IMPLIED, OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF -* MERCHANTABILITY, NON-INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; -* and (2) Xilinx shall not be liable (whether in contract or tort, including -* negligence, or under any other theory of liability) for any loss or damage -* of any kind or nature related to, arising under or in connection with these -* materials, including for any direct, or any indirect, special, incidental, -* or consequential loss or damage (including loss of data, profits, goodwill, -* or any type of loss or damage suffered as a result of any action brought by -* a third party) even if such damage or loss was reasonably foreseeable or -* Xilinx had been advised of the possibility of the same. -* -* CRITICAL APPLICATIONS -* Xilinx products are not designed or intended to be fail-safe, or for use in -* any application requiring fail-safe performance, such as life-support or -* safety devices or systems, Class III medical devices, nuclear facilities, -* applications related to the deployment of airbags, or any other applications -* that could lead to death, personal injury, or severe property or -* environmental damage (individually and collectively, "Critical -* Applications"). Customer assumes the sole risk and liability of any use of -* Xilinx products in Critical Applications, subject only to applicable laws -* and regulations governing limitations on product liability. -* -* THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS PART OF THIS FILE -* AT ALL TIMES. -* -******************************************************************************/ -/*****************************************************************************/ -/** -* -* @file zynq_gem_g.c -* -* This file contains a configuration table that specifies the configuration of -* ethernet devices in the system. -* -*
-* MODIFICATION HISTORY:
-*
-* Ver   Who  Date     Changes
-* ----- ---- -------- -----------------------------------------------
-* 1.00a wsy  06/01/09 First release
-* 
-* -* @internal -* -* This configuration table contains entries that are modified at runtime by the -* driver. This table reflects only the hardware configuration of the device. -* This emac configuration table contains software information in addition to -* hardware configuration. -* -******************************************************************************/ +/* + * (C) Copyright 2012 Xilinx + * + * This file contains a configuration table that specifies the configuration of + * ethernet devices in the system. + * + * 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. + * + * 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 Files *********************************/ diff --git a/drivers/net/zynq_gem_hw.h b/drivers/net/zynq_gem_hw.h index 4e11d2198fe..5a3b4959bdb 100644 --- a/drivers/net/zynq_gem_hw.h +++ b/drivers/net/zynq_gem_hw.h @@ -1,63 +1,20 @@ -/****************************************************************************** -* -* (c) Copyright 2009-2010 Xilinx, Inc. All rights reserved. -* -* This file contains confidential and proprietary information of Xilinx, Inc. -* and is protected under U.S. and international copyright and other -* intellectual property laws. -* -* DISCLAIMER -* This disclaimer is not a license and does not grant any rights to the -* materials distributed herewith. Except as otherwise provided in a valid -* license issued to you by Xilinx, and to the maximum extent permitted by -* applicable law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND WITH ALL -* FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS, -* IMPLIED, OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF -* MERCHANTABILITY, NON-INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; -* and (2) Xilinx shall not be liable (whether in contract or tort, including -* negligence, or under any other theory of liability) for any loss or damage -* of any kind or nature related to, arising under or in connection with these -* materials, including for any direct, or any indirect, special, incidental, -* or consequential loss or damage (including loss of data, profits, goodwill, -* or any type of loss or damage suffered as a result of any action brought by -* a third party) even if such damage or loss was reasonably foreseeable or -* Xilinx had been advised of the possibility of the same. -* -* CRITICAL APPLICATIONS -* Xilinx products are not designed or intended to be fail-safe, or for use in -* any application requiring fail-safe performance, such as life-support or -* safety devices or systems, Class III medical devices, nuclear facilities, -* applications related to the deployment of airbags, or any other applications -* that could lead to death, personal injury, or severe property or -* environmental damage (individually and collectively, "Critical -* Applications"). Customer assumes the sole risk and liability of any use of -* Xilinx products in Critical Applications, subject only to applicable laws -* and regulations governing limitations on product liability. -* -* THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS PART OF THIS FILE -* AT ALL TIMES. -* -******************************************************************************/ -/*****************************************************************************/ -/** -* -* @file zynq_gem_hw.h -* -* This header file contains identifiers and low-level driver functions (or -* macros) that can be used to access the PSS Ethernet MAC (XEmacPss) device. -* High-level driver functions are defined in zynq_gem.h. -* -* @note -* -*
-* MODIFICATION HISTORY:
-*
-* Ver   Who  Date     Changes
-* ----- ---- -------- -------------------------------------------------------
-* 1.00a wsy  06/01/09 First release.
-* 
-* -******************************************************************************/ +/* + * (C) Copyright 2012 Xilinx + * + * This header file contains identifiers and low-level driver functions (or + * macros) that can be used to access the PSS Ethernet MAC (XEmacPss) device. + * High-level driver functions are defined in zynq_gem.h. + * + * 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. + * + * 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 + */ #ifndef XEMACPSS_HW_H /* prevent circular inclusions */ #define XEMACPSS_HW_H /* by using protection macros */ diff --git a/drivers/net/zynq_gem_sinit.c b/drivers/net/zynq_gem_sinit.c index 1af1e0c646f..9f1157a9c7d 100644 --- a/drivers/net/zynq_gem_sinit.c +++ b/drivers/net/zynq_gem_sinit.c @@ -1,60 +1,19 @@ -/****************************************************************************** -* -* (c) Copyright 2009-2010 Xilinx, Inc. All rights reserved. -* -* This file contains confidential and proprietary information of Xilinx, Inc. -* and is protected under U.S. and international copyright and other -* intellectual property laws. -* -* DISCLAIMER -* This disclaimer is not a license and does not grant any rights to the -* materials distributed herewith. Except as otherwise provided in a valid -* license issued to you by Xilinx, and to the maximum extent permitted by -* applicable law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND WITH ALL -* FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS, -* IMPLIED, OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF -* MERCHANTABILITY, NON-INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; -* and (2) Xilinx shall not be liable (whether in contract or tort, including -* negligence, or under any other theory of liability) for any loss or damage -* of any kind or nature related to, arising under or in connection with these -* materials, including for any direct, or any indirect, special, incidental, -* or consequential loss or damage (including loss of data, profits, goodwill, -* or any type of loss or damage suffered as a result of any action brought by -* a third party) even if such damage or loss was reasonably foreseeable or -* Xilinx had been advised of the possibility of the same. -* -* CRITICAL APPLICATIONS -* Xilinx products are not designed or intended to be fail-safe, or for use in -* any application requiring fail-safe performance, such as life-support or -* safety devices or systems, Class III medical devices, nuclear facilities, -* applications related to the deployment of airbags, or any other applications -* that could lead to death, personal injury, or severe property or -* environmental damage (individually and collectively, "Critical -* Applications"). Customer assumes the sole risk and liability of any use of -* Xilinx products in Critical Applications, subject only to applicable laws -* and regulations governing limitations on product liability. -* -* THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS PART OF THIS FILE -* AT ALL TIMES. -* -******************************************************************************/ -/*****************************************************************************/ -/** -* -* @file zynq_gem_sinit.c -* -* This file contains lookup method by device ID when success, it returns -* pointer to config table to be used to initialize the device. -* -*
-* MODIFICATION HISTORY:
-*
-* Ver   Who  Date     Changes
-* ----- ---- -------- -------------------------------------------------------
-* 1.00a wsy  06/01/09 New
-* 
-* -******************************************************************************/ +/* + * (C) Copyright 2012 Xilinx + * + * This file contains lookup method by device ID when success, it returns + * pointer to config table to be used to initialize the device. + * + * 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. + * + * 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 Files *********************************/ diff --git a/drivers/net/zynq_gem_wrap.c b/drivers/net/zynq_gem_wrap.c index 9dfea806038..158043d907a 100644 --- a/drivers/net/zynq_gem_wrap.c +++ b/drivers/net/zynq_gem_wrap.c @@ -1,4 +1,17 @@ /* + * (C) Copyright 2012 Xilinx + * + * The XEmacPss Wrapper driver. + * + * 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. + * + * 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 diff --git a/drivers/serial/serial_xpsuart.c b/drivers/serial/serial_xpsuart.c index 801b4a72699..158bee01fa1 100644 --- a/drivers/serial/serial_xpsuart.c +++ b/drivers/serial/serial_xpsuart.c @@ -1,6 +1,18 @@ /* - * Xilinx Zynq Serial PS driver + * (C) Copyright 2012 Xilinx + * + * Xilinx Serial PS driver * Based on existing U-boot serial drivers. + * + * 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. + * + * 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 diff --git a/drivers/serial/serial_xpsuart.h b/drivers/serial/serial_xpsuart.h index 55d4d731e1c..98786bae3f6 100644 --- a/drivers/serial/serial_xpsuart.h +++ b/drivers/serial/serial_xpsuart.h @@ -1,5 +1,17 @@ /* - * Xilinx Zynq Serial PS driver, headers + * (C) Copyright 2012 Xilinx + * + * Xilinx Serial PS driver, headers + * + * 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. + * + * 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 */ #ifndef __XILINX_ZYNQ_UART_H__ diff --git a/drivers/spi/zynq_qspi.c b/drivers/spi/zynq_qspi.c index a9e5d03ee55..77bc9b7f229 100755 --- a/drivers/spi/zynq_qspi.c +++ b/drivers/spi/zynq_qspi.c @@ -1,9 +1,7 @@ /* + * (C) Copyright 2011 Xilinx * * Xilinx PSS Quad-SPI (QSPI) controller driver (master mode only) - * - * (c) 2011 Xilinx, Inc. - * * based on Xilinx PSS SPI Driver (xspips.c) * * This program is free software; you can redistribute it and/or modify it under @@ -16,7 +14,6 @@ * Place, Suite 330, Boston, MA 02111-1307 USA */ - #ifdef LINUX_ONLY_NOT_UBOOT #include #include diff --git a/drivers/spi/zynq_qspi.h b/drivers/spi/zynq_qspi.h index 0a3ffe0b70d..b2acec84804 100644 --- a/drivers/spi/zynq_qspi.h +++ b/drivers/spi/zynq_qspi.h @@ -1,3 +1,18 @@ +/* + * (C) Copyright 2012 Xilinx + * + * Xilinx PSS Quad-SPI (QSPI) controller headers + * + * 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. + * + * 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 + */ #ifndef _XILINX_QSPIPSS_H_ #define _XILINX_QSPIPSS_H_ diff --git a/drivers/spi/zynq_qspi_wrap.c b/drivers/spi/zynq_qspi_wrap.c index bfeb6a1f7f0..74652f82755 100644 --- a/drivers/spi/zynq_qspi_wrap.c +++ b/drivers/spi/zynq_qspi_wrap.c @@ -1,9 +1,17 @@ /* - * Driver for Pele On-Chip SPI device + * (C) Copyright 2012 Xilinx * - * Copyright (c) 2010 Xilinx + * Xilinx PSS Quad-SPI (QSPI) Wrapper driver * - * 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. + * + * 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 -- 2.47.3