Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations
nicstar.h File Reference
#include <linux/types.h>
#include <linux/pci.h>
#include <linux/idr.h>
#include <linux/uio.h>
#include <linux/skbuff.h>
#include <linux/atmdev.h>
#include <linux/atm_nicstar.h>

Go to the source code of this file.

Data Structures

struct  ns_rsqe
 
struct  cell_payload
 
struct  ns_rcqe
 
struct  ns_scqe
 
struct  ns_tsi
 
struct  ns_rcte
 
struct  ns_fbd
 
struct  ns_scd
 
struct  ns_skb_prv
 
struct  tsq_info
 
struct  scq_info
 
struct  rsq_info
 
struct  skb_pool
 
struct  vc_map
 
struct  ns_dev
 

Macros

#define NS_MAX_CARDS
 
#define NS_TST_NUM_ENTRIES   2340 /* + 1 for return */
 
#define NS_TST_RESERVED   340 /* N. entries reserved for UBR/ABR/VBR */
 
#define NS_SMBUFSIZE   48 /* 48, 96, 240 or 2048 */
 
#define NS_LGBUFSIZE   16384 /* 2048, 4096, 8192 or 16384 */
 
#define NS_RSQSIZE   8192 /* 2048, 4096 or 8192 */
 
#define NS_VPIBITS   2 /* 0, 1, 2, or 8 */
 
#define NS_MAX_RCTSIZE
 
#define NUM_SB   32 /* Must be even */
 
#define NUM_LB   24 /* Must be even */
 
#define NUM_HB   8 /* Pre-allocated huge buffers */
 
#define NUM_IOVB   48 /* Iovec buffers */
 
#define MIN_SB   8 /* Must be even */
 
#define MIN_LB   8 /* Must be even */
 
#define MIN_HB   6
 
#define MIN_IOVB   8
 
#define MAX_SB   64 /* Must be even, <= 508 */
 
#define MAX_LB   48 /* Must be even, <= 508 */
 
#define MAX_HB   10
 
#define MAX_IOVB   80
 
#define TOP_SB   256 /* Must be even, <= 508 */
 
#define TOP_LB   128 /* Must be even, <= 508 */
 
#define TOP_HB   64
 
#define TOP_IOVB   256
 
#define MAX_TBD_PER_VC   1 /* Number of TBDs before a TSR */
 
#define MAX_TBD_PER_SCQ   10 /* Only meaningful for variable rate SCQs */
 
#define SCQFULL_TIMEOUT   (5 * HZ)
 
#define NS_POLL_PERIOD   (HZ)
 
#define PCR_TOLERANCE   (1.0001)
 
#define NICSTAR_EPROM_MAC_ADDR_OFFSET   0x6C
 
#define NICSTAR_EPROM_MAC_ADDR_OFFSET_ALT   0xF6
 
#define NS_IOREMAP_SIZE   4096
 
#define BUF_SM   0x00000000 /* These two are used for push_rxbufs() */
 
#define BUF_LG   0x00000001 /* CMD, Write_FreeBufQ, LBUF bit */
 
#define BUF_NONE   0xffffffff /* Software only: */
 
#define NS_HBUFSIZE   65568 /* Size of max. AAL5 PDU */
 
#define NS_MAX_IOVECS
 
#define NS_IOVBUFSIZE   (NS_MAX_IOVECS * (sizeof(struct iovec)))
 
#define NS_SMBUFSIZE_USABLE   (NS_SMBUFSIZE - NS_SMBUFSIZE % 48)
 
#define NS_LGBUFSIZE_USABLE   (NS_LGBUFSIZE - NS_LGBUFSIZE % 48)
 
#define NS_AAL0_HEADER   (ATM_AAL0_SDU - ATM_CELL_PAYLOAD) /* 4 bytes */
 
#define NS_SMSKBSIZE   (NS_SMBUFSIZE + NS_AAL0_HEADER)
 
#define NS_LGSKBSIZE   (NS_SMBUFSIZE + NS_LGBUFSIZE)
 
#define ns_rsqe_vpi(ns_rsqep)   ((le32_to_cpu((ns_rsqep)->word_1) & 0x00FF0000) >> 16)
 
#define ns_rsqe_vci(ns_rsqep)   (le32_to_cpu((ns_rsqep)->word_1) & 0x0000FFFF)
 
#define NS_RSQE_VALID   0x80000000
 
#define NS_RSQE_NZGFC   0x00004000
 
#define NS_RSQE_EOPDU   0x00002000
 
#define NS_RSQE_BUFSIZE   0x00001000
 
#define NS_RSQE_CONGESTION   0x00000800
 
#define NS_RSQE_CLP   0x00000400
 
#define NS_RSQE_CRCERR   0x00000200
 
#define NS_RSQE_BUFSIZE_SM   0x00000000
 
#define NS_RSQE_BUFSIZE_LG   0x00001000
 
#define ns_rsqe_valid(ns_rsqep)   (le32_to_cpu((ns_rsqep)->word_4) & NS_RSQE_VALID)
 
#define ns_rsqe_nzgfc(ns_rsqep)   (le32_to_cpu((ns_rsqep)->word_4) & NS_RSQE_NZGFC)
 
#define ns_rsqe_eopdu(ns_rsqep)   (le32_to_cpu((ns_rsqep)->word_4) & NS_RSQE_EOPDU)
 
#define ns_rsqe_bufsize(ns_rsqep)   (le32_to_cpu((ns_rsqep)->word_4) & NS_RSQE_BUFSIZE)
 
#define ns_rsqe_congestion(ns_rsqep)   (le32_to_cpu((ns_rsqep)->word_4) & NS_RSQE_CONGESTION)
 
#define ns_rsqe_clp(ns_rsqep)   (le32_to_cpu((ns_rsqep)->word_4) & NS_RSQE_CLP)
 
#define ns_rsqe_crcerr(ns_rsqep)   (le32_to_cpu((ns_rsqep)->word_4) & NS_RSQE_CRCERR)
 
#define ns_rsqe_cellcount(ns_rsqep)   (le32_to_cpu((ns_rsqep)->word_4) & 0x000001FF)
 
#define ns_rsqe_init(ns_rsqep)   ((ns_rsqep)->word_4 = cpu_to_le32(0x00000000))
 
#define NS_RSQ_NUM_ENTRIES   (NS_RSQSIZE / 16)
 
#define NS_RSQ_ALIGNMENT   NS_RSQSIZE
 
#define NS_RCQE_SIZE   64 /* bytes */
 
#define ns_rcqe_islast(ns_rcqep)   (le32_to_cpu((ns_rcqep)->word_2) != 0x00000000)
 
#define ns_rcqe_cellheader(ns_rcqep)   (le32_to_cpu((ns_rcqep)->word_1))
 
#define ns_rcqe_nextbufhandle(ns_rcqep)   (le32_to_cpu((ns_rcqep)->word_2))
 
#define NS_SCQE_TYPE_TBD   0x00000000
 
