| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | /*****************************************************************************
 | 
					
						
							|  |  |  |  *                                                                           * | 
					
						
							|  |  |  |  * File: espi.c                                                              * | 
					
						
							| 
									
										
											  
											
												Update Chelsio gige net driver.
- Use extern prefix for functions required.
- Removed a lot of wrappers, including t1_read/write_reg_4.
- Removed various macros, using native kernel calls now.
- Enumerated various #defines.
- Removed a lot of shared code which is not currently used in "NIC only" mode.
- Removed dead code.
Documentation/networking/cxgb.txt:
- Updated release notes for version 2.1.1
drivers/net/chelsio/ch_ethtool.h
- removed file, no longer using ETHTOOL namespace.
drivers/net/chelsio/common.h
- moved code from osdep.h to common.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cphy.h
- removed dead code.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cxgb2.c
- use DMA_{32,64}BIT_MASK in include/linux/dma-mapping.h.
- removed unused code.
- use printk message for link info resembling drivers/net/mii.c.
- no longer using the MODULE_xxx namespace.
- no longer using "pci_" namespace.
- no longer using ETHTOOL namespace.
drivers/net/chelsio/cxgb2.h
- removed file, merged into common.h
drivers/net/chelsio/elmer0.h
- removed dead code.
- added various enums.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/espi.c
- removed various macros, using native kernel calls now.
- removed a lot of wrappers, including t1_read/write_reg_4.
drivers/net/chelsio/espi.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/gmac.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/mv88x201x.c
- changes to sync with Chelsio TOT.
drivers/net/chelsio/osdep.h
- removed file, consolidation. osdep was used to translate wrapper functions
  since our code supports multiple OSs. removed wrappers.
  drivers/net/chelsio/pm3393.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/regs.h
  - added a few register entries for future and current feature support.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/sge.c
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - using u8/u16/u32 kernel types instead of __u8/__u16/__u32 compiler
  types.
  drivers/net/chelsio/sge.h
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/subr.c
  - merged tp.c into subr.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/suni1x10gexp_regs.h
  - modified copyright and authorship of file.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/tp.c
  - removed file, merged into subr.c.
  drivers/net/chelsio/tp.h
  - removed file.
  include/linux/pci_ids.h
  - patched to include PCI_VENDOR_ID_CHELSIO 0x1425, removed define from
  our code.
											
										 
											2005-06-23 01:40:19 -04:00
										 |  |  |  * $Revision: 1.14 $                                                         * | 
					
						
							|  |  |  |  * $Date: 2005/05/14 00:59:32 $                                              * | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  |  * Description:                                                              * | 
					
						
							|  |  |  |  *  Ethernet SPI functionality.                                              * | 
					
						
							|  |  |  |  *  part of the Chelsio 10Gb Ethernet Driver.                                * | 
					
						
							|  |  |  |  *                                                                           * | 
					
						
							|  |  |  |  * This program is free software; you can redistribute it and/or modify      * | 
					
						
							|  |  |  |  * it under the terms of the GNU General Public License, version 2, as       * | 
					
						
							|  |  |  |  * published by the Free Software Foundation.                                * | 
					
						
							|  |  |  |  *                                                                           * | 
					
						
							|  |  |  |  * You should have received a copy of the GNU General Public License along   * | 
					
						
							| 
									
										
										
										
											2013-12-06 06:28:43 -08:00
										 |  |  |  * with this program; if not, see <http://www.gnu.org/licenses/>.            *
 | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  |  *                                                                           * | 
					
						
							|  |  |  |  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED    * | 
					
						
							|  |  |  |  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF      * | 
					
						
							|  |  |  |  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.                     * | 
					
						
							|  |  |  |  *                                                                           * | 
					
						
							|  |  |  |  * http://www.chelsio.com                                                    *
 | 
					
						
							|  |  |  |  *                                                                           * | 
					
						
							|  |  |  |  * Copyright (c) 2003 - 2005 Chelsio Communications, Inc.                    * | 
					
						
							|  |  |  |  * All rights reserved.                                                      * | 
					
						
							|  |  |  |  *                                                                           * | 
					
						
							|  |  |  |  * Maintainers: maintainers@chelsio.com                                      * | 
					
						
							|  |  |  |  *                                                                           * | 
					
						
							|  |  |  |  * Authors: Dimitrios Michailidis   <dm@chelsio.com>                         * | 
					
						
							|  |  |  |  *          Tina Yang               <tainay@chelsio.com>                     * | 
					
						
							|  |  |  |  *          Felix Marti             <felix@chelsio.com>                      * | 
					
						
							|  |  |  |  *          Scott Bardone           <sbardone@chelsio.com>                   * | 
					
						
							|  |  |  |  *          Kurt Ottaway            <kottaway@chelsio.com>                   * | 
					
						
							|  |  |  |  *          Frank DiMambro          <frank@chelsio.com>                      * | 
					
						
							|  |  |  |  *                                                                           * | 
					
						
							|  |  |  |  * History:                                                                  * | 
					
						
							|  |  |  |  *                                                                           * | 
					
						
							|  |  |  |  ****************************************************************************/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "common.h"
 | 
					
						
							|  |  |  | #include "regs.h"
 | 
					
						
							|  |  |  | #include "espi.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | struct peespi { | 
					
						
							|  |  |  | 	adapter_t *adapter; | 
					
						
							|  |  |  | 	struct espi_intr_counts intr_cnt; | 
					
						
							|  |  |  | 	u32 misc_ctrl; | 
					
						
							|  |  |  | 	spinlock_t lock; | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #define ESPI_INTR_MASK (F_DIP4ERR | F_RXDROP | F_TXDROP | F_RXOVERFLOW | \
 | 
					
						
							|  |  |  | 			F_RAMPARITYERR | F_DIP2PARITYERR) | 
					
						
							|  |  |  | #define MON_MASK  (V_MONITORED_PORT_NUM(3) | F_MONITORED_DIRECTION \
 | 
					
						
							|  |  |  | 		   | F_MONITORED_INTERFACE) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #define TRICN_CNFG 14
 | 
					
						
							|  |  |  | #define TRICN_CMD_READ  0x11
 | 
					
						
							|  |  |  | #define TRICN_CMD_WRITE 0x21
 | 
					
						
							|  |  |  | #define TRICN_CMD_ATTEMPTS 10
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static int tricn_write(adapter_t *adapter, int bundle_addr, int module_addr, | 
					
						
							|  |  |  | 		       int ch_addr, int reg_offset, u32 wr_data) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	int busy, attempts = TRICN_CMD_ATTEMPTS; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
											  
											
												Update Chelsio gige net driver.
