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

Go to the source code of this file.

Data Structures

struct  sbni_csr1
 
struct  sbni_in_stats
 
struct  sbni_flags
 

Macros

#define DP(A)
 
#define SBNI_PCI_VENDOR   0x55
 
#define SBNI_PCI_DEVICE   0x9f
 
#define ISA_MODE   0x00
 
#define PCI_MODE   0x01
 
#define SBNI_IO_EXTENT   4
 
#define PR_RES   0x80
 
#define FRAME_ACK_MASK   (unsigned short)0x7000
 
#define FRAME_LEN_MASK   (unsigned short)0x03FF
 
#define FRAME_FIRST   (unsigned short)0x8000
 
#define FRAME_RETRY   (unsigned short)0x0800
 
#define FRAME_SENT_BAD   (unsigned short)0x4000
 
#define FRAME_SENT_OK   (unsigned short)0x3000
 
#define DEF_RXL_DELTA   -1
 
#define DEF_RXL   0xf
 
#define SBNI_SIG   0x5a
 
#define SBNI_MIN_LEN   60 /* Shortest Ethernet frame without FCS */
 
#define SBNI_MAX_FRAME   1023
 
#define ETHER_MAX_LEN   1518
 
#define SBNI_TIMEOUT   (HZ/10)
 
#define TR_ERROR_COUNT   32
 
#define CHANGE_LEVEL_START_TICKS   4
 
#define SBNI_MAX_NUM_CARDS   16
 
#define SIOCDEVGETINSTATS   SIOCDEVPRIVATE
 
#define SIOCDEVRESINSTATS   SIOCDEVPRIVATE+1
 
#define SIOCDEVGHWSTATE   SIOCDEVPRIVATE+2
 
#define SIOCDEVSHWSTATE   SIOCDEVPRIVATE+3
 
#define SIOCDEVENSLAVE   SIOCDEVPRIVATE+4
 
#define SIOCDEVEMANSIPATE   SIOCDEVPRIVATE+5
 
#define CRC32(c, crc)   (crc32tab[((size_t)(crc) ^ (c)) & 0xff] ^ (((crc) >> 8) & 0x00FFFFFF))
 
#define CRC32_REMAINDER   0x2144DF1C
 
#define CRC32_INITIAL   0x00000000
 
#define __initdata
 

Enumerations

enum  sbni_reg { CSR0 = 0, CSR1 = 1, DAT = 2 }
 
enum  {
  BU_EMP = 0x02, RC_CHK = 0x04, CT_ZER = 0x08, TR_REQ = 0x10,
  TR_RDY = 0x20, EN_INT = 0x40, RC_RDY = 0x80
}
 
enum  {
  FL_WAIT_ACK = 0x01, FL_NEED_RESEND = 0x02, FL_PREV_OK = 0x04, FL_SLOW_MODE = 0x08,
  FL_SECONDARY = 0x10, FL_LINE_DOWN = 0x40
}
 
enum  { DEFAULT_IOBASEADDR = 0x210, DEFAULT_INTERRUPTNUMBER = 5, DEFAULT_RATE = 0, DEFAULT_FRAME_LEN = 1012 }
 

Macro Definition Documentation

#define __initdata

Definition at line 143 of file sbni.h.

#define CHANGE_LEVEL_START_TICKS   4

Definition at line 101 of file sbni.h.

#define CRC32 (   c,
  crc 
)    (crc32tab[((size_t)(crc) ^ (c)) & 0xff] ^ (((crc) >> 8) & 0x00FFFFFF))

Definition at line 135 of file sbni.h.

#define CRC32_INITIAL   0x00000000

Definition at line 140 of file sbni.h.

#define CRC32_REMAINDER   0x2144DF1C

Definition at line 139 of file sbni.h.

#define DEF_RXL   0xf

Definition at line 90 of file sbni.h.

#define DEF_RXL_DELTA   -1

Definition at line 89 of file sbni.h.

#define DP (   A)

Definition at line 12 of file sbni.h.

#define ETHER_MAX_LEN   1518

Definition at line 96 of file sbni.h.

#define FRAME_ACK_MASK   (unsigned short)0x7000

Definition at line 59 of file sbni.h.

#define FRAME_FIRST   (unsigned short)0x8000

Definition at line 61 of file sbni.h.

#define FRAME_LEN_MASK   (unsigned short)0x03FF

Definition at line 60 of file sbni.h.

#define FRAME_RETRY   (unsigned short)0x0800

Definition at line 62 of file sbni.h.

#define FRAME_SENT_BAD   (unsigned short)0x4000

Definition at line 64 of file sbni.h.

#define FRAME_SENT_OK   (unsigned short)0x3000

Definition at line 65 of file sbni.h.

#define ISA_MODE   0x00

Definition at line 20 of file sbni.h.

#define PCI_MODE   0x01

Definition at line 21 of file sbni.h.

#define PR_RES   0x80

Definition at line 44 of file sbni.h.

#define SBNI_IO_EXTENT   4

Definition at line 23 of file sbni.h.

#define SBNI_MAX_FRAME   1023

Definition at line 95 of file sbni.h.

#define SBNI_MAX_NUM_CARDS   16

Definition at line 103 of file sbni.h.

#define SBNI_MIN_LEN   60 /* Shortest Ethernet frame without FCS */

Definition at line 94 of file sbni.h.

#define SBNI_PCI_DEVICE   0x9f

Definition at line 18 of file sbni.h.

#define SBNI_PCI_VENDOR   0x55

Definition at line 17 of file sbni.h.

#define SBNI_SIG   0x5a

Definition at line 92 of file sbni.h.

#define SBNI_TIMEOUT   (HZ/10)

Definition at line 98 of file sbni.h.

#define SIOCDEVEMANSIPATE   SIOCDEVPRIVATE+5

Definition at line 120 of file sbni.h.

#define SIOCDEVENSLAVE   SIOCDEVPRIVATE+4

Definition at line 119 of file sbni.h.

#define SIOCDEVGETINSTATS   SIOCDEVPRIVATE

Definition at line 115 of file sbni.h.

#define SIOCDEVGHWSTATE   SIOCDEVPRIVATE+2

Definition at line 117 of file sbni.h.

#define SIOCDEVRESINSTATS   SIOCDEVPRIVATE+1

Definition at line 116 of file sbni.h.

#define SIOCDEVSHWSTATE   SIOCDEVPRIVATE+3

Definition at line 118 of file sbni.h.

#define TR_ERROR_COUNT   32

Definition at line 100 of file sbni.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
BU_EMP 
RC_CHK 
CT_ZER 
TR_REQ 
TR_RDY 
EN_INT 
RC_RDY 

Definition at line 32 of file sbni.h.

anonymous enum
Enumerator:
FL_WAIT_ACK 
FL_NEED_RESEND 
FL_PREV_OK 
FL_SLOW_MODE 
FL_SECONDARY 
FL_LINE_DOWN 

Definition at line 69 of file sbni.h.

anonymous enum
Enumerator:
DEFAULT_IOBASEADDR 
DEFAULT_INTERRUPTNUMBER 
DEFAULT_RATE 
DEFAULT_FRAME_LEN 

Definition at line 82 of file sbni.h.

enum sbni_reg
Enumerator:
CSR0 
CSR1 
DAT 

Definition at line 25 of file sbni.h.