#define NS_SCQE_TYPE_TSR   0x80000000
 
#define NS_TBD_EOPDU   0x40000000
 
#define NS_TBD_AAL0   0x00000000
 
#define NS_TBD_AAL34   0x04000000
 
#define NS_TBD_AAL5   0x08000000
 
#define NS_TBD_VPI_MASK   0x0FF00000
 
#define NS_TBD_VCI_MASK   0x000FFFF0
 
#define NS_TBD_VC_MASK   (NS_TBD_VPI_MASK | NS_TBD_VCI_MASK)
 
#define NS_TBD_VPI_SHIFT   20
 
#define NS_TBD_VCI_SHIFT   4
 
#define ns_tbd_mkword_1(flags, m, n, buflen)   (cpu_to_le32((flags) | (m) << 23 | (n) << 16 | (buflen)))
 
#define ns_tbd_mkword_1_novbr(flags, buflen)   (cpu_to_le32((flags) | (buflen) | 0x00810000))
 
#define ns_tbd_mkword_3(control, pdulen)   (cpu_to_le32((control) << 16 | (pdulen)))
 
#define ns_tbd_mkword_4(gfc, vpi, vci, pt, clp)   (cpu_to_le32((gfc) << 28 | (vpi) << 20 | (vci) << 4 | (pt) << 1 | (clp)))
 
#define NS_TSR_INTENABLE   0x20000000
 
#define NS_TSR_SCDISVBR   0xFFFF /* Use as scdi for VBR SCD */
 
#define ns_tsr_mkword_1(flags)   (cpu_to_le32(NS_SCQE_TYPE_TSR | (flags)))
 
#define ns_tsr_mkword_2(scdi, scqi)   (cpu_to_le32((scdi) << 16 | 0x00008000 | (scqi)))
 
#define ns_scqe_is_tsr(ns_scqep)   (le32_to_cpu((ns_scqep)->word_1) & NS_SCQE_TYPE_TSR)
 
#define VBR_SCQ_NUM_ENTRIES   512
 
#define VBR_SCQSIZE   8192
 
#define CBR_SCQ_NUM_ENTRIES   64
 
#define CBR_SCQSIZE   1024
 
#define NS_SCQE_SIZE   16
 
#define NS_TSI_EMPTY   0x80000000
 
#define NS_TSI_TIMESTAMP_MASK   0x00FFFFFF
 
#define ns_tsi_isempty(ns_tsip)   (le32_to_cpu((ns_tsip)->word_2) & NS_TSI_EMPTY)
 
#define ns_tsi_gettimestamp(ns_tsip)   (le32_to_cpu((ns_tsip)->word_2) & NS_TSI_TIMESTAMP_MASK)
 
#define ns_tsi_init(ns_tsip)   ((ns_tsip)->word_2 = cpu_to_le32(NS_TSI_EMPTY))
 
#define NS_TSQSIZE   8192
 
#define NS_TSQ_NUM_ENTRIES   1024
 
#define NS_TSQ_ALIGNMENT   8192
 
#define NS_TSI_SCDISVBR   NS_TSR_SCDISVBR
 
#define ns_tsi_tmrof(ns_tsip)   (le32_to_cpu((ns_tsip)->word_1) == 0x00000000)
 
#define ns_tsi_getscdindex(ns_tsip)   ((le32_to_cpu((ns_tsip)->word_1) & 0xFFFF0000) >> 16)
 
#define ns_tsi_getscqpos(ns_tsip)   (le32_to_cpu((ns_tsip)->word_1) & 0x00007FFF)
 
#define NS_RCTE_BSFB   0x00200000 /* Rev. D only */
 
#define NS_RCTE_NZGFC   0x00100000
 
#define NS_RCTE_CONNECTOPEN   0x00080000
 
#define NS_RCTE_AALMASK   0x00070000
 
#define NS_RCTE_AAL0   0x00000000
 
#define NS_RCTE_AAL34   0x00010000
 
#define NS_RCTE_AAL5   0x00020000
 
#define NS_RCTE_RCQ   0x00030000
 
#define NS_RCTE_RAWCELLINTEN   0x00008000
 
#define NS_RCTE_RXCONSTCELLADDR   0x00004000
 
#define NS_RCTE_BUFFVALID   0x00002000
 
#define NS_RCTE_FBDSIZE   0x00001000
 
#define NS_RCTE_EFCI   0x00000800
 
#define NS_RCTE_CLP   0x00000400
 
#define NS_RCTE_CRCERROR   0x00000200
 
#define NS_RCTE_CELLCOUNT_MASK   0x000001FF
 
#define NS_RCTE_FBDSIZE_SM   0x00000000
 
#define NS_RCTE_FBDSIZE_LG   0x00001000
 
#define NS_RCT_ENTRY_SIZE   4 /* Number of dwords */
 
#define NS_TST_OPCODE_MASK   0x60000000
 
#define NS_TST_OPCODE_NULL   0x00000000 /* Insert null cell */
 
#define NS_TST_OPCODE_FIXED   0x20000000 /* Cell from a fixed rate channel */
 
#define NS_TST_OPCODE_VARIABLE   0x40000000
 
#define NS_TST_OPCODE_END   0x60000000 /* Jump */
 
#define ns_tste_make(opcode, sramad)   (opcode | sramad)
 
#define NS_SCD_BASE_MASK_VAR   0xFFFFE000 /* Variable rate */
 
#define NS_SCD_BASE_MASK_FIX   0xFFFFFC00 /* Fixed rate */
 
#define NS_SCD_TAIL_MASK_VAR   0x00001FF0
 
#define NS_SCD_TAIL_MASK_FIX   0x000003F0
 
#define NS_SCD_HEAD_MASK_VAR   0x00001FF0
 
#define NS_SCD_HEAD_MASK_FIX   0x000003F0
 
#define NS_SCD_XMITFOREVER   0x02000000
 
#define NS_RCT   0x00000
 
#define NS_RCT_32_END   0x03FFF
 
#define NS_RCT_128_END   0x0FFFF
 
#define NS_UNUSED_32   0x04000
 
#define NS_UNUSED_128   0x10000
 
#define NS_UNUSED_END   0x1BFFF
 
#define NS_TST_FRSCD   0x1C000
 
#define NS_TST_FRSCD_END   0x1E7DB
 
#define NS_VRSCD2   0x1E7DC
 
#define NS_VRSCD2_END   0x1E7E7
 
#define NS_VRSCD1   0x1E7E8
 
#define NS_VRSCD1_END   0x1E7F3
 
#define NS_VRSCD0   0x1E7F4
 
#define NS_VRSCD0_END   0x1E7FF
 
#define NS_RXFIFO   0x1E800
 
#define NS_RXFIFO_END   0x1F7FF
 
#define NS_SMFBQ   0x1F800
 
#define NS_SMFBQ_END   0x1FBFF
 
#define NS_LGFBQ   0x1FC00
 
