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

Go to the source code of this file.

Data Structures

struct  slic_spinlock
 
struct  slic_rspqueue
 
struct  slic_rcvqueue
 
struct  slic_rcvbuf_info
 
struct  slic_handle_word
 
struct  slic_handle
 
struct  slic_hostcmd
 
struct  slic_cmdqmem
 
struct  slic_cmdqueue
 
struct  mcast_address
 
struct  slic_iface_stats
 
struct  sliccp_stats
 
struct  slicnet_stats
 
struct  ether_header
 
struct  sliccard
 
struct  physcard
 
struct  base_driver
 
struct  slic_shmem
 
struct  slic_reg_params
 
struct  slic_upr
 
struct  slic_ifevents
 
struct  adapter
 

Macros

#define OASIS_UCODE_VERS_STRING   "1.2"
 
#define OASIS_UCODE_VERS_DATE   "2006/03/27 15:10:37"
 
#define OASIS_UCODE_HOSTIF_ID   3
 
#define MOJAVE_UCODE_VERS_STRING   "1.2"
 
#define MOJAVE_UCODE_VERS_DATE   "2006/03/27 15:12:22"
 
#define MOJAVE_UCODE_HOSTIF_ID   3
 
#define GB_RCVUCODE_VERS_STRING   "1.2"
 
#define GB_RCVUCODE_VERS_DATE   "2006/03/27 15:12:15"
 
#define SECTION_SIZE   65536
 
#define SLIC_RSPQ_PAGES_GB   10
 
#define SLIC_RSPQ_BUFSINPAGE   (PAGE_SIZE / SLIC_RSPBUF_SIZE)
 
#define SLIC_RCVQ_EXPANSION   1
 
#define SLIC_RCVQ_ENTRIES   (256 * SLIC_RCVQ_EXPANSION)
 
#define SLIC_RCVQ_MINENTRIES   (SLIC_RCVQ_ENTRIES / 2)
 
#define SLIC_RCVQ_MAX_PROCESS_ISR   ((SLIC_RCVQ_ENTRIES * 4))
 
#define SLIC_RCVQ_RCVBUFSIZE   2048
 
#define SLIC_RCVQ_FILLENTRIES   (16 * SLIC_RCVQ_EXPANSION)
 
#define SLIC_RCVQ_FILLTHRESH   (SLIC_RCVQ_ENTRIES - SLIC_RCVQ_FILLENTRIES)
 
#define SLIC_HANDLE_FREE   0x0000
 
#define SLIC_HANDLE_DATA   0x0001
 
#define SLIC_HANDLE_CMD   0x0002
 
#define SLIC_HANDLE_CONTEXT   0x0003
 
#define SLIC_HANDLE_TEAM   0x0004
 
#define handle_index   handle.parts.index
 
#define handle_bottom   handle.parts.bottombits
 
#define handle_token   handle.whole
 
#define SLIC_HOSTCMD_SIZE   512
 
#define SLIC_CMDQ_CMDSINPAGE   (PAGE_SIZE / SLIC_HOSTCMD_SIZE)
 
#define SLIC_CMD_DUMB   3
 
#define SLIC_CMDQ_INITCMDS   256
 
#define SLIC_CMDQ_MAXCMDS   256
 
#define SLIC_CMDQ_MAXOUTSTAND   SLIC_CMDQ_MAXCMDS
 
#define SLIC_CMDQ_MAXPAGES   (SLIC_CMDQ_MAXCMDS / SLIC_CMDQ_CMDSINPAGE)
 
#define SLIC_CMDQ_INITPAGES   (SLIC_CMDQ_INITCMDS / SLIC_CMDQ_CMDSINPAGE)
 
#define SLIC_MAX_CARDS   32
 
#define SLIC_MAX_PORTS   4 /* Max # of ports per card */
 
#define CARD_DOWN   0x00000000
 
#define CARD_UP   0x00000001
 
#define CARD_FAIL   0x00000002
 
#define CARD_DIAG   0x00000003
 
#define CARD_SLEEP   0x00000004
 
