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

Go to the source code of this file.

Data Structures

struct  peespi
 

Macros

#define ESPI_INTR_MASK
 
#define MON_MASK
 
#define TRICN_CNFG   14
 
#define TRICN_CMD_READ   0x11
 
#define TRICN_CMD_WRITE   0x21
 
#define TRICN_CMD_ATTEMPTS   10
 

Functions

void t1_espi_intr_enable (struct peespi *espi)
 
void t1_espi_intr_clear (struct peespi *espi)
 
void t1_espi_intr_disable (struct peespi *espi)
 
int t1_espi_intr_handler (struct peespi *espi)
 
struct espi_intr_countst1_espi_get_intr_counts (struct peespi *espi)
 
int t1_espi_init (struct peespi *espi, int mac_type, int nports)
 
void t1_espi_destroy (struct peespi *espi)
 
struct peespit1_espi_create (adapter_t *adapter)
 
u32 t1_espi_get_mon (adapter_t *adapter, u32 addr, u8 wait)
 
int t1_espi_get_mon_t204 (adapter_t *adapter, u32 *valp, u8 wait)
 

Macro Definition Documentation

#define ESPI_INTR_MASK
Value:

Definition at line 51 of file espi.c.

#define MON_MASK
Value:

Definition at line 53 of file espi.c.

#define TRICN_CMD_ATTEMPTS   10

Definition at line 59 of file espi.c.

#define TRICN_CMD_READ   0x11

Definition at line 57 of file espi.c.

#define TRICN_CMD_WRITE   0x21

Definition at line 58 of file espi.c.

#define TRICN_CNFG   14

Definition at line 56 of file espi.c.

Function Documentation

struct peespi* t1_espi_create ( adapter_t adapter)
read

Definition at line 291 of file espi.c.

void t1_espi_destroy ( struct peespi espi)

Definition at line 286 of file espi.c.

struct espi_intr_counts* t1_espi_get_intr_counts ( struct peespi espi)
read

Definition at line 183 of file espi.c.

u32 t1_espi_get_mon ( adapter_t adapter,
u32  addr,
u8  wait 
)

Definition at line 315 of file espi.c.

int t1_espi_get_mon_t204 ( adapter_t adapter,
u32 valp,
u8  wait 
)

Definition at line 346 of file espi.c.

int t1_espi_init ( struct peespi espi,
int  mac_type,
int  nports 
)

Definition at line 238 of file espi.c.

void t1_espi_intr_clear ( struct peespi espi)

Definition at line 134 of file espi.c.

void t1_espi_intr_disable ( struct peespi espi)

Definition at line 141 of file espi.c.

void t1_espi_intr_enable ( struct peespi espi)

Definition at line 118 of file espi.c.

int t1_espi_intr_handler ( struct peespi espi)

Definition at line 149 of file espi.c.