Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
ipg.h File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/ioport.h>
#include <linux/errno.h>
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/types.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/init.h>
#include <linux/skbuff.h>
#include <asm/bitops.h>

Go to the source code of this file.

Data Structures

struct  ipg_tx
 
struct  ipg_rx
 
struct  ipg_jumbo
 
struct  ipg_nic_private
 

Macros

#define NS   0x2000
 
#define MARVELL   0x0141
 
#define ICPLUS_PHY   0x243
 
#define MII_PHY_SELECTOR_IEEE8023   0x0001
 
#define MII_PHY_TECHABILITYFIELD   0x1FE0
 
#define GMII_PHY_1000BASETCONTROL_PreferMaster   0x0400
 
#define GMII_PREAMBLE   0xFFFFFFFF
 
#define GMII_ST   0x1
 
#define GMII_READ   0x2
 
#define GMII_WRITE   0x1
 
#define GMII_TA_READ_MASK   0x1
 
#define GMII_TA_WRITE   0x2
 
#define IPG_OCTETRCVOK   0xA8
 
#define IPG_MCSTOCTETRCVDOK   0xAC
 
#define IPG_BCSTOCTETRCVOK   0xB0
 
#define IPG_FRAMESRCVDOK   0xB4
 
#define IPG_MCSTFRAMESRCVDOK   0xB8
 
#define IPG_BCSTFRAMESRCVDOK   0xBE
 
#define IPG_MACCONTROLFRAMESRCVD   0xC6
 
#define IPG_FRAMETOOLONGERRRORS   0xC8
 
#define IPG_INRANGELENGTHERRORS   0xCA
 
#define IPG_FRAMECHECKSEQERRORS   0xCC
 
#define IPG_FRAMESLOSTRXERRORS   0xCE
 
#define IPG_OCTETXMTOK   0xD0
 
#define IPG_MCSTOCTETXMTOK   0xD4
 
#define IPG_BCSTOCTETXMTOK   0xD8
 
#define IPG_FRAMESXMTDOK   0xDC
 
#define IPG_MCSTFRAMESXMTDOK   0xE0
 
#define IPG_FRAMESWDEFERREDXMT   0xE4
 
#define IPG_LATECOLLISIONS   0xE8
 
#define IPG_MULTICOLFRAMES   0xEC
 
#define IPG_SINGLECOLFRAMES   0xF0
 
#define IPG_BCSTFRAMESXMTDOK   0xF6
 
#define IPG_CARRIERSENSEERRORS   0xF8
 
#define IPG_MACCONTROLFRAMESXMTDOK   0xFA
 
#define IPG_FRAMESABORTXSCOLLS   0xFC
 
#define IPG_FRAMESWEXDEFERRAL   0xFE
 
#define IPG_ETHERSTATSCOLLISIONS   0x100
 
#define IPG_ETHERSTATSOCTETSTRANSMIT   0x104
 
#define IPG_ETHERSTATSPKTSTRANSMIT   0x108
 
#define IPG_ETHERSTATSPKTS64OCTESTSTRANSMIT   0x10C
 
#define IPG_ETHERSTATSPKTS65TO127OCTESTSTRANSMIT   0x110
 
#define IPG_ETHERSTATSPKTS128TO255OCTESTSTRANSMIT   0x114
 
#define IPG_ETHERSTATSPKTS256TO511OCTESTSTRANSMIT   0x118
 
#define IPG_ETHERSTATSPKTS512TO1023OCTESTSTRANSMIT   0x11C
 
#define IPG_ETHERSTATSPKTS1024TO1518OCTESTSTRANSMIT   0x120
 
#define IPG_ETHERSTATSCRCALIGNERRORS   0x124
 
#define IPG_ETHERSTATSUNDERSIZEPKTS   0x128
 
#define IPG_ETHERSTATSFRAGMENTS   0x12C
 
#define IPG_ETHERSTATSJABBERS   0x130
 
#define IPG_ETHERSTATSOCTETS   0x134
 
#define IPG_ETHERSTATSPKTS   0x138
 
#define IPG_ETHERSTATSPKTS64OCTESTS   0x13C
 
#define IPG_ETHERSTATSPKTS65TO127OCTESTS   0x140
 
#define IPG_ETHERSTATSPKTS128TO255OCTESTS   0x144
 
#define IPG_ETHERSTATSPKTS256TO511OCTESTS   0x148
 
#define IPG_ETHERSTATSPKTS512TO1023OCTESTS   0x14C
 
#define IPG_ETHERSTATSPKTS1024TO1518OCTESTS   0x150
 
#define IPG_ETHERSTATSMULTICASTPKTSTRANSMIT   0xE0
 
#define IPG_ETHERSTATSBROADCASTPKTSTRANSMIT   0xF6
 
#define IPG_ETHERSTATSMULTICASTPKTS   0xB8
 
#define IPG_ETHERSTATSBROADCASTPKTS   0xBE
 
#define IPG_ETHERSTATSOVERSIZEPKTS   0xC8
 
#define IPG_ETHERSTATSDROPEVENTS   0xCE
 
#define IPG_EEPROM_CONFIGPARAM   0x00
 
#define IPG_EEPROM_ASICCTRL   0x01
 
#define IPG_EEPROM_SUBSYSTEMVENDORID   0x02
 
#define IPG_EEPROM_SUBSYSTEMID   0x03
 
#define IPG_EEPROM_STATIONADDRESS0   0x10
 
#define IPG_EEPROM_STATIONADDRESS1   0x11
 
#define IPG_EEPROM_STATIONADDRESS2   0x12
 
#define IPG_PIB_RSVD_MASK   0xFFFFFE01
 
#define IPG_PIB_IOBASEADDRESS   0xFFFFFF00
 
#define IPG_PIB_IOBASEADDRIND   0x00000001
 
#define IPG_PMB_RSVD_MASK   0xFFFFFE07
 
#define IPG_PMB_MEMBASEADDRIND   0x00000001
 
#define IPG_PMB_MEMMAPTYPE   0x00000006
 
#define IPG_PMB_MEMMAPTYPE0   0x00000002
 
#define IPG_PMB_MEMMAPTYPE1   0x00000004
 
#define IPG_PMB_MEMBASEADDRESS   0xFFFFFE00
 
#define IPG_CS_RSVD_MASK   0xFFB0
 
#define IPG_CS_CAPABILITIES   0x0010
 
#define IPG_CS_66MHZCAPABLE   0x0020
 
#define IPG_CS_FASTBACK2BACK   0x0080
 
#define IPG_CS_DATAPARITYREPORTED   0x0100
 
#define IPG_CS_DEVSELTIMING   0x0600
 
#define IPG_CS_SIGNALEDTARGETABORT   0x0800
 
#define IPG_CS_RECEIVEDTARGETABORT   0x1000
 
#define IPG_CS_RECEIVEDMASTERABORT   0x2000
 
#define IPG_CS_SIGNALEDSYSTEMERROR   0x4000
 
#define IPG_CS_DETECTEDPARITYERROR   0x8000
 
#define IPG_TFC_RSVD_MASK   0x0000FFFF9FFFFFFF
 
#define IPG_TFC_FRAMEID   0x000000000000FFFF
 
#define IPG_TFC_WORDALIGN   0x0000000000030000
 
#define IPG_TFC_WORDALIGNTODWORD   0x0000000000000000
 
#define IPG_TFC_WORDALIGNTOWORD   0x0000000000020000
 
#define IPG_TFC_WORDALIGNDISABLED   0x0000000000030000
 
#define IPG_TFC_TCPCHECKSUMENABLE   0x0000000000040000
 
#define IPG_TFC_UDPCHECKSUMENABLE   0x0000000000080000
 
#define IPG_TFC_IPCHECKSUMENABLE   0x0000000000100000
 
#define IPG_TFC_FCSAPPENDDISABLE   0x0000000000200000
 
#define IPG_TFC_TXINDICATE   0x0000000000400000
 
#define IPG_TFC_TXDMAINDICATE   0x0000000000800000
 
#define IPG_TFC_FRAGCOUNT   0x000000000F000000
 
#define IPG_TFC_VLANTAGINSERT   0x0000000010000000
 
#define IPG_TFC_TFDDONE   0x0000000080000000
 
#define IPG_TFC_VID   0x00000FFF00000000
 
#define IPG_TFC_CFI   0x0000100000000000
 
#define IPG_TFC_USERPRIORITY   0x0000E00000000000
 
#define IPG_TFI_RSVD_MASK   0xFFFF00FFFFFFFFFF
 