#define NS_LGFBQ_END   0x1FFFF
 
#define NS_CMD_NO_OPERATION   0x00000000
 
#define NS_CMD_OPENCLOSE_CONNECTION   0x20000000
 
#define NS_CMD_WRITE_SRAM   0x40000000
 
#define NS_CMD_READ_SRAM   0x50000000
 
#define NS_CMD_WRITE_FREEBUFQ   0x60000000
 
#define NS_CMD_READ_UTILITY   0x80000000
 
#define NS_CMD_WRITE_UTILITY   0x90000000
 
#define NS_CMD_OPEN_CONNECTION   (NS_CMD_OPENCLOSE_CONNECTION | 0x00080000)
 
#define NS_CMD_CLOSE_CONNECTION   NS_CMD_OPENCLOSE_CONNECTION
 
#define NS_CFG_SWRST   0x80000000 /* Software Reset */
 
#define NS_CFG_RXPATH   0x20000000 /* Receive Path Enable */
 
#define NS_CFG_SMBUFSIZE_MASK   0x18000000 /* Small Receive Buffer Size */
 
#define NS_CFG_LGBUFSIZE_MASK   0x06000000 /* Large Receive Buffer Size */
 
#define NS_CFG_EFBIE
 
#define NS_CFG_RSQSIZE_MASK   0x00C00000 /* Receive Status Queue Size */
 
#define NS_CFG_ICACCEPT   0x00200000 /* Invalid Cell Accept */
 
#define NS_CFG_IGNOREGFC   0x00100000 /* Ignore General Flow Control */
 
#define NS_CFG_VPIBITS_MASK   0x000C0000 /* VPI/VCI Bits Size Select */
 
#define NS_CFG_RCTSIZE_MASK   0x00030000 /* Receive Connection Table Size */
 
#define NS_CFG_VCERRACCEPT   0x00008000 /* VPI/VCI Error Cell Accept */
 
#define NS_CFG_RXINT_MASK
 
#define NS_CFG_RAWIE   0x00000800 /* Raw Cell Qu' Interrupt Enable */
 
#define NS_CFG_RSQAFIE
 
#define NS_CFG_RXRM   0x00000200 /* Receive RM Cells */
 
#define NS_CFG_TMRROIE
 
#define NS_CFG_TXEN   0x00000020 /* Transmit Operation Enable */
 
#define NS_CFG_TXIE
 
#define NS_CFG_TXURIE
 
#define NS_CFG_UMODE   0x00000004 /* Utopia Mode (cell/byte) Select */
 
#define NS_CFG_TSQFIE
 
#define NS_CFG_PHYIE   0x00000001 /* PHY Interrupt Enable */
 
#define NS_CFG_SMBUFSIZE_48   0x00000000
 
#define NS_CFG_SMBUFSIZE_96   0x08000000
 
#define NS_CFG_SMBUFSIZE_240   0x10000000
 
#define NS_CFG_SMBUFSIZE_2048   0x18000000
 
#define NS_CFG_LGBUFSIZE_2048   0x00000000
 
#define NS_CFG_LGBUFSIZE_4096   0x02000000
 
#define NS_CFG_LGBUFSIZE_8192   0x04000000
 
#define NS_CFG_LGBUFSIZE_16384   0x06000000
 
#define NS_CFG_RSQSIZE_2048   0x00000000
 
#define NS_CFG_RSQSIZE_4096   0x00400000
 
#define NS_CFG_RSQSIZE_8192   0x00800000
 
#define NS_CFG_VPIBITS_0   0x00000000
 
#define NS_CFG_VPIBITS_1   0x00040000
 
#define NS_CFG_VPIBITS_2   0x00080000
 
#define NS_CFG_VPIBITS_8   0x000C0000
 
#define NS_CFG_RCTSIZE_4096_ENTRIES   0x00000000
 
#define NS_CFG_RCTSIZE_8192_ENTRIES   0x00010000
 
#define NS_CFG_RCTSIZE_16384_ENTRIES   0x00020000
 
#define NS_CFG_RXINT_NOINT   0x00000000
 
#define NS_CFG_RXINT_NODELAY   0x00001000
 
#define NS_CFG_RXINT_314US   0x00002000
 
#define NS_CFG_RXINT_624US   0x00003000
 
#define NS_CFG_RXINT_899US   0x00004000
 
#define NS_STAT_SFBQC_MASK   0xFF000000 /* hi 8 bits Small Buffer Queue Count */
 
#define NS_STAT_LFBQC_MASK   0x00FF0000 /* hi 8 bits Large Buffer Queue Count */
 
#define NS_STAT_TSIF   0x00008000 /* Transmit Status Queue Indicator */
 
#define NS_STAT_TXICP   0x00004000 /* Transmit Incomplete PDU */
 
#define NS_STAT_TSQF   0x00001000 /* Transmit Status Queue Full */
 
#define NS_STAT_TMROF   0x00000800 /* Timer Overflow */
 
#define NS_STAT_PHYI   0x00000400 /* PHY Device Interrupt */
 
#define NS_STAT_CMDBZ   0x00000200 /* Command Busy */
 
#define NS_STAT_SFBQF   0x00000100 /* Small Buffer Queue Full */
 
#define NS_STAT_LFBQF   0x00000080 /* Large Buffer Queue Full */
 
#define NS_STAT_RSQF   0x00000040 /* Receive Status Queue Full */
 
#define NS_STAT_EOPDU   0x00000020 /* End of PDU */
 
#define NS_STAT_RAWCF   0x00000010 /* Raw Cell Flag */
 
#define NS_STAT_SFBQE   0x00000008 /* Small Buffer Queue Empty */
 
#define NS_STAT_LFBQE   0x00000004 /* Large Buffer Queue Empty */
 
#define NS_STAT_RSQAF   0x00000002 /* Receive Status Queue Almost Full */
 
#define ns_stat_sfbqc_get(stat)   (((stat) & NS_STAT_SFBQC_MASK) >> 23)
 
#define ns_stat_lfbqc_get(stat)   (((stat) & NS_STAT_LFBQC_MASK) >> 15)
 
#define NS_TST0   NS_TST_FRSCD
 
#define NS_TST1   (NS_TST_FRSCD + NS_TST_NUM_ENTRIES + 1)
 
#define NS_FRSCD   (NS_TST1 + NS_TST_NUM_ENTRIES + 1)
 
#define NS_FRSCD_SIZE   12 /* 12 dwords */
 
#define NS_FRSCD_NUM   ((NS_TST_FRSCD_END + 1 - NS_FRSCD) / NS_FRSCD_SIZE)
 
#define NS_CFG_SMBUFSIZE   NS_CFG_SMBUFSIZE_48
 
#define NS_CFG_LGBUFSIZE   NS_CFG_LGBUFSIZE_16384
 
#define NS_CFG_RSQSIZE   NS_CFG_RSQSIZE_8192
 