#define ADAPT_DOWN   0x00
 
#define ADAPT_UP   0x01
 
#define ADAPT_FAIL   0x02
 
#define ADAPT_RESET   0x03
 
#define ADAPT_SLEEP   0x04
 
#define ADAPT_FLAGS_BOOTTIME   0x0001
 
#define ADAPT_FLAGS_IS64BIT   0x0002
 
#define ADAPT_FLAGS_PENDINGLINKDOWN   0x0004
 
#define ADAPT_FLAGS_FIBERMEDIA   0x0008
 
#define ADAPT_FLAGS_LOCKS_ALLOCED   0x0010
 
#define ADAPT_FLAGS_INT_REGISTERED   0x0020
 
#define ADAPT_FLAGS_LOAD_TIMER_SET   0x0040
 
#define ADAPT_FLAGS_STATS_TIMER_SET   0x0080
 
#define ADAPT_FLAGS_RESET_TIMER_SET   0x0100
 
#define LINK_DOWN   0x00
 
#define LINK_CONFIG   0x01
 
#define LINK_UP   0x02
 
#define LINK_10MB   0x00
 
#define LINK_100MB   0x01
 
#define LINK_AUTOSPEED   0x02
 
#define LINK_1000MB   0x03
 
#define LINK_10000MB   0x04
 
#define LINK_HALFD   0x00
 
#define LINK_FULLD   0x01
 
#define LINK_AUTOD   0x02
 
#define MAC_DIRECTED   0x00000001
 
#define MAC_BCAST   0x00000002
 
#define MAC_MCAST   0x00000004
 
#define MAC_PROMISC   0x00000008
 
#define MAC_LOOPBACK   0x00000010
 
#define MAC_ALLMCAST   0x00000020
 
#define SLIC_DUPLEX(x)   ((x == LINK_FULLD) ? "FDX" : "HDX")
 
#define SLIC_SPEED(x)
 
#define SLIC_LINKSTATE(x)   ((x == LINK_DOWN) ? "Down" : "Up ")
 
#define SLIC_ADAPTER_STATE(x)   ((x == ADAPT_UP) ? "UP" : "Down")
 
#define SLIC_CARD_STATE(x)   ((x == CARD_UP) ? "UP" : "Down")
 
#define SLIC_LOADTIMER_PERIOD   1
 
#define SLIC_INTAGG_DEFAULT   200
 
#define SLIC_LOAD_0   0
 
#define SLIC_INTAGG_0   0
 
#define SLIC_LOAD_1   8000
 
#define SLIC_LOAD_2   10000
 
#define SLIC_LOAD_3   12000
 
#define SLIC_LOAD_4   14000
 
#define SLIC_LOAD_5   16000
 
#define SLIC_INTAGG_1   50
 
#define SLIC_INTAGG_2   100
 
#define SLIC_INTAGG_3   150
 
#define SLIC_INTAGG_4   200
 
#define SLIC_INTAGG_5   250
 
#define SLIC_LOAD_1GB   3000
 
#define SLIC_LOAD_2GB   6000
 
#define SLIC_LOAD_3GB   12000
 
#define SLIC_LOAD_4GB   24000
 
#define SLIC_LOAD_5GB   48000
 
#define SLIC_INTAGG_1GB   50
 
#define SLIC_INTAGG_2GB   75
 
#define SLIC_INTAGG_3GB   100
 
#define SLIC_INTAGG_4GB   100
 
#define SLIC_INTAGG_5GB   100
 
#define NUM_CFG_SPACES   2
 
#define NUM_CFG_REGS   64
 
#define NUM_CFG_REG_ULONGS   (NUM_CFG_REGS / sizeof(u32))
 
#define UPDATE_STATS(largestat, newstat, oldstat)
 
#define UPDATE_STATS_GB(largestat, newstat, oldstat)
 
#define FLUSH   true
 
#define DONT_FLUSH   false
 
#define SIOCSLICDUMPCARD   (SIOCDEVPRIVATE+9)
 