#define IPG_TFI_FRAGADDR   0x000000FFFFFFFFFF
 
#define IPG_TFI_FRAGLEN   0xFFFF000000000000LL
 
#define IPG_RFS_RSVD_MASK   0x0000FFFFFFFFFFFF
 
#define IPG_RFS_RXFRAMELEN   0x000000000000FFFF
 
#define IPG_RFS_RXFIFOOVERRUN   0x0000000000010000
 
#define IPG_RFS_RXRUNTFRAME   0x0000000000020000
 
#define IPG_RFS_RXALIGNMENTERROR   0x0000000000040000
 
#define IPG_RFS_RXFCSERROR   0x0000000000080000
 
#define IPG_RFS_RXOVERSIZEDFRAME   0x0000000000100000
 
#define IPG_RFS_RXLENGTHERROR   0x0000000000200000
 
#define IPG_RFS_VLANDETECTED   0x0000000000400000
 
#define IPG_RFS_TCPDETECTED   0x0000000000800000
 
#define IPG_RFS_TCPERROR   0x0000000001000000
 
#define IPG_RFS_UDPDETECTED   0x0000000002000000
 
#define IPG_RFS_UDPERROR   0x0000000004000000
 
#define IPG_RFS_IPDETECTED   0x0000000008000000
 
#define IPG_RFS_IPERROR   0x0000000010000000
 
#define IPG_RFS_FRAMESTART   0x0000000020000000
 
#define IPG_RFS_FRAMEEND   0x0000000040000000
 
#define IPG_RFS_RFDDONE   0x0000000080000000
 
#define IPG_RFS_TCI   0x0000FFFF00000000
 
#define IPG_RFI_RSVD_MASK   0xFFFF00FFFFFFFFFF
 
#define IPG_RFI_FRAGADDR   0x000000FFFFFFFFFF
 
#define IPG_RFI_FRAGLEN   0xFFFF000000000000LL
 
#define IPG_RZ_ALL   0x0FFFFFFF
 
#define IPG_SM_ALL   0x0FFFFFFF
 
#define IPG_SM_OCTETRCVOK_FRAMESRCVDOK   0x00000001
 
#define IPG_SM_MCSTOCTETRCVDOK_MCSTFRAMESRCVDOK   0x00000002
 
#define IPG_SM_BCSTOCTETRCVDOK_BCSTFRAMESRCVDOK   0x00000004
 
#define IPG_SM_RXJUMBOFRAMES   0x00000008
 
#define IPG_SM_TCPCHECKSUMERRORS   0x00000010
 
#define IPG_SM_IPCHECKSUMERRORS   0x00000020
 
#define IPG_SM_UDPCHECKSUMERRORS   0x00000040
 
#define IPG_SM_MACCONTROLFRAMESRCVD   0x00000080
 
#define IPG_SM_FRAMESTOOLONGERRORS   0x00000100
 
#define IPG_SM_INRANGELENGTHERRORS   0x00000200
 
#define IPG_SM_FRAMECHECKSEQERRORS   0x00000400
 
#define IPG_SM_FRAMESLOSTRXERRORS   0x00000800
 
#define IPG_SM_OCTETXMTOK_FRAMESXMTOK   0x00001000
 
#define IPG_SM_MCSTOCTETXMTOK_MCSTFRAMESXMTDOK   0x00002000
 
#define IPG_SM_BCSTOCTETXMTOK_BCSTFRAMESXMTDOK   0x00004000
 
#define IPG_SM_FRAMESWDEFERREDXMT   0x00008000
 
#define IPG_SM_LATECOLLISIONS   0x00010000
 
#define IPG_SM_MULTICOLFRAMES   0x00020000
 
#define IPG_SM_SINGLECOLFRAMES   0x00040000
 
#define IPG_SM_TXJUMBOFRAMES   0x00080000
 
#define IPG_SM_CARRIERSENSEERRORS   0x00100000
 
#define IPG_SM_MACCONTROLFRAMESXMTD   0x00200000
 
#define IPG_SM_FRAMESABORTXSCOLLS   0x00400000
 
#define IPG_SM_FRAMESWEXDEFERAL   0x00800000
 
#define IPG_CD_RSVD_MASK   0x0700FFFF
 
#define IPG_CD_COUNT   0x0000FFFF
 
#define IPG_CD_COUNTDOWNSPEED   0x01000000
 
#define IPG_CD_COUNTDOWNMODE   0x02000000
 
#define IPG_CD_COUNTINTENABLED   0x04000000
 
#define IPG_TB_RSVD_MASK   0xFF
 
#define IPG_TU_RSVD_MASK   0xFF
 
#define IPG_TP_RSVD_MASK   0xFF
 
#define IPG_RU_RSVD_MASK   0xFF
 
#define IPG_RP_RSVD_MASK   0xFF
 
#define IPG_RM_RSVD_MASK   0x3F
 
#define IPG_RM_RECEIVEUNICAST   0x01
 
#define IPG_RM_RECEIVEMULTICAST   0x02
 
#define IPG_RM_RECEIVEBROADCAST   0x04
 
#define IPG_RM_RECEIVEALLFRAMES   0x08
 
#define IPG_RM_RECEIVEMULTICASTHASH   0x10
 
#define IPG_RM_RECEIVEIPMULTICAST   0x20
 
#define IPG_PS_MEM_LENB9B   0x01
 
#define IPG_PS_MEM_LEN9   0x02
 
#define IPG_PS_NON_COMPDET   0x04
 
#define IPG_PC_RSVD_MASK   0xFF
 
#define IPG_PC_MGMTCLK_LO   0x00
 
#define IPG_PC_MGMTCLK_HI   0x01
 
#define IPG_PC_MGMTCLK   0x01
 
#define IPG_PC_MGMTDATA   0x02
 
#define IPG_PC_MGMTDIR   0x04
 
#define IPG_PC_DUPLEX_POLARITY   0x08
 
#define IPG_PC_DUPLEX_STATUS   0x10
 
#define IPG_PC_LINK_POLARITY   0x20
 
#define IPG_PC_LINK_SPEED   0xC0
 
#define IPG_PC_LINK_SPEED_10MBPS   0x40
 
#define IPG_PC_LINK_SPEED_100MBPS   0x80
 
#define IPG_PC_LINK_SPEED_1000MBPS   0xC0
 
#define IPG_DC_RSVD_MASK   0xC07D9818
 
#define IPG_DC_RX_DMA_COMPLETE   0x00000008
 
#define IPG_DC_RX_DMA_POLL_NOW   0x00000010
 
#define IPG_DC_TX_DMA_COMPLETE   0x00000800
 
#define IPG_DC_TX_DMA_POLL_NOW   0x00001000
 
#define IPG_DC_TX_DMA_IN_PROG   0x00008000
 
#define IPG_DC_RX_EARLY_DISABLE   0x00010000
 
#define IPG_DC_MWI_DISABLE   0x00040000
 
#define IPG_DC_TX_WRITE_BACK_DISABLE   0x00080000
 
#define IPG_DC_TX_BURST_LIMIT   0x00700000
 
#define IPG_DC_TARGET_ABORT   0x40000000
 
#define IPG_DC_MASTER_ABORT   0x80000000
 
#define IPG_AC_RSVD_MASK   0x07FFEFF2
 
#define IPG_AC_EXP_ROM_SIZE   0x00000002
 
#define IPG_AC_PHY_SPEED10   0x00000010
 
#define IPG_AC_PHY_SPEED100   0x00000020
 
#define IPG_AC_PHY_SPEED1000   0x00000040
 
#define IPG_AC_PHY_MEDIA   0x00000080
 
#define IPG_AC_FORCED_CFG   0x00000700
 
#define IPG_AC_D3RESETDISABLE   0x00000800
 
#define IPG_AC_SPEED_UP_MODE   0x00002000
 
#define IPG_AC_LED_MODE   0x00004000
 
#define IPG_AC_RST_OUT_POLARITY   0x00008000
 
#define IPG_AC_GLOBAL_RESET   0x00010000
 
#define IPG_AC_RX_RESET   0x00020000
 
#define IPG_AC_TX_RESET   0x00040000
 
#define IPG_AC_DMA   0x00080000
 
#define IPG_AC_FIFO   0x00100000
 
#define IPG_AC_NETWORK   0x00200000
 
#define IPG_AC_HOST   0x00400000
 
#define IPG_AC_AUTO_INIT   0x00800000
 
#define IPG_AC_RST_OUT   0x01000000
 