#define NS_CFG_VPIBITS   NS_CFG_VPIBITS_2
 
#define NS_CFG_RAWIE_OPT   0x00000000
 
#define NS_CFG_TSQFIE_OPT   0x00000000
 
#define PCI_VENDOR_ID_IDT   0x111D
 
#define PCI_DEVICE_ID_IDT_IDT77201   0x0001
 
#define NS_PRV_BUFTYPE(skb)   (((struct ns_skb_prv *)(ATM_SKB(skb)+1))->buf_type)
 
#define NS_PRV_DMA(skb)   (((struct ns_skb_prv *)(ATM_SKB(skb)+1))->dma)
 
#define NS_PRV_IOVCNT(skb)   (((struct ns_skb_prv *)(ATM_SKB(skb)+1))->iovcnt)
 

Typedefs

typedef struct ns_rsqe ns_rsqe
 
typedef struct cell_payload cell_payload
 
typedef struct ns_rcqe ns_rcqe
 
typedef struct ns_scqe ns_scqe
 
typedef struct ns_tsi ns_tsi
 
typedef struct ns_rcte ns_rcte
 
typedef struct ns_fbd ns_fbd
 
typedef u32 ns_tste
 
typedef struct ns_scd ns_scd
 
typedef struct tsq_info tsq_info
 
typedef struct scq_info scq_info
 
typedef struct rsq_info rsq_info
 
typedef struct skb_pool skb_pool
 
typedef struct vc_map vc_map
 
typedef struct ns_dev ns_dev
 

Enumerations

enum  ns_regs {
  DR0 = 0x00, DR1 = 0x04, DR2 = 0x08, DR3 = 0x0C,
  CMD = 0x10, CFG = 0x14, STAT = 0x18, RSQB = 0x1C,
  RSQT = 0x20, RSQH = 0x24, CDC = 0x28, VPEC = 0x2C,
  ICC = 0x30, RAWCT = 0x34, TMR = 0x38, TSTB = 0x3C,
  TSQB = 0x40, TSQT = 0x44, TSQH = 0x48, GP = 0x4C,
  VPM = 0x50
}
 

Macro Definition Documentation

#define BUF_LG   0x00000001 /* CMD, Write_FreeBufQ, LBUF bit */

Definition at line 93 of file nicstar.h.

#define BUF_NONE   0xffffffff /* Software only: */

Definition at line 94 of file nicstar.h.

#define BUF_SM   0x00000000 /* These two are used for push_rxbufs() */

Definition at line 92 of file nicstar.h.

#define CBR_SCQ_NUM_ENTRIES   64

Definition at line 244 of file nicstar.h.

#define CBR_SCQSIZE   1024

Definition at line 245 of file nicstar.h.

#define MAX_HB   10

Definition at line 58 of file nicstar.h.

#define MAX_IOVB   80

Definition at line 59 of file nicstar.h.

#define MAX_LB   48 /* Must be even, <= 508 */

Definition at line 57 of file nicstar.h.

#define MAX_SB   64 /* Must be even, <= 508 */

Definition at line 56 of file nicstar.h.

#define MAX_TBD_PER_SCQ   10 /* Only meaningful for variable rate SCQs */

Definition at line 68 of file nicstar.h.

#define MAX_TBD_PER_VC   1 /* Number of TBDs before a TSR */

Definition at line 67 of file nicstar.h.

#define MIN_HB   6

Definition at line 52 of file nicstar.h.

#define MIN_IOVB   8

Definition at line 53 of file nicstar.h.

#define MIN_LB   8 /* Must be even */

Definition at line 51 of file nicstar.h.

#define MIN_SB   8 /* Must be even */

Definition at line 50 of file nicstar.h.

#define NICSTAR_EPROM_MAC_ADDR_OFFSET   0x6C

Definition at line 80 of file nicstar.h.

#define NICSTAR_EPROM_MAC_ADDR_OFFSET_ALT   0xF6

Definition at line 81 of file nicstar.h.

#define NS_AAL0_HEADER   (ATM_AAL0_SDU - ATM_CELL_PAYLOAD) /* 4 bytes */

Definition at line 104 of file nicstar.h.

#define NS_CFG_EFBIE
Value:
0x01000000 /* Empty Free Buffer Queue
Interrupt Enable */

Definition at line 475 of file nicstar.h.

#define NS_CFG_ICACCEPT   0x00200000 /* Invalid Cell Accept */

Definition at line 477 of file nicstar.h.

#define NS_CFG_IGNOREGFC   0x00100000 /* Ignore General Flow Control */

Definition at line 478 of file nicstar.h.

#define NS_CFG_LGBUFSIZE   NS_CFG_LGBUFSIZE_16384

Definition at line 573 of file nicstar.h.

#define NS_CFG_LGBUFSIZE_16384   0x06000000

Definition at line 502 of file nicstar.h.

#define NS_CFG_LGBUFSIZE_2048   0x00000000

Definition at line 499 of file nicstar.h.

#define NS_CFG_LGBUFSIZE_4096   0x02000000

Definition at line 500 of file nicstar.h.

#define NS_CFG_LGBUFSIZE_8192   0x04000000

Definition at line 501 of file nicstar.h.

#define NS_CFG_LGBUFSIZE_MASK   0x06000000 /* Large Receive Buffer Size */

Definition at line 474 of file nicstar.h.

#define NS_CFG_PHYIE   0x00000001 /* PHY Interrupt Enable */

Definition at line 492 of file nicstar.h.

#define NS_CFG_RAWIE   0x00000800 /* Raw Cell Qu' Interrupt Enable */

Definition at line 483 of file nicstar.h.

#define NS_CFG_RAWIE_OPT   0x00000000

Definition at line 603 of file nicstar.h.

#define NS_CFG_RCTSIZE_16384_ENTRIES   0x00020000

Definition at line 515 of file nicstar.h.

#define NS_CFG_RCTSIZE_4096_ENTRIES   0x00000000

Definition at line 513 of file nicstar.h.

#define NS_CFG_RCTSIZE_8192_ENTRIES   0x00010000

Definition at line 514 of file nicstar.h.

#define NS_CFG_RCTSIZE_MASK   0x00030000 /* Receive Connection Table Size */

Definition at line 480 of file nicstar.h.

#define NS_CFG_RSQAFIE
Value:
0x00000400 /* Receive Queue Almost Full
Interrupt Enable */

Definition at line 484 of file nicstar.h.

#define NS_CFG_RSQSIZE   NS_CFG_RSQSIZE_8192

Definition at line 583 of file nicstar.h.

#define NS_CFG_RSQSIZE_2048   0x00000000

Definition at line 504 of file nicstar.h.

#define NS_CFG_RSQSIZE_4096   0x00400000

Definition at line 505 of file nicstar.h.

#define NS_CFG_RSQSIZE_8192   0x00800000

Definition at line 506 of file nicstar.h.

#define NS_CFG_RSQSIZE_MASK   0x00C00000 /* Receive Status Queue Size */

