Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
ipath_iba6110.c File Reference
#include <linux/vmalloc.h>
#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/htirq.h>
#include <rdma/ib_verbs.h>
#include "ipath_kernel.h"
#include "ipath_registers.h"

Go to the source code of this file.

Data Structures

struct  _infinipath_do_not_use_kernel_regs
 
struct  _infinipath_do_not_use_counters
 

Macros

#define IPATH_KREG_OFFSET(field)
 
#define IPATH_CREG_OFFSET(field)
 
#define INFINIPATH_I_RCVURG_MASK   ((1U<<9)-1)
 
#define INFINIPATH_I_RCVURG_SHIFT   0
 
#define INFINIPATH_I_RCVAVAIL_MASK   ((1U<<9)-1)
 
#define INFINIPATH_I_RCVAVAIL_SHIFT   12
 
#define INFINIPATH_HWE_HTCMEMPARITYERR_SHIFT   0
 
#define INFINIPATH_HWE_HTCMEMPARITYERR_MASK   0x3FFFFFULL
 
#define INFINIPATH_HWE_HTCLNKABYTE0CRCERR   0x0000000000800000ULL
 
#define INFINIPATH_HWE_HTCLNKABYTE1CRCERR   0x0000000001000000ULL
 
#define INFINIPATH_HWE_HTCLNKBBYTE0CRCERR   0x0000000002000000ULL
 
#define INFINIPATH_HWE_HTCLNKBBYTE1CRCERR   0x0000000004000000ULL
 
#define INFINIPATH_HWE_HTCMISCERR4   0x0000000008000000ULL
 
#define INFINIPATH_HWE_HTCMISCERR5   0x0000000010000000ULL
 
#define INFINIPATH_HWE_HTCMISCERR6   0x0000000020000000ULL
 
#define INFINIPATH_HWE_HTCMISCERR7   0x0000000040000000ULL
 
#define INFINIPATH_HWE_HTCBUSTREQPARITYERR   0x0000000080000000ULL
 
#define INFINIPATH_HWE_HTCBUSTRESPPARITYERR   0x0000000100000000ULL
 
#define INFINIPATH_HWE_HTCBUSIREQPARITYERR   0x0000000200000000ULL
 
#define INFINIPATH_HWE_COREPLL_FBSLIP   0x0080000000000000ULL
 
#define INFINIPATH_HWE_COREPLL_RFSLIP   0x0100000000000000ULL
 
#define INFINIPATH_HWE_HTBPLL_FBSLIP   0x0200000000000000ULL
 
#define INFINIPATH_HWE_HTBPLL_RFSLIP   0x0400000000000000ULL
 
#define INFINIPATH_HWE_HTAPLL_FBSLIP   0x0800000000000000ULL
 
#define INFINIPATH_HWE_HTAPLL_RFSLIP   0x1000000000000000ULL
 
#define INFINIPATH_HWE_SERDESPLLFAILED   0x2000000000000000ULL
 
#define IBA6110_IBCS_LINKTRAININGSTATE_MASK   0xf
 
#define IBA6110_IBCS_LINKSTATE_SHIFT   4
 
#define INFINIPATH_EXTS_FREQSEL   0x2
 
#define INFINIPATH_EXTS_SERDESSEL   0x4
 
#define INFINIPATH_EXTS_MEMBIST_ENDTEST   0x0000000000004000
 
#define INFINIPATH_EXTS_MEMBIST_CORRECT   0x0000000000008000
 
#define INFINIPATH_RT_ADDR_MASK   0xFFFFFFFFFFULL /* 40 bits valid */
 
#define INFINIPATH_RT_VALID   0x8000000000000000ULL
 
#define INFINIPATH_RT_ADDR_SHIFT   0
 
#define INFINIPATH_RT_BUFSIZE_MASK   0x3FFFULL
 
#define INFINIPATH_RT_BUFSIZE_SHIFT   48
 
#define INFINIPATH_R_INTRAVAIL_SHIFT   16
 
#define INFINIPATH_R_TAILUPD_SHIFT   31
 
#define INFINIPATH_XGXS_RESET   0x7ULL
 
#define _IPATH_GPIO_SDA_NUM   1
 
#define _IPATH_GPIO_SCL_NUM   0
 
#define IPATH_GPIO_SDA   (1ULL << (_IPATH_GPIO_SDA_NUM+INFINIPATH_EXTC_GPIOOE_SHIFT))
 
#define IPATH_GPIO_SCL   (1ULL << (_IPATH_GPIO_SCL_NUM+INFINIPATH_EXTC_GPIOOE_SHIFT))
 
#define _IPATH_HTLINK0_CRCBITS
 
#define _IPATH_HTLINK1_CRCBITS
 