#define IPG_AC_INT_REQUEST   0x02000000
 
#define IPG_AC_RESET_BUSY   0x04000000
 
#define IPG_AC_LED_SPEED   0x08000000
 
#define IPG_AC_LED_MODE_BIT_1   0x20000000
 
#define IPG_EC_RSVD_MASK   0x83FF
 
#define IPG_EC_EEPROM_ADDR   0x00FF
 
#define IPG_EC_EEPROM_OPCODE   0x0300
 
#define IPG_EC_EEPROM_SUBCOMMAD   0x0000
 
#define IPG_EC_EEPROM_WRITEOPCODE   0x0100
 
#define IPG_EC_EEPROM_READOPCODE   0x0200
 
#define IPG_EC_EEPROM_ERASEOPCODE   0x0300
 
#define IPG_EC_EEPROM_BUSY   0x8000
 
#define IPG_FC_RSVD_MASK   0xC001
 
#define IPG_FC_RAM_TEST_MODE   0x0001
 
#define IPG_FC_TRANSMITTING   0x4000
 
#define IPG_FC_RECEIVING   0x8000
 
#define IPG_TS_RSVD_MASK   0xFFFF00DD
 
#define IPG_TS_TX_ERROR   0x00000001
 
#define IPG_TS_LATE_COLLISION   0x00000004
 
#define IPG_TS_TX_MAX_COLL   0x00000008
 
#define IPG_TS_TX_UNDERRUN   0x00000010
 
#define IPG_TS_TX_IND_REQD   0x00000040
 
#define IPG_TS_TX_COMPLETE   0x00000080
 
#define IPG_TS_TX_FRAMEID   0xFFFF0000
 
#define IPG_WE_WAKE_PKT_ENABLE   0x01
 
#define IPG_WE_MAGIC_PKT_ENABLE   0x02
 
#define IPG_WE_LINK_EVT_ENABLE   0x04
 
#define IPG_WE_WAKE_POLARITY   0x08
 
#define IPG_WE_WAKE_PKT_EVT   0x10
 
#define IPG_WE_MAGIC_PKT_EVT   0x20
 
#define IPG_WE_LINK_EVT   0x40
 
#define IPG_WE_WOL_ENABLE   0x80
 
#define IPG_IE_RSVD_MASK   0x1FFE
 
#define IPG_IE_HOST_ERROR   0x0002
 
#define IPG_IE_TX_COMPLETE   0x0004
 
#define IPG_IE_MAC_CTRL_FRAME   0x0008
 
#define IPG_IE_RX_COMPLETE   0x0010
 
#define IPG_IE_RX_EARLY   0x0020
 
#define IPG_IE_INT_REQUESTED   0x0040
 
#define IPG_IE_UPDATE_STATS   0x0080
 
#define IPG_IE_LINK_EVENT   0x0100
 
#define IPG_IE_TX_DMA_COMPLETE   0x0200
 
#define IPG_IE_RX_DMA_COMPLETE   0x0400
 
#define IPG_IE_RFD_LIST_END   0x0800
 
#define IPG_IE_RX_DMA_PRIORITY   0x1000
 
#define IPG_IS_RSVD_MASK   0x1FFF
 
#define IPG_IS_INTERRUPT_STATUS   0x0001
 
#define IPG_IS_HOST_ERROR   0x0002
 
#define IPG_IS_TX_COMPLETE   0x0004
 
#define IPG_IS_MAC_CTRL_FRAME   0x0008
 
#define IPG_IS_RX_COMPLETE   0x0010
 
#define IPG_IS_RX_EARLY   0x0020
 
#define IPG_IS_INT_REQUESTED   0x0040
 
#define IPG_IS_UPDATE_STATS   0x0080
 
#define IPG_IS_LINK_EVENT   0x0100
 
#define IPG_IS_TX_DMA_COMPLETE   0x0200
 
#define IPG_IS_RX_DMA_COMPLETE   0x0400
 
#define IPG_IS_RFD_LIST_END   0x0800
 
#define IPG_IS_RX_DMA_PRIORITY   0x1000
 
#define IPG_MC_RSVD_MASK   0x7FE33FA3
 
#define IPG_MC_IFS_SELECT   0x00000003
 
#define IPG_MC_IFS_4352BIT   0x00000003
 
#define IPG_MC_IFS_1792BIT   0x00000002
 
#define IPG_MC_IFS_1024BIT   0x00000001
 
#define IPG_MC_IFS_96BIT   0x00000000
 
#define IPG_MC_DUPLEX_SELECT   0x00000020
 
#define IPG_MC_DUPLEX_SELECT_FD   0x00000020
 
#define IPG_MC_DUPLEX_SELECT_HD   0x00000000
 
#define IPG_MC_TX_FLOW_CONTROL_ENABLE   0x00000080
 
#define IPG_MC_RX_FLOW_CONTROL_ENABLE   0x00000100
 
#define IPG_MC_RCV_FCS   0x00000200
 
#define IPG_MC_FIFO_LOOPBACK   0x00000400
 
#define IPG_MC_MAC_LOOPBACK   0x00000800
 
#define IPG_MC_AUTO_VLAN_TAGGING   0x00001000
 
#define IPG_MC_AUTO_VLAN_UNTAGGING   0x00002000
 
#define IPG_MC_COLLISION_DETECT   0x00010000
 
#define IPG_MC_CARRIER_SENSE   0x00020000
 
#define IPG_MC_STATISTICS_ENABLE   0x00200000
 
#define IPG_MC_STATISTICS_DISABLE   0x00400000
 
#define IPG_MC_STATISTICS_ENABLED   0x00800000
 
#define IPG_MC_TX_ENABLE   0x01000000
 
#define IPG_MC_TX_DISABLE   0x02000000
 
#define IPG_MC_TX_ENABLED   0x04000000
 
#define IPG_MC_RX_ENABLE   0x08000000
 
#define IPG_MC_RX_DISABLE   0x10000000
 
#define IPG_MC_RX_ENABLED   0x20000000
 
#define IPG_MC_PAUSED   0x40000000
 
#define IPG_APPEND_FCS_ON_TX   1
 
#define IPG_STRIP_FCS_ON_RX   1
 
#define IPG_DROP_ON_RX_ETH_ERRORS   1
 
#define IPG_INSERT_MANUAL_VLAN_TAG   0
 
#define IPG_ADD_IPCHECKSUM_ON_TX   0
 
#define IPG_ADD_TCPCHECKSUM_ON_TX   0
 
#define IPG_ADD_UDPCHECKSUM_ON_TX   0
 
#define IPG_MANUAL_VLAN_VID   0xABC
 
#define IPG_MANUAL_VLAN_CFI   0x1
 
#define IPG_MANUAL_VLAN_USERPRIORITY   0x5
 
#define IPG_IO_REG_RANGE   0xFF
 
#define IPG_MEM_REG_RANGE   0x154
 
#define IPG_DRIVER_NAME   "Sundance Technology IPG Triple-Speed Ethernet"
 
#define IPG_NIC_PHY_ADDRESS   0x01
 
#define IPG_DMALIST_ALIGN_PAD   0x07
 
#define IPG_MULTICAST_HASHTABLE_SIZE   0x40
 
#define IPG_AC_RESETWAIT   0x05
 
#define IPG_AC_RESET_TIMEOUT   0x0A
 
#define IPG_PC_PHYCTRLWAIT_NS   200
 
#define IPG_TFDLIST_LENGTH   0x100
 
#define IPG_FRAMESBETWEENTXDMACOMPLETES   0x1
 
#define IPG_RFDLIST_LENGTH   0x100
 
#define IPG_MAXRFDPROCESS_COUNT   0x80
 
#define IPG_MINUSEDRFDSTOFREE   0x80
 
#define MAX_JUMBOSIZE   0x8 /* max is 12K */
 
#define IPG_TXDMAPOLLPERIOD_VALUE   0x26
 
#define IPG_TXDMAURGENTTHRESH_VALUE   0x04
 
#define IPG_TXDMABURSTTHRESH_VALUE   0x30
 
#define IPG_RXDMAPOLLPERIOD_VALUE   0x01
 
#define IPG_RXDMAURGENTTHRESH_VALUE   0x30
 
#define IPG_RXDMABURSTTHRESH_VALUE   0x30
 
#define IPG_FLOWONTHRESH_VALUE   0x0740
 
#define IPG_FLOWOFFTHRESH_VALUE   0x00BF
 
#define IPG_DEBUG_MSG(fmt, args...)
 