Definition at line 476 of file nicstar.h.

#define NS_CFG_RXINT_314US   0x00002000

Definition at line 519 of file nicstar.h.

#define NS_CFG_RXINT_624US   0x00003000

Definition at line 520 of file nicstar.h.

#define NS_CFG_RXINT_899US   0x00004000

Definition at line 521 of file nicstar.h.

#define NS_CFG_RXINT_MASK
Value:
0x00007000 /* End of Receive PDU Interrupt
Handling */

Definition at line 482 of file nicstar.h.

#define NS_CFG_RXINT_NODELAY   0x00001000

Definition at line 518 of file nicstar.h.

#define NS_CFG_RXINT_NOINT   0x00000000

Definition at line 517 of file nicstar.h.

#define NS_CFG_RXPATH   0x20000000 /* Receive Path Enable */

Definition at line 472 of file nicstar.h.

#define NS_CFG_RXRM   0x00000200 /* Receive RM Cells */

Definition at line 485 of file nicstar.h.

#define NS_CFG_SMBUFSIZE   NS_CFG_SMBUFSIZE_48

Definition at line 555 of file nicstar.h.

#define NS_CFG_SMBUFSIZE_2048   0x18000000

Definition at line 497 of file nicstar.h.

#define NS_CFG_SMBUFSIZE_240   0x10000000

Definition at line 496 of file nicstar.h.

#define NS_CFG_SMBUFSIZE_48   0x00000000

Definition at line 494 of file nicstar.h.

#define NS_CFG_SMBUFSIZE_96   0x08000000

Definition at line 495 of file nicstar.h.

#define NS_CFG_SMBUFSIZE_MASK   0x18000000 /* Small Receive Buffer Size */

Definition at line 473 of file nicstar.h.

#define NS_CFG_SWRST   0x80000000 /* Software Reset */

Definition at line 471 of file nicstar.h.

#define NS_CFG_TMRROIE
Value:
0x00000080 /* Timer Roll Over Interrupt
Enable */

Definition at line 486 of file nicstar.h.

#define NS_CFG_TSQFIE
Value:
0x00000002 /* Transmit Status Queue Full
Interrupt Enable */

Definition at line 491 of file nicstar.h.

#define NS_CFG_TSQFIE_OPT   0x00000000

Definition at line 609 of file nicstar.h.

#define NS_CFG_TXEN   0x00000020 /* Transmit Operation Enable */

Definition at line 487 of file nicstar.h.

#define NS_CFG_TXIE
Value:
0x00000010 /* Transmit Status Interrupt
Enable */

Definition at line 488 of file nicstar.h.

#define NS_CFG_TXURIE
Value:
0x00000008 /* Transmit Under-run Interrupt
Enable */

Definition at line 489 of file nicstar.h.

#define NS_CFG_UMODE   0x00000004 /* Utopia Mode (cell/byte) Select */

Definition at line 490 of file nicstar.h.

#define NS_CFG_VCERRACCEPT   0x00008000 /* VPI/VCI Error Cell Accept */

Definition at line 481 of file nicstar.h.

#define NS_CFG_VPIBITS   NS_CFG_VPIBITS_2

Definition at line 593 of file nicstar.h.

#define NS_CFG_VPIBITS_0   0x00000000

Definition at line 508 of file nicstar.h.

#define NS_CFG_VPIBITS_1   0x00040000

Definition at line 509 of file nicstar.h.

#define NS_CFG_VPIBITS_2   0x00080000

Definition at line 510 of file nicstar.h.

#define NS_CFG_VPIBITS_8   0x000C0000

Definition at line 511 of file nicstar.h.

#define NS_CFG_VPIBITS_MASK   0x000C0000 /* VPI/VCI Bits Size Select */

Definition at line 479 of file nicstar.h.

#define NS_CMD_CLOSE_CONNECTION   NS_CMD_OPENCLOSE_CONNECTION

Definition at line 467 of file nicstar.h.

#define NS_CMD_NO_OPERATION   0x00000000

Definition at line 445 of file nicstar.h.

#define NS_CMD_OPEN_CONNECTION   (NS_CMD_OPENCLOSE_CONNECTION | 0x00080000)

Definition at line 466 of file nicstar.h.

#define NS_CMD_OPENCLOSE_CONNECTION   0x20000000

Definition at line 448 of file nicstar.h.

#define NS_CMD_READ_SRAM   0x50000000

Definition at line 454 of file nicstar.h.

#define NS_CMD_READ_UTILITY   0x80000000

Definition at line 460 of file nicstar.h.

#define NS_CMD_WRITE_FREEBUFQ   0x60000000

Definition at line 457 of file nicstar.h.

#define NS_CMD_WRITE_SRAM   0x40000000

Definition at line 451 of file nicstar.h.

#define NS_CMD_WRITE_UTILITY   0x90000000

Definition at line 463 of file nicstar.h.

#define NS_FRSCD   (NS_TST1 + NS_TST_NUM_ENTRIES + 1)

Definition at line 550 of file nicstar.h.

#define NS_FRSCD_NUM   ((NS_TST_FRSCD_END + 1 - NS_FRSCD) / NS_FRSCD_SIZE)

Definition at line 552 of file nicstar.h.

#define NS_FRSCD_SIZE   12 /* 12 dwords */

Definition at line 551 of file nicstar.h.

#define NS_HBUFSIZE   65568 /* Size of max. AAL5 PDU */

Definition at line 96 of file nicstar.h.

#define NS_IOREMAP_SIZE   4096

Definition at line 85 of file nicstar.h.

#define NS_IOVBUFSIZE   (NS_MAX_IOVECS * (sizeof(struct iovec)))

Definition at line 99 of file nicstar.h.

#define NS_LGBUFSIZE   16384 /* 2048, 4096, 8192 or 16384 */

Definition at line 35 of file nicstar.h.

#define NS_LGBUFSIZE_USABLE   (NS_LGBUFSIZE - NS_LGBUFSIZE % 48)

Definition at line 102 of file nicstar.h.

#define NS_LGFBQ   0x1FC00

Definition at line 410 of file nicstar.h.

#define NS_LGFBQ_END   0x1FFFF

Definition at line 411 of file nicstar.h.

#define NS_LGSKBSIZE   (NS_SMBUFSIZE + NS_LGBUFSIZE)

Definition at line 107 of file nicstar.h.

#define NS_MAX_CARDS
Value:
4 /* Maximum number of NICStAR based cards
controlled by the device driver. Must
be <= 5 */

Definition at line 27 of file nicstar.h.

