Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
eexpress.h File Reference

Go to the source code of this file.

Data Structures

struct  rfd_header
 

Macros

#define DATAPORT   0x0000
 
#define WRITE_PTR   0x0002
 
#define READ_PTR   0x0004
 
#define SIGNAL_CA   0x0006
 
#define SET_IRQ   0x0007
 
#define SM_PTR   0x0008
 
#define MEM_Dec   0x000a
 
#define MEM_Ctrl   0x000b
 
#define MEM_Page_Ctrl   0x000c
 
#define Config   0x000d
 
#define EEPROM_Ctrl   0x000e
 
#define ID_PORT   0x000f
 
#define MEM_ECtrl   0x000f
 
#define SIRQ_en   0x08
 
#define SIRQ_dis   0x00
 
#define EC_Clk   0x01
 
#define EC_CS   0x02
 
#define EC_Wr   0x04
 
#define EC_Rd   0x08
 
#define ASIC_RST   0x40
 
#define i586_RST   0x80
 
#define eeprom_delay()   { udelay(40); }
 
#define SCP_START   0xfff6
 
#define ISCP_START   0x0000
 
#define SCB_START   0x0008
 
#define TX_BUF_START   0x0100
 
#define TX_BUF_SIZE   ((24+ETH_FRAME_LEN+31)&~0x1f)
 
#define RX_BUF_SIZE   ((32+ETH_FRAME_LEN+31)&~0x1f)
 
#define SCB_complete(s)   (((s) & 0x8000) != 0)
 
#define SCB_rxdframe(s)   (((s) & 0x4000) != 0)
 
#define SCB_CUdead(s)   (((s) & 0x2000) != 0)
 
#define SCB_RUdead(s)   (((s) & 0x1000) != 0)
 
#define SCB_ack(s)   ((s) & 0xf000)
 
#define SCB_CUstat(s)   (((s)&0x0300)>>8)
 
#define SCB_RUstat(s)   (((s)&0x0070)>>4)
 
#define SCB_CUnop   0x0000
 
#define SCB_CUstart   0x0100
 
#define SCB_CUresume   0x0200
 
#define SCB_CUsuspend   0x0300
 
#define SCB_CUabort   0x0400
 
#define SCB_resetchip   0x0080
 
#define SCB_RUnop   0x0000
 
#define SCB_RUstart   0x0010
 
#define SCB_RUresume   0x0020
 
#define SCB_RUsuspend   0x0030
 
#define SCB_RUabort   0x0040
 
#define Stat_Done(s)   (((s) & 0x8000) != 0)
 
#define Stat_Busy(s)   (((s) & 0x4000) != 0)
 
#define Stat_OK(s)   (((s) & 0x2000) != 0)
 
#define Stat_Abort(s)   (((s) & 0x1000) != 0)
 
#define Stat_STFail   (((s) & 0x0800) != 0)
 
#define Stat_TNoCar(s)   (((s) & 0x0400) != 0)
 
#define Stat_TNoCTS(s)   (((s) & 0x0200) != 0)
 
#define Stat_TNoDMA(s)   (((s) & 0x0100) != 0)
 
#define Stat_TDefer(s)   (((s) & 0x0080) != 0)
 
#define Stat_TColl(s)   (((s) & 0x0040) != 0)
 
#define Stat_TXColl(s)   (((s) & 0x0020) != 0)
 
#define Stat_NoColl(s)   ((s) & 0x000f)
 
#define Cmd_END   0x8000
 
#define Cmd_SUS   0x4000
 
#define Cmd_INT   0x2000
 
#define Cmd_Nop   0x0000
 
#define Cmd_SetAddr   0x0001
 
#define Cmd_Config   0x0002
 
#define Cmd_MCast   0x0003
 
#define Cmd_Xmit   0x0004
 
#define Cmd_TDR   0x0005
 
#define Cmd_Dump   0x0006
 
#define Cmd_Diag   0x0007
 
#define FD_Done(s)   (((s) & 0x8000) != 0)
 
#define FD_Busy(s)   (((s) & 0x4000) != 0)
 
#define FD_OK(s)   (((s) & 0x2000) != 0)
 
#define FD_CRC(s)   (((s) & 0x0800) != 0)
 
#define FD_Align(s)   (((s) & 0x0400) != 0)
 
#define FD_Resrc(s)   (((s) & 0x0200) != 0)
 
