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

Go to the source code of this file.

Macros

#define IDT_CMD_READ   0
 
#define IDT_CMD_WRITE   1
 
#define IDT_CMD_SEARCH   2
 
#define IDT_CMD_LEARN   3
 
#define IDT_LAR_ADR0   0x180006
 
#define IDT_LAR_MODE144   0xffff0000
 
#define IDT_SCR_ADR0   0x180000
 
#define IDT_SSR0_ADR0   0x180002
 
#define IDT_SSR1_ADR0   0x180004
 
#define IDT_GMR_BASE_ADR0   0x180020
 
#define IDT_DATARY_BASE_ADR0   0
 
#define IDT_MSKARY_BASE_ADR0   0x80000
 
#define IDT4_CMD_SEARCH144   3
 
#define IDT4_CMD_WRITE   4
 
#define IDT4_CMD_READ   5
 
#define IDT4_SCR_ADR0   0x3
 
#define IDT4_GMR_BASE0   0x10
 
#define IDT4_GMR_BASE1   0x20
 
#define IDT4_GMR_BASE2   0x30
 
#define IDT4_DATARY_BASE_ADR0   0x1000000
 
#define IDT4_MSKARY_BASE_ADR0   0x2000000
 
#define MAX_WRITE_ATTEMPTS   5
 
#define MAX_ROUTES   2048
 
#define MC5_INT_FATAL   (F_PARITYERR | F_REQQPARERR | F_DISPQPARERR)
 
#define K   * 1024
 

Enumerations

enum  { IDT75P52100 = 4, IDT75N43102 = 5 }
 
enum  { DBGI_MODE_MBUS = 0, DBGI_MODE_IDT52100 = 5 }
 

Functions

int t3_mc5_init (struct mc5 *mc5, unsigned int nservers, unsigned int nfilters, unsigned int nroutes)
 
void t3_mc5_intr_handler (struct mc5 *mc5)
 
void t3_mc5_prep (struct adapter *adapter, struct mc5 *mc5, int mode)
 

Macro Definition Documentation

#define IDT4_CMD_READ   5

Definition at line 71 of file mc5.c.

#define IDT4_CMD_SEARCH144   3

Definition at line 69 of file mc5.c.

#define IDT4_CMD_WRITE   4

Definition at line 70 of file mc5.c.

#define IDT4_DATARY_BASE_ADR0   0x1000000

Definition at line 82 of file mc5.c.

#define IDT4_GMR_BASE0   0x10

Definition at line 77 of file mc5.c.

#define IDT4_GMR_BASE1   0x20

Definition at line 78 of file mc5.c.

#define IDT4_GMR_BASE2   0x30

Definition at line 79 of file mc5.c.

#define IDT4_MSKARY_BASE_ADR0   0x2000000

Definition at line 83 of file mc5.c.

#define IDT4_SCR_ADR0   0x3

Definition at line 74 of file mc5.c.

#define IDT_CMD_LEARN   3

Definition at line 50 of file mc5.c.

#define IDT_CMD_READ   0

Definition at line 47 of file mc5.c.

#define IDT_CMD_SEARCH   2

Definition at line 49 of file mc5.c.

#define IDT_CMD_WRITE   1

Definition at line 48 of file mc5.c.

#define IDT_DATARY_BASE_ADR0   0

Definition at line 65 of file mc5.c.

#define IDT_GMR_BASE_ADR0   0x180020

Definition at line 62 of file mc5.c.

#define IDT_LAR_ADR0   0x180006

Definition at line 53 of file mc5.c.

#define IDT_LAR_MODE144   0xffff0000

Definition at line 54 of file mc5.c.

#define IDT_MSKARY_BASE_ADR0   0x80000

Definition at line 66 of file mc5.c.

#define IDT_SCR_ADR0   0x180000

Definition at line 57 of file mc5.c.

#define IDT_SSR0_ADR0   0x180002

Definition at line 58 of file mc5.c.

#define IDT_SSR1_ADR0   0x180004

Definition at line 59 of file mc5.c.

#define K   * 1024
#define MAX_ROUTES   2048

Definition at line 87 of file mc5.c.

#define MAX_WRITE_ATTEMPTS   5

Definition at line 85 of file mc5.c.

#define MC5_INT_FATAL   (F_PARITYERR | F_REQQPARERR | F_DISPQPARERR)

Definition at line 378 of file mc5.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
IDT75P52100 
IDT75N43102 

Definition at line 35 of file mc5.c.

anonymous enum
Enumerator:
DBGI_MODE_MBUS 
DBGI_MODE_IDT52100 

Definition at line 41 of file mc5.c.

Function Documentation

int t3_mc5_init ( struct mc5 mc5,
unsigned int  nservers,
unsigned int  nfilters,
unsigned int  nroutes 
)

Definition at line 323 of file mc5.c.

void t3_mc5_intr_handler ( struct mc5 mc5)

Definition at line 383 of file mc5.c.

void t3_mc5_prep ( struct adapter adapter,
struct mc5 mc5,
int  mode 
)

Definition at line 417 of file mc5.c.