#define NS_MAX_IOVECS
Value:
(2 + (65568 - NS_SMBUFSIZE) / \

Definition at line 97 of file nicstar.h.

#define NS_MAX_RCTSIZE
Value:
4096 /* Number of entries. 4096 or 16384.
Define 4096 only if (all) your card(s)
have 32K x 32bit SRAM, in which case
setting this to 16384 will just waste a
lot of memory.
Setting this to 4096 for a card with
128K x 32bit SRAM will limit the maximum
VCI. */

Definition at line 39 of file nicstar.h.

#define NS_POLL_PERIOD   (HZ)

Definition at line 74 of file nicstar.h.

#define NS_PRV_BUFTYPE (   skb)    (((struct ns_skb_prv *)(ATM_SKB(skb)+1))->buf_type)

Definition at line 630 of file nicstar.h.

#define NS_PRV_DMA (   skb)    (((struct ns_skb_prv *)(ATM_SKB(skb)+1))->dma)

Definition at line 632 of file nicstar.h.

#define NS_PRV_IOVCNT (   skb)    (((struct ns_skb_prv *)(ATM_SKB(skb)+1))->iovcnt)

Definition at line 634 of file nicstar.h.

#define ns_rcqe_cellheader (   ns_rcqep)    (le32_to_cpu((ns_rcqep)->word_1))

Definition at line 185 of file nicstar.h.

#define ns_rcqe_islast (   ns_rcqep)    (le32_to_cpu((ns_rcqep)->word_2) != 0x00000000)

Definition at line 183 of file nicstar.h.

#define ns_rcqe_nextbufhandle (   ns_rcqep)    (le32_to_cpu((ns_rcqep)->word_2))

Definition at line 187 of file nicstar.h.

#define NS_RCQE_SIZE   64 /* bytes */

Definition at line 181 of file nicstar.h.

#define NS_RCT   0x00000

Definition at line 392 of file nicstar.h.

#define NS_RCT_128_END   0x0FFFF

Definition at line 394 of file nicstar.h.

#define NS_RCT_32_END   0x03FFF

Definition at line 393 of file nicstar.h.

#define NS_RCT_ENTRY_SIZE   4 /* Number of dwords */

Definition at line 323 of file nicstar.h.

#define NS_RCTE_AAL0   0x00000000

Definition at line 307 of file nicstar.h.

#define NS_RCTE_AAL34   0x00010000

Definition at line 308 of file nicstar.h.

#define NS_RCTE_AAL5   0x00020000

Definition at line 309 of file nicstar.h.

#define NS_RCTE_AALMASK   0x00070000

Definition at line 306 of file nicstar.h.

#define NS_RCTE_BSFB   0x00200000 /* Rev. D only */

Definition at line 303 of file nicstar.h.

#define NS_RCTE_BUFFVALID   0x00002000

Definition at line 313 of file nicstar.h.

#define NS_RCTE_CELLCOUNT_MASK   0x000001FF

Definition at line 318 of file nicstar.h.

#define NS_RCTE_CLP   0x00000400

Definition at line 316 of file nicstar.h.

#define NS_RCTE_CONNECTOPEN   0x00080000

Definition at line 305 of file nicstar.h.

#define NS_RCTE_CRCERROR   0x00000200

Definition at line 317 of file nicstar.h.

#define NS_RCTE_EFCI   0x00000800

Definition at line 315 of file nicstar.h.

#define NS_RCTE_FBDSIZE   0x00001000

Definition at line 314 of file nicstar.h.

#define NS_RCTE_FBDSIZE_LG   0x00001000

Definition at line 321 of file nicstar.h.

#define NS_RCTE_FBDSIZE_SM   0x00000000

Definition at line 320 of file nicstar.h.

#define NS_RCTE_NZGFC   0x00100000

Definition at line 304 of file nicstar.h.

#define NS_RCTE_RAWCELLINTEN   0x00008000

Definition at line 311 of file nicstar.h.

#define NS_RCTE_RCQ   0x00030000

Definition at line 310 of file nicstar.h.

#define NS_RCTE_RXCONSTCELLADDR   0x00004000

Definition at line 312 of file nicstar.h.

#define NS_RSQ_ALIGNMENT   NS_RSQSIZE

Definition at line 161 of file nicstar.h.

#define NS_RSQ_NUM_ENTRIES   (NS_RSQSIZE / 16)

Definition at line 160 of file nicstar.h.

#define NS_RSQE_BUFSIZE   0x00001000

Definition at line 132 of file nicstar.h.

#define ns_rsqe_bufsize (   ns_rsqep)    (le32_to_cpu((ns_rsqep)->word_4) & NS_RSQE_BUFSIZE)

Definition at line 146 of file nicstar.h.

#define NS_RSQE_BUFSIZE_LG   0x00001000

Definition at line 138 of file nicstar.h.

#define NS_RSQE_BUFSIZE_SM   0x00000000

Definition at line 137 of file nicstar.h.

#define ns_rsqe_cellcount (   ns_rsqep)    (le32_to_cpu((ns_rsqep)->word_4) & 0x000001FF)

Definition at line 155 of file nicstar.h.

#define NS_RSQE_CLP   0x00000400

Definition at line 134 of file nicstar.h.

#define ns_rsqe_clp (   ns_rsqep)    (le32_to_cpu((ns_rsqep)->word_4) & NS_RSQE_CLP)

Definition at line 150 of file nicstar.h.

#define NS_RSQE_CONGESTION   0x00000800

Definition at line 133 of file nicstar.h.

#define ns_rsqe_congestion (   ns_rsqep)    (le32_to_cpu((ns_rsqep)->word_4) & NS_RSQE_CONGESTION)

Definition at line 148 of file nicstar.h.

#define NS_RSQE_CRCERR   0x00000200

Definition at line 135 of file nicstar.h.

#define ns_rsqe_crcerr (   ns_rsqep)    (le32_to_cpu((ns_rsqep)->word_4) & NS_RSQE_CRCERR)

Definition at line 152 of file nicstar.h.

#define NS_RSQE_EOPDU   0x00002000

Definition at line 131 of file nicstar.h.

#define ns_rsqe_eopdu (   ns_rsqep)    (le32_to_cpu((ns_rsqep)->word_4) & NS_RSQE_EOPDU)

Definition at line 144 of file nicstar.h.

#define ns_rsqe_init (   ns_rsqep)    ((ns_rsqep)->word_4 = cpu_to_le32(0x00000000))

Definition at line 157 of file nicstar.h.

#define NS_RSQE_NZGFC   0x00004000

Definition at line 130 of file nicstar.h.

#define ns_rsqe_nzgfc (   ns_rsqep)    (le32_to_cpu((ns_rsqep)->word_4) & NS_RSQE_NZGFC)

Definition at line 142 of file nicstar.h.

#define NS_RSQE_VALID   0x80000000

Definition at line 129 of file nicstar.h.

#define ns_rsqe_valid (   ns_rsqep)    (le32_to_cpu((ns_rsqep)->word_4) & NS_RSQE_VALID)

Definition at line 140 of file nicstar.h.

#define ns_rsqe_vci (   ns_rsqep)    (le32_to_cpu((ns_rsqep)->word_1) & 0x0000FFFF)

Definition at line 126 of file nicstar.h.

#define ns_rsqe_vpi (   ns_rsqep)    ((le32_to_cpu((ns_rsqep)->word_1) & 0x00FF0000) >> 16)

Definition at line 124 of file nicstar.h.

#define NS_RSQSIZE   8192 /* 2048, 4096 or 8192 */

Definition at line 36 of file nicstar.h.

#define NS_RXFIFO   0x1E800

Definition at line 406 of file nicstar.h.

#define NS_RXFIFO_END   0x1F7FF

Definition at line 407 of file nicstar.h.

#define NS_SCD_BASE_MASK_FIX   0xFFFFFC00 /* Fixed rate */

Definition at line 380 of file nicstar.h.

#define NS_SCD_BASE_MASK_VAR   0xFFFFE000 /* Variable rate */

Definition at line 379 of file nicstar.h.

#define NS_SCD_HEAD_MASK_FIX   0x000003F0

Definition at line 384 of file nicstar.h.

#define NS_SCD_HEAD_MASK_VAR   0x00001FF0

Definition at line 383 of file nicstar.h.

#define NS_SCD_TAIL_MASK_FIX   0x000003F0

Definition at line 382 of file nicstar.h.

#define NS_SCD_TAIL_MASK_VAR   0x00001FF0

Definition at line 381 of file nicstar.h.

#define NS_SCD_XMITFOREVER   0x02000000

Definition at line 385 of file nicstar.h.

#define ns_scqe_is_tsr (   ns_scqep)    (le32_to_cpu((ns_scqep)->word_1) & NS_SCQE_TYPE_TSR)

Definition at line 239 of file nicstar.h.

#define NS_SCQE_SIZE   16

Definition at line 247 of file nicstar.h.

#define NS_SCQE_TYPE_TBD   0x00000000

Definition at line 206 of file nicstar.h.

#define NS_SCQE_TYPE_TSR   0x80000000

Definition at line 207 of file nicstar.h.

#define NS_SMBUFSIZE   48 /* 48, 96, 240 or 2048 */

Definition at line 34 of file nicstar.h.

#define NS_SMBUFSIZE_USABLE   (NS_SMBUFSIZE - NS_SMBUFSIZE % 48)

Definition at line 101 of file nicstar.h.

#define NS_SMFBQ   0x1F800

Definition at line 408 of file nicstar.h.

#define NS_SMFBQ_END   0x1FBFF

Definition at line 409 of file nicstar.h.

#define NS_SMSKBSIZE   (NS_SMBUFSIZE + NS_AAL0_HEADER)

Definition at line 106 of file nicstar.h.

#define NS_STAT_CMDBZ   0x00000200 /* Command Busy */

Definition at line 532 of file nicstar.h.

#define NS_STAT_EOPDU   0x00000020 /* End of PDU */

Definition at line 536 of file nicstar.h.

#define ns_stat_lfbqc_get (   stat)    (((stat) & NS_STAT_LFBQC_MASK) >> 15)

Definition at line 543 of file nicstar.h.

#define NS_STAT_LFBQC_MASK   0x00FF0000 /* hi 8 bits Large Buffer Queue Count */

Definition at line 526 of file nicstar.h.

#define NS_STAT_LFBQE   0x00000004 /* Large Buffer Queue Empty */

Definition at line 539 of file nicstar.h.

#define NS_STAT_LFBQF   0x00000080 /* Large Buffer Queue Full */

Definition at line 534 of file nicstar.h.

#define NS_STAT_PHYI   0x00000400 /* PHY Device Interrupt */

Definition at line 531 of file nicstar.h.

#define NS_STAT_RAWCF   0x00000010 /* Raw Cell Flag */

Definition at line 537 of file nicstar.h.

#define NS_STAT_RSQAF   0x00000002 /* Receive Status Queue Almost Full */

Definition at line 540 of file nicstar.h.

#define NS_STAT_RSQF   0x00000040 /* Receive Status Queue Full */

Definition at line 535 of file nicstar.h.

#define ns_stat_sfbqc_get (   stat)    (((stat) & NS_STAT_SFBQC_MASK) >> 23)

Definition at line 542 of file nicstar.h.

#define NS_STAT_SFBQC_MASK   0xFF000000 /* hi 8 bits Small Buffer Queue Count */

Definition at line 525 of file nicstar.h.

#define NS_STAT_SFBQE   0x00000008 /* Small Buffer Queue Empty */

Definition at line 538 of file nicstar.h.

#define NS_STAT_SFBQF   0x00000100 /* Small Buffer Queue Full */

Definition at line 533 of file nicstar.h.

#define NS_STAT_TMROF   0x00000800 /* Timer Overflow */

Definition at line 530 of file nicstar.h.

#define NS_STAT_TSIF   0x00008000 /* Transmit Status Queue Indicator */

Definition at line 527 of file nicstar.h.

#define NS_STAT_TSQF   0x00001000 /* Transmit Status Queue Full */

Definition at line 529 of file nicstar.h.

#define NS_STAT_TXICP   0x00004000 /* Transmit Incomplete PDU */

Definition at line 528 of file nicstar.h.

#define NS_TBD_AAL0   0x00000000

Definition at line 210 of file nicstar.h.

#define NS_TBD_AAL34   0x04000000

Definition at line 211 of file nicstar.h.

#define NS_TBD_AAL5   0x08000000

Definition at line 212 of file nicstar.h.

#define NS_TBD_EOPDU   0x40000000

Definition at line 209 of file nicstar.h.

#define ns_tbd_mkword_1 (   flags,
  m,
  n,
  buflen 
)    (cpu_to_le32((flags) | (m) << 23 | (n) << 16 | (buflen)))