#define FD_DMA(s)   (((s) & 0x0100) != 0)
 
#define FD_Short(s)   (((s) & 0x0080) != 0)
 
#define FD_NoEOF(s)   (((s) & 0x0040) != 0)
 
#define TDR_LINKOK   (1<<15)
 
#define TDR_XCVRPROBLEM   (1<<14)
 
#define TDR_OPEN   (1<<13)
 
#define TDR_SHORT   (1<<12)
 
#define TDR_TIME   0x7ff
 

Macro Definition Documentation

#define ASIC_RST   0x40

Definition at line 37 of file eexpress.h.

#define Cmd_Config   0x0002

Definition at line 127 of file eexpress.h.

#define Cmd_Diag   0x0007

Definition at line 132 of file eexpress.h.

#define Cmd_Dump   0x0006

Definition at line 131 of file eexpress.h.

#define Cmd_END   0x8000

Definition at line 121 of file eexpress.h.

#define Cmd_INT   0x2000

Definition at line 123 of file eexpress.h.

#define Cmd_MCast   0x0003

Definition at line 128 of file eexpress.h.

#define Cmd_Nop   0x0000

Definition at line 125 of file eexpress.h.

#define Cmd_SetAddr   0x0001

Definition at line 126 of file eexpress.h.

#define Cmd_SUS   0x4000

Definition at line 122 of file eexpress.h.

#define Cmd_TDR   0x0005

Definition at line 130 of file eexpress.h.

#define Cmd_Xmit   0x0004

Definition at line 129 of file eexpress.h.

#define Config   0x000d

Definition at line 19 of file eexpress.h.

#define DATAPORT   0x0000

Definition at line 10 of file eexpress.h.

#define EC_Clk   0x01

Definition at line 33 of file eexpress.h.

#define EC_CS   0x02

Definition at line 34 of file eexpress.h.

#define EC_Rd   0x08

Definition at line 36 of file eexpress.h.

#define EC_Wr   0x04

Definition at line 35 of file eexpress.h.

#define EEPROM_Ctrl   0x000e

Definition at line 20 of file eexpress.h.

#define eeprom_delay (   void)    { udelay(40); }

Definition at line 40 of file eexpress.h.

#define FD_Align (   s)    (((s) & 0x0400) != 0)

Definition at line 144 of file eexpress.h.

#define FD_Busy (   s)    (((s) & 0x4000) != 0)

Definition at line 140 of file eexpress.h.

#define FD_CRC (   s)    (((s) & 0x0800) != 0)

Definition at line 143 of file eexpress.h.

#define FD_DMA (   s)    (((s) & 0x0100) != 0)

Definition at line 146 of file eexpress.h.

#define FD_Done (   s)    (((s) & 0x8000) != 0)

Definition at line 139 of file eexpress.h.

#define FD_NoEOF (   s)    (((s) & 0x0040) != 0)

Definition at line 148 of file eexpress.h.

#define FD_OK (   s)    (((s) & 0x2000) != 0)

Definition at line 141 of file eexpress.h.

#define FD_Resrc (   s)    (((s) & 0x0200) != 0)

Definition at line 145 of file eexpress.h.

#define FD_Short (   s)    (((s) & 0x0080) != 0)

Definition at line 147 of file eexpress.h.

#define i586_RST   0x80

Definition at line 38 of file eexpress.h.

#define ID_PORT   0x000f

Definition at line 21 of file eexpress.h.

#define ISCP_START   0x0000

Definition at line 50 of file eexpress.h.

#define MEM_Ctrl   0x000b

Definition at line 17 of file eexpress.h.

#define MEM_Dec   0x000a

Definition at line 16 of file eexpress.h.

#define MEM_ECtrl   0x000f

Definition at line 22 of file eexpress.h.

#define MEM_Page_Ctrl   0x000c

Definition at line 18 of file eexpress.h.

#define READ_PTR   0x0004

Definition at line 12 of file eexpress.h.

#define RX_BUF_SIZE   ((32+ETH_FRAME_LEN+31)&~0x1f)

Definition at line 64 of file eexpress.h.

#define SCB_ack (   s)    ((s) & 0xf000)

Definition at line 75 of file eexpress.h.

#define SCB_complete (   s)    (((s) & 0x8000) != 0)

Definition at line 71 of file eexpress.h.

#define SCB_CUabort   0x0400