#define IPG_DDEBUG_MSG(fmt, args...)
 
#define IPG_DUMPRFDLIST(args)
 
#define IPG_DUMPTFDLIST(args)
 

Enumerations

enum  ipg_regs {
  DMA_CTRL = 0x00, RX_DMA_STATUS = 0x08, TFD_LIST_PTR_0 = 0x10, TFD_LIST_PTR_1 = 0x14,
  TX_DMA_BURST_THRESH = 0x18, TX_DMA_URGENT_THRESH = 0x19, TX_DMA_POLL_PERIOD = 0x1a, RFD_LIST_PTR_0 = 0x1c,
  RFD_LIST_PTR_1 = 0x20, RX_DMA_BURST_THRESH = 0x24, RX_DMA_URGENT_THRESH = 0x25, RX_DMA_POLL_PERIOD = 0x26,
  DEBUG_CTRL = 0x2c, ASIC_CTRL = 0x30, FIFO_CTRL = 0x38, FLOW_OFF_THRESH = 0x3c,
  FLOW_ON_THRESH = 0x3e, EEPROM_DATA = 0x48, EEPROM_CTRL = 0x4a, EXPROM_ADDR = 0x4c,
  EXPROM_DATA = 0x50, WAKE_EVENT = 0x51, COUNTDOWN = 0x54, INT_STATUS_ACK = 0x5a,
  INT_ENABLE = 0x5c, INT_STATUS = 0x5e, TX_STATUS = 0x60, MAC_CTRL = 0x6c,
  VLAN_TAG = 0x70, PHY_SET = 0x75, PHY_CTRL = 0x76, STATION_ADDRESS_0 = 0x78,
  STATION_ADDRESS_1 = 0x7a, STATION_ADDRESS_2 = 0x7c, MAX_FRAME_SIZE = 0x86, RECEIVE_MODE = 0x88,
  HASHTABLE_0 = 0x8c, HASHTABLE_1 = 0x90, RMON_STATISTICS_MASK = 0x98, STATISTICS_MASK = 0x9c,
  RX_JUMBO_FRAMES = 0xbc, TCP_CHECKSUM_ERRORS = 0xc0, IP_CHECKSUM_ERRORS = 0xc2, UDP_CHECKSUM_ERRORS = 0xc4,
  TX_JUMBO_FRAMES = 0xf4
}
 

Macro Definition Documentation

#define GMII_PHY_1000BASETCONTROL_PreferMaster   0x0400

Definition at line 39 of file ipg.h.

#define GMII_PREAMBLE   0xFFFFFFFF

Definition at line 42 of file ipg.h.

#define GMII_READ   0x2

Definition at line 44 of file ipg.h.

#define GMII_ST   0x1

Definition at line 43 of file ipg.h.

#define GMII_TA_READ_MASK   0x1

Definition at line 46 of file ipg.h.

#define GMII_TA_WRITE   0x2

Definition at line 47 of file ipg.h.

#define GMII_WRITE   0x1

Definition at line 45 of file ipg.h.

#define ICPLUS_PHY   0x243

Definition at line 32 of file ipg.h.

#define IPG_AC_AUTO_INIT   0x00800000

Definition at line 366 of file ipg.h.

#define IPG_AC_D3RESETDISABLE   0x00000800

Definition at line 355 of file ipg.h.

#define IPG_AC_DMA   0x00080000

Definition at line 362 of file ipg.h.

#define IPG_AC_EXP_ROM_SIZE   0x00000002

Definition at line 349 of file ipg.h.

#define IPG_AC_FIFO   0x00100000

Definition at line 363 of file ipg.h.

#define IPG_AC_FORCED_CFG   0x00000700

Definition at line 354 of file ipg.h.

#define IPG_AC_GLOBAL_RESET   0x00010000

Definition at line 359 of file ipg.h.

#define IPG_AC_HOST   0x00400000

Definition at line 365 of file ipg.h.

#define IPG_AC_INT_REQUEST   0x02000000

Definition at line 368 of file ipg.h.

#define IPG_AC_LED_MODE   0x00004000

Definition at line 357 of file ipg.h.

#define IPG_AC_LED_MODE_BIT_1   0x20000000

Definition at line 371 of file ipg.h.

#define IPG_AC_LED_SPEED   0x08000000

Definition at line 370 of file ipg.h.

#define IPG_AC_NETWORK   0x00200000

Definition at line 364 of file ipg.h.

#define IPG_AC_PHY_MEDIA   0x00000080

Definition at line 353 of file ipg.h.

#define IPG_AC_PHY_SPEED10   0x00000010

Definition at line 350 of file ipg.h.

#define IPG_AC_PHY_SPEED100   0x00000020

Definition at line 351 of file ipg.h.

#define IPG_AC_PHY_SPEED1000   0x00000040

Definition at line 352 of file ipg.h.

#define IPG_AC_RESET_BUSY   0x04000000

Definition at line 369 of file ipg.h.

#define IPG_AC_RESET_TIMEOUT   0x0A

Definition at line 523 of file ipg.h.

#define IPG_AC_RESETWAIT   0x05

Definition at line 520 of file ipg.h.

#define IPG_AC_RST_OUT   0x01000000

Definition at line 367 of file ipg.h.

#define IPG_AC_RST_OUT_POLARITY   0x00008000

Definition at line 358 of file ipg.h.

#define IPG_AC_RSVD_MASK   0x07FFEFF2

Definition at line 348 of file ipg.h.

#define IPG_AC_RX_RESET   0x00020000

Definition at line 360 of file ipg.h.

#define IPG_AC_SPEED_UP_MODE   0x00002000

Definition at line 356 of file ipg.h.

#define IPG_AC_TX_RESET   0x00040000

Definition at line 361 of file ipg.h.

#define IPG_ADD_IPCHECKSUM_ON_TX   0

Definition at line 491 of file ipg.h.

#define IPG_ADD_TCPCHECKSUM_ON_TX   0

Definition at line 496 of file ipg.h.

#define IPG_ADD_UDPCHECKSUM_ON_TX   0

Definition at line 501 of file ipg.h.

#define IPG_APPEND_FCS_ON_TX   1

Definition at line 475 of file ipg.h.

#define IPG_BCSTFRAMESRCVDOK   0xBE

Definition at line 104 of file ipg.h.

#define IPG_BCSTFRAMESXMTDOK   0xF6

Definition at line 119 of file ipg.h.

#define IPG_BCSTOCTETRCVOK   0xB0

Definition at line 101 of file ipg.h.

#define IPG_BCSTOCTETXMTOK   0xD8

Definition at line 112 of file ipg.h.

#define IPG_CARRIERSENSEERRORS   0xF8

Definition at line 120 of file ipg.h.

#define IPG_CD_COUNT   0x0000FFFF

Definition at line 284 of file ipg.h.

#define IPG_CD_COUNTDOWNMODE   0x02000000

Definition at line 286 of file ipg.h.

#define IPG_CD_COUNTDOWNSPEED   0x01000000

Definition at line 285 of file ipg.h.

#define IPG_CD_COUNTINTENABLED   0x04000000

Definition at line 287 of file ipg.h.

#define IPG_CD_RSVD_MASK   0x0700FFFF

Definition at line 283 of file ipg.h.

#define IPG_CS_66MHZCAPABLE   0x0020

Definition at line 185 of file ipg.h.

#define IPG_CS_CAPABILITIES   0x0010

Definition at line 184 of file ipg.h.

#define IPG_CS_DATAPARITYREPORTED   0x0100

Definition at line 187 of file ipg.h.

#define IPG_CS_DETECTEDPARITYERROR   0x8000

Definition at line 193 of file ipg.h.

#define IPG_CS_DEVSELTIMING   0x0600

Definition at line 188 of file ipg.h.

#define IPG_CS_FASTBACK2BACK   0x0080

Definition at line 186 of file ipg.h.

#define IPG_CS_RECEIVEDMASTERABORT   0x2000

Definition at line 191 of file ipg.h.

#define IPG_CS_RECEIVEDTARGETABORT   0x1000

Definition at line 190 of file ipg.h.

#define IPG_CS_RSVD_MASK   0xFFB0

Definition at line 183 of file ipg.h.

#define IPG_CS_SIGNALEDSYSTEMERROR   0x4000

Definition at line 192 of file ipg.h.

#define IPG_CS_SIGNALEDTARGETABORT   0x0800

Definition at line 189 of file ipg.h.

#define IPG_DC_MASTER_ABORT   0x80000000

Definition at line 345 of file ipg.h.