Definition at line 221 of file nicstar.h.

#define ns_tbd_mkword_1_novbr (   flags,
  buflen 
)    (cpu_to_le32((flags) | (buflen) | 0x00810000))

Definition at line 223 of file nicstar.h.

#define ns_tbd_mkword_3 (   control,
  pdulen 
)    (cpu_to_le32((control) << 16 | (pdulen)))

Definition at line 225 of file nicstar.h.

#define ns_tbd_mkword_4 (   gfc,
  vpi,
  vci,
  pt,
  clp 
)    (cpu_to_le32((gfc) << 28 | (vpi) << 20 | (vci) << 4 | (pt) << 1 | (clp)))

Definition at line 227 of file nicstar.h.

#define NS_TBD_VC_MASK   (NS_TBD_VPI_MASK | NS_TBD_VCI_MASK)

Definition at line 216 of file nicstar.h.

#define NS_TBD_VCI_MASK   0x000FFFF0

Definition at line 215 of file nicstar.h.

#define NS_TBD_VCI_SHIFT   4

Definition at line 219 of file nicstar.h.

#define NS_TBD_VPI_MASK   0x0FF00000

Definition at line 214 of file nicstar.h.

#define NS_TBD_VPI_SHIFT   20

Definition at line 218 of file nicstar.h.

#define NS_TSI_EMPTY   0x80000000