Definition at line 88 of file eexpress.h.

#define SCB_CUdead (   s)    (((s) & 0x2000) != 0)

Definition at line 73 of file eexpress.h.

#define SCB_CUnop   0x0000

Definition at line 84 of file eexpress.h.

#define SCB_CUresume   0x0200

Definition at line 86 of file eexpress.h.

#define SCB_CUstart   0x0100

Definition at line 85 of file eexpress.h.

#define SCB_CUstat (   s)    (((s)&0x0300)>>8)

Definition at line 78 of file eexpress.h.

#define SCB_CUsuspend   0x0300

Definition at line 87 of file eexpress.h.

#define SCB_resetchip   0x0080

Definition at line 89 of file eexpress.h.

#define SCB_RUabort   0x0040

Definition at line 95 of file eexpress.h.

#define SCB_RUdead (   s)    (((s) & 0x1000) != 0)

Definition at line 74 of file eexpress.h.

#define SCB_RUnop   0x0000

Definition at line 91 of file eexpress.h.

#define SCB_RUresume   0x0020

Definition at line 93 of file eexpress.h.

#define SCB_RUstart   0x0010

Definition at line 92 of file eexpress.h.

#define SCB_RUstat (   s)    (((s)&0x0070)>>4)

Definition at line 81 of file eexpress.h.

#define SCB_RUsuspend   0x0030

Definition at line 94 of file eexpress.h.

#define SCB_rxdframe (   s)    (((s) & 0x4000) != 0)

Definition at line 72 of file eexpress.h.

#define SCB_START   0x0008

Definition at line 53 of file eexpress.h.

#define SCP_START   0xfff6

Definition at line 47 of file eexpress.h.

#define SET_IRQ   0x0007

Definition at line 14 of file eexpress.h.

#define SIGNAL_CA   0x0006

Definition at line 13 of file eexpress.h.

#define SIRQ_dis   0x00

Definition at line 30 of file eexpress.h.

#define SIRQ_en   0x08

Definition at line 29 of file eexpress.h.

#define SM_PTR   0x0008

Definition at line 15 of file eexpress.h.

#define Stat_Abort (   s)    (((s) & 0x1000) != 0)

Definition at line 104 of file eexpress.h.

#define Stat_Busy (   s)    (((s) & 0x4000) != 0)

Definition at line 102 of file eexpress.h.

#define Stat_Done (   s)    (((s) & 0x8000) != 0)

Definition at line 101 of file eexpress.h.

#define Stat_NoColl (   s)    ((s) & 0x000f)

Definition at line 112 of file eexpress.h.

#define Stat_OK (   s)    (((s) & 0x2000) != 0)

Definition at line 103 of file eexpress.h.

#define Stat_STFail   (((s) & 0x0800) != 0)

Definition at line 105 of file eexpress.h.

#define Stat_TColl (   s)    (((s) & 0x0040) != 0)

Definition at line 110 of file eexpress.h.

#define Stat_TDefer (   s)    (((s) & 0x0080) != 0)

Definition at line 109 of file eexpress.h.

#define Stat_TNoCar (   s)    (((s) & 0x0400) != 0)

Definition at line 106 of file eexpress.h.

#define Stat_TNoCTS (   s)    (((s) & 0x0200) != 0)

Definition at line 107 of file eexpress.h.

#define Stat_TNoDMA (   s)    (((s) & 0x0100) != 0)

Definition at line 108 of file eexpress.h.

#define Stat_TXColl (   s)    (((s) & 0x0020) != 0)

Definition at line 111 of file eexpress.h.

#define TDR_LINKOK   (1<<15)

Definition at line 175 of file eexpress.h.

#define TDR_OPEN   (1<<13)

Definition at line 177 of file eexpress.h.

#define TDR_SHORT   (1<<12)

Definition at line 178 of file eexpress.h.

#define TDR_TIME   0x7ff

Definition at line 179 of file eexpress.h.

#define TDR_XCVRPROBLEM   (1<<14)

Definition at line 176 of file eexpress.h.

#define TX_BUF_SIZE   ((24+ETH_FRAME_LEN+31)&~0x1f)

Definition at line 63 of file eexpress.h.

#define TX_BUF_START   0x0100

Definition at line 61 of file eexpress.h.

#define WRITE_PTR   0x0002

Definition at line 11 of file eexpress.h.