#define SIOCSLICSETINTAGG   (SIOCDEVPRIVATE+10)
 
#define SIOCSLICTRACEDUMP   (SIOCDEVPRIVATE+11)
 

Macro Definition Documentation

#define ADAPT_DOWN   0x00

Definition at line 186 of file slic.h.

#define ADAPT_FAIL   0x02

Definition at line 188 of file slic.h.

#define ADAPT_FLAGS_BOOTTIME   0x0001

Definition at line 192 of file slic.h.

#define ADAPT_FLAGS_FIBERMEDIA   0x0008

Definition at line 195 of file slic.h.

#define ADAPT_FLAGS_INT_REGISTERED   0x0020

Definition at line 197 of file slic.h.

#define ADAPT_FLAGS_IS64BIT   0x0002

Definition at line 193 of file slic.h.

#define ADAPT_FLAGS_LOAD_TIMER_SET   0x0040

Definition at line 198 of file slic.h.

#define ADAPT_FLAGS_LOCKS_ALLOCED   0x0010

Definition at line 196 of file slic.h.

#define ADAPT_FLAGS_PENDINGLINKDOWN   0x0004

Definition at line 194 of file slic.h.

#define ADAPT_FLAGS_RESET_TIMER_SET   0x0100

Definition at line 200 of file slic.h.

#define ADAPT_FLAGS_STATS_TIMER_SET   0x0080

Definition at line 199 of file slic.h.

#define ADAPT_RESET   0x03

Definition at line 189 of file slic.h.

#define ADAPT_SLEEP   0x04

Definition at line 190 of file slic.h.

#define ADAPT_UP   0x01

Definition at line 187 of file slic.h.

#define CARD_DIAG   0x00000003

Definition at line 183 of file slic.h.

#define CARD_DOWN   0x00000000

Definition at line 180 of file slic.h.

#define CARD_FAIL   0x00000002

Definition at line 182 of file slic.h.

#define CARD_SLEEP   0x00000004

Definition at line 184 of file slic.h.

#define CARD_UP   0x00000001

Definition at line 181 of file slic.h.

#define DONT_FLUSH   false

Definition at line 531 of file slic.h.

#define FLUSH   true

Definition at line 530 of file slic.h.

#define GB_RCVUCODE_VERS_DATE   "2006/03/27 15:12:15"

Definition at line 54 of file slic.h.

#define GB_RCVUCODE_VERS_STRING   "1.2"

Definition at line 53 of file slic.h.

#define handle_bottom   handle.parts.bottombits

Definition at line 131 of file slic.h.

#define handle_index   handle.parts.index

Definition at line 130 of file slic.h.

#define handle_token   handle.whole

Definition at line 132 of file slic.h.

#define LINK_10000MB   0x04

Definition at line 210 of file slic.h.

#define LINK_1000MB   0x03

Definition at line 209 of file slic.h.

#define LINK_100MB   0x01

Definition at line 207 of file slic.h.

#define LINK_10MB   0x00

Definition at line 206 of file slic.h.

#define LINK_AUTOD   0x02

Definition at line 214 of file slic.h.

#define LINK_AUTOSPEED   0x02

Definition at line 208 of file slic.h.

#define LINK_CONFIG   0x01

Definition at line 203 of file slic.h.

#define LINK_DOWN   0x00

Definition at line 202 of file slic.h.

#define LINK_FULLD   0x01

Definition at line 213 of file slic.h.

#define LINK_HALFD   0x00

Definition at line 212 of file slic.h.

#define LINK_UP   0x02

Definition at line 204 of file slic.h.

#define MAC_ALLMCAST   0x00000020

Definition at line 221 of file slic.h.

#define MAC_BCAST   0x00000002

Definition at line 217 of file slic.h.

#define MAC_DIRECTED   0x00000001

Definition at line 216 of file slic.h.

#define MAC_LOOPBACK   0x00000010

Definition at line 220 of file slic.h.

#define MAC_MCAST   0x00000004

Definition at line 218 of file slic.h.

#define MAC_PROMISC   0x00000008