Definition at line 264 of file nicstar.h.

#define ns_tsi_getscdindex (   ns_tsip)    ((le32_to_cpu((ns_tsip)->word_1) & 0xFFFF0000) >> 16)

Definition at line 283 of file nicstar.h.

#define ns_tsi_getscqpos (   ns_tsip)    (le32_to_cpu((ns_tsip)->word_1) & 0x00007FFF)

Definition at line 285 of file nicstar.h.

#define ns_tsi_gettimestamp (   ns_tsip)    (le32_to_cpu((ns_tsip)->word_2) & NS_TSI_TIMESTAMP_MASK)

Definition at line 269 of file nicstar.h.

#define ns_tsi_init (   ns_tsip)    ((ns_tsip)->word_2 = cpu_to_le32(NS_TSI_EMPTY))

Definition at line 272 of file nicstar.h.

#define ns_tsi_isempty (   ns_tsip)    (le32_to_cpu((ns_tsip)->word_2) & NS_TSI_EMPTY)

Definition at line 267 of file nicstar.h.

#define NS_TSI_SCDISVBR   NS_TSR_SCDISVBR

Definition at line 279 of file nicstar.h.

#define NS_TSI_TIMESTAMP_MASK   0x00FFFFFF

Definition at line 265 of file nicstar.h.

#define ns_tsi_tmrof (   ns_tsip)    (le32_to_cpu((ns_tsip)->word_1) == 0x00000000)

Definition at line 281 of file nicstar.h.

#define NS_TSQ_ALIGNMENT   8192

Definition at line 277 of file nicstar.h.

#define NS_TSQ_NUM_ENTRIES   1024

Definition at line 276 of file nicstar.h.

#define NS_TSQSIZE   8192

Definition at line 275 of file nicstar.h.

#define NS_TSR_INTENABLE   0x20000000

Definition at line 230 of file nicstar.h.

#define ns_tsr_mkword_1 (   flags)    (cpu_to_le32(NS_SCQE_TYPE_TSR | (flags)))

Definition at line 234 of file nicstar.h.

#define ns_tsr_mkword_2 (   scdi,
  scqi 
)    (cpu_to_le32((scdi) << 16 | 0x00008000 | (scqi)))

Definition at line 236 of file nicstar.h.

#define NS_TSR_SCDISVBR   0xFFFF /* Use as scdi for VBR SCD */

Definition at line 232 of file nicstar.h.

#define NS_TST0   NS_TST_FRSCD

Definition at line 547 of file nicstar.h.

#define NS_TST1   (NS_TST_FRSCD + NS_TST_NUM_ENTRIES + 1)

Definition at line 548 of file nicstar.h.

#define NS_TST_FRSCD   0x1C000

Definition at line 398 of file nicstar.h.

#define NS_TST_FRSCD_END   0x1E7DB

Definition at line 399 of file nicstar.h.

#define NS_TST_NUM_ENTRIES   2340 /* + 1 for return */

Definition at line 31 of file nicstar.h.

#define NS_TST_OPCODE_END   0x60000000 /* Jump */

Definition at line 352 of file nicstar.h.

#define NS_TST_OPCODE_FIXED   0x20000000 /* Cell from a fixed rate channel */

Definition at line 350 of file nicstar.h.

#define NS_TST_OPCODE_MASK   0x60000000

Definition at line 347 of file nicstar.h.

#define NS_TST_OPCODE_NULL   0x00000000 /* Insert null cell */

Definition at line 349 of file nicstar.h.

#define NS_TST_OPCODE_VARIABLE   0x40000000

Definition at line 351 of file nicstar.h.

#define NS_TST_RESERVED   340 /* N. entries reserved for UBR/ABR/VBR */

Definition at line 32 of file nicstar.h.

#define ns_tste_make (   opcode,
  sramad 
)    (opcode | sramad)

Definition at line 354 of file nicstar.h.

#define NS_UNUSED_128   0x10000

Definition at line 396 of file nicstar.h.

#define NS_UNUSED_32   0x04000

Definition at line 395 of file nicstar.h.

#define NS_UNUSED_END   0x1BFFF

Definition at line 397 of file nicstar.h.

#define NS_VPIBITS   2 /* 0, 1, 2, or 8 */

Definition at line 37 of file nicstar.h.

#define NS_VRSCD0   0x1E7F4

Definition at line 404 of file nicstar.h.

#define NS_VRSCD0_END   0x1E7FF

Definition at line 405 of file nicstar.h.

#define NS_VRSCD1   0x1E7E8

Definition at line 402 of file nicstar.h.

#define NS_VRSCD1_END   0x1E7F3

Definition at line 403 of file nicstar.h.

#define NS_VRSCD2   0x1E7DC

Definition at line 400 of file nicstar.h.

#define NS_VRSCD2_END   0x1E7E7

Definition at line 401 of file nicstar.h.

#define NUM_HB   8 /* Pre-allocated huge buffers */

Definition at line 46 of file nicstar.h.

#define NUM_IOVB   48 /* Iovec buffers */

Definition at line 47 of file nicstar.h.

#define NUM_LB   24 /* Must be even */

Definition at line 45 of file nicstar.h.

#define NUM_SB   32 /* Must be even */

Definition at line 44 of file nicstar.h.

#define PCI_DEVICE_ID_IDT_IDT77201   0x0001

Definition at line 619 of file nicstar.h.

#define PCI_VENDOR_ID_IDT   0x111D

Definition at line 615 of file nicstar.h.

#define PCR_TOLERANCE   (1.0001)

Definition at line 76 of file nicstar.h.

#define SCQFULL_TIMEOUT   (5 * HZ)

Definition at line 72 of file nicstar.h.

#define TOP_HB   64

Definition at line 64 of file nicstar.h.

#define TOP_IOVB   256

Definition at line 65 of file nicstar.h.

#define TOP_LB   128 /* Must be even, <= 508 */

Definition at line 63 of file nicstar.h.

#define TOP_SB   256 /* Must be even, <= 508 */

Definition at line 62 of file nicstar.h.

#define VBR_SCQ_NUM_ENTRIES   512

Definition at line 242 of file nicstar.h.

#define VBR_SCQSIZE   8192

Definition at line 243 of file nicstar.h.

Typedef Documentation

typedef struct ns_dev ns_dev
typedef struct ns_fbd ns_fbd
typedef struct ns_scd ns_scd
typedef struct ns_tsi ns_tsi
typedef u32 ns_tste

Definition at line 345 of file nicstar.h.

typedef struct vc_map vc_map

Enumeration Type Documentation

enum ns_regs
Enumerator:
DR0 
DR1 
DR2 
DR3 
CMD 
CFG 
STAT 
RSQB 
RSQT 
RSQH 
CDC 
VPEC 
ICC 
RAWCT 
TMR 
TSTB 
TSQB 
TSQT 
TSQH 
GP 
VPM 

Definition at line 417 of file nicstar.h.