#define IPG_DC_MWI_DISABLE   0x00040000

Definition at line 341 of file ipg.h.

#define IPG_DC_RSVD_MASK   0xC07D9818

Definition at line 334 of file ipg.h.

#define IPG_DC_RX_DMA_COMPLETE   0x00000008

Definition at line 335 of file ipg.h.

#define IPG_DC_RX_DMA_POLL_NOW   0x00000010

Definition at line 336 of file ipg.h.

#define IPG_DC_RX_EARLY_DISABLE   0x00010000

Definition at line 340 of file ipg.h.

#define IPG_DC_TARGET_ABORT   0x40000000

Definition at line 344 of file ipg.h.

#define IPG_DC_TX_BURST_LIMIT   0x00700000

Definition at line 343 of file ipg.h.

#define IPG_DC_TX_DMA_COMPLETE   0x00000800

Definition at line 337 of file ipg.h.

#define IPG_DC_TX_DMA_IN_PROG   0x00008000

Definition at line 339 of file ipg.h.

#define IPG_DC_TX_DMA_POLL_NOW   0x00001000

Definition at line 338 of file ipg.h.

#define IPG_DC_TX_WRITE_BACK_DISABLE   0x00080000

Definition at line 342 of file ipg.h.

#define IPG_DDEBUG_MSG (   fmt,
  args... 
)
Value:
do { \
if (0) \
printk(KERN_DEBUG "IPG: " fmt, ##args); \
} while (0)

Definition at line 673 of file ipg.h.

#define IPG_DEBUG_MSG (   fmt,
  args... 
)
Value:
do { \
if (0) \
printk(KERN_DEBUG "IPG: " fmt, ##args); \
} while (0)

Definition at line 668 of file ipg.h.

#define IPG_DMALIST_ALIGN_PAD   0x07

Definition at line 514 of file ipg.h.

#define IPG_DRIVER_NAME   "Sundance Technology IPG Triple-Speed Ethernet"

Definition at line 512 of file ipg.h.

#define IPG_DROP_ON_RX_ETH_ERRORS   1

Definition at line 483 of file ipg.h.

#define IPG_DUMPRFDLIST (   args)

Definition at line 678 of file ipg.h.

#define IPG_DUMPTFDLIST (   args)

Definition at line 679 of file ipg.h.

#define IPG_EC_EEPROM_ADDR   0x00FF

Definition at line 375 of file ipg.h.

#define IPG_EC_EEPROM_BUSY   0x8000

Definition at line 381 of file ipg.h.

#define IPG_EC_EEPROM_ERASEOPCODE   0x0300

Definition at line 380 of file ipg.h.

#define IPG_EC_EEPROM_OPCODE   0x0300

Definition at line 376 of file ipg.h.

#define IPG_EC_EEPROM_READOPCODE   0x0200

Definition at line 379 of file ipg.h.

#define IPG_EC_EEPROM_SUBCOMMAD   0x0000

Definition at line 377 of file ipg.h.

#define IPG_EC_EEPROM_WRITEOPCODE   0x0100

Definition at line 378 of file ipg.h.

#define IPG_EC_RSVD_MASK   0x83FF

Definition at line 374 of file ipg.h.

#define IPG_EEPROM_ASICCTRL   0x01

Definition at line 158 of file ipg.h.

#define IPG_EEPROM_CONFIGPARAM   0x00

Definition at line 157 of file ipg.h.

#define IPG_EEPROM_STATIONADDRESS0   0x10

Definition at line 161 of file ipg.h.

#define IPG_EEPROM_STATIONADDRESS1   0x11

Definition at line 162 of file ipg.h.

#define IPG_EEPROM_STATIONADDRESS2   0x12

Definition at line 163 of file ipg.h.

#define IPG_EEPROM_SUBSYSTEMID   0x03

Definition at line 160 of file ipg.h.

#define IPG_EEPROM_SUBSYSTEMVENDORID   0x02

Definition at line 159 of file ipg.h.

#define IPG_ETHERSTATSBROADCASTPKTS   0xBE

Definition at line 152 of file ipg.h.

#define IPG_ETHERSTATSBROADCASTPKTSTRANSMIT   0xF6

Definition at line 150 of file ipg.h.

#define IPG_ETHERSTATSCOLLISIONS   0x100

Definition at line 126 of file ipg.h.

#define IPG_ETHERSTATSCRCALIGNERRORS   0x124

Definition at line 135 of file ipg.h.

#define IPG_ETHERSTATSDROPEVENTS   0xCE

Definition at line 154 of file ipg.h.

#define IPG_ETHERSTATSFRAGMENTS   0x12C

Definition at line 137 of file ipg.h.

#define IPG_ETHERSTATSJABBERS   0x130

Definition at line 138 of file ipg.h.

#define IPG_ETHERSTATSMULTICASTPKTS   0xB8

Definition at line 151 of file ipg.h.

#define IPG_ETHERSTATSMULTICASTPKTSTRANSMIT   0xE0

Definition at line 149 of file ipg.h.

#define IPG_ETHERSTATSOCTETS   0x134

Definition at line 139 of file ipg.h.

#define IPG_ETHERSTATSOCTETSTRANSMIT   0x104

Definition at line 127 of file ipg.h.

#define IPG_ETHERSTATSOVERSIZEPKTS   0xC8

Definition at line 153 of file ipg.h.

#define IPG_ETHERSTATSPKTS   0x138

Definition at line 140 of file ipg.h.

#define IPG_ETHERSTATSPKTS1024TO1518OCTESTS   0x150

Definition at line 146 of file ipg.h.

#define IPG_ETHERSTATSPKTS1024TO1518OCTESTSTRANSMIT   0x120

Definition at line 134 of file ipg.h.

#define IPG_ETHERSTATSPKTS128TO255OCTESTS   0x144

Definition at line 143 of file ipg.h.

#define IPG_ETHERSTATSPKTS128TO255OCTESTSTRANSMIT   0x114

Definition at line 131 of file ipg.h.

#define IPG_ETHERSTATSPKTS256TO511OCTESTS   0x148

Definition at line 144 of file ipg.h.

#define IPG_ETHERSTATSPKTS256TO511OCTESTSTRANSMIT   0x118

Definition at line 132 of file ipg.h.

#define IPG_ETHERSTATSPKTS512TO1023OCTESTS   0x14C

Definition at line 145 of file ipg.h.

#define IPG_ETHERSTATSPKTS512TO1023OCTESTSTRANSMIT   0x11C

Definition at line 133 of file ipg.h.

#define IPG_ETHERSTATSPKTS64OCTESTS   0x13C

Definition at line 141 of file ipg.h.

#define IPG_ETHERSTATSPKTS64OCTESTSTRANSMIT   0x10C

Definition at line 129 of file ipg.h.

#define IPG_ETHERSTATSPKTS65TO127OCTESTS   0x140

Definition at line 142 of file ipg.h.

#define IPG_ETHERSTATSPKTS65TO127OCTESTSTRANSMIT   0x110

Definition at line 130 of file ipg.h.

#define IPG_ETHERSTATSPKTSTRANSMIT   0x108

Definition at line 128 of file ipg.h.

#define IPG_ETHERSTATSUNDERSIZEPKTS   0x128

Definition at line 136 of file ipg.h.

#define IPG_FC_RAM_TEST_MODE   0x0001

Definition at line 385 of file ipg.h.

#define IPG_FC_RECEIVING   0x8000

Definition at line 387 of file ipg.h.

#define IPG_FC_RSVD_MASK   0xC001

Definition at line 384 of file ipg.h.

#define IPG_FC_TRANSMITTING   0x4000

Definition at line 386 of file ipg.h.

#define IPG_FLOWOFFTHRESH_VALUE   0x00BF

Definition at line 650 of file ipg.h.

#define IPG_FLOWONTHRESH_VALUE   0x0740

Definition at line 638 of file ipg.h.

#define IPG_FRAMECHECKSEQERRORS   0xCC

Definition at line 108 of file ipg.h.

#define IPG_FRAMESABORTXSCOLLS   0xFC

Definition at line 122 of file ipg.h.

#define IPG_FRAMESBETWEENTXDMACOMPLETES   0x1

Definition at line 535 of file ipg.h.

#define IPG_FRAMESLOSTRXERRORS   0xCE

Definition at line 109 of file ipg.h.

#define IPG_FRAMESRCVDOK   0xB4

Definition at line 102 of file ipg.h.

#define IPG_FRAMESWDEFERREDXMT   0xE4

Definition at line 115 of file ipg.h.

#define IPG_FRAMESWEXDEFERRAL   0xFE

Definition at line 123 of file ipg.h.

#define IPG_FRAMESXMTDOK   0xDC

Definition at line 113 of file ipg.h.

#define IPG_FRAMETOOLONGERRRORS   0xC8

Definition at line 106 of file ipg.h.

#define IPG_IE_HOST_ERROR   0x0002

Definition at line 411 of file ipg.h.

#define IPG_IE_INT_REQUESTED   0x0040

Definition at line 416 of file ipg.h.

#define IPG_IE_LINK_EVENT   0x0100

Definition at line 418 of file ipg.h.

#define IPG_IE_MAC_CTRL_FRAME   0x0008

Definition at line 413 of file ipg.h.

#define IPG_IE_RFD_LIST_END   0x0800

Definition at line 421 of file ipg.h.

#define IPG_IE_RSVD_MASK   0x1FFE

Definition at line 410 of file ipg.h.

#define IPG_IE_RX_COMPLETE   0x0010

Definition at line 414 of file ipg.h.

#define IPG_IE_RX_DMA_COMPLETE   0x0400

Definition at line 420 of file ipg.h.

#define IPG_IE_RX_DMA_PRIORITY   0x1000

Definition at line 422 of file ipg.h.

#define IPG_IE_RX_EARLY   0x0020

Definition at line 415 of file ipg.h.

#define IPG_IE_TX_COMPLETE   0x0004

Definition at line 412 of file ipg.h.

#define IPG_IE_TX_DMA_COMPLETE   0x0200

Definition at line 419 of file ipg.h.

#define IPG_IE_UPDATE_STATS   0x0080

Definition at line 417 of file ipg.h.

#define IPG_INRANGELENGTHERRORS   0xCA

Definition at line 107 of file ipg.h.

#define IPG_INSERT_MANUAL_VLAN_TAG   0

Definition at line 488 of file ipg.h.

#define IPG_IO_REG_RANGE   0xFF

Definition at line 510 of file ipg.h.

#define IPG_IS_HOST_ERROR   0x0002

Definition at line 427 of file ipg.h.

#define IPG_IS_INT_REQUESTED   0x0040

Definition at line 432 of file ipg.h.

#define IPG_IS_INTERRUPT_STATUS   0x0001

Definition at line 426 of file ipg.h.

#define IPG_IS_LINK_EVENT   0x0100

Definition at line 434 of file ipg.h.

#define IPG_IS_MAC_CTRL_FRAME   0x0008

Definition at line 429 of file ipg.h.

#define IPG_IS_RFD_LIST_END   0x0800

Definition at line 437 of file ipg.h.

#define IPG_IS_RSVD_MASK   0x1FFF

Definition at line 425 of file ipg.h.

#define IPG_IS_RX_COMPLETE   0x0010

Definition at line 430 of file ipg.h.

#define IPG_IS_RX_DMA_COMPLETE   0x0400

Definition at line 436 of file ipg.h.

#define IPG_IS_RX_DMA_PRIORITY   0x1000

Definition at line 438 of file ipg.h.

#define IPG_IS_RX_EARLY   0x0020

Definition at line 431 of file ipg.h.

#define IPG_IS_TX_COMPLETE   0x0004

Definition at line 428 of file ipg.h.

#define IPG_IS_TX_DMA_COMPLETE   0x0200

Definition at line 435 of file ipg.h.

#define IPG_IS_UPDATE_STATS   0x0080

Definition at line 433 of file ipg.h.

#define IPG_LATECOLLISIONS   0xE8

Definition at line 116 of file ipg.h.

#define IPG_MACCONTROLFRAMESRCVD   0xC6

Definition at line 105 of file ipg.h.

#define IPG_MACCONTROLFRAMESXMTDOK   0xFA

Definition at line 121 of file ipg.h.

#define IPG_MANUAL_VLAN_CFI   0x1

Definition at line 507 of file ipg.h.

#define IPG_MANUAL_VLAN_USERPRIORITY   0x5

Definition at line 508 of file ipg.h.

#define IPG_MANUAL_VLAN_VID   0xABC

Definition at line 506 of file ipg.h.

#define IPG_MAXRFDPROCESS_COUNT   0x80

Definition at line 542 of file ipg.h.

#define IPG_MC_AUTO_VLAN_TAGGING   0x00001000

Definition at line 455 of file ipg.h.

#define IPG_MC_AUTO_VLAN_UNTAGGING   0x00002000

Definition at line 456 of file ipg.h.

#define IPG_MC_CARRIER_SENSE   0x00020000

Definition at line 458 of file ipg.h.

#define IPG_MC_COLLISION_DETECT   0x00010000

Definition at line 457 of file ipg.h.

#define IPG_MC_DUPLEX_SELECT   0x00000020

Definition at line 447 of file ipg.h.

#define IPG_MC_DUPLEX_SELECT_FD   0x00000020

Definition at line 448 of file ipg.h.

#define IPG_MC_DUPLEX_SELECT_HD   0x00000000

Definition at line 449 of file ipg.h.

#define IPG_MC_FIFO_LOOPBACK   0x00000400

Definition at line 453 of file ipg.h.

#define IPG_MC_IFS_1024BIT   0x00000001

Definition at line 445 of file ipg.h.

#define IPG_MC_IFS_1792BIT   0x00000002

Definition at line 444 of file ipg.h.

#define IPG_MC_IFS_4352BIT   0x00000003

Definition at line 443 of file ipg.h.

#define IPG_MC_IFS_96BIT   0x00000000

Definition at line 446 of file ipg.h.

#define IPG_MC_IFS_SELECT   0x00000003

Definition at line 442 of file ipg.h.

#define IPG_MC_MAC_LOOPBACK   0x00000800

Definition at line 454 of file ipg.h.

#define IPG_MC_PAUSED   0x40000000

Definition at line 468 of file ipg.h.

#define IPG_MC_RCV_FCS   0x00000200

Definition at line 452 of file ipg.h.

#define IPG_MC_RSVD_MASK   0x7FE33FA3

Definition at line 441 of file ipg.h.

#define IPG_MC_RX_DISABLE   0x10000000

Definition at line 466 of file ipg.h.

#define IPG_MC_RX_ENABLE   0x08000000

Definition at line 465 of file ipg.h.

#define IPG_MC_RX_ENABLED   0x20000000

Definition at line 467 of file ipg.h.

#define IPG_MC_RX_FLOW_CONTROL_ENABLE   0x00000100

Definition at line 451 of file ipg.h.

#define IPG_MC_STATISTICS_DISABLE   0x00400000

Definition at line 460 of file ipg.h.

#define IPG_MC_STATISTICS_ENABLE   0x00200000

Definition at line 459 of file ipg.h.

#define IPG_MC_STATISTICS_ENABLED   0x00800000

Definition at line 461 of file ipg.h.

#define IPG_MC_TX_DISABLE   0x02000000

Definition at line 463 of file ipg.h.

#define IPG_MC_TX_ENABLE   0x01000000

Definition at line 462 of file ipg.h.

#define IPG_MC_TX_ENABLED   0x04000000

Definition at line 464 of file ipg.h.

#define IPG_MC_TX_FLOW_CONTROL_ENABLE   0x00000080

Definition at line 450 of file ipg.h.

#define IPG_MCSTFRAMESRCVDOK   0xB8

Definition at line 103 of file ipg.h.

#define IPG_MCSTFRAMESXMTDOK   0xE0

Definition at line 114 of file ipg.h.

#define IPG_MCSTOCTETRCVDOK   0xAC

Definition at line 100 of file ipg.h.

#define IPG_MCSTOCTETXMTOK   0xD4

Definition at line 111 of file ipg.h.

#define IPG_MEM_REG_RANGE   0x154

Definition at line 511 of file ipg.h.

#define IPG_MINUSEDRFDSTOFREE   0x80

Definition at line 547 of file ipg.h.

#define IPG_MULTICAST_HASHTABLE_SIZE   0x40

Definition at line 515 of file ipg.h.

#define IPG_MULTICOLFRAMES   0xEC

Definition at line 117 of file ipg.h.

#define IPG_NIC_PHY_ADDRESS   0x01

Definition at line 513 of file ipg.h.

#define IPG_OCTETRCVOK   0xA8

Definition at line 99 of file ipg.h.

#define IPG_OCTETXMTOK   0xD0

Definition at line 110 of file ipg.h.

#define IPG_PC_DUPLEX_POLARITY   0x08

Definition at line 325 of file ipg.h.

#define IPG_PC_DUPLEX_STATUS   0x10

Definition at line 326 of file ipg.h.

#define IPG_PC_LINK_POLARITY   0x20

Definition at line 327 of file ipg.h.

#define IPG_PC_LINK_SPEED   0xC0

Definition at line 328 of file ipg.h.

#define IPG_PC_LINK_SPEED_1000MBPS   0xC0

Definition at line 331 of file ipg.h.

#define IPG_PC_LINK_SPEED_100MBPS   0x80

Definition at line 330 of file ipg.h.

#define IPG_PC_LINK_SPEED_10MBPS   0x40

Definition at line 329 of file ipg.h.

#define IPG_PC_MGMTCLK   0x01

Definition at line 322 of file ipg.h.

#define IPG_PC_MGMTCLK_HI   0x01

Definition at line 321 of file ipg.h.

#define IPG_PC_MGMTCLK_LO   0x00

Definition at line 320 of file ipg.h.

#define IPG_PC_MGMTDATA   0x02

Definition at line 323 of file ipg.h.

#define IPG_PC_MGMTDIR   0x04

Definition at line 324 of file ipg.h.

#define IPG_PC_PHYCTRLWAIT_NS   200

Definition at line 528 of file ipg.h.

#define IPG_PC_RSVD_MASK   0xFF

Definition at line 319 of file ipg.h.

#define IPG_PIB_IOBASEADDRESS   0xFFFFFF00

Definition at line 171 of file ipg.h.

#define IPG_PIB_IOBASEADDRIND   0x00000001

Definition at line 172 of file ipg.h.

#define IPG_PIB_RSVD_MASK   0xFFFFFE01

Definition at line 170 of file ipg.h.

#define IPG_PMB_MEMBASEADDRESS   0xFFFFFE00

Definition at line 180 of file ipg.h.

#define IPG_PMB_MEMBASEADDRIND   0x00000001

Definition at line 176 of file ipg.h.

#define IPG_PMB_MEMMAPTYPE   0x00000006

Definition at line 177 of file ipg.h.

#define IPG_PMB_MEMMAPTYPE0   0x00000002

Definition at line 178 of file ipg.h.

#define IPG_PMB_MEMMAPTYPE1   0x00000004

Definition at line 179 of file ipg.h.

#define IPG_PMB_RSVD_MASK   0xFFFFFE07

Definition at line 175 of file ipg.h.

#define IPG_PS_MEM_LEN9   0x02

Definition at line 315 of file ipg.h.

#define IPG_PS_MEM_LENB9B   0x01

Definition at line 314 of file ipg.h.

#define IPG_PS_NON_COMPDET   0x04

Definition at line 316 of file ipg.h.

#define IPG_RFDLIST_LENGTH   0x100

Definition at line 537 of file ipg.h.

#define IPG_RFI_FRAGADDR   0x000000FFFFFFFFFF

Definition at line 247 of file ipg.h.

#define IPG_RFI_FRAGLEN   0xFFFF000000000000LL

Definition at line 248 of file ipg.h.

#define IPG_RFI_RSVD_MASK   0xFFFF00FFFFFFFFFF

Definition at line 246 of file ipg.h.

#define IPG_RFS_FRAMEEND   0x0000000040000000

Definition at line 241 of file ipg.h.

#define IPG_RFS_FRAMESTART   0x0000000020000000

Definition at line 240 of file ipg.h.

#define IPG_RFS_IPDETECTED   0x0000000008000000

Definition at line 238 of file ipg.h.

#define IPG_RFS_IPERROR   0x0000000010000000

Definition at line 239 of file ipg.h.

#define IPG_RFS_RFDDONE   0x0000000080000000

Definition at line 242 of file ipg.h.

#define IPG_RFS_RSVD_MASK   0x0000FFFFFFFFFFFF

Definition at line 225 of file ipg.h.

#define IPG_RFS_RXALIGNMENTERROR   0x0000000000040000

Definition at line 229 of file ipg.h.

#define IPG_RFS_RXFCSERROR   0x0000000000080000

Definition at line 230 of file ipg.h.

#define IPG_RFS_RXFIFOOVERRUN   0x0000000000010000

Definition at line 227 of file ipg.h.

#define IPG_RFS_RXFRAMELEN   0x000000000000FFFF

Definition at line 226 of file ipg.h.

#define IPG_RFS_RXLENGTHERROR   0x0000000000200000

Definition at line 232 of file ipg.h.

#define IPG_RFS_RXOVERSIZEDFRAME   0x0000000000100000

Definition at line 231 of file ipg.h.

#define IPG_RFS_RXRUNTFRAME   0x0000000000020000

Definition at line 228 of file ipg.h.

#define IPG_RFS_TCI   0x0000FFFF00000000

Definition at line 243 of file ipg.h.

#define IPG_RFS_TCPDETECTED   0x0000000000800000

Definition at line 234 of file ipg.h.

#define IPG_RFS_TCPERROR   0x0000000001000000

Definition at line 235 of file ipg.h.

#define IPG_RFS_UDPDETECTED   0x0000000002000000

Definition at line 236 of file ipg.h.

#define IPG_RFS_UDPERROR   0x0000000004000000

Definition at line 237 of file ipg.h.

#define IPG_RFS_VLANDETECTED   0x0000000000400000

Definition at line 233 of file ipg.h.

#define IPG_RM_RECEIVEALLFRAMES   0x08

Definition at line 309 of file ipg.h.

#define IPG_RM_RECEIVEBROADCAST   0x04

Definition at line 308 of file ipg.h.

#define IPG_RM_RECEIVEIPMULTICAST   0x20

Definition at line 311 of file ipg.h.

#define IPG_RM_RECEIVEMULTICAST   0x02

Definition at line 307 of file ipg.h.

#define IPG_RM_RECEIVEMULTICASTHASH   0x10

Definition at line 310 of file ipg.h.

#define IPG_RM_RECEIVEUNICAST   0x01

Definition at line 306 of file ipg.h.

#define IPG_RM_RSVD_MASK   0x3F

Definition at line 305 of file ipg.h.

#define IPG_RP_RSVD_MASK   0xFF

Definition at line 302 of file ipg.h.

#define IPG_RU_RSVD_MASK   0xFF

Definition at line 299 of file ipg.h.

#define IPG_RXDMABURSTTHRESH_VALUE   0x30

Definition at line 626 of file ipg.h.

#define IPG_RXDMAPOLLPERIOD_VALUE   0x01

Definition at line 601 of file ipg.h.

#define IPG_RXDMAURGENTTHRESH_VALUE   0x30

Definition at line 614 of file ipg.h.

#define IPG_RZ_ALL   0x0FFFFFFF

Definition at line 253 of file ipg.h.

#define IPG_SINGLECOLFRAMES   0xF0

Definition at line 118 of file ipg.h.

#define IPG_SM_ALL   0x0FFFFFFF

Definition at line 256 of file ipg.h.

#define IPG_SM_BCSTOCTETRCVDOK_BCSTFRAMESRCVDOK   0x00000004

Definition at line 259 of file ipg.h.

#define IPG_SM_BCSTOCTETXMTOK_BCSTFRAMESXMTDOK   0x00004000

Definition at line 271 of file ipg.h.

#define IPG_SM_CARRIERSENSEERRORS   0x00100000

Definition at line 277 of file ipg.h.

#define IPG_SM_FRAMECHECKSEQERRORS   0x00000400

Definition at line 267 of file ipg.h.

#define IPG_SM_FRAMESABORTXSCOLLS   0x00400000

Definition at line 279 of file ipg.h.

#define IPG_SM_FRAMESLOSTRXERRORS   0x00000800

Definition at line 268 of file ipg.h.

#define IPG_SM_FRAMESTOOLONGERRORS   0x00000100

Definition at line 265 of file ipg.h.

#define IPG_SM_FRAMESWDEFERREDXMT   0x00008000

Definition at line 272 of file ipg.h.

#define IPG_SM_FRAMESWEXDEFERAL   0x00800000

Definition at line 280 of file ipg.h.

#define IPG_SM_INRANGELENGTHERRORS   0x00000200

Definition at line 266 of file ipg.h.

#define IPG_SM_IPCHECKSUMERRORS   0x00000020

Definition at line 262 of file ipg.h.

#define IPG_SM_LATECOLLISIONS   0x00010000

Definition at line 273 of file ipg.h.

#define IPG_SM_MACCONTROLFRAMESRCVD   0x00000080

Definition at line 264 of file ipg.h.

#define IPG_SM_MACCONTROLFRAMESXMTD   0x00200000

Definition at line 278 of file ipg.h.

#define IPG_SM_MCSTOCTETRCVDOK_MCSTFRAMESRCVDOK   0x00000002

Definition at line 258 of file ipg.h.

#define IPG_SM_MCSTOCTETXMTOK_MCSTFRAMESXMTDOK   0x00002000

Definition at line 270 of file ipg.h.

#define IPG_SM_MULTICOLFRAMES   0x00020000

Definition at line 274 of file ipg.h.

#define IPG_SM_OCTETRCVOK_FRAMESRCVDOK   0x00000001

Definition at line 257 of file ipg.h.

#define IPG_SM_OCTETXMTOK_FRAMESXMTOK   0x00001000

Definition at line 269 of file ipg.h.

#define IPG_SM_RXJUMBOFRAMES   0x00000008

Definition at line 260 of file ipg.h.

#define IPG_SM_SINGLECOLFRAMES   0x00040000

Definition at line 275 of file ipg.h.

#define IPG_SM_TCPCHECKSUMERRORS   0x00000010

Definition at line 261 of file ipg.h.

#define IPG_SM_TXJUMBOFRAMES   0x00080000

Definition at line 276 of file ipg.h.

#define IPG_SM_UDPCHECKSUMERRORS   0x00000040

Definition at line 263 of file ipg.h.

#define IPG_STRIP_FCS_ON_RX   1

Definition at line 478 of file ipg.h.

#define IPG_TB_RSVD_MASK   0xFF

Definition at line 290 of file ipg.h.

#define IPG_TFC_CFI   0x0000100000000000

Definition at line 214 of file ipg.h.

#define IPG_TFC_FCSAPPENDDISABLE   0x0000000000200000

Definition at line 207 of file ipg.h.

#define IPG_TFC_FRAGCOUNT   0x000000000F000000

Definition at line 210 of file ipg.h.

#define IPG_TFC_FRAMEID   0x000000000000FFFF

Definition at line 199 of file ipg.h.

#define IPG_TFC_IPCHECKSUMENABLE   0x0000000000100000

Definition at line 206 of file ipg.h.

#define IPG_TFC_RSVD_MASK   0x0000FFFF9FFFFFFF

Definition at line 198 of file ipg.h.

#define IPG_TFC_TCPCHECKSUMENABLE   0x0000000000040000

Definition at line 204 of file ipg.h.

#define IPG_TFC_TFDDONE   0x0000000080000000

Definition at line 212 of file ipg.h.

#define IPG_TFC_TXDMAINDICATE   0x0000000000800000

Definition at line 209 of file ipg.h.

#define IPG_TFC_TXINDICATE   0x0000000000400000

Definition at line 208 of file ipg.h.

#define IPG_TFC_UDPCHECKSUMENABLE   0x0000000000080000

Definition at line 205 of file ipg.h.

#define IPG_TFC_USERPRIORITY   0x0000E00000000000

Definition at line 215 of file ipg.h.

#define IPG_TFC_VID   0x00000FFF00000000

Definition at line 213 of file ipg.h.

#define IPG_TFC_VLANTAGINSERT   0x0000000010000000

Definition at line 211 of file ipg.h.

#define IPG_TFC_WORDALIGN   0x0000000000030000

Definition at line 200 of file ipg.h.

#define IPG_TFC_WORDALIGNDISABLED   0x0000000000030000

Definition at line 203 of file ipg.h.

#define IPG_TFC_WORDALIGNTODWORD   0x0000000000000000

Definition at line 201 of file ipg.h.

#define IPG_TFC_WORDALIGNTOWORD   0x0000000000020000

Definition at line 202 of file ipg.h.

#define IPG_TFDLIST_LENGTH   0x100

Definition at line 530 of file ipg.h.

#define IPG_TFI_FRAGADDR   0x000000FFFFFFFFFF

Definition at line 219 of file ipg.h.

#define IPG_TFI_FRAGLEN   0xFFFF000000000000LL

Definition at line 220 of file ipg.h.

#define IPG_TFI_RSVD_MASK   0xFFFF00FFFFFFFFFF

Definition at line 218 of file ipg.h.

#define IPG_TP_RSVD_MASK   0xFF

Definition at line 296 of file ipg.h.

#define IPG_TS_LATE_COLLISION   0x00000004

Definition at line 392 of file ipg.h.

#define IPG_TS_RSVD_MASK   0xFFFF00DD

Definition at line 390 of file ipg.h.

#define IPG_TS_TX_COMPLETE   0x00000080

Definition at line 396 of file ipg.h.

#define IPG_TS_TX_ERROR   0x00000001

Definition at line 391 of file ipg.h.

#define IPG_TS_TX_FRAMEID   0xFFFF0000

Definition at line 397 of file ipg.h.

#define IPG_TS_TX_IND_REQD   0x00000040

Definition at line 395 of file ipg.h.

#define IPG_TS_TX_MAX_COLL   0x00000008

Definition at line 393 of file ipg.h.

#define IPG_TS_TX_UNDERRUN   0x00000010

Definition at line 394 of file ipg.h.

#define IPG_TU_RSVD_MASK   0xFF

Definition at line 293 of file ipg.h.

#define IPG_TXDMABURSTTHRESH_VALUE   0x30

Definition at line 590 of file ipg.h.

#define IPG_TXDMAPOLLPERIOD_VALUE   0x26

Definition at line 565 of file ipg.h.

#define IPG_TXDMAURGENTTHRESH_VALUE   0x04

Definition at line 578 of file ipg.h.

#define IPG_WE_LINK_EVT   0x40

Definition at line 406 of file ipg.h.

#define IPG_WE_LINK_EVT_ENABLE   0x04

Definition at line 402 of file ipg.h.

#define IPG_WE_MAGIC_PKT_ENABLE   0x02

Definition at line 401 of file ipg.h.

#define IPG_WE_MAGIC_PKT_EVT   0x20

Definition at line 405 of file ipg.h.

#define IPG_WE_WAKE_PKT_ENABLE   0x01

Definition at line 400 of file ipg.h.

#define IPG_WE_WAKE_PKT_EVT   0x10

Definition at line 404 of file ipg.h.

#define IPG_WE_WAKE_POLARITY   0x08

Definition at line 403 of file ipg.h.

#define IPG_WE_WOL_ENABLE   0x80

Definition at line 407 of file ipg.h.

#define MARVELL   0x0141

Definition at line 31 of file ipg.h.

#define MAX_JUMBOSIZE   0x8 /* max is 12K */

Definition at line 552 of file ipg.h.

#define MII_PHY_SELECTOR_IEEE8023   0x0001

Definition at line 35 of file ipg.h.

#define MII_PHY_TECHABILITYFIELD   0x1FE0

Definition at line 36 of file ipg.h.

#define NS   0x2000

Definition at line 30 of file ipg.h.

Enumeration Type Documentation

enum ipg_regs
Enumerator:
DMA_CTRL 
RX_DMA_STATUS 
TFD_LIST_PTR_0 
TFD_LIST_PTR_1 
TX_DMA_BURST_THRESH 
TX_DMA_URGENT_THRESH 
TX_DMA_POLL_PERIOD 
RFD_LIST_PTR_0 
RFD_LIST_PTR_1 
RX_DMA_BURST_THRESH 
RX_DMA_URGENT_THRESH 
RX_DMA_POLL_PERIOD 
DEBUG_CTRL 
ASIC_CTRL 
FIFO_CTRL 
FLOW_OFF_THRESH 
FLOW_ON_THRESH 
EEPROM_DATA 
EEPROM_CTRL 
EXPROM_ADDR 
EXPROM_DATA 
WAKE_EVENT 
COUNTDOWN 
INT_STATUS_ACK 
INT_ENABLE 
INT_STATUS 
TX_STATUS 
MAC_CTRL 
VLAN_TAG 
PHY_SET 
PHY_CTRL 
STATION_ADDRESS_0 
STATION_ADDRESS_1 
STATION_ADDRESS_2 
MAX_FRAME_SIZE 
RECEIVE_MODE 
HASHTABLE_0 
HASHTABLE_1 
RMON_STATISTICS_MASK 
STATISTICS_MASK 
RX_JUMBO_FRAMES 
TCP_CHECKSUM_ERRORS 
IP_CHECKSUM_ERRORS 
UDP_CHECKSUM_ERRORS 
TX_JUMBO_FRAMES 

Definition at line 50 of file ipg.h.