Definition at line 219 of file slic.h.

#define MOJAVE_UCODE_HOSTIF_ID   3

Definition at line 51 of file slic.h.

#define MOJAVE_UCODE_VERS_DATE   "2006/03/27 15:12:22"

Definition at line 50 of file slic.h.

#define MOJAVE_UCODE_VERS_STRING   "1.2"

Definition at line 49 of file slic.h.

#define NUM_CFG_REG_ULONGS   (NUM_CFG_REGS / sizeof(u32))

Definition at line 337 of file slic.h.

#define NUM_CFG_REGS   64

Definition at line 336 of file slic.h.

#define NUM_CFG_SPACES   2

Definition at line 335 of file slic.h.

#define OASIS_UCODE_HOSTIF_ID   3

Definition at line 47 of file slic.h.

#define OASIS_UCODE_VERS_DATE   "2006/03/27 15:10:37"

Definition at line 46 of file slic.h.

#define OASIS_UCODE_VERS_STRING   "1.2"

Definition at line 45 of file slic.h.

#define SECTION_SIZE   65536

Definition at line 57 of file slic.h.

#define SIOCSLICDUMPCARD   (SIOCDEVPRIVATE+9)

Definition at line 533 of file slic.h.

#define SIOCSLICSETINTAGG   (SIOCDEVPRIVATE+10)

Definition at line 534 of file slic.h.

#define SIOCSLICTRACEDUMP   (SIOCDEVPRIVATE+11)

Definition at line 535 of file slic.h.

#define SLIC_ADAPTER_STATE (   x)    ((x == ADAPT_UP) ? "UP" : "Down")

Definition at line 227 of file slic.h.

#define SLIC_CARD_STATE (   x)    ((x == CARD_UP) ? "UP" : "Down")

Definition at line 228 of file slic.h.

#define SLIC_CMD_DUMB   3

Definition at line 151 of file slic.h.

#define SLIC_CMDQ_CMDSINPAGE   (PAGE_SIZE / SLIC_HOSTCMD_SIZE)

Definition at line 150 of file slic.h.

#define SLIC_CMDQ_INITCMDS   256

Definition at line 152 of file slic.h.

#define SLIC_CMDQ_INITPAGES   (SLIC_CMDQ_INITCMDS / SLIC_CMDQ_CMDSINPAGE)

Definition at line 156 of file slic.h.

#define SLIC_CMDQ_MAXCMDS   256

Definition at line 153 of file slic.h.

#define SLIC_CMDQ_MAXOUTSTAND   SLIC_CMDQ_MAXCMDS

Definition at line 154 of file slic.h.

#define SLIC_CMDQ_MAXPAGES   (SLIC_CMDQ_MAXCMDS / SLIC_CMDQ_CMDSINPAGE)

Definition at line 155 of file slic.h.

#define SLIC_DUPLEX (   x)    ((x == LINK_FULLD) ? "FDX" : "HDX")

Definition at line 223 of file slic.h.

#define SLIC_HANDLE_CMD   0x0002

Definition at line 126 of file slic.h.

#define SLIC_HANDLE_CONTEXT   0x0003

Definition at line 127 of file slic.h.

#define SLIC_HANDLE_DATA   0x0001

Definition at line 125 of file slic.h.

#define SLIC_HANDLE_FREE   0x0000

Definition at line 124 of file slic.h.

#define SLIC_HANDLE_TEAM   0x0004

Definition at line 128 of file slic.h.

#define SLIC_HOSTCMD_SIZE   512

Definition at line 134 of file slic.h.

#define SLIC_INTAGG_0   0

Definition at line 265 of file slic.h.

#define SLIC_INTAGG_1   50

Definition at line 271 of file slic.h.

#define SLIC_INTAGG_1GB   50

Definition at line 281 of file slic.h.

#define SLIC_INTAGG_2   100

Definition at line 272 of file slic.h.

#define SLIC_INTAGG_2GB   75

Definition at line 282 of file slic.h.

#define SLIC_INTAGG_3   150