#define _IPATH_HTLANE0_CRCBITS
 
#define _IPATH_HTLANE1_CRCBITS
 
#define TXE_PIO_PARITY
 
#define RXE_EAGER_PARITY
 
#define _IPATH_PLL_FAIL
 

: the output buffer

ipath_ht_boardname - fill in the board name : the infinipath device

: the size of the output buffer

fill in the board name, based on the board revision register

#define HT_INTR_DISC_CONFIG   0x80 /* HT interrupt and discovery cap */
 
#define HT_INTR_REG_INDEX   2 /* intconfig requires indirect accesses */
 
void ipath_init_iba6110_funcs (struct ipath_devdata *dd)
 

Macro Definition Documentation

#define _IPATH_GPIO_SCL_NUM   0

Definition at line 377 of file ipath_iba6110.c.

#define _IPATH_GPIO_SDA_NUM   1

Definition at line 376 of file ipath_iba6110.c.

#define _IPATH_HTLANE0_CRCBITS
Value:
(infinipath_hwe_htclnkabyte0crcerr | \
infinipath_hwe_htclnkbbyte0crcerr)

Definition at line 389 of file ipath_iba6110.c.

#define _IPATH_HTLANE1_CRCBITS
Value:
(infinipath_hwe_htclnkabyte1crcerr | \
infinipath_hwe_htclnkbbyte1crcerr)

Definition at line 391 of file ipath_iba6110.c.

#define _IPATH_HTLINK0_CRCBITS
Value:
(infinipath_hwe_htclnkabyte0crcerr | \
infinipath_hwe_htclnkabyte1crcerr)

Definition at line 385 of file ipath_iba6110.c.

#define _IPATH_HTLINK1_CRCBITS
Value:
(infinipath_hwe_htclnkbbyte0crcerr | \
infinipath_hwe_htclnkbbyte1crcerr)

Definition at line 387 of file ipath_iba6110.c.

#define _IPATH_PLL_FAIL
Value:
INFINIPATH_HWE_COREPLL_RFSLIP | \
INFINIPATH_HWE_HTBPLL_FBSLIP | \
INFINIPATH_HWE_HTBPLL_RFSLIP | \
INFINIPATH_HWE_HTAPLL_FBSLIP | \
INFINIPATH_HWE_HTAPLL_RFSLIP)
#define HT_INTR_DISC_CONFIG   0x80 /* HT interrupt and discovery cap */

Definition at line 803 of file ipath_iba6110.c.

#define HT_INTR_REG_INDEX   2 /* intconfig requires indirect accesses */

Definition at line 804 of file ipath_iba6110.c.

#define IBA6110_IBCS_LINKSTATE_SHIFT   4

Definition at line 336 of file ipath_iba6110.c.

#define IBA6110_IBCS_LINKTRAININGSTATE_MASK   0xf

Definition at line 335 of file ipath_iba6110.c.

#define INFINIPATH_EXTS_FREQSEL   0x2

Definition at line 339 of file ipath_iba6110.c.

#define INFINIPATH_EXTS_MEMBIST_CORRECT   0x0000000000008000

Definition at line 342 of file ipath_iba6110.c.

#define INFINIPATH_EXTS_MEMBIST_ENDTEST   0x0000000000004000

Definition at line 341 of file ipath_iba6110.c.

#define INFINIPATH_EXTS_SERDESSEL   0x4

Definition at line 340 of file ipath_iba6110.c.

#define INFINIPATH_HWE_COREPLL_FBSLIP   0x0080000000000000ULL

Definition at line 327 of file ipath_iba6110.c.

#define INFINIPATH_HWE_COREPLL_RFSLIP   0x0100000000000000ULL

Definition at line 328 of file ipath_iba6110.c.

#define INFINIPATH_HWE_HTAPLL_FBSLIP   0x0800000000000000ULL

Definition at line 331 of file ipath_iba6110.c.

#define INFINIPATH_HWE_HTAPLL_RFSLIP   0x1000000000000000ULL

Definition at line 332 of file ipath_iba6110.c.

#define INFINIPATH_HWE_HTBPLL_FBSLIP   0x0200000000000000ULL

Definition at line 329 of file ipath_iba6110.c.

#define INFINIPATH_HWE_HTBPLL_RFSLIP   0x0400000000000000ULL

Definition at line 330 of file ipath_iba6110.c.

#define INFINIPATH_HWE_HTCBUSIREQPARITYERR   0x0000000200000000ULL

Definition at line 326 of file ipath_iba6110.c.

#define INFINIPATH_HWE_HTCBUSTREQPARITYERR   0x0000000080000000ULL

Definition at line 324 of file ipath_iba6110.c.

