Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
subr.c File Reference
#include "common.h"
#include "elmer0.h"
#include "regs.h"
#include "gmac.h"
#include "cphy.h"
#include "sge.h"
#include "tp.h"
#include "espi.h"

Go to the source code of this file.

Data Structures

struct  chelsio_vpd_t
 

Macros

#define TPI_ATTEMPTS   50
 
#define EEPROMSIZE   (8 * 1024)
 
#define EEPROM_MAX_POLL   4
 

Enumerations

enum  {
  CH_BRD_T110_1CU, CH_BRD_N110_1F, CH_BRD_N210_1F, CH_BRD_T210_1F,
  CH_BRD_T210_1CU, CH_BRD_N204_4CU
}
 

Functions

int __t1_tpi_write (adapter_t *adapter, u32 addr, u32 value)
 
int t1_tpi_write (adapter_t *adapter, u32 addr, u32 value)
 
int __t1_tpi_read (adapter_t *adapter, u32 addr, u32 *valp)
 
int t1_tpi_read (adapter_t *adapter, u32 addr, u32 *valp)
 
void t1_link_changed (adapter_t *adapter, int port_id)
 
 DEFINE_PCI_DEVICE_TABLE (t1_pci_tbl)
 
 MODULE_DEVICE_TABLE (pci, t1_pci_tbl)
 
struct board_infot1_get_board_info (unsigned int board_id)
 
int t1_seeprom_read (adapter_t *adapter, u32 addr, __le32 *data)
 
int t1_link_start (struct cphy *phy, struct cmac *mac, struct link_config *lc)
 
int t1_elmer0_ext_intr_handler (adapter_t *adapter)
 
void t1_interrupts_enable (adapter_t *adapter)
 
void t1_interrupts_disable (adapter_t *adapter)
 
void t1_interrupts_clear (adapter_t *adapter)
 
int t1_slow_intr_handler (adapter_t *adapter)
 
int __devinit t1_get_board_rev (adapter_t *adapter, const struct board_info *bi, struct adapter_params *p)
 
int t1_init_hw_modules (adapter_t *adapter)
 
void t1_free_sw_modules (adapter_t *adapter)
 
int __devinit t1_init_sw_modules (adapter_t *adapter, const struct board_info *bi)
 

Macro Definition Documentation

#define EEPROM_MAX_POLL   4

Definition at line 556 of file subr.c.

#define EEPROMSIZE   (8 * 1024)

Definition at line 555 of file subr.c.

#define TPI_ATTEMPTS   50

Definition at line 77 of file subr.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
CH_BRD_T110_1CU 
CH_BRD_N110_1F 
CH_BRD_N210_1F 
CH_BRD_T210_1F 
CH_BRD_T210_1CU 
CH_BRD_N204_4CU 

Definition at line 383 of file subr.c.

Function Documentation

int __t1_tpi_read ( adapter_t adapter,
u32  addr,
u32 valp 
)

Definition at line 111 of file subr.c.

int __t1_tpi_write ( adapter_t adapter,
u32  addr,
u32  value 
)

Definition at line 82 of file subr.c.

DEFINE_PCI_DEVICE_TABLE ( t1_pci_tbl  )
MODULE_DEVICE_TABLE ( pci  ,
t1_pci_tbl   
)
int t1_elmer0_ext_intr_handler ( adapter_t adapter)

Definition at line 668 of file subr.c.

void t1_free_sw_modules ( adapter_t adapter)

Definition at line 1009 of file subr.c.

struct board_info* t1_get_board_info ( unsigned int  board_id)
read

Definition at line 543 of file subr.c.

int __devinit t1_get_board_rev ( adapter_t adapter,
const struct board_info bi,
struct adapter_params p 
)

Definition at line 895 of file subr.c.

int t1_init_hw_modules ( adapter_t adapter)

Definition at line 963 of file subr.c.

int __devinit t1_init_sw_modules ( adapter_t adapter,
const struct board_info bi 
)

Definition at line 1052 of file subr.c.

void t1_interrupts_clear ( adapter_t adapter)

Definition at line 816 of file subr.c.

void t1_interrupts_disable ( adapter_t adapter)

Definition at line 790 of file subr.c.

void t1_interrupts_enable ( adapter_t adapter)

Definition at line 756 of file subr.c.

void t1_link_changed ( adapter_t adapter,
int  port_id 
)

Definition at line 151 of file subr.c.

int t1_link_start ( struct cphy phy,
struct cmac mac,
struct link_config lc 
)

Definition at line 624 of file subr.c.

int t1_seeprom_read ( adapter_t adapter,
u32  addr,
__le32 data 
)

Definition at line 563 of file subr.c.

int t1_slow_intr_handler ( adapter_t adapter)

Definition at line 870 of file subr.c.

int t1_tpi_read ( adapter_t adapter,
u32  addr,
u32 valp 
)

Definition at line 128 of file subr.c.

int t1_tpi_write ( adapter_t adapter,
u32  addr,
u32  value 
)

Definition at line 98 of file subr.c.