Definition at line 273 of file slic.h.

#define SLIC_INTAGG_3GB   100

Definition at line 283 of file slic.h.

#define SLIC_INTAGG_4   200

Definition at line 274 of file slic.h.

#define SLIC_INTAGG_4GB   100

Definition at line 284 of file slic.h.

#define SLIC_INTAGG_5   250

Definition at line 275 of file slic.h.

#define SLIC_INTAGG_5GB   100

Definition at line 285 of file slic.h.

#define SLIC_INTAGG_DEFAULT   200

Definition at line 263 of file slic.h.

#define SLIC_LINKSTATE (   x)    ((x == LINK_DOWN) ? "Down" : "Up ")

Definition at line 226 of file slic.h.

#define SLIC_LOAD_0   0

Definition at line 264 of file slic.h.

#define SLIC_LOAD_1   8000

Definition at line 266 of file slic.h.

#define SLIC_LOAD_1GB   3000

Definition at line 276 of file slic.h.

#define SLIC_LOAD_2   10000

Definition at line 267 of file slic.h.

#define SLIC_LOAD_2GB   6000

Definition at line 277 of file slic.h.

#define SLIC_LOAD_3   12000

Definition at line 268 of file slic.h.

#define SLIC_LOAD_3GB   12000

Definition at line 278 of file slic.h.

#define SLIC_LOAD_4   14000

Definition at line 269 of file slic.h.

#define SLIC_LOAD_4GB   24000

Definition at line 279 of file slic.h.

#define SLIC_LOAD_5   16000

Definition at line 270 of file slic.h.

#define SLIC_LOAD_5GB   48000

Definition at line 280 of file slic.h.

#define SLIC_LOADTIMER_PERIOD   1

Definition at line 262 of file slic.h.

#define SLIC_MAX_CARDS   32

Definition at line 171 of file slic.h.

#define SLIC_MAX_PORTS   4 /* Max # of ports per card */

Definition at line 172 of file slic.h.

#define SLIC_RCVQ_ENTRIES   (256 * SLIC_RCVQ_EXPANSION)

Definition at line 77 of file slic.h.

#define SLIC_RCVQ_EXPANSION   1

Definition at line 76 of file slic.h.

#define SLIC_RCVQ_FILLENTRIES   (16 * SLIC_RCVQ_EXPANSION)

Definition at line 81 of file slic.h.

#define SLIC_RCVQ_FILLTHRESH   (SLIC_RCVQ_ENTRIES - SLIC_RCVQ_FILLENTRIES)

Definition at line 82 of file slic.h.

#define SLIC_RCVQ_MAX_PROCESS_ISR   ((SLIC_RCVQ_ENTRIES * 4))

Definition at line 79 of file slic.h.

#define SLIC_RCVQ_MINENTRIES   (SLIC_RCVQ_ENTRIES / 2)

Definition at line 78 of file slic.h.

#define SLIC_RCVQ_RCVBUFSIZE   2048

Definition at line 80 of file slic.h.

#define SLIC_RSPQ_BUFSINPAGE   (PAGE_SIZE / SLIC_RSPBUF_SIZE)

Definition at line 65 of file slic.h.

#define SLIC_RSPQ_PAGES_GB   10

Definition at line 64 of file slic.h.

#define SLIC_SPEED (   x)
Value:
((x == LINK_100MB) ? "100Mb" : ((x == LINK_1000MB) ?\
"1000Mb" : " 10Mb"))

Definition at line 224 of file slic.h.

#define UPDATE_STATS (   largestat,
  newstat,
  oldstat 
)
Value:
{ \
if ((newstat) < (oldstat)) \
(largestat) += ((newstat) + (0xFFFFFFFF - oldstat + 1)); \
else \
(largestat) += ((newstat) - (oldstat)); \
}

Definition at line 505 of file slic.h.

#define UPDATE_STATS_GB (   largestat,
  newstat,
  oldstat 
)
Value:
{ \
(largestat) += ((newstat) - (oldstat)); \
}

Definition at line 513 of file slic.h.