- Use extern prefix for functions required.
- Removed a lot of wrappers, including t1_read/write_reg_4.
- Removed various macros, using native kernel calls now.
- Enumerated various #defines.
- Removed a lot of shared code which is not currently used in "NIC only" mode.
- Removed dead code.
Documentation/networking/cxgb.txt:
- Updated release notes for version 2.1.1
drivers/net/chelsio/ch_ethtool.h
- removed file, no longer using ETHTOOL namespace.
drivers/net/chelsio/common.h
- moved code from osdep.h to common.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cphy.h
- removed dead code.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cxgb2.c
- use DMA_{32,64}BIT_MASK in include/linux/dma-mapping.h.
- removed unused code.
- use printk message for link info resembling drivers/net/mii.c.
- no longer using the MODULE_xxx namespace.
- no longer using "pci_" namespace.
- no longer using ETHTOOL namespace.
drivers/net/chelsio/cxgb2.h
- removed file, merged into common.h
drivers/net/chelsio/elmer0.h
- removed dead code.
- added various enums.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/espi.c
- removed various macros, using native kernel calls now.
- removed a lot of wrappers, including t1_read/write_reg_4.
drivers/net/chelsio/espi.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/gmac.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/mv88x201x.c
- changes to sync with Chelsio TOT.
drivers/net/chelsio/osdep.h
- removed file, consolidation. osdep was used to translate wrapper functions
  since our code supports multiple OSs. removed wrappers.
  drivers/net/chelsio/pm3393.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/regs.h
  - added a few register entries for future and current feature support.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/sge.c
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - using u8/u16/u32 kernel types instead of __u8/__u16/__u32 compiler
  types.
  drivers/net/chelsio/sge.h
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/subr.c
  - merged tp.c into subr.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/suni1x10gexp_regs.h
  - modified copyright and authorship of file.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/tp.c
  - removed file, merged into subr.c.
  drivers/net/chelsio/tp.h
  - removed file.
  include/linux/pci_ids.h
  - patched to include PCI_VENDOR_ID_CHELSIO 0x1425, removed define from
  our code.
											
										 
											2005-06-23 01:40:19 -04:00
										 |  |  | 	writel(V_WRITE_DATA(wr_data) | | 
					
						
							|  |  |  | 	       V_REGISTER_OFFSET(reg_offset) | | 
					
						
							|  |  |  | 	       V_CHANNEL_ADDR(ch_addr) | V_MODULE_ADDR(module_addr) | | 
					
						
							|  |  |  | 	       V_BUNDLE_ADDR(bundle_addr) | | 
					
						
							|  |  |  | 	       V_SPI4_COMMAND(TRICN_CMD_WRITE), | 
					
						
							|  |  |  | 	       adapter->regs + A_ESPI_CMD_ADDR); | 
					
						
							|  |  |  | 	writel(0, adapter->regs + A_ESPI_GOSTAT); | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	do { | 
					
						
							| 
									
										
											  
											
												Update Chelsio gige net driver.
- Use extern prefix for functions required.
- Removed a lot of wrappers, including t1_read/write_reg_4.
- Removed various macros, using native kernel calls now.
- Enumerated various #defines.
- Removed a lot of shared code which is not currently used in "NIC only" mode.
- Removed dead code.
Documentation/networking/cxgb.txt:
- Updated release notes for version 2.1.1
drivers/net/chelsio/ch_ethtool.h
- removed file, no longer using ETHTOOL namespace.
drivers/net/chelsio/common.h
- moved code from osdep.h to common.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cphy.h
- removed dead code.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cxgb2.c
- use DMA_{32,64}BIT_MASK in include/linux/dma-mapping.h.
- removed unused code.
- use printk message for link info resembling drivers/net/mii.c.
- no longer using the MODULE_xxx namespace.
- no longer using "pci_" namespace.
- no longer using ETHTOOL namespace.
drivers/net/chelsio/cxgb2.h
- removed file, merged into common.h
drivers/net/chelsio/elmer0.h
- removed dead code.
- added various enums.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/espi.c
- removed various macros, using native kernel calls now.
- removed a lot of wrappers, including t1_read/write_reg_4.
drivers/net/chelsio/espi.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/gmac.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/mv88x201x.c
- changes to sync with Chelsio TOT.
drivers/net/chelsio/osdep.h
- removed file, consolidation. osdep was used to translate wrapper functions
  since our code supports multiple OSs. removed wrappers.
  drivers/net/chelsio/pm3393.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/regs.h
  - added a few register entries for future and current feature support.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/sge.c
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - using u8/u16/u32 kernel types instead of __u8/__u16/__u32 compiler
  types.
  drivers/net/chelsio/sge.h
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/subr.c
  - merged tp.c into subr.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/suni1x10gexp_regs.h
  - modified copyright and authorship of file.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/tp.c
  - removed file, merged into subr.c.
  drivers/net/chelsio/tp.h
  - removed file.
  include/linux/pci_ids.h
  - patched to include PCI_VENDOR_ID_CHELSIO 0x1425, removed define from
  our code.
											
										 
											2005-06-23 01:40:19 -04:00
										 |  |  | 		busy = readl(adapter->regs + A_ESPI_GOSTAT) & F_ESPI_CMD_BUSY; | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 	} while (busy && --attempts); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	if (busy) | 
					
						
							| 
									
										
										
										
											2010-02-22 16:56:57 +00:00
										 |  |  | 		pr_err("%s: TRICN write timed out\n", adapter->name); | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	return busy; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static int tricn_init(adapter_t *adapter) | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | 	int i, sme = 1; | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | 	if (!(readl(adapter->regs + A_ESPI_RX_RESET)  & F_RX_CLK_STATUS)) { | 
					
						
							| 
									
										
										
										
											2010-02-22 16:56:57 +00:00
										 |  |  | 		pr_err("%s: ESPI clock not ready\n", adapter->name); | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | 		return -1; | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | 	writel(F_ESPI_RX_CORE_RST, adapter->regs + A_ESPI_RX_RESET); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	if (sme) { | 
					
						
							|  |  |  | 		tricn_write(adapter, 0, 0, 0, TRICN_CNFG, 0x81); | 
					
						
							|  |  |  | 		tricn_write(adapter, 0, 1, 0, TRICN_CNFG, 0x81); | 
					
						
							|  |  |  | 		tricn_write(adapter, 0, 2, 0, TRICN_CNFG, 0x81); | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	for (i = 1; i <= 8; i++) | 
					
						
							|  |  |  | 		tricn_write(adapter, 0, 0, i, TRICN_CNFG, 0xf1); | 
					
						
							|  |  |  | 	for (i = 1; i <= 2; i++) | 
					
						
							|  |  |  | 		tricn_write(adapter, 0, 1, i, TRICN_CNFG, 0xf1); | 
					
						
							|  |  |  | 	for (i = 1; i <= 3; i++) | 
					
						
							|  |  |  | 		tricn_write(adapter, 0, 2, i, TRICN_CNFG, 0xe1); | 
					
						
							|  |  |  | 	tricn_write(adapter, 0, 2, 4, TRICN_CNFG, 0xf1); | 
					
						
							|  |  |  | 	tricn_write(adapter, 0, 2, 5, TRICN_CNFG, 0xe1); | 
					
						
							|  |  |  | 	tricn_write(adapter, 0, 2, 6, TRICN_CNFG, 0xf1); | 
					
						
							|  |  |  | 	tricn_write(adapter, 0, 2, 7, TRICN_CNFG, 0x80); | 
					
						
							|  |  |  | 	tricn_write(adapter, 0, 2, 8, TRICN_CNFG, 0xf1); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	writel(F_ESPI_RX_CORE_RST | F_ESPI_RX_LNK_RST, | 
					
						
							|  |  |  | 	       adapter->regs + A_ESPI_RX_RESET); | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	return 0; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void t1_espi_intr_enable(struct peespi *espi) | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
											  
											
												Update Chelsio gige net driver.
- Use extern prefix for functions required.
- Removed a lot of wrappers, including t1_read/write_reg_4.
- Removed various macros, using native kernel calls now.
- Enumerated various #defines.
- Removed a lot of shared code which is not currently used in "NIC only" mode.
- Removed dead code.
Documentation/networking/cxgb.txt:
- Updated release notes for version 2.1.1
drivers/net/chelsio/ch_ethtool.h
- removed file, no longer using ETHTOOL namespace.
drivers/net/chelsio/common.h
- moved code from osdep.h to common.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cphy.h
- removed dead code.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cxgb2.c
- use DMA_{32,64}BIT_MASK in include/linux/dma-mapping.h.
- removed unused code.
- use printk message for link info resembling drivers/net/mii.c.
- no longer using the MODULE_xxx namespace.
- no longer using "pci_" namespace.
- no longer using ETHTOOL namespace.
drivers/net/chelsio/cxgb2.h
- removed file, merged into common.h
drivers/net/chelsio/elmer0.h
- removed dead code.
- added various enums.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/espi.c
- removed various macros, using native kernel calls now.
- removed a lot of wrappers, including t1_read/write_reg_4.
drivers/net/chelsio/espi.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/gmac.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/mv88x201x.c
- changes to sync with Chelsio TOT.
drivers/net/chelsio/osdep.h
- removed file, consolidation. osdep was used to translate wrapper functions
  since our code supports multiple OSs. removed wrappers.
  drivers/net/chelsio/pm3393.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/regs.h
  - added a few register entries for future and current feature support.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/sge.c
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - using u8/u16/u32 kernel types instead of __u8/__u16/__u32 compiler
  types.
  drivers/net/chelsio/sge.h
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/subr.c
  - merged tp.c into subr.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/suni1x10gexp_regs.h
  - modified copyright and authorship of file.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/tp.c
  - removed file, merged into subr.c.
  drivers/net/chelsio/tp.h
  - removed file.
  include/linux/pci_ids.h
  - patched to include PCI_VENDOR_ID_CHELSIO 0x1425, removed define from
  our code.
											
										 
											2005-06-23 01:40:19 -04:00
										 |  |  | 	u32 enable, pl_intr = readl(espi->adapter->regs + A_PL_ENABLE); | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	/*
 | 
					
						
							|  |  |  | 	 * Cannot enable ESPI interrupts on T1B because HW asserts the | 
					
						
							|  |  |  | 	 * interrupt incorrectly, namely the driver gets ESPI interrupts | 
					
						
							|  |  |  | 	 * but no data is actually dropped (can verify this reading the ESPI | 
					
						
							|  |  |  | 	 * drop registers).  Also, once the ESPI interrupt is asserted it | 
					
						
							|  |  |  | 	 * cannot be cleared (HW bug). | 
					
						
							|  |  |  | 	 */ | 
					
						
							|  |  |  | 	enable = t1_is_T1B(espi->adapter) ? 0 : ESPI_INTR_MASK; | 
					
						
							| 
									
										
											  
											
												Update Chelsio gige net driver.
- Use extern prefix for functions required.
- Removed a lot of wrappers, including t1_read/write_reg_4.
- Removed various macros, using native kernel calls now.
- Enumerated various #defines.
- Removed a lot of shared code which is not currently used in "NIC only" mode.
- Removed dead code.
Documentation/networking/cxgb.txt:
- Updated release notes for version 2.1.1
drivers/net/chelsio/ch_ethtool.h
- removed file, no longer using ETHTOOL namespace.
drivers/net/chelsio/common.h
- moved code from osdep.h to common.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cphy.h
- removed dead code.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cxgb2.c
- use DMA_{32,64}BIT_MASK in include/linux/dma-mapping.h.
- removed unused code.
- use printk message for link info resembling drivers/net/mii.c.
- no longer using the MODULE_xxx namespace.
- no longer using "pci_" namespace.
- no longer using ETHTOOL namespace.
drivers/net/chelsio/cxgb2.h
- removed file, merged into common.h
drivers/net/chelsio/elmer0.h
- removed dead code.
- added various enums.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/espi.c
- removed various macros, using native kernel calls now.
- removed a lot of wrappers, including t1_read/write_reg_4.
drivers/net/chelsio/espi.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/gmac.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/mv88x201x.c
- changes to sync with Chelsio TOT.
drivers/net/chelsio/osdep.h
- removed file, consolidation. osdep was used to translate wrapper functions
  since our code supports multiple OSs. removed wrappers.
  drivers/net/chelsio/pm3393.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/regs.h
  - added a few register entries for future and current feature support.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/sge.c
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - using u8/u16/u32 kernel types instead of __u8/__u16/__u32 compiler
  types.
  drivers/net/chelsio/sge.h
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/subr.c
  - merged tp.c into subr.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/suni1x10gexp_regs.h
  - modified copyright and authorship of file.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/tp.c
  - removed file, merged into subr.c.
  drivers/net/chelsio/tp.h
  - removed file.
  include/linux/pci_ids.h
  - patched to include PCI_VENDOR_ID_CHELSIO 0x1425, removed define from
  our code.
											
										 
											2005-06-23 01:40:19 -04:00
										 |  |  | 	writel(enable, espi->adapter->regs + A_ESPI_INTR_ENABLE); | 
					
						
							|  |  |  | 	writel(pl_intr | F_PL_INTR_ESPI, espi->adapter->regs + A_PL_ENABLE); | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void t1_espi_intr_clear(struct peespi *espi) | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | 	readl(espi->adapter->regs + A_ESPI_DIP2_ERR_COUNT); | 
					
						
							| 
									
										
											  
											
												Update Chelsio gige net driver.
- Use extern prefix for functions required.
- Removed a lot of wrappers, including t1_read/write_reg_4.
- Removed various macros, using native kernel calls now.
- Enumerated various #defines.
- Removed a lot of shared code which is not currently used in "NIC only" mode.
- Removed dead code.
Documentation/networking/cxgb.txt:
- Updated release notes for version 2.1.1
drivers/net/chelsio/ch_ethtool.h
- removed file, no longer using ETHTOOL namespace.
drivers/net/chelsio/common.h
- moved code from osdep.h to common.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cphy.h
- removed dead code.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cxgb2.c
- use DMA_{32,64}BIT_MASK in include/linux/dma-mapping.h.
- removed unused code.
- use printk message for link info resembling drivers/net/mii.c.
- no longer using the MODULE_xxx namespace.
- no longer using "pci_" namespace.
- no longer using ETHTOOL namespace.
drivers/net/chelsio/cxgb2.h
- removed file, merged into common.h
drivers/net/chelsio/elmer0.h
- removed dead code.
- added various enums.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/espi.c
- removed various macros, using native kernel calls now.
- removed a lot of wrappers, including t1_read/write_reg_4.
drivers/net/chelsio/espi.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/gmac.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/mv88x201x.c
- changes to sync with Chelsio TOT.
drivers/net/chelsio/osdep.h
- removed file, consolidation. osdep was used to translate wrapper functions
  since our code supports multiple OSs. removed wrappers.
  drivers/net/chelsio/pm3393.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/regs.h
  - added a few register entries for future and current feature support.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/sge.c
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - using u8/u16/u32 kernel types instead of __u8/__u16/__u32 compiler
  types.
  drivers/net/chelsio/sge.h
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/subr.c
  - merged tp.c into subr.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/suni1x10gexp_regs.h
  - modified copyright and authorship of file.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/tp.c
  - removed file, merged into subr.c.
  drivers/net/chelsio/tp.h
  - removed file.
  include/linux/pci_ids.h
  - patched to include PCI_VENDOR_ID_CHELSIO 0x1425, removed define from
  our code.
											
										 
											2005-06-23 01:40:19 -04:00
										 |  |  | 	writel(0xffffffff, espi->adapter->regs + A_ESPI_INTR_STATUS); | 
					
						
							|  |  |  | 	writel(F_PL_INTR_ESPI, espi->adapter->regs + A_PL_CAUSE); | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void t1_espi_intr_disable(struct peespi *espi) | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
											  
											
												Update Chelsio gige net driver.
- Use extern prefix for functions required.
- Removed a lot of wrappers, including t1_read/write_reg_4.
- Removed various macros, using native kernel calls now.
- Enumerated various #defines.
- Removed a lot of shared code which is not currently used in "NIC only" mode.
- Removed dead code.
Documentation/networking/cxgb.txt:
- Updated release notes for version 2.1.1
drivers/net/chelsio/ch_ethtool.h
- removed file, no longer using ETHTOOL namespace.
drivers/net/chelsio/common.h
- moved code from osdep.h to common.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cphy.h
- removed dead code.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cxgb2.c
- use DMA_{32,64}BIT_MASK in include/linux/dma-mapping.h.
- removed unused code.
- use printk message for link info resembling drivers/net/mii.c.
- no longer using the MODULE_xxx namespace.
- no longer using "pci_" namespace.
- no longer using ETHTOOL namespace.
drivers/net/chelsio/cxgb2.h
- removed file, merged into common.h
drivers/net/chelsio/elmer0.h
- removed dead code.
- added various enums.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/espi.c
- removed various macros, using native kernel calls now.
- removed a lot of wrappers, including t1_read/write_reg_4.
drivers/net/chelsio/espi.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/gmac.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/mv88x201x.c
- changes to sync with Chelsio TOT.
drivers/net/chelsio/osdep.h
- removed file, consolidation. osdep was used to translate wrapper functions
  since our code supports multiple OSs. removed wrappers.
  drivers/net/chelsio/pm3393.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/regs.h
  - added a few register entries for future and current feature support.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/sge.c
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - using u8/u16/u32 kernel types instead of __u8/__u16/__u32 compiler
  types.
  drivers/net/chelsio/sge.h
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/subr.c
  - merged tp.c into subr.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/suni1x10gexp_regs.h
  - modified copyright and authorship of file.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/tp.c
  - removed file, merged into subr.c.
  drivers/net/chelsio/tp.h
  - removed file.
  include/linux/pci_ids.h
  - patched to include PCI_VENDOR_ID_CHELSIO 0x1425, removed define from
  our code.
											
										 
											2005-06-23 01:40:19 -04:00
										 |  |  | 	u32 pl_intr = readl(espi->adapter->regs + A_PL_ENABLE); | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
											  
											
												Update Chelsio gige net driver.
- Use extern prefix for functions required.
- Removed a lot of wrappers, including t1_read/write_reg_4.
- Removed various macros, using native kernel calls now.
- Enumerated various #defines.
- Removed a lot of shared code which is not currently used in "NIC only" mode.
- Removed dead code.
Documentation/networking/cxgb.txt:
- Updated release notes for version 2.1.1
drivers/net/chelsio/ch_ethtool.h
- removed file, no longer using ETHTOOL namespace.
drivers/net/chelsio/common.h
- moved code from osdep.h to common.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cphy.h
- removed dead code.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cxgb2.c
- use DMA_{32,64}BIT_MASK in include/linux/dma-mapping.h.
- removed unused code.
- use printk message for link info resembling drivers/net/mii.c.
- no longer using the MODULE_xxx namespace.
- no longer using "pci_" namespace.
- no longer using ETHTOOL namespace.
drivers/net/chelsio/cxgb2.h
- removed file, merged into common.h
drivers/net/chelsio/elmer0.h
- removed dead code.
- added various enums.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/espi.c
- removed various macros, using native kernel calls now.
- removed a lot of wrappers, including t1_read/write_reg_4.
drivers/net/chelsio/espi.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/gmac.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/mv88x201x.c
- changes to sync with Chelsio TOT.
drivers/net/chelsio/osdep.h
- removed file, consolidation. osdep was used to translate wrapper functions
  since our code supports multiple OSs. removed wrappers.
  drivers/net/chelsio/pm3393.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/regs.h
  - added a few register entries for future and current feature support.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/sge.c
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - using u8/u16/u32 kernel types instead of __u8/__u16/__u32 compiler
  types.
  drivers/net/chelsio/sge.h
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/subr.c
  - merged tp.c into subr.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/suni1x10gexp_regs.h
  - modified copyright and authorship of file.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/tp.c
  - removed file, merged into subr.c.
  drivers/net/chelsio/tp.h
  - removed file.
  include/linux/pci_ids.h
  - patched to include PCI_VENDOR_ID_CHELSIO 0x1425, removed define from
  our code.
											
										 
											2005-06-23 01:40:19 -04:00
										 |  |  | 	writel(0, espi->adapter->regs + A_ESPI_INTR_ENABLE); | 
					
						
							|  |  |  | 	writel(pl_intr & ~F_PL_INTR_ESPI, espi->adapter->regs + A_PL_ENABLE); | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | int t1_espi_intr_handler(struct peespi *espi) | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
											  
											
												Update Chelsio gige net driver.
- Use extern prefix for functions required.
- Removed a lot of wrappers, including t1_read/write_reg_4.
- Removed various macros, using native kernel calls now.
- Enumerated various #defines.
- Removed a lot of shared code which is not currently used in "NIC only" mode.
- Removed dead code.
Documentation/networking/cxgb.txt:
- Updated release notes for version 2.1.1
drivers/net/chelsio/ch_ethtool.h
- removed file, no longer using ETHTOOL namespace.
drivers/net/chelsio/common.h
- moved code from osdep.h to common.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cphy.h
- removed dead code.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cxgb2.c
- use DMA_{32,64}BIT_MASK in include/linux/dma-mapping.h.
- removed unused code.
- use printk message for link info resembling drivers/net/mii.c.
- no longer using the MODULE_xxx namespace.
- no longer using "pci_" namespace.
- no longer using ETHTOOL namespace.
drivers/net/chelsio/cxgb2.h
- removed file, merged into common.h
drivers/net/chelsio/elmer0.h
- removed dead code.
- added various enums.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/espi.c
- removed various macros, using native kernel calls now.
- removed a lot of wrappers, including t1_read/write_reg_4.
drivers/net/chelsio/espi.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/gmac.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/mv88x201x.c
- changes to sync with Chelsio TOT.
drivers/net/chelsio/osdep.h
- removed file, consolidation. osdep was used to translate wrapper functions
  since our code supports multiple OSs. removed wrappers.
  drivers/net/chelsio/pm3393.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/regs.h
  - added a few register entries for future and current feature support.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/sge.c
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - using u8/u16/u32 kernel types instead of __u8/__u16/__u32 compiler
  types.
  drivers/net/chelsio/sge.h
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/subr.c
  - merged tp.c into subr.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/suni1x10gexp_regs.h
  - modified copyright and authorship of file.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/tp.c
  - removed file, merged into subr.c.
  drivers/net/chelsio/tp.h
  - removed file.
  include/linux/pci_ids.h
  - patched to include PCI_VENDOR_ID_CHELSIO 0x1425, removed define from
  our code.
											
										 
											2005-06-23 01:40:19 -04:00
										 |  |  | 	u32 status = readl(espi->adapter->regs + A_ESPI_INTR_STATUS); | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	if (status & F_DIP4ERR) | 
					
						
							|  |  |  | 		espi->intr_cnt.DIP4_err++; | 
					
						
							|  |  |  | 	if (status & F_RXDROP) | 
					
						
							|  |  |  | 		espi->intr_cnt.rx_drops++; | 
					
						
							|  |  |  | 	if (status & F_TXDROP) | 
					
						
							|  |  |  | 		espi->intr_cnt.tx_drops++; | 
					
						
							|  |  |  | 	if (status & F_RXOVERFLOW) | 
					
						
							|  |  |  | 		espi->intr_cnt.rx_ovflw++; | 
					
						
							|  |  |  | 	if (status & F_RAMPARITYERR) | 
					
						
							|  |  |  | 		espi->intr_cnt.parity_err++; | 
					
						
							|  |  |  | 	if (status & F_DIP2PARITYERR) { | 
					
						
							|  |  |  | 		espi->intr_cnt.DIP2_parity_err++; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		/*
 | 
					
						
							|  |  |  | 		 * Must read the error count to clear the interrupt | 
					
						
							|  |  |  | 		 * that it causes. | 
					
						
							|  |  |  | 		 */ | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | 		readl(espi->adapter->regs + A_ESPI_DIP2_ERR_COUNT); | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	/*
 | 
					
						
							|  |  |  | 	 * For T1B we need to write 1 to clear ESPI interrupts.  For T2+ we | 
					
						
							|  |  |  | 	 * write the status as is. | 
					
						
							|  |  |  | 	 */ | 
					
						
							|  |  |  | 	if (status && t1_is_T1B(espi->adapter)) | 
					
						
							|  |  |  | 		status = 1; | 
					
						
							| 
									
										
											  
											
												Update Chelsio gige net driver.
- Use extern prefix for functions required.
- Removed a lot of wrappers, including t1_read/write_reg_4.
- Removed various macros, using native kernel calls now.
- Enumerated various #defines.
- Removed a lot of shared code which is not currently used in "NIC only" mode.
- Removed dead code.
Documentation/networking/cxgb.txt:
- Updated release notes for version 2.1.1
drivers/net/chelsio/ch_ethtool.h
- removed file, no longer using ETHTOOL namespace.
drivers/net/chelsio/common.h
- moved code from osdep.h to common.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cphy.h
- removed dead code.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cxgb2.c
- use DMA_{32,64}BIT_MASK in include/linux/dma-mapping.h.
- removed unused code.
- use printk message for link info resembling drivers/net/mii.c.
- no longer using the MODULE_xxx namespace.
- no longer using "pci_" namespace.
- no longer using ETHTOOL namespace.
drivers/net/chelsio/cxgb2.h
- removed file, merged into common.h
drivers/net/chelsio/elmer0.h
- removed dead code.
- added various enums.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/espi.c
- removed various macros, using native kernel calls now.
- removed a lot of wrappers, including t1_read/write_reg_4.
drivers/net/chelsio/espi.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/gmac.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/mv88x201x.c
- changes to sync with Chelsio TOT.
drivers/net/chelsio/osdep.h
- removed file, consolidation. osdep was used to translate wrapper functions
  since our code supports multiple OSs. removed wrappers.
  drivers/net/chelsio/pm3393.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/regs.h
  - added a few register entries for future and current feature support.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/sge.c
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - using u8/u16/u32 kernel types instead of __u8/__u16/__u32 compiler
  types.
  drivers/net/chelsio/sge.h
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/subr.c
  - merged tp.c into subr.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/suni1x10gexp_regs.h
  - modified copyright and authorship of file.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/tp.c
  - removed file, merged into subr.c.
  drivers/net/chelsio/tp.h
  - removed file.
  include/linux/pci_ids.h
  - patched to include PCI_VENDOR_ID_CHELSIO 0x1425, removed define from
  our code.
											
										 
											2005-06-23 01:40:19 -04:00
										 |  |  | 	writel(status, espi->adapter->regs + A_ESPI_INTR_STATUS); | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 	return 0; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
											  
											
												Update Chelsio gige net driver.
- Use extern prefix for functions required.
- Removed a lot of wrappers, including t1_read/write_reg_4.
- Removed various macros, using native kernel calls now.
- Enumerated various #defines.
- Removed a lot of shared code which is not currently used in "NIC only" mode.
- Removed dead code.
Documentation/networking/cxgb.txt:
- Updated release notes for version 2.1.1
drivers/net/chelsio/ch_ethtool.h
- removed file, no longer using ETHTOOL namespace.
drivers/net/chelsio/common.h
- moved code from osdep.h to common.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cphy.h
- removed dead code.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cxgb2.c
- use DMA_{32,64}BIT_MASK in include/linux/dma-mapping.h.
- removed unused code.
- use printk message for link info resembling drivers/net/mii.c.
- no longer using the MODULE_xxx namespace.
- no longer using "pci_" namespace.
- no longer using ETHTOOL namespace.
drivers/net/chelsio/cxgb2.h
- removed file, merged into common.h
drivers/net/chelsio/elmer0.h
- removed dead code.
- added various enums.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/espi.c
- removed various macros, using native kernel calls now.
- removed a lot of wrappers, including t1_read/write_reg_4.
drivers/net/chelsio/espi.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/gmac.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/mv88x201x.c
- changes to sync with Chelsio TOT.
drivers/net/chelsio/osdep.h
- removed file, consolidation. osdep was used to translate wrapper functions
  since our code supports multiple OSs. removed wrappers.
  drivers/net/chelsio/pm3393.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/regs.h
  - added a few register entries for future and current feature support.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/sge.c
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - using u8/u16/u32 kernel types instead of __u8/__u16/__u32 compiler
  types.
  drivers/net/chelsio/sge.h
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/subr.c
  - merged tp.c into subr.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/suni1x10gexp_regs.h
  - modified copyright and authorship of file.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/tp.c
  - removed file, merged into subr.c.
  drivers/net/chelsio/tp.h
  - removed file.
  include/linux/pci_ids.h
  - patched to include PCI_VENDOR_ID_CHELSIO 0x1425, removed define from
  our code.
											
										 
											2005-06-23 01:40:19 -04:00
										 |  |  | const struct espi_intr_counts *t1_espi_get_intr_counts(struct peespi *espi) | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:13 -08:00
										 |  |  | 	return &espi->intr_cnt; | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
											  
											
												Update Chelsio gige net driver.
- Use extern prefix for functions required.
- Removed a lot of wrappers, including t1_read/write_reg_4.
- Removed various macros, using native kernel calls now.
- Enumerated various #defines.
- Removed a lot of shared code which is not currently used in "NIC only" mode.
- Removed dead code.
Documentation/networking/cxgb.txt:
- Updated release notes for version 2.1.1
drivers/net/chelsio/ch_ethtool.h
- removed file, no longer using ETHTOOL namespace.
drivers/net/chelsio/common.h
- moved code from osdep.h to common.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cphy.h
- removed dead code.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cxgb2.c
- use DMA_{32,64}BIT_MASK in include/linux/dma-mapping.h.
- removed unused code.
- use printk message for link info resembling drivers/net/mii.c.
- no longer using the MODULE_xxx namespace.
- no longer using "pci_" namespace.
- no longer using ETHTOOL namespace.
drivers/net/chelsio/cxgb2.h
- removed file, merged into common.h
drivers/net/chelsio/elmer0.h
- removed dead code.
- added various enums.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/espi.c
- removed various macros, using native kernel calls now.
- removed a lot of wrappers, including t1_read/write_reg_4.
drivers/net/chelsio/espi.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/gmac.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/mv88x201x.c
- changes to sync with Chelsio TOT.
drivers/net/chelsio/osdep.h
- removed file, consolidation. osdep was used to translate wrapper functions
  since our code supports multiple OSs. removed wrappers.
  drivers/net/chelsio/pm3393.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/regs.h
  - added a few register entries for future and current feature support.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/sge.c
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - using u8/u16/u32 kernel types instead of __u8/__u16/__u32 compiler
  types.
  drivers/net/chelsio/sge.h
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/subr.c
  - merged tp.c into subr.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/suni1x10gexp_regs.h
  - modified copyright and authorship of file.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/tp.c
  - removed file, merged into subr.c.
  drivers/net/chelsio/tp.h
  - removed file.
  include/linux/pci_ids.h
  - patched to include PCI_VENDOR_ID_CHELSIO 0x1425, removed define from
  our code.
											
										 
											2005-06-23 01:40:19 -04:00
										 |  |  | static void espi_setup_for_pm3393(adapter_t *adapter) | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | { | 
					
						
							|  |  |  | 	u32 wmark = t1_is_T1B(adapter) ? 0x4000 : 0x3200; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
											  
											
												Update Chelsio gige net driver.
- Use extern prefix for functions required.
- Removed a lot of wrappers, including t1_read/write_reg_4.
- Removed various macros, using native kernel calls now.
- Enumerated various #defines.
- Removed a lot of shared code which is not currently used in "NIC only" mode.
- Removed dead code.
Documentation/networking/cxgb.txt:
- Updated release notes for version 2.1.1
drivers/net/chelsio/ch_ethtool.h
- removed file, no longer using ETHTOOL namespace.
drivers/net/chelsio/common.h
- moved code from osdep.h to common.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cphy.h
- removed dead code.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cxgb2.c
- use DMA_{32,64}BIT_MASK in include/linux/dma-mapping.h.
- removed unused code.
- use printk message for link info resembling drivers/net/mii.c.
- no longer using the MODULE_xxx namespace.
- no longer using "pci_" namespace.
- no longer using ETHTOOL namespace.
drivers/net/chelsio/cxgb2.h
- removed file, merged into common.h
drivers/net/chelsio/elmer0.h
- removed dead code.
- added various enums.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/espi.c
- removed various macros, using native kernel calls now.
- removed a lot of wrappers, including t1_read/write_reg_4.
drivers/net/chelsio/espi.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/gmac.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/mv88x201x.c
- changes to sync with Chelsio TOT.
drivers/net/chelsio/osdep.h
- removed file, consolidation. osdep was used to translate wrapper functions
  since our code supports multiple OSs. removed wrappers.
  drivers/net/chelsio/pm3393.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/regs.h
  - added a few register entries for future and current feature support.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/sge.c
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - using u8/u16/u32 kernel types instead of __u8/__u16/__u32 compiler
  types.
  drivers/net/chelsio/sge.h
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/subr.c
  - merged tp.c into subr.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/suni1x10gexp_regs.h
  - modified copyright and authorship of file.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/tp.c
  - removed file, merged into subr.c.
  drivers/net/chelsio/tp.h
  - removed file.
  include/linux/pci_ids.h
  - patched to include PCI_VENDOR_ID_CHELSIO 0x1425, removed define from
  our code.
											
										 
											2005-06-23 01:40:19 -04:00
										 |  |  | 	writel(0x1f4, adapter->regs + A_ESPI_SCH_TOKEN0); | 
					
						
							|  |  |  | 	writel(0x1f4, adapter->regs + A_ESPI_SCH_TOKEN1); | 
					
						
							|  |  |  | 	writel(0x1f4, adapter->regs + A_ESPI_SCH_TOKEN2); | 
					
						
							|  |  |  | 	writel(0x1f4, adapter->regs + A_ESPI_SCH_TOKEN3); | 
					
						
							|  |  |  | 	writel(0x100, adapter->regs + A_ESPI_RX_FIFO_ALMOST_EMPTY_WATERMARK); | 
					
						
							|  |  |  | 	writel(wmark, adapter->regs + A_ESPI_RX_FIFO_ALMOST_FULL_WATERMARK); | 
					
						
							|  |  |  | 	writel(3, adapter->regs + A_ESPI_CALENDAR_LENGTH); | 
					
						
							|  |  |  | 	writel(0x08000008, adapter->regs + A_ESPI_TRAIN); | 
					
						
							|  |  |  | 	writel(V_RX_NPORTS(1) | V_TX_NPORTS(1), adapter->regs + A_PORT_CONFIG); | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | static void espi_setup_for_vsc7321(adapter_t *adapter) | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2006-12-11 23:47:00 +01:00
										 |  |  | 	writel(0x1f4, adapter->regs + A_ESPI_SCH_TOKEN0); | 
					
						
							|  |  |  | 	writel(0x1f401f4, adapter->regs + A_ESPI_SCH_TOKEN1); | 
					
						
							|  |  |  | 	writel(0x1f4, adapter->regs + A_ESPI_SCH_TOKEN2); | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | 	writel(0xa00, adapter->regs + A_ESPI_RX_FIFO_ALMOST_FULL_WATERMARK); | 
					
						
							|  |  |  | 	writel(0x1ff, adapter->regs + A_ESPI_RX_FIFO_ALMOST_EMPTY_WATERMARK); | 
					
						
							|  |  |  | 	writel(1, adapter->regs + A_ESPI_CALENDAR_LENGTH); | 
					
						
							|  |  |  | 	writel(V_RX_NPORTS(4) | V_TX_NPORTS(4), adapter->regs + A_PORT_CONFIG); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	writel(0x08000008, adapter->regs + A_ESPI_TRAIN); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /*
 | 
					
						
							|  |  |  |  * Note that T1B requires at least 2 ports for IXF1010 due to a HW bug. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | static void espi_setup_for_ixf1010(adapter_t *adapter, int nports) | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | 	writel(1, adapter->regs + A_ESPI_CALENDAR_LENGTH); | 
					
						
							|  |  |  | 	if (nports == 4) { | 
					
						
							|  |  |  | 		if (is_T2(adapter)) { | 
					
						
							|  |  |  | 			writel(0xf00, adapter->regs + A_ESPI_RX_FIFO_ALMOST_FULL_WATERMARK); | 
					
						
							|  |  |  | 			writel(0x3c0, adapter->regs + A_ESPI_RX_FIFO_ALMOST_EMPTY_WATERMARK); | 
					
						
							|  |  |  | 		} else { | 
					
						
							|  |  |  | 			writel(0x7ff, adapter->regs + A_ESPI_RX_FIFO_ALMOST_FULL_WATERMARK); | 
					
						
							|  |  |  | 			writel(0x1ff, adapter->regs + A_ESPI_RX_FIFO_ALMOST_EMPTY_WATERMARK); | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} else { | 
					
						
							|  |  |  | 		writel(0x1fff, adapter->regs + A_ESPI_RX_FIFO_ALMOST_FULL_WATERMARK); | 
					
						
							|  |  |  | 		writel(0x7ff, adapter->regs + A_ESPI_RX_FIFO_ALMOST_EMPTY_WATERMARK); | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	writel(V_RX_NPORTS(nports) | V_TX_NPORTS(nports), adapter->regs + A_PORT_CONFIG); | 
					
						
							| 
									
										
											  
											
												Update Chelsio gige net driver.
- Use extern prefix for functions required.
- Removed a lot of wrappers, including t1_read/write_reg_4.
- Removed various macros, using native kernel calls now.
- Enumerated various #defines.
- Removed a lot of shared code which is not currently used in "NIC only" mode.
- Removed dead code.
Documentation/networking/cxgb.txt:
- Updated release notes for version 2.1.1
drivers/net/chelsio/ch_ethtool.h
- removed file, no longer using ETHTOOL namespace.
drivers/net/chelsio/common.h
- moved code from osdep.h to common.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cphy.h
- removed dead code.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cxgb2.c
- use DMA_{32,64}BIT_MASK in include/linux/dma-mapping.h.
- removed unused code.
- use printk message for link info resembling drivers/net/mii.c.
- no longer using the MODULE_xxx namespace.
- no longer using "pci_" namespace.
- no longer using ETHTOOL namespace.
drivers/net/chelsio/cxgb2.h
- removed file, merged into common.h
drivers/net/chelsio/elmer0.h
- removed dead code.
- added various enums.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/espi.c
- removed various macros, using native kernel calls now.
- removed a lot of wrappers, including t1_read/write_reg_4.
drivers/net/chelsio/espi.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/gmac.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/mv88x201x.c
- changes to sync with Chelsio TOT.
drivers/net/chelsio/osdep.h
- removed file, consolidation. osdep was used to translate wrapper functions
  since our code supports multiple OSs. removed wrappers.
  drivers/net/chelsio/pm3393.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/regs.h
  - added a few register entries for future and current feature support.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/sge.c
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - using u8/u16/u32 kernel types instead of __u8/__u16/__u32 compiler
  types.
  drivers/net/chelsio/sge.h
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/subr.c
  - merged tp.c into subr.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/suni1x10gexp_regs.h
  - modified copyright and authorship of file.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/tp.c
  - removed file, merged into subr.c.
  drivers/net/chelsio/tp.h
  - removed file.
  include/linux/pci_ids.h
  - patched to include PCI_VENDOR_ID_CHELSIO 0x1425, removed define from
  our code.
											
										 
											2005-06-23 01:40:19 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | int t1_espi_init(struct peespi *espi, int mac_type, int nports) | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 	u32 status_enable_extra = 0; | 
					
						
							|  |  |  | 	adapter_t *adapter = espi->adapter; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	/* Disable ESPI training.  MACs that can handle it enable it below. */ | 
					
						
							| 
									
										
											  
											
												Update Chelsio gige net driver.
- Use extern prefix for functions required.
- Removed a lot of wrappers, including t1_read/write_reg_4.
- Removed various macros, using native kernel calls now.
- Enumerated various #defines.
- Removed a lot of shared code which is not currently used in "NIC only" mode.
- Removed dead code.
Documentation/networking/cxgb.txt:
- Updated release notes for version 2.1.1
drivers/net/chelsio/ch_ethtool.h
- removed file, no longer using ETHTOOL namespace.
drivers/net/chelsio/common.h
- moved code from osdep.h to common.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cphy.h
- removed dead code.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cxgb2.c
- use DMA_{32,64}BIT_MASK in include/linux/dma-mapping.h.
- removed unused code.
- use printk message for link info resembling drivers/net/mii.c.
- no longer using the MODULE_xxx namespace.
- no longer using "pci_" namespace.
- no longer using ETHTOOL namespace.
drivers/net/chelsio/cxgb2.h
- removed file, merged into common.h
drivers/net/chelsio/elmer0.h
- removed dead code.
- added various enums.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/espi.c
- removed various macros, using native kernel calls now.
- removed a lot of wrappers, including t1_read/write_reg_4.
drivers/net/chelsio/espi.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/gmac.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/mv88x201x.c
- changes to sync with Chelsio TOT.
drivers/net/chelsio/osdep.h
- removed file, consolidation. osdep was used to translate wrapper functions
  since our code supports multiple OSs. removed wrappers.
  drivers/net/chelsio/pm3393.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/regs.h
  - added a few register entries for future and current feature support.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/sge.c
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - using u8/u16/u32 kernel types instead of __u8/__u16/__u32 compiler
  types.
  drivers/net/chelsio/sge.h
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/subr.c
  - merged tp.c into subr.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/suni1x10gexp_regs.h
  - modified copyright and authorship of file.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/tp.c
  - removed file, merged into subr.c.
  drivers/net/chelsio/tp.h
  - removed file.
  include/linux/pci_ids.h
  - patched to include PCI_VENDOR_ID_CHELSIO 0x1425, removed define from
  our code.
											
										 
											2005-06-23 01:40:19 -04:00
										 |  |  | 	writel(0, adapter->regs + A_ESPI_TRAIN); | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	if (is_T2(adapter)) { | 
					
						
							| 
									
										
											  
											
												Update Chelsio gige net driver.
- Use extern prefix for functions required.
- Removed a lot of wrappers, including t1_read/write_reg_4.
- Removed various macros, using native kernel calls now.
- Enumerated various #defines.
- Removed a lot of shared code which is not currently used in "NIC only" mode.
- Removed dead code.
Documentation/networking/cxgb.txt:
- Updated release notes for version 2.1.1
drivers/net/chelsio/ch_ethtool.h
- removed file, no longer using ETHTOOL namespace.
drivers/net/chelsio/common.h
- moved code from osdep.h to common.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cphy.h
- removed dead code.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cxgb2.c
- use DMA_{32,64}BIT_MASK in include/linux/dma-mapping.h.
- removed unused code.
- use printk message for link info resembling drivers/net/mii.c.
- no longer using the MODULE_xxx namespace.
- no longer using "pci_" namespace.
- no longer using ETHTOOL namespace.
drivers/net/chelsio/cxgb2.h
- removed file, merged into common.h
drivers/net/chelsio/elmer0.h
- removed dead code.
- added various enums.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/espi.c
- removed various macros, using native kernel calls now.
- removed a lot of wrappers, including t1_read/write_reg_4.
drivers/net/chelsio/espi.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/gmac.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/mv88x201x.c
- changes to sync with Chelsio TOT.
drivers/net/chelsio/osdep.h
- removed file, consolidation. osdep was used to translate wrapper functions
  since our code supports multiple OSs. removed wrappers.
  drivers/net/chelsio/pm3393.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/regs.h
  - added a few register entries for future and current feature support.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/sge.c
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - using u8/u16/u32 kernel types instead of __u8/__u16/__u32 compiler
  types.
  drivers/net/chelsio/sge.h
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/subr.c
  - merged tp.c into subr.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/suni1x10gexp_regs.h
  - modified copyright and authorship of file.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/tp.c
  - removed file, merged into subr.c.
  drivers/net/chelsio/tp.h
  - removed file.
  include/linux/pci_ids.h
  - patched to include PCI_VENDOR_ID_CHELSIO 0x1425, removed define from
  our code.
											
										 
											2005-06-23 01:40:19 -04:00
										 |  |  | 		writel(V_OUT_OF_SYNC_COUNT(4) | | 
					
						
							|  |  |  | 		       V_DIP2_PARITY_ERR_THRES(3) | | 
					
						
							|  |  |  | 		       V_DIP4_THRES(1), adapter->regs + A_ESPI_MISC_CONTROL); | 
					
						
							| 
									
										
										
										
											2006-12-11 23:47:00 +01:00
										 |  |  | 		writel(nports == 4 ? 0x200040 : 0x1000080, | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | 		       adapter->regs + A_ESPI_MAXBURST1_MAXBURST2); | 
					
						
							|  |  |  | 	} else | 
					
						
							| 
									
										
										
										
											2006-12-11 23:47:00 +01:00
										 |  |  | 		writel(0x800100, adapter->regs + A_ESPI_MAXBURST1_MAXBURST2); | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | 	if (mac_type == CHBT_MAC_PM3393) | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 		espi_setup_for_pm3393(adapter); | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | 	else if (mac_type == CHBT_MAC_VSC7321) | 
					
						
							|  |  |  | 		espi_setup_for_vsc7321(adapter); | 
					
						
							|  |  |  | 	else if (mac_type == CHBT_MAC_IXF1010) { | 
					
						
							|  |  |  | 		status_enable_extra = F_INTEL1010MODE; | 
					
						
							|  |  |  | 		espi_setup_for_ixf1010(adapter, nports); | 
					
						
							|  |  |  | 	} else | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 		return -1; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
											  
											
												Update Chelsio gige net driver.
- Use extern prefix for functions required.
- Removed a lot of wrappers, including t1_read/write_reg_4.
- Removed various macros, using native kernel calls now.
- Enumerated various #defines.
- Removed a lot of shared code which is not currently used in "NIC only" mode.
- Removed dead code.
Documentation/networking/cxgb.txt:
- Updated release notes for version 2.1.1
drivers/net/chelsio/ch_ethtool.h
- removed file, no longer using ETHTOOL namespace.
drivers/net/chelsio/common.h
- moved code from osdep.h to common.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cphy.h
- removed dead code.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cxgb2.c
- use DMA_{32,64}BIT_MASK in include/linux/dma-mapping.h.
- removed unused code.
- use printk message for link info resembling drivers/net/mii.c.
- no longer using the MODULE_xxx namespace.
- no longer using "pci_" namespace.
- no longer using ETHTOOL namespace.
drivers/net/chelsio/cxgb2.h
- removed file, merged into common.h
drivers/net/chelsio/elmer0.h
- removed dead code.
- added various enums.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/espi.c
- removed various macros, using native kernel calls now.
- removed a lot of wrappers, including t1_read/write_reg_4.
drivers/net/chelsio/espi.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/gmac.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/mv88x201x.c
- changes to sync with Chelsio TOT.
drivers/net/chelsio/osdep.h
- removed file, consolidation. osdep was used to translate wrapper functions
  since our code supports multiple OSs. removed wrappers.
  drivers/net/chelsio/pm3393.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/regs.h
  - added a few register entries for future and current feature support.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/sge.c
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - using u8/u16/u32 kernel types instead of __u8/__u16/__u32 compiler
  types.
  drivers/net/chelsio/sge.h
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/subr.c
  - merged tp.c into subr.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/suni1x10gexp_regs.h
  - modified copyright and authorship of file.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/tp.c
  - removed file, merged into subr.c.
  drivers/net/chelsio/tp.h
  - removed file.
  include/linux/pci_ids.h
  - patched to include PCI_VENDOR_ID_CHELSIO 0x1425, removed define from
  our code.
											
										 
											2005-06-23 01:40:19 -04:00
										 |  |  | 	writel(status_enable_extra | F_RXSTATUSENABLE, | 
					
						
							|  |  |  | 	       adapter->regs + A_ESPI_FIFO_STATUS_ENABLE); | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	if (is_T2(adapter)) { | 
					
						
							|  |  |  | 		tricn_init(adapter); | 
					
						
							|  |  |  | 		/*
 | 
					
						
							|  |  |  | 		 * Always position the control at the 1st port egress IN | 
					
						
							|  |  |  | 		 * (sop,eop) counter to reduce PIOs for T/N210 workaround. | 
					
						
							|  |  |  | 		 */ | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | 		espi->misc_ctrl = readl(adapter->regs + A_ESPI_MISC_CONTROL); | 
					
						
							|  |  |  | 		espi->misc_ctrl &= ~MON_MASK; | 
					
						
							|  |  |  | 		espi->misc_ctrl |= F_MONITORED_DIRECTION; | 
					
						
							|  |  |  | 		if (adapter->params.nports == 1) | 
					
						
							|  |  |  | 			espi->misc_ctrl |= F_MONITORED_INTERFACE; | 
					
						
							| 
									
										
											  
											
												Update Chelsio gige net driver.
- Use extern prefix for functions required.
- Removed a lot of wrappers, including t1_read/write_reg_4.
- Removed various macros, using native kernel calls now.
- Enumerated various #defines.
- Removed a lot of shared code which is not currently used in "NIC only" mode.
- Removed dead code.
Documentation/networking/cxgb.txt:
- Updated release notes for version 2.1.1
drivers/net/chelsio/ch_ethtool.h
- removed file, no longer using ETHTOOL namespace.
drivers/net/chelsio/common.h
- moved code from osdep.h to common.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cphy.h
- removed dead code.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cxgb2.c
- use DMA_{32,64}BIT_MASK in include/linux/dma-mapping.h.
- removed unused code.
- use printk message for link info resembling drivers/net/mii.c.
- no longer using the MODULE_xxx namespace.
- no longer using "pci_" namespace.
- no longer using ETHTOOL namespace.
drivers/net/chelsio/cxgb2.h
- removed file, merged into common.h
drivers/net/chelsio/elmer0.h
- removed dead code.
- added various enums.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/espi.c
- removed various macros, using native kernel calls now.
- removed a lot of wrappers, including t1_read/write_reg_4.
drivers/net/chelsio/espi.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/gmac.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/mv88x201x.c
- changes to sync with Chelsio TOT.
drivers/net/chelsio/osdep.h
- removed file, consolidation. osdep was used to translate wrapper functions
  since our code supports multiple OSs. removed wrappers.
  drivers/net/chelsio/pm3393.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/regs.h
  - added a few register entries for future and current feature support.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/sge.c
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - using u8/u16/u32 kernel types instead of __u8/__u16/__u32 compiler
  types.
  drivers/net/chelsio/sge.h
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/subr.c
  - merged tp.c into subr.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/suni1x10gexp_regs.h
  - modified copyright and authorship of file.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/tp.c
  - removed file, merged into subr.c.
  drivers/net/chelsio/tp.h
  - removed file.
  include/linux/pci_ids.h
  - patched to include PCI_VENDOR_ID_CHELSIO 0x1425, removed define from
  our code.
											
										 
											2005-06-23 01:40:19 -04:00
										 |  |  | 		writel(espi->misc_ctrl, adapter->regs + A_ESPI_MISC_CONTROL); | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 		spin_lock_init(&espi->lock); | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	return 0; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void t1_espi_destroy(struct peespi *espi) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	kfree(espi); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | struct peespi *t1_espi_create(adapter_t *adapter) | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2006-03-05 01:16:00 +03:00
										 |  |  | 	struct peespi *espi = kzalloc(sizeof(*espi), GFP_KERNEL); | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	if (espi) | 
					
						
							|  |  |  | 		espi->adapter = adapter; | 
					
						
							|  |  |  | 	return espi; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-11-21 15:02:55 -08:00
										 |  |  | #if 0
 | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | void t1_espi_set_misc_ctrl(adapter_t *adapter, u32 val) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	struct peespi *espi = adapter->espi; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-12-05 22:38:00 +01:00
										 |  |  | 	if (!is_T2(adapter)) | 
					
						
							|  |  |  | 		return; | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 	spin_lock(&espi->lock); | 
					
						
							|  |  |  | 	espi->misc_ctrl = (val & ~MON_MASK) | | 
					
						
							|  |  |  | 			  (espi->misc_ctrl & MON_MASK); | 
					
						
							| 
									
										
											  
											
												Update Chelsio gige net driver.
- Use extern prefix for functions required.
- Removed a lot of wrappers, including t1_read/write_reg_4.
- Removed various macros, using native kernel calls now.
- Enumerated various #defines.
- Removed a lot of shared code which is not currently used in "NIC only" mode.
- Removed dead code.
Documentation/networking/cxgb.txt:
- Updated release notes for version 2.1.1
drivers/net/chelsio/ch_ethtool.h
- removed file, no longer using ETHTOOL namespace.
drivers/net/chelsio/common.h
- moved code from osdep.h to common.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cphy.h
- removed dead code.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cxgb2.c
- use DMA_{32,64}BIT_MASK in include/linux/dma-mapping.h.
- removed unused code.
- use printk message for link info resembling drivers/net/mii.c.
- no longer using the MODULE_xxx namespace.
- no longer using "pci_" namespace.
- no longer using ETHTOOL namespace.
drivers/net/chelsio/cxgb2.h
- removed file, merged into common.h
drivers/net/chelsio/elmer0.h
- removed dead code.
- added various enums.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/espi.c
- removed various macros, using native kernel calls now.
- removed a lot of wrappers, including t1_read/write_reg_4.
drivers/net/chelsio/espi.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/gmac.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/mv88x201x.c
- changes to sync with Chelsio TOT.
drivers/net/chelsio/osdep.h
- removed file, consolidation. osdep was used to translate wrapper functions
  since our code supports multiple OSs. removed wrappers.
  drivers/net/chelsio/pm3393.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/regs.h
  - added a few register entries for future and current feature support.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/sge.c
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - using u8/u16/u32 kernel types instead of __u8/__u16/__u32 compiler
  types.
  drivers/net/chelsio/sge.h
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/subr.c
  - merged tp.c into subr.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/suni1x10gexp_regs.h
  - modified copyright and authorship of file.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/tp.c
  - removed file, merged into subr.c.
  drivers/net/chelsio/tp.h
  - removed file.
  include/linux/pci_ids.h
  - patched to include PCI_VENDOR_ID_CHELSIO 0x1425, removed define from
  our code.
											
										 
											2005-06-23 01:40:19 -04:00
										 |  |  | 	writel(espi->misc_ctrl, adapter->regs + A_ESPI_MISC_CONTROL); | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 	spin_unlock(&espi->lock); | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2007-11-21 15:02:55 -08:00
										 |  |  | #endif  /*  0  */
 | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | u32 t1_espi_get_mon(adapter_t *adapter, u32 addr, u8 wait) | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
											  
											
												Update Chelsio gige net driver.
- Use extern prefix for functions required.
- Removed a lot of wrappers, including t1_read/write_reg_4.
- Removed various macros, using native kernel calls now.
- Enumerated various #defines.
- Removed a lot of shared code which is not currently used in "NIC only" mode.
- Removed dead code.
Documentation/networking/cxgb.txt:
- Updated release notes for version 2.1.1
drivers/net/chelsio/ch_ethtool.h
- removed file, no longer using ETHTOOL namespace.
drivers/net/chelsio/common.h
- moved code from osdep.h to common.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cphy.h
- removed dead code.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cxgb2.c
- use DMA_{32,64}BIT_MASK in include/linux/dma-mapping.h.
- removed unused code.
- use printk message for link info resembling drivers/net/mii.c.
- no longer using the MODULE_xxx namespace.
- no longer using "pci_" namespace.
- no longer using ETHTOOL namespace.
drivers/net/chelsio/cxgb2.h
- removed file, merged into common.h
drivers/net/chelsio/elmer0.h
- removed dead code.
- added various enums.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/espi.c
- removed various macros, using native kernel calls now.
- removed a lot of wrappers, including t1_read/write_reg_4.
drivers/net/chelsio/espi.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/gmac.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/mv88x201x.c
- changes to sync with Chelsio TOT.
drivers/net/chelsio/osdep.h
- removed file, consolidation. osdep was used to translate wrapper functions
  since our code supports multiple OSs. removed wrappers.
  drivers/net/chelsio/pm3393.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/regs.h
  - added a few register entries for future and current feature support.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/sge.c
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - using u8/u16/u32 kernel types instead of __u8/__u16/__u32 compiler
  types.
  drivers/net/chelsio/sge.h
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/subr.c
  - merged tp.c into subr.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/suni1x10gexp_regs.h
  - modified copyright and authorship of file.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/tp.c
  - removed file, merged into subr.c.
  drivers/net/chelsio/tp.h
  - removed file.
  include/linux/pci_ids.h
  - patched to include PCI_VENDOR_ID_CHELSIO 0x1425, removed define from
  our code.
											
										 
											2005-06-23 01:40:19 -04:00
										 |  |  | 	struct peespi *espi = adapter->espi; | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | 	u32 sel; | 
					
						
							| 
									
										
											  
											
												Update Chelsio gige net driver.
- Use extern prefix for functions required.
- Removed a lot of wrappers, including t1_read/write_reg_4.
- Removed various macros, using native kernel calls now.
- Enumerated various #defines.
- Removed a lot of shared code which is not currently used in "NIC only" mode.
- Removed dead code.
Documentation/networking/cxgb.txt:
- Updated release notes for version 2.1.1
drivers/net/chelsio/ch_ethtool.h
- removed file, no longer using ETHTOOL namespace.
drivers/net/chelsio/common.h
- moved code from osdep.h to common.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cphy.h
- removed dead code.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cxgb2.c
- use DMA_{32,64}BIT_MASK in include/linux/dma-mapping.h.
- removed unused code.
- use printk message for link info resembling drivers/net/mii.c.
- no longer using the MODULE_xxx namespace.
- no longer using "pci_" namespace.
- no longer using ETHTOOL namespace.
drivers/net/chelsio/cxgb2.h
- removed file, merged into common.h
drivers/net/chelsio/elmer0.h
- removed dead code.
- added various enums.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/espi.c
- removed various macros, using native kernel calls now.
- removed a lot of wrappers, including t1_read/write_reg_4.
drivers/net/chelsio/espi.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/gmac.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/mv88x201x.c
- changes to sync with Chelsio TOT.
drivers/net/chelsio/osdep.h
- removed file, consolidation. osdep was used to translate wrapper functions
  since our code supports multiple OSs. removed wrappers.
  drivers/net/chelsio/pm3393.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/regs.h
  - added a few register entries for future and current feature support.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/sge.c
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - using u8/u16/u32 kernel types instead of __u8/__u16/__u32 compiler
  types.
  drivers/net/chelsio/sge.h
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/subr.c
  - merged tp.c into subr.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/suni1x10gexp_regs.h
  - modified copyright and authorship of file.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/tp.c
  - removed file, merged into subr.c.
  drivers/net/chelsio/tp.h
  - removed file.
  include/linux/pci_ids.h
  - patched to include PCI_VENDOR_ID_CHELSIO 0x1425, removed define from
  our code.
											
										 
											2005-06-23 01:40:19 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 	if (!is_T2(adapter)) | 
					
						
							|  |  |  | 		return 0; | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 	sel = V_MONITORED_PORT_NUM((addr & 0x3c) >> 2); | 
					
						
							|  |  |  | 	if (!wait) { | 
					
						
							|  |  |  | 		if (!spin_trylock(&espi->lock)) | 
					
						
							|  |  |  | 			return 0; | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | 	} else | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 		spin_lock(&espi->lock); | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 	if ((sel != (espi->misc_ctrl & MON_MASK))) { | 
					
						
							| 
									
										
											  
											
												Update Chelsio gige net driver.
- Use extern prefix for functions required.
- Removed a lot of wrappers, including t1_read/write_reg_4.
- Removed various macros, using native kernel calls now.
- Enumerated various #defines.
- Removed a lot of shared code which is not currently used in "NIC only" mode.
- Removed dead code.
Documentation/networking/cxgb.txt:
- Updated release notes for version 2.1.1
drivers/net/chelsio/ch_ethtool.h
- removed file, no longer using ETHTOOL namespace.
drivers/net/chelsio/common.h
- moved code from osdep.h to common.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cphy.h
- removed dead code.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cxgb2.c
- use DMA_{32,64}BIT_MASK in include/linux/dma-mapping.h.
- removed unused code.
- use printk message for link info resembling drivers/net/mii.c.
- no longer using the MODULE_xxx namespace.
- no longer using "pci_" namespace.
- no longer using ETHTOOL namespace.
drivers/net/chelsio/cxgb2.h
- removed file, merged into common.h
drivers/net/chelsio/elmer0.h
- removed dead code.
- added various enums.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/espi.c
- removed various macros, using native kernel calls now.
- removed a lot of wrappers, including t1_read/write_reg_4.
drivers/net/chelsio/espi.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/gmac.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/mv88x201x.c
- changes to sync with Chelsio TOT.
drivers/net/chelsio/osdep.h
- removed file, consolidation. osdep was used to translate wrapper functions
  since our code supports multiple OSs. removed wrappers.
  drivers/net/chelsio/pm3393.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/regs.h
  - added a few register entries for future and current feature support.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/sge.c
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - using u8/u16/u32 kernel types instead of __u8/__u16/__u32 compiler
  types.
  drivers/net/chelsio/sge.h
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/subr.c
  - merged tp.c into subr.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/suni1x10gexp_regs.h
  - modified copyright and authorship of file.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/tp.c
  - removed file, merged into subr.c.
  drivers/net/chelsio/tp.h
  - removed file.
  include/linux/pci_ids.h
  - patched to include PCI_VENDOR_ID_CHELSIO 0x1425, removed define from
  our code.
											
										 
											2005-06-23 01:40:19 -04:00
										 |  |  | 		writel(((espi->misc_ctrl & ~MON_MASK) | sel), | 
					
						
							|  |  |  | 		       adapter->regs + A_ESPI_MISC_CONTROL); | 
					
						
							|  |  |  | 		sel = readl(adapter->regs + A_ESPI_SCH_TOKEN3); | 
					
						
							|  |  |  | 		writel(espi->misc_ctrl, adapter->regs + A_ESPI_MISC_CONTROL); | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | 	} else | 
					
						
							| 
									
										
											  
											
												Update Chelsio gige net driver.
- Use extern prefix for functions required.
- Removed a lot of wrappers, including t1_read/write_reg_4.
- Removed various macros, using native kernel calls now.
- Enumerated various #defines.
- Removed a lot of shared code which is not currently used in "NIC only" mode.
- Removed dead code.
Documentation/networking/cxgb.txt:
- Updated release notes for version 2.1.1
drivers/net/chelsio/ch_ethtool.h
- removed file, no longer using ETHTOOL namespace.
drivers/net/chelsio/common.h
- moved code from osdep.h to common.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cphy.h
- removed dead code.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/cxgb2.c
- use DMA_{32,64}BIT_MASK in include/linux/dma-mapping.h.
- removed unused code.
- use printk message for link info resembling drivers/net/mii.c.
- no longer using the MODULE_xxx namespace.
- no longer using "pci_" namespace.
- no longer using ETHTOOL namespace.
drivers/net/chelsio/cxgb2.h
- removed file, merged into common.h
drivers/net/chelsio/elmer0.h
- removed dead code.
- added various enums.
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/espi.c
- removed various macros, using native kernel calls now.
- removed a lot of wrappers, including t1_read/write_reg_4.
drivers/net/chelsio/espi.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/gmac.h
- added comment to #endif indicating which symbol it closes.
drivers/net/chelsio/mv88x201x.c
- changes to sync with Chelsio TOT.
drivers/net/chelsio/osdep.h
- removed file, consolidation. osdep was used to translate wrapper functions
  since our code supports multiple OSs. removed wrappers.
  drivers/net/chelsio/pm3393.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/regs.h
  - added a few register entries for future and current feature support.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/sge.c
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - using u8/u16/u32 kernel types instead of __u8/__u16/__u32 compiler
  types.
  drivers/net/chelsio/sge.h
  - rewrote large portion of scatter-gather engine to stabilize
  performance.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/subr.c
  - merged tp.c into subr.c
  - removed various macros, using native kernel calls now.
  - removed a lot of wrappers, including t1_read/write_reg_4.
  - removed unused code.
  drivers/net/chelsio/suni1x10gexp_regs.h
  - modified copyright and authorship of file.
  - added comment to #endif indicating which symbol it closes.
  drivers/net/chelsio/tp.c
  - removed file, merged into subr.c.
  drivers/net/chelsio/tp.h
  - removed file.
  include/linux/pci_ids.h
  - patched to include PCI_VENDOR_ID_CHELSIO 0x1425, removed define from
  our code.
											
										 
											2005-06-23 01:40:19 -04:00
										 |  |  | 		sel = readl(adapter->regs + A_ESPI_SCH_TOKEN3); | 
					
						
							| 
									
										
										
										
											2005-03-30 13:34:31 -08:00
										 |  |  | 	spin_unlock(&espi->lock); | 
					
						
							|  |  |  | 	return sel; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | /*
 | 
					
						
							|  |  |  |  * This function is for T204 only. | 
					
						
							|  |  |  |  * compare with t1_espi_get_mon(), it reads espiInTxSop[0 ~ 3] in | 
					
						
							|  |  |  |  * one shot, since there is no per port counter on the out side. | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2006-12-11 23:47:00 +01:00
										 |  |  | int t1_espi_get_mon_t204(adapter_t *adapter, u32 *valp, u8 wait) | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2006-12-11 23:47:00 +01:00
										 |  |  | 	struct peespi *espi = adapter->espi; | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | 	u8 i, nport = (u8)adapter->params.nports; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-12-11 23:47:00 +01:00
										 |  |  | 	if (!wait) { | 
					
						
							|  |  |  | 		if (!spin_trylock(&espi->lock)) | 
					
						
							|  |  |  | 			return -1; | 
					
						
							|  |  |  | 	} else | 
					
						
							|  |  |  | 		spin_lock(&espi->lock); | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-12-11 23:47:00 +01:00
										 |  |  | 	if ((espi->misc_ctrl & MON_MASK) != F_MONITORED_DIRECTION) { | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | 		espi->misc_ctrl = (espi->misc_ctrl & ~MON_MASK) | | 
					
						
							|  |  |  | 					F_MONITORED_DIRECTION; | 
					
						
							| 
									
										
										
										
											2006-12-11 23:47:00 +01:00
										 |  |  | 		writel(espi->misc_ctrl, adapter->regs + A_ESPI_MISC_CONTROL); | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | 	for (i = 0 ; i < nport; i++, valp++) { | 
					
						
							|  |  |  | 		if (i) { | 
					
						
							|  |  |  | 			writel(espi->misc_ctrl | V_MONITORED_PORT_NUM(i), | 
					
						
							|  |  |  | 			       adapter->regs + A_ESPI_MISC_CONTROL); | 
					
						
							|  |  |  | 		} | 
					
						
							| 
									
										
										
										
											2006-12-11 23:47:00 +01:00
										 |  |  | 		*valp = readl(adapter->regs + A_ESPI_SCH_TOKEN3); | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-12-11 23:47:00 +01:00
										 |  |  | 	writel(espi->misc_ctrl, adapter->regs + A_ESPI_MISC_CONTROL); | 
					
						
							|  |  |  | 	spin_unlock(&espi->lock); | 
					
						
							|  |  |  | 	return 0; | 
					
						
							| 
									
										
										
										
											2006-12-01 16:36:16 -08:00
										 |  |  | } |