Path: blob/master/drivers/infiniband/hw/ipath/ipath_registers.h
15112 views
/*1* Copyright (c) 2006, 2007 QLogic Corporation. All rights reserved.2* Copyright (c) 2003, 2004, 2005, 2006 PathScale, Inc. All rights reserved.3*4* This software is available to you under a choice of one of two5* licenses. You may choose to be licensed under the terms of the GNU6* General Public License (GPL) Version 2, available from the file7* COPYING in the main directory of this source tree, or the8* OpenIB.org BSD license below:9*10* Redistribution and use in source and binary forms, with or11* without modification, are permitted provided that the following12* conditions are met:13*14* - Redistributions of source code must retain the above15* copyright notice, this list of conditions and the following16* disclaimer.17*18* - Redistributions in binary form must reproduce the above19* copyright notice, this list of conditions and the following20* disclaimer in the documentation and/or other materials21* provided with the distribution.22*23* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,24* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF25* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND26* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS27* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN28* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN29* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE30* SOFTWARE.31*/3233#ifndef _IPATH_REGISTERS_H34#define _IPATH_REGISTERS_H3536/*37* This file should only be included by kernel source, and by the diags. It38* defines the registers, and their contents, for InfiniPath chips.39*/4041/*42* These are the InfiniPath register and buffer bit definitions,43* that are visible to software, and needed only by the kernel44* and diag code. A few, that are visible to protocol and user45* code are in ipath_common.h. Some bits are specific46* to a given chip implementation, and have been moved to the47* chip-specific source file48*/4950/* kr_revision bits */51#define INFINIPATH_R_CHIPREVMINOR_MASK 0xFF52#define INFINIPATH_R_CHIPREVMINOR_SHIFT 053#define INFINIPATH_R_CHIPREVMAJOR_MASK 0xFF54#define INFINIPATH_R_CHIPREVMAJOR_SHIFT 855#define INFINIPATH_R_ARCH_MASK 0xFF56#define INFINIPATH_R_ARCH_SHIFT 1657#define INFINIPATH_R_SOFTWARE_MASK 0xFF58#define INFINIPATH_R_SOFTWARE_SHIFT 2459#define INFINIPATH_R_BOARDID_MASK 0xFF60#define INFINIPATH_R_BOARDID_SHIFT 326162/* kr_control bits */63#define INFINIPATH_C_FREEZEMODE 0x0000000264#define INFINIPATH_C_LINKENABLE 0x000000046566/* kr_sendctrl bits */67#define INFINIPATH_S_DISARMPIOBUF_SHIFT 1668#define INFINIPATH_S_UPDTHRESH_SHIFT 2469#define INFINIPATH_S_UPDTHRESH_MASK 0x1f7071#define IPATH_S_ABORT 072#define IPATH_S_PIOINTBUFAVAIL 173#define IPATH_S_PIOBUFAVAILUPD 274#define IPATH_S_PIOENABLE 375#define IPATH_S_SDMAINTENABLE 976#define IPATH_S_SDMASINGLEDESCRIPTOR 1077#define IPATH_S_SDMAENABLE 1178#define IPATH_S_SDMAHALT 1279#define IPATH_S_DISARM 318081#define INFINIPATH_S_ABORT (1U << IPATH_S_ABORT)82#define INFINIPATH_S_PIOINTBUFAVAIL (1U << IPATH_S_PIOINTBUFAVAIL)83#define INFINIPATH_S_PIOBUFAVAILUPD (1U << IPATH_S_PIOBUFAVAILUPD)84#define INFINIPATH_S_PIOENABLE (1U << IPATH_S_PIOENABLE)85#define INFINIPATH_S_SDMAINTENABLE (1U << IPATH_S_SDMAINTENABLE)86#define INFINIPATH_S_SDMASINGLEDESCRIPTOR \87(1U << IPATH_S_SDMASINGLEDESCRIPTOR)88#define INFINIPATH_S_SDMAENABLE (1U << IPATH_S_SDMAENABLE)89#define INFINIPATH_S_SDMAHALT (1U << IPATH_S_SDMAHALT)90#define INFINIPATH_S_DISARM (1U << IPATH_S_DISARM)9192/* kr_rcvctrl bits that are the same on multiple chips */93#define INFINIPATH_R_PORTENABLE_SHIFT 094#define INFINIPATH_R_QPMAP_ENABLE (1ULL << 38)9596/* kr_intstatus, kr_intclear, kr_intmask bits */97#define INFINIPATH_I_SDMAINT 0x8000000000000000ULL98#define INFINIPATH_I_SDMADISABLED 0x4000000000000000ULL99#define INFINIPATH_I_ERROR 0x0000000080000000ULL100#define INFINIPATH_I_SPIOSENT 0x0000000040000000ULL101#define INFINIPATH_I_SPIOBUFAVAIL 0x0000000020000000ULL102#define INFINIPATH_I_GPIO 0x0000000010000000ULL103#define INFINIPATH_I_JINT 0x0000000004000000ULL104105/* kr_errorstatus, kr_errorclear, kr_errormask bits */106#define INFINIPATH_E_RFORMATERR 0x0000000000000001ULL107#define INFINIPATH_E_RVCRC 0x0000000000000002ULL108#define INFINIPATH_E_RICRC 0x0000000000000004ULL109#define INFINIPATH_E_RMINPKTLEN 0x0000000000000008ULL110#define INFINIPATH_E_RMAXPKTLEN 0x0000000000000010ULL111#define INFINIPATH_E_RLONGPKTLEN 0x0000000000000020ULL112#define INFINIPATH_E_RSHORTPKTLEN 0x0000000000000040ULL113#define INFINIPATH_E_RUNEXPCHAR 0x0000000000000080ULL114#define INFINIPATH_E_RUNSUPVL 0x0000000000000100ULL115#define INFINIPATH_E_REBP 0x0000000000000200ULL116#define INFINIPATH_E_RIBFLOW 0x0000000000000400ULL117#define INFINIPATH_E_RBADVERSION 0x0000000000000800ULL118#define INFINIPATH_E_RRCVEGRFULL 0x0000000000001000ULL119#define INFINIPATH_E_RRCVHDRFULL 0x0000000000002000ULL120#define INFINIPATH_E_RBADTID 0x0000000000004000ULL121#define INFINIPATH_E_RHDRLEN 0x0000000000008000ULL122#define INFINIPATH_E_RHDR 0x0000000000010000ULL123#define INFINIPATH_E_RIBLOSTLINK 0x0000000000020000ULL124#define INFINIPATH_E_SENDSPECIALTRIGGER 0x0000000008000000ULL125#define INFINIPATH_E_SDMADISABLED 0x0000000010000000ULL126#define INFINIPATH_E_SMINPKTLEN 0x0000000020000000ULL127#define INFINIPATH_E_SMAXPKTLEN 0x0000000040000000ULL128#define INFINIPATH_E_SUNDERRUN 0x0000000080000000ULL129#define INFINIPATH_E_SPKTLEN 0x0000000100000000ULL130#define INFINIPATH_E_SDROPPEDSMPPKT 0x0000000200000000ULL131#define INFINIPATH_E_SDROPPEDDATAPKT 0x0000000400000000ULL132#define INFINIPATH_E_SPIOARMLAUNCH 0x0000000800000000ULL133#define INFINIPATH_E_SUNEXPERRPKTNUM 0x0000001000000000ULL134#define INFINIPATH_E_SUNSUPVL 0x0000002000000000ULL135#define INFINIPATH_E_SENDBUFMISUSE 0x0000004000000000ULL136#define INFINIPATH_E_SDMAGENMISMATCH 0x0000008000000000ULL137#define INFINIPATH_E_SDMAOUTOFBOUND 0x0000010000000000ULL138#define INFINIPATH_E_SDMATAILOUTOFBOUND 0x0000020000000000ULL139#define INFINIPATH_E_SDMABASE 0x0000040000000000ULL140#define INFINIPATH_E_SDMA1STDESC 0x0000080000000000ULL141#define INFINIPATH_E_SDMARPYTAG 0x0000100000000000ULL142#define INFINIPATH_E_SDMADWEN 0x0000200000000000ULL143#define INFINIPATH_E_SDMAMISSINGDW 0x0000400000000000ULL144#define INFINIPATH_E_SDMAUNEXPDATA 0x0000800000000000ULL145#define INFINIPATH_E_IBSTATUSCHANGED 0x0001000000000000ULL146#define INFINIPATH_E_INVALIDADDR 0x0002000000000000ULL147#define INFINIPATH_E_RESET 0x0004000000000000ULL148#define INFINIPATH_E_HARDWARE 0x0008000000000000ULL149#define INFINIPATH_E_SDMADESCADDRMISALIGN 0x0010000000000000ULL150#define INFINIPATH_E_INVALIDEEPCMD 0x0020000000000000ULL151152/*153* this is used to print "common" packet errors only when the154* __IPATH_ERRPKTDBG bit is set in ipath_debug.155*/156#define INFINIPATH_E_PKTERRS ( INFINIPATH_E_SPKTLEN \157| INFINIPATH_E_SDROPPEDDATAPKT | INFINIPATH_E_RVCRC \158| INFINIPATH_E_RICRC | INFINIPATH_E_RSHORTPKTLEN \159| INFINIPATH_E_REBP )160161/* Convenience for decoding Send DMA errors */162#define INFINIPATH_E_SDMAERRS ( \163INFINIPATH_E_SDMAGENMISMATCH | INFINIPATH_E_SDMAOUTOFBOUND | \164INFINIPATH_E_SDMATAILOUTOFBOUND | INFINIPATH_E_SDMABASE | \165INFINIPATH_E_SDMA1STDESC | INFINIPATH_E_SDMARPYTAG | \166INFINIPATH_E_SDMADWEN | INFINIPATH_E_SDMAMISSINGDW | \167INFINIPATH_E_SDMAUNEXPDATA | \168INFINIPATH_E_SDMADESCADDRMISALIGN | \169INFINIPATH_E_SDMADISABLED | \170INFINIPATH_E_SENDBUFMISUSE)171172/* kr_hwerrclear, kr_hwerrmask, kr_hwerrstatus, bits */173/* TXEMEMPARITYERR bit 0: PIObuf, 1: PIOpbc, 2: launchfifo174* RXEMEMPARITYERR bit 0: rcvbuf, 1: lookupq, 2: expTID, 3: eagerTID175* bit 4: flag buffer, 5: datainfo, 6: header info */176#define INFINIPATH_HWE_TXEMEMPARITYERR_MASK 0xFULL177#define INFINIPATH_HWE_TXEMEMPARITYERR_SHIFT 40178#define INFINIPATH_HWE_RXEMEMPARITYERR_MASK 0x7FULL179#define INFINIPATH_HWE_RXEMEMPARITYERR_SHIFT 44180#define INFINIPATH_HWE_IBCBUSTOSPCPARITYERR 0x4000000000000000ULL181#define INFINIPATH_HWE_IBCBUSFRSPCPARITYERR 0x8000000000000000ULL182/* txe mem parity errors (shift by INFINIPATH_HWE_TXEMEMPARITYERR_SHIFT) */183#define INFINIPATH_HWE_TXEMEMPARITYERR_PIOBUF 0x1ULL184#define INFINIPATH_HWE_TXEMEMPARITYERR_PIOPBC 0x2ULL185#define INFINIPATH_HWE_TXEMEMPARITYERR_PIOLAUNCHFIFO 0x4ULL186/* rxe mem parity errors (shift by INFINIPATH_HWE_RXEMEMPARITYERR_SHIFT) */187#define INFINIPATH_HWE_RXEMEMPARITYERR_RCVBUF 0x01ULL188#define INFINIPATH_HWE_RXEMEMPARITYERR_LOOKUPQ 0x02ULL189#define INFINIPATH_HWE_RXEMEMPARITYERR_EXPTID 0x04ULL190#define INFINIPATH_HWE_RXEMEMPARITYERR_EAGERTID 0x08ULL191#define INFINIPATH_HWE_RXEMEMPARITYERR_FLAGBUF 0x10ULL192#define INFINIPATH_HWE_RXEMEMPARITYERR_DATAINFO 0x20ULL193#define INFINIPATH_HWE_RXEMEMPARITYERR_HDRINFO 0x40ULL194/* waldo specific -- find the rest in ipath_6110.c */195#define INFINIPATH_HWE_RXDSYNCMEMPARITYERR 0x0000000400000000ULL196/* 6120/7220 specific -- find the rest in ipath_6120.c and ipath_7220.c */197#define INFINIPATH_HWE_MEMBISTFAILED 0x0040000000000000ULL198199/* kr_hwdiagctrl bits */200#define INFINIPATH_DC_FORCETXEMEMPARITYERR_MASK 0xFULL201#define INFINIPATH_DC_FORCETXEMEMPARITYERR_SHIFT 40202#define INFINIPATH_DC_FORCERXEMEMPARITYERR_MASK 0x7FULL203#define INFINIPATH_DC_FORCERXEMEMPARITYERR_SHIFT 44204#define INFINIPATH_DC_FORCERXDSYNCMEMPARITYERR 0x0000000400000000ULL205#define INFINIPATH_DC_COUNTERDISABLE 0x1000000000000000ULL206#define INFINIPATH_DC_COUNTERWREN 0x2000000000000000ULL207#define INFINIPATH_DC_FORCEIBCBUSTOSPCPARITYERR 0x4000000000000000ULL208#define INFINIPATH_DC_FORCEIBCBUSFRSPCPARITYERR 0x8000000000000000ULL209210/* kr_ibcctrl bits */211#define INFINIPATH_IBCC_FLOWCTRLPERIOD_MASK 0xFFULL212#define INFINIPATH_IBCC_FLOWCTRLPERIOD_SHIFT 0213#define INFINIPATH_IBCC_FLOWCTRLWATERMARK_MASK 0xFFULL214#define INFINIPATH_IBCC_FLOWCTRLWATERMARK_SHIFT 8215#define INFINIPATH_IBCC_LINKINITCMD_MASK 0x3ULL216#define INFINIPATH_IBCC_LINKINITCMD_DISABLE 1217/* cycle through TS1/TS2 till OK */218#define INFINIPATH_IBCC_LINKINITCMD_POLL 2219/* wait for TS1, then go on */220#define INFINIPATH_IBCC_LINKINITCMD_SLEEP 3221#define INFINIPATH_IBCC_LINKINITCMD_SHIFT 16222#define INFINIPATH_IBCC_LINKCMD_MASK 0x3ULL223#define INFINIPATH_IBCC_LINKCMD_DOWN 1 /* move to 0x11 */224#define INFINIPATH_IBCC_LINKCMD_ARMED 2 /* move to 0x21 */225#define INFINIPATH_IBCC_LINKCMD_ACTIVE 3 /* move to 0x31 */226#define INFINIPATH_IBCC_LINKCMD_SHIFT 18227#define INFINIPATH_IBCC_MAXPKTLEN_MASK 0x7FFULL228#define INFINIPATH_IBCC_MAXPKTLEN_SHIFT 20229#define INFINIPATH_IBCC_PHYERRTHRESHOLD_MASK 0xFULL230#define INFINIPATH_IBCC_PHYERRTHRESHOLD_SHIFT 32231#define INFINIPATH_IBCC_OVERRUNTHRESHOLD_MASK 0xFULL232#define INFINIPATH_IBCC_OVERRUNTHRESHOLD_SHIFT 36233#define INFINIPATH_IBCC_CREDITSCALE_MASK 0x7ULL234#define INFINIPATH_IBCC_CREDITSCALE_SHIFT 40235#define INFINIPATH_IBCC_LOOPBACK 0x8000000000000000ULL236#define INFINIPATH_IBCC_LINKDOWNDEFAULTSTATE 0x4000000000000000ULL237238/* kr_ibcstatus bits */239#define INFINIPATH_IBCS_LINKTRAININGSTATE_SHIFT 0240#define INFINIPATH_IBCS_LINKSTATE_MASK 0x7241242#define INFINIPATH_IBCS_TXREADY 0x40000000243#define INFINIPATH_IBCS_TXCREDITOK 0x80000000244/* link training states (shift by245INFINIPATH_IBCS_LINKTRAININGSTATE_SHIFT) */246#define INFINIPATH_IBCS_LT_STATE_DISABLED 0x00247#define INFINIPATH_IBCS_LT_STATE_LINKUP 0x01248#define INFINIPATH_IBCS_LT_STATE_POLLACTIVE 0x02249#define INFINIPATH_IBCS_LT_STATE_POLLQUIET 0x03250#define INFINIPATH_IBCS_LT_STATE_SLEEPDELAY 0x04251#define INFINIPATH_IBCS_LT_STATE_SLEEPQUIET 0x05252#define INFINIPATH_IBCS_LT_STATE_CFGDEBOUNCE 0x08253#define INFINIPATH_IBCS_LT_STATE_CFGRCVFCFG 0x09254#define INFINIPATH_IBCS_LT_STATE_CFGWAITRMT 0x0a255#define INFINIPATH_IBCS_LT_STATE_CFGIDLE 0x0b256#define INFINIPATH_IBCS_LT_STATE_RECOVERRETRAIN 0x0c257#define INFINIPATH_IBCS_LT_STATE_RECOVERWAITRMT 0x0e258#define INFINIPATH_IBCS_LT_STATE_RECOVERIDLE 0x0f259/* link state machine states (shift by ibcs_ls_shift) */260#define INFINIPATH_IBCS_L_STATE_DOWN 0x0261#define INFINIPATH_IBCS_L_STATE_INIT 0x1262#define INFINIPATH_IBCS_L_STATE_ARM 0x2263#define INFINIPATH_IBCS_L_STATE_ACTIVE 0x3264#define INFINIPATH_IBCS_L_STATE_ACT_DEFER 0x4265266267/* kr_extstatus bits */268#define INFINIPATH_EXTS_SERDESPLLLOCK 0x1269#define INFINIPATH_EXTS_GPIOIN_MASK 0xFFFFULL270#define INFINIPATH_EXTS_GPIOIN_SHIFT 48271272/* kr_extctrl bits */273#define INFINIPATH_EXTC_GPIOINVERT_MASK 0xFFFFULL274#define INFINIPATH_EXTC_GPIOINVERT_SHIFT 32275#define INFINIPATH_EXTC_GPIOOE_MASK 0xFFFFULL276#define INFINIPATH_EXTC_GPIOOE_SHIFT 48277#define INFINIPATH_EXTC_SERDESENABLE 0x80000000ULL278#define INFINIPATH_EXTC_SERDESCONNECT 0x40000000ULL279#define INFINIPATH_EXTC_SERDESENTRUNKING 0x20000000ULL280#define INFINIPATH_EXTC_SERDESDISRXFIFO 0x10000000ULL281#define INFINIPATH_EXTC_SERDESENPLPBK1 0x08000000ULL282#define INFINIPATH_EXTC_SERDESENPLPBK2 0x04000000ULL283#define INFINIPATH_EXTC_SERDESENENCDEC 0x02000000ULL284#define INFINIPATH_EXTC_LED1SECPORT_ON 0x00000020ULL285#define INFINIPATH_EXTC_LED2SECPORT_ON 0x00000010ULL286#define INFINIPATH_EXTC_LED1PRIPORT_ON 0x00000008ULL287#define INFINIPATH_EXTC_LED2PRIPORT_ON 0x00000004ULL288#define INFINIPATH_EXTC_LEDGBLOK_ON 0x00000002ULL289#define INFINIPATH_EXTC_LEDGBLERR_OFF 0x00000001ULL290291/* kr_partitionkey bits */292#define INFINIPATH_PKEY_SIZE 16293#define INFINIPATH_PKEY_MASK 0xFFFF294#define INFINIPATH_PKEY_DEFAULT_PKEY 0xFFFF295296/* kr_serdesconfig0 bits */297#define INFINIPATH_SERDC0_RESET_MASK 0xfULL /* overal reset bits */298#define INFINIPATH_SERDC0_RESET_PLL 0x10000000ULL /* pll reset */299/* tx idle enables (per lane) */300#define INFINIPATH_SERDC0_TXIDLE 0xF000ULL301/* rx detect enables (per lane) */302#define INFINIPATH_SERDC0_RXDETECT_EN 0xF0000ULL303/* L1 Power down; use with RXDETECT, Otherwise not used on IB side */304#define INFINIPATH_SERDC0_L1PWR_DN 0xF0ULL305306/* common kr_xgxsconfig bits (or safe in all, even if not implemented) */307#define INFINIPATH_XGXS_RX_POL_SHIFT 19308#define INFINIPATH_XGXS_RX_POL_MASK 0xfULL309310311/*312* IPATH_PIO_MAXIBHDR is the max IB header size allowed for in our313* PIO send buffers. This is well beyond anything currently314* defined in the InfiniBand spec.315*/316#define IPATH_PIO_MAXIBHDR 128317318typedef u64 ipath_err_t;319320/* The following change with the type of device, so321* need to be part of the ipath_devdata struct, or322* we could have problems plugging in devices of323* different types (e.g. one HT, one PCIE)324* in one system, to be managed by one driver.325* On the other hand, this file is may also be included326* by other code, so leave the declarations here327* temporarily. Minor footprint issue if common-model328* linker used, none if C89+ linker used.329*/330331/* mask of defined bits for various registers */332extern u64 infinipath_i_bitsextant;333extern ipath_err_t infinipath_e_bitsextant, infinipath_hwe_bitsextant;334335/* masks that are different in various chips, or only exist in some chips */336extern u32 infinipath_i_rcvavail_mask, infinipath_i_rcvurg_mask;337338/*339* These are the infinipath general register numbers (not offsets).340* The kernel registers are used directly, those beyond the kernel341* registers are calculated from one of the base registers. The use of342* an integer type doesn't allow type-checking as thorough as, say,343* an enum but allows for better hiding of chip differences.344*/345typedef const u16 ipath_kreg, /* infinipath general registers */346ipath_creg, /* infinipath counter registers */347ipath_sreg; /* kernel-only, infinipath send registers */348349/*350* These are the chip registers common to all infinipath chips, and351* used both by the kernel and the diagnostics or other user code.352* They are all implemented such that 64 bit accesses work.353* Some implement no more than 32 bits. Because 64 bit reads354* require 2 HT cmds on opteron, we access those with 32 bit355* reads for efficiency (they are written as 64 bits, since356* the extra 32 bits are nearly free on writes, and it slightly reduces357* complexity). The rest are all accessed as 64 bits.358*/359struct ipath_kregs {360/* These are the 32 bit group */361ipath_kreg kr_control;362ipath_kreg kr_counterregbase;363ipath_kreg kr_intmask;364ipath_kreg kr_intstatus;365ipath_kreg kr_pagealign;366ipath_kreg kr_portcnt;367ipath_kreg kr_rcvtidbase;368ipath_kreg kr_rcvtidcnt;369ipath_kreg kr_rcvegrbase;370ipath_kreg kr_rcvegrcnt;371ipath_kreg kr_scratch;372ipath_kreg kr_sendctrl;373ipath_kreg kr_sendpiobufbase;374ipath_kreg kr_sendpiobufcnt;375ipath_kreg kr_sendpiosize;376ipath_kreg kr_sendregbase;377ipath_kreg kr_userregbase;378/* These are the 64 bit group */379ipath_kreg kr_debugport;380ipath_kreg kr_debugportselect;381ipath_kreg kr_errorclear;382ipath_kreg kr_errormask;383ipath_kreg kr_errorstatus;384ipath_kreg kr_extctrl;385ipath_kreg kr_extstatus;386ipath_kreg kr_gpio_clear;387ipath_kreg kr_gpio_mask;388ipath_kreg kr_gpio_out;389ipath_kreg kr_gpio_status;390ipath_kreg kr_hwdiagctrl;391ipath_kreg kr_hwerrclear;392ipath_kreg kr_hwerrmask;393ipath_kreg kr_hwerrstatus;394ipath_kreg kr_ibcctrl;395ipath_kreg kr_ibcstatus;396ipath_kreg kr_intblocked;397ipath_kreg kr_intclear;398ipath_kreg kr_interruptconfig;399ipath_kreg kr_mdio;400ipath_kreg kr_partitionkey;401ipath_kreg kr_rcvbthqp;402ipath_kreg kr_rcvbufbase;403ipath_kreg kr_rcvbufsize;404ipath_kreg kr_rcvctrl;405ipath_kreg kr_rcvhdrcnt;406ipath_kreg kr_rcvhdrentsize;407ipath_kreg kr_rcvhdrsize;408ipath_kreg kr_rcvintmembase;409ipath_kreg kr_rcvintmemsize;410ipath_kreg kr_revision;411ipath_kreg kr_sendbuffererror;412ipath_kreg kr_sendpioavailaddr;413ipath_kreg kr_serdesconfig0;414ipath_kreg kr_serdesconfig1;415ipath_kreg kr_serdesstatus;416ipath_kreg kr_txintmembase;417ipath_kreg kr_txintmemsize;418ipath_kreg kr_xgxsconfig;419ipath_kreg kr_ibpllcfg;420/* use these two (and the following N ports) only with421* ipath_k*_kreg64_port(); not *kreg64() */422ipath_kreg kr_rcvhdraddr;423ipath_kreg kr_rcvhdrtailaddr;424425/* remaining registers are not present on all types of infinipath426chips */427ipath_kreg kr_rcvpktledcnt;428ipath_kreg kr_pcierbuftestreg0;429ipath_kreg kr_pcierbuftestreg1;430ipath_kreg kr_pcieq0serdesconfig0;431ipath_kreg kr_pcieq0serdesconfig1;432ipath_kreg kr_pcieq0serdesstatus;433ipath_kreg kr_pcieq1serdesconfig0;434ipath_kreg kr_pcieq1serdesconfig1;435ipath_kreg kr_pcieq1serdesstatus;436ipath_kreg kr_hrtbt_guid;437ipath_kreg kr_ibcddrctrl;438ipath_kreg kr_ibcddrstatus;439ipath_kreg kr_jintreload;440441/* send dma related regs */442ipath_kreg kr_senddmabase;443ipath_kreg kr_senddmalengen;444ipath_kreg kr_senddmatail;445ipath_kreg kr_senddmahead;446ipath_kreg kr_senddmaheadaddr;447ipath_kreg kr_senddmabufmask0;448ipath_kreg kr_senddmabufmask1;449ipath_kreg kr_senddmabufmask2;450ipath_kreg kr_senddmastatus;451452/* SerDes related regs (IBA7220-only) */453ipath_kreg kr_ibserdesctrl;454ipath_kreg kr_ib_epbacc;455ipath_kreg kr_ib_epbtrans;456ipath_kreg kr_pcie_epbacc;457ipath_kreg kr_pcie_epbtrans;458ipath_kreg kr_ib_ddsrxeq;459};460461struct ipath_cregs {462ipath_creg cr_badformatcnt;463ipath_creg cr_erricrccnt;464ipath_creg cr_errlinkcnt;465ipath_creg cr_errlpcrccnt;466ipath_creg cr_errpkey;467ipath_creg cr_errrcvflowctrlcnt;468ipath_creg cr_err_rlencnt;469ipath_creg cr_errslencnt;470ipath_creg cr_errtidfull;471ipath_creg cr_errtidvalid;472ipath_creg cr_errvcrccnt;473ipath_creg cr_ibstatuschange;474ipath_creg cr_intcnt;475ipath_creg cr_invalidrlencnt;476ipath_creg cr_invalidslencnt;477ipath_creg cr_lbflowstallcnt;478ipath_creg cr_iblinkdowncnt;479ipath_creg cr_iblinkerrrecovcnt;480ipath_creg cr_ibsymbolerrcnt;481ipath_creg cr_pktrcvcnt;482ipath_creg cr_pktrcvflowctrlcnt;483ipath_creg cr_pktsendcnt;484ipath_creg cr_pktsendflowcnt;485ipath_creg cr_portovflcnt;486ipath_creg cr_rcvebpcnt;487ipath_creg cr_rcvovflcnt;488ipath_creg cr_rxdroppktcnt;489ipath_creg cr_senddropped;490ipath_creg cr_sendstallcnt;491ipath_creg cr_sendunderruncnt;492ipath_creg cr_unsupvlcnt;493ipath_creg cr_wordrcvcnt;494ipath_creg cr_wordsendcnt;495ipath_creg cr_vl15droppedpktcnt;496ipath_creg cr_rxotherlocalphyerrcnt;497ipath_creg cr_excessbufferovflcnt;498ipath_creg cr_locallinkintegrityerrcnt;499ipath_creg cr_rxvlerrcnt;500ipath_creg cr_rxdlidfltrcnt;501ipath_creg cr_psstat;502ipath_creg cr_psstart;503ipath_creg cr_psinterval;504ipath_creg cr_psrcvdatacount;505ipath_creg cr_psrcvpktscount;506ipath_creg cr_psxmitdatacount;507ipath_creg cr_psxmitpktscount;508ipath_creg cr_psxmitwaitcount;509};510511#endif /* _IPATH_REGISTERS_H */512513514