#define INFINIPATH_HWE_HTCBUSTRESPPARITYERR   0x0000000100000000ULL

Definition at line 325 of file ipath_iba6110.c.

#define INFINIPATH_HWE_HTCLNKABYTE0CRCERR   0x0000000000800000ULL

Definition at line 316 of file ipath_iba6110.c.

#define INFINIPATH_HWE_HTCLNKABYTE1CRCERR   0x0000000001000000ULL

Definition at line 317 of file ipath_iba6110.c.

#define INFINIPATH_HWE_HTCLNKBBYTE0CRCERR   0x0000000002000000ULL

Definition at line 318 of file ipath_iba6110.c.

#define INFINIPATH_HWE_HTCLNKBBYTE1CRCERR   0x0000000004000000ULL

Definition at line 319 of file ipath_iba6110.c.

#define INFINIPATH_HWE_HTCMEMPARITYERR_MASK   0x3FFFFFULL

Definition at line 315 of file ipath_iba6110.c.

#define INFINIPATH_HWE_HTCMEMPARITYERR_SHIFT   0

Definition at line 314 of file ipath_iba6110.c.

#define INFINIPATH_HWE_HTCMISCERR4   0x0000000008000000ULL

Definition at line 320 of file ipath_iba6110.c.

#define INFINIPATH_HWE_HTCMISCERR5   0x0000000010000000ULL

Definition at line 321 of file ipath_iba6110.c.

#define INFINIPATH_HWE_HTCMISCERR6   0x0000000020000000ULL

Definition at line 322 of file ipath_iba6110.c.

#define INFINIPATH_HWE_HTCMISCERR7   0x0000000040000000ULL

Definition at line 323 of file ipath_iba6110.c.

#define INFINIPATH_HWE_SERDESPLLFAILED   0x2000000000000000ULL

Definition at line 333 of file ipath_iba6110.c.

#define INFINIPATH_I_RCVAVAIL_MASK   ((1U<<9)-1)

Definition at line 310 of file ipath_iba6110.c.

#define INFINIPATH_I_RCVAVAIL_SHIFT   12

Definition at line 311 of file ipath_iba6110.c.

#define INFINIPATH_I_RCVURG_MASK   ((1U<<9)-1)

Definition at line 308 of file ipath_iba6110.c.

#define INFINIPATH_I_RCVURG_SHIFT   0

Definition at line 309 of file ipath_iba6110.c.

#define INFINIPATH_R_INTRAVAIL_SHIFT   16

Definition at line 352 of file ipath_iba6110.c.

#define INFINIPATH_R_TAILUPD_SHIFT   31

Definition at line 353 of file ipath_iba6110.c.

#define INFINIPATH_RT_ADDR_MASK   0xFFFFFFFFFFULL /* 40 bits valid */

Definition at line 346 of file ipath_iba6110.c.

#define INFINIPATH_RT_ADDR_SHIFT   0

Definition at line 348 of file ipath_iba6110.c.

#define INFINIPATH_RT_BUFSIZE_MASK   0x3FFFULL

Definition at line 349 of file ipath_iba6110.c.

#define INFINIPATH_RT_BUFSIZE_SHIFT   48

Definition at line 350 of file ipath_iba6110.c.

#define INFINIPATH_RT_VALID   0x8000000000000000ULL

Definition at line 347 of file ipath_iba6110.c.

#define INFINIPATH_XGXS_RESET   0x7ULL

Definition at line 356 of file ipath_iba6110.c.

#define IPATH_CREG_OFFSET (   field)
Value:

Definition at line 201 of file ipath_iba6110.c.

#define IPATH_GPIO_SCL   (1ULL << (_IPATH_GPIO_SCL_NUM+INFINIPATH_EXTC_GPIOOE_SHIFT))

Definition at line 381 of file ipath_iba6110.c.

#define IPATH_GPIO_SDA   (1ULL << (_IPATH_GPIO_SDA_NUM+INFINIPATH_EXTC_GPIOOE_SHIFT))

Definition at line 379 of file ipath_iba6110.c.

#define IPATH_KREG_OFFSET (   field)
Value:

Definition at line 199 of file ipath_iba6110.c.

#define RXE_EAGER_PARITY
#define TXE_PIO_PARITY
Value:
INFINIPATH_HWE_TXEMEMPARITYERR_PIOPBC) \

Definition at line 476 of file ipath_iba6110.c.

Function Documentation

void ipath_init_iba6110_funcs ( struct ipath_devdata dd)

ipath_init_iba6110_funcs - set up the chip-specific function pointers : the infinipath device

This is global, and is called directly at init to set up the chip-specific function pointers for later use.

Definition at line 1908 of file ipath